Tansparency

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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
 
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..

Brett Collings said:
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
 
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
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..

Brett Collings said:
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

Cheers,
Brett
 
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

Brett Collings said:
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
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..

Brett Collings said:
On Tue, 26 Oct 2004 00:13:03 -0700, Timboo

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

Cheers,
Brett
 
Back
Top