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

vikram austinium at ...43...
Thu Jan 6 07:51:25 CET 2011


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




      
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SpinBoxIssue2GTK.tar.gz
Type: application/x-gzip
Size: 8728 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20110105/daf05d22/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SpinBoxIssue2TQ.tar.gz
Type: application/x-gzip
Size: 7885 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20110105/daf05d22/attachment-0001.bin>


More information about the User mailing list