Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Checkbox question 2

Status
Not open for further replies.

garyvugelman

Programmer
Jul 18, 2003
11
US
Hello everyone

Is there any way to make a checkbox greyed out. Even if it has the taborder = 0, it still shown white and user tries to click on it. Using PB 7.0.3.

Thanks
 
create static text same size as check box (square) with grey color and put on top of checkbox. Use bringtofront / sendtoback properties whenever is needed.
 
Thanks siraj777,

But how will user see check mark if I bring the text object to the front?
 
You may set the Scale property to TRUE and the 3D to FALSE. Then, put an expression in its Properties -> Expressions -> Background.Color:

If( <expression>, RGB( 255,255,255 ), RGB( 192,192,192 ))

Another way to implement this is by a bitmap (exactly sized to the box) and hiding/showing over it depending on its checked state.

---
PowerObject!
-----------------------------------------
PowerBuilder / PFC Developers' Group
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top