|
 |
access thread: Transparent list box in access
Message #1 by "Phillip Johnson" <phillip.johnson@e...> on Thu, 16 May 2002 11:07:08
|
|
Hello all,
Is it possible to have a list box with a transparent background in Access
97? Or does anybody know of a custom control that allows this?
Kind regards,
Phillip
Message #2 by "Amy Wyatt" <amyw@c...> on Thu, 16 May 2002 14:38:49
|
|
I don't know of any way to make a list box transparent other than to make
its backcolor = to the form's back color. Example:
Private Sub Form_Load()
Me.lst1.BackColor = Me.Detail.BackColor
End Sub
Maybe someone else knows of a control you can do this with, but this might
work in a pinch.
Amy
> Hello all,
> Is it possible to have a list box with a transparent background in
Access
9> 7? Or does anybody know of a custom control that allows this?
> Kind regards,
> Phillip
Message #3 by "Phillip Johnson" <phillip.johnson@e...> on Thu, 16 May 2002 15:10:35
|
|
Thanks Amy, but my problem is the background of the form is a bitmap with
a gradient fill that goes from light blue in the top left corner to dark
blue in the bottom right.
Thanks for the response anyway, though.
Kind regards, Phillip
> I don't know of any way to make a list box transparent other than to
make
i> ts backcolor = to the form's back color. Example:
> Private Sub Form_Load()
> Me.lst1.BackColor = Me.Detail.BackColor
> End Sub
> Maybe someone else knows of a control you can do this with, but this
might
w> ork in a pinch.
> Amy
> > Hello all,
> > Is it possible to have a list box with a transparent background in
A> ccess
9> > 7? Or does anybody know of a custom control that allows this?
> > Kind regards,
> > Phillip
Message #4 by "Leo Scott" <leoscott@c...> on Thu, 16 May 2002 09:25:51 -0700
|
|
I looked into the API call SetWindowLong and tried setting the
WS_EX_TRANSPARENT extended style bit and that didn't work. It looks like it
has to be set at creation time and I don't see a way to do that.
|-----Original Message-----
|From: Phillip Johnson [mailto:phillip.johnson@e...]
|Sent: Thursday, May 16, 2002 3:11 PM
|To: Access
|Subject: [access] Re: Transparent list box in access
|
|
|Thanks Amy, but my problem is the background of the form is a bitmap with
|a gradient fill that goes from light blue in the top left corner to dark
|blue in the bottom right.
|
|Thanks for the response anyway, though.
|
|Kind regards, Phillip
|
|> I don't know of any way to make a list box transparent other than to
|make
|i> ts backcolor = to the form's back color. Example:
| > Private Sub Form_Load()
| > Me.lst1.BackColor = Me.Detail.BackColor
| > End Sub
|
|> Maybe someone else knows of a control you can do this with, but this
|might
|w> ork in a pinch.
|
|> Amy
|
|> > Hello all,
|
|> > Is it possible to have a list box with a transparent background in
|A> ccess
|9> > 7? Or does anybody know of a custom control that allows this?
|
|> > Kind regards,
|
|> > Phillip
Message #5 by "Phillip Johnson" <phillip.johnson@e...> on Fri, 17 May 2002 08:43:09
|
|
Ah well, thanks for trying.
Its becoming increasingly difficult to create modern looking applications
in Access. Everything just looks so outdated and any attempts to make it
look modern just seem to cause too much overhead in processing time.
Just a bit of a gripe :)
kind regards,
Phillip
> I looked into the API call SetWindowLong and tried setting the
WS_EX_TRANSPARENT extended style bit and that didn't work. It looks like
it
has to be set at creation time and I don't see a way to do that.
|-----Original Message-----
|From: Phillip Johnson [mailto:phillip.johnson@e...]
|Sent: Thursday, May 16, 2002 3:11 PM
|To: Access
|Subject: [access] Re: Transparent list box in access
|
|
|Thanks Amy, but my problem is the background of the form is a bitmap with
|a gradient fill that goes from light blue in the top left corner to dark
|blue in the bottom right.
|
|Thanks for the response anyway, though.
|
|Kind regards, Phillip
|
|> I don't know of any way to make a list box transparent other than to
|make
|i> ts backcolor = to the form's back color. Example:
| > Private Sub Form_Load()
| > Me.lst1.BackColor = Me.Detail.BackColor
| > End Sub
|
|> Maybe someone else knows of a control you can do this with, but this
|might
|w> ork in a pinch.
|
|> Amy
|
|> > Hello all,
|
|> > Is it possible to have a list box with a transparent background in
|A> ccess
|9> > 7? Or does anybody know of a custom control that allows this?
|
|> > Kind regards,
|
|> > Phillip
Message #6 by "Randy Cornish" <rlcornish@c...> on Fri, 17 May 2002 21:07:44
|
|
Try researching the following APIs. Unfortunately, when I played with
them, transparent is the same as "go right thru to what's underneath".
Mouse clicks pass right thru and the text did not show up. Maybe a
variation?
CreateRectRgn
CombineRgn
SetWindowRgn (does the work)
R
> Hello all,
> Is it possible to have a list box with a transparent background in
Access
9> 7? Or does anybody know of a custom control that allows this?
> Kind regards,
> Phillip
Message #7 by "Phillip Johnson" <phillip.johnson@e...> on Mon, 20 May 2002 08:45:44
|
|
Thanks for the response Randy,
I am working on a prototype for a look and feel and am working on a strict
deadline so I am scrapping the attempts to create a transparent background
as they are too time consuming given current deadline. Once again, thanks
for the response and I will look into the APIs if I am told to go back to
it.
Kind Regards,
Phillip
> Try researching the following APIs. Unfortunately, when I played with
t> hem, transparent is the same as "go right thru to what's underneath".
M> ouse clicks pass right thru and the text did not show up. Maybe a
v> ariation?
> CreateRectRgn
> CombineRgn
> SetWindowRgn (does the work)
> R
> > Hello all,
> > Is it possible to have a list box with a transparent background in
A> ccess
9> > 7? Or does anybody know of a custom control that allows this?
> > Kind regards,
> > Phillip
|
|
 |