[perl-win32-gui-users] textfield prompt color

2002-07-10 Thread Scott Wildenberg
How would I set the background color for a textfield prompt label or in a
checkbox label? I can see how I might be able to set it if I could get the
handle for that label, but I can't figure out how I would do that either.
Is there a way to get the handle for a control that you have a name for but
that you don't have a reference for?

Thanks much!

Scott C. Wildenberg, Ph.D.
University of Minnesota
Dept. of Medicine-Genetics
Infotech Specialist
[EMAIL PROTECTED]

Prove all things; hold fast that which is good. -- I Thes. 5:21 


<>

[perl-win32-gui-users] RE: textfield prompt color

2002-07-16 Thread Scott Wildenberg
Thanks for the responses I have gotten on this.  I am now able to extract
the handle and object reference I was looking for, but unfortunately I still
can't set the background color I have been trying to set.

when I define a Textfield, the -foreground sets the color of the entered
text and -background sets the color of the textfield, but have no effect on
the textfield prompt.  Unless I am missing something, I am also unable to
set the background color on the label control for the textfield prompt after
I have defined the textfield.

It occurred to me, though, that I am trying too hard at this.  The simple
answer I decided upon was to forget the -prompt option in Add_Textfield.  I
simply defined a separate label conrol (...setting the correct background
color) and placed it in front of the textfield.

If anyone has any other suggestions, that would be great, but this seems to
work OK.

thanks again,

Scott Wildenberg

>It dosnt seem like anyone has answered you yet, so here goes,
>
>1) define Textfield, or label colour.
>   -foreground =3D>[ 0, 0, 255] ,
>   -background =3D>[0,255,0],
>
>0 to 255 red,green,blue
>
>2) you can get the handle with  -handle eg
>   $handle=3D$winMain->lblname()->{-handle});
>
>JohnR