[Gambas-user] need help:Checkbox

Werner werda at ...1000...
Wed Oct 19 16:09:57 CEST 2005


Ignatius Syofian wrote:
> Hi, all
>
> I use checkbox in my form.
>   in query mode, if i use checkbox1.enable=false then 
>      i will grey the checkbox text
>   if i use checkbox1.enable=true
>      user can clik the checkbox to change the value from true to false or 
> false to true. 
>
> The problem is  i want to show the checkbox.text in normal mode , but user 
> can't change the value of checkbox without press edit button.
>
> How can i do that.
>
> Sorry about my poor english.
> Thank a lot
>
>   
It might be that you have a very special situation.

The general idea of having a disabled control at all is to inform the
user that that this control is potentially available but not in the
particular circumstances. There is a very good book "Tog on Interface"
by Bruce Tognazzini about user interface guidelines. It  is now over 15
years old but physiology doesn't change that fast.

If you really want to do this you could always place a text box with the
same text, same font etc. just above the control text and then make it
visible/insible.


Regards,

Werner





More information about the User mailing list