Andre Arpin <ar...@kingston.net> wrote:
(01/01/2011 13:51)

>also interesting is that the definition for GetValue is that it return an int 
>but in reality it returns a string.
>

As I say in the previous mail, it should allow both, explicitly! This is the 
best use of the intended combination control, no? GetValue, and GetText. Then 
we know exactly what we're after.

>I think spin control is very poorly defined. It should only accept numbers. 
>This string think is probably because someone uses spinbutton with a text 
>control and was too lazy to add the proper check. So compatibility does not 
>exist and all the programmers have to add check in there code to use it 
>properly.
>

If you mean that it should not be allowed to be sent text to display, then I 
disagree! You already tried to show me how to emulate, and it didn't really 
come close, and it can't unless you write a LOT of code, really a very large 
amount of code to solve what should already work as it is. The entire point of 
wxWidgets is undermined if this extra coding becomes necessary to do what can 
already be done without it!

If the internal check for numeric entry finds a string that can convert to an 
integer, then it can update the value whether it sees a SetText or a SetValue. 
Alternatively it can take a string in SetValue and convert anyway, or do 
nothing (as opposed to panic) if if cannot convert.

I mailed a small working demonstration of symbolic display in a SpinCtrl last 
night. If that isn't convincing enough, then this is a lost cause! Whatever 
gets fixed, it shouldn't damage this useful power that SpinCtrl has in its 
current form (albeit with a totally evasive event description).

>Poor definition and lousy implementation is the cause of most the porting 
>problems.

Likely true, but failure to grasp the real power in a control, thus allowing it 
to be eroded and demeaned, is a bigger problem. Lack of vision! That's the real 
risk here.


------------------------------------------------------------------------------
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
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to