For Programmers: Free Programming Magazines  


Home > Archive > PowerBuilder > March 2004 > Changing default .Enable properties









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Changing default .Enable properties
Elaia Raj

2004-03-27, 12:22 am

Hi!
I'm currently using PB 6.5 and I have painted a window which has 2
radio buttons and 2 SingleLineEdit objects (sle). So, if the user
selects a radio button, then one of the sle objects is enabled.

But part of the user's requirement is to have the SLE to be in "Cream"
color when it's disabled instead of "Gray". Is there any way I can
change the Enable property to have a different disable color ?

I'm relatively new to PowerBuilder, so i hope someone can help me on
this.
Thanks a lot in advance.

Elaia Raj
Vir

2004-03-27, 12:22 am

using backcolour property of SLE you can change the background colour.

eg: SLE.backcolour = rgb(255,255,0)

see ex for rgb values...




elraj@maxis.net.my (Elaia Raj) wrote in message news:<2bb05aa9.0312301725.6ba56efc@posting.google.com>...
> Hi!
> I'm currently using PB 6.5 and I have painted a window which has 2
> radio buttons and 2 SingleLineEdit objects (sle). So, if the user
> selects a radio button, then one of the sle objects is enabled.
>
> But part of the user's requirement is to have the SLE to be in "Cream"
> color when it's disabled instead of "Gray". Is there any way I can
> change the Enable property to have a different disable color ?
>
> I'm relatively new to PowerBuilder, so i hope someone can help me on
> this.
> Thanks a lot in advance.
>
> Elaia Raj

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com