Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / New Users / November 2004

Tip: Looking for answers? Try searching our database.

Tansparency

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Timboo - 26 Oct 2004 08:13 GMT
I would like to semi hide (behind an opaque box) some optional buttons on a
form, but the transparency setting seems to either be on or off, unlike a
word object where you can ajust the level of "opaqueness". Im I looking in
the worng place to achieve this? thanks Tim
Brett Collings [429338] - 26 Oct 2004 10:44 GMT
>I would like to semi hide (behind an opaque box) some optional buttons on a
>form, but the transparency setting seems to either be on or off, unlike a
>word object where you can ajust the level of "opaqueness". Im I looking in
>the worng place to achieve this? thanks Tim

don't bother about hiding behind transparencies ... just use the
 [object].visible = True/False
method in the code behind the form

If {condition} Then
  [object].visible = True
  ... do stuff ...
Else
  [object].visible = False
EndIf

Brett
Cheers,
Brett

----------------------------------------------
Be adventurous, be bold, be careful, be a star
----------------------------------------------
Brett Collings
Business & Systems Analyst
Management Information Systems Developer
Timboo - 27 Oct 2004 15:49 GMT
Brett, thank you for the advice, but the idea behind the semi transparent
layer, was that by selecting the record, the other records would be slightly
obscured, indicating that the selected record values could be changed, whilst
the semi visible records could not, at the same time indicating to the user
that all the other records were "still there". The whole concept being that
button pushes next to a patient name will record things like "bloods ok"
"seen by consultant" as a checklist, all information being displayed on a
single screen suitable for touch screen technology. as they say a picture
says a thousand words - or something like that..

> >I would like to semi hide (behind an opaque box) some optional buttons on a
> >form, but the transparency setting seems to either be on or off, unlike a
[quoted text clipped - 22 lines]
> Business & Systems Analyst
> Management Information Systems Developer
Brett Collings [429338] - 27 Oct 2004 23:03 GMT
Ahh ok, that's different.  You want the field "dimmed" :)

You do that by setting the Properties->Data->Enabled (and Locked)
properties.

Try setting them manually and you'll see what they do.  If you put the
cursor on one of them and F1, Help will give you all the options of
the various combinations you can use.

To set/unset them, then code is

Me!ControlName.Enabled = False

Note that I correctly use ControlName and not FieldName.  They are
different.  When you create a form, they are automatically the same
(bad idea) but should not be.  Let me explain ...
- Your field's Data->ControlSource may be FirstName
- The field's Other->Name should be txtFirstName  ... *this* is the
ControlName.

When addressing objects on a form in code, Access is always using the
ControlName, not the ControlSource but most developers have fallen
into the trap of using the ControlSource field name.  This is a very
very common problem encountered by everyone at some time or other and
we hope MS will change it in the next release so that when a new field
is created, Access asks for a ControlName and prompts the entry with a
default naming convention prefix like
txt    for a textbox
cmd    for a button
cbo    for a combo box
opt    for option group
img    for a pic
tab    for a tab control
... etc etc ...

Brett

>Brett, thank you for the advice, but the idea behind the semi transparent
>layer, was that by selecting the record, the other records would be slightly
[quoted text clipped - 32 lines]
>> Business & Systems Analyst
>> Management Information Systems Developer

Cheers,
Brett

----------------------------------------------
Be adventurous, be bold, be careful, be a star
----------------------------------------------
Brett Collings
Business & Systems Analyst
Management Information Systems Developer
Timboo - 02 Nov 2004 15:59 GMT
Brett, thank you again, I will give this a try.  With regard to the control
name vs field name, what you sy makes sense even to a beginner like myself,
so a little weird that the Microsoft development team overlooked this,
especially as there have been so many version of Access.  But there again
just look at the flaws made my major car manufacturers - who have been making
cars for over 100 years....Tim

> Ahh ok, that's different.  You want the field "dimmed" :)
>
[quoted text clipped - 79 lines]
> Business & Systems Analyst
> Management Information Systems Developer
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.