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




Reply via email to