[Gambas-user] Difference in SpinBox behavior between gb.gtk & gb.qt

Michael mdavies5 at ...169...
Thu Jan 6 11:01:08 CET 2011


Vikram,
As a workaround you could check the Spinbox.Keydown event and ignore 
keys if they take the value above 100

Regards
Michael


On 06/01/11 17:51, vikram wrote:
> Hi,
>
> The SpinBox control when used in an application using the gb.gtk component allows the user to input values that are larger than it's MaxValue property. Say the MaxValue for a SpinBox is 100, the user can enter 999 and click the button to move to the next form, the SpinBox now automatically changes the value to 100. This is good because junk values won't get saved, but the problem is that there is no way of extracting the value with SpinBox.Value to show the user an error message that the value he wanted(999) is not valid!
>
> If on the other hand the application uses the gb.qt component the user cannot enter any value greater than 100, the SpinBox control wouldn't let him! Is there anyway the same can be achieved in applications using the gb.gtk component?
>
> Regards,
> Vikram Nair
>
>
>
>
>        
>
>
> ------------------------------------------------------------------------------
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment, and,
> should the need arise, upgrade to a full multi-node Oracle RAC database
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
>
>
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user



More information about the User mailing list