Question about addStyle() and UpDown controls
- Posted by "Christian Cuvier" <Christian.CUVIER at agriculture.gouv.fr> Oct 22, 2004
- 497 views
Under win98, win32lib 0.60.3:
constant c0=create(Window,"",0,100,100,100,100,0), c1=create(EditText,"20",c0,20,20,50,20,0), c2=create(UpDown,"",c0,50,20,5,20,UDS_AUTOBUDDY) addStyle(c2,UDS_SETBUDDYINT) WinMain(c0,Normal)
does create the expected, c1 is the buddy of c2, but doesn't get updated on clicking c2. Now:
constant c0=create(Window,"",0,100,100,100,100,0), c1=create(EditText,"20",c0,20,20,50,20,0), c2=create(UpDown,"",c0,50,20,5,20,UDS_AUTOBUDDY+UDS_SETBUDDYINT) WinMain(c0,Normal)
does create the expected, and c1 gets updated when clickung c2. I'd have expected both snippets to behave the same; what's wrong with the first one? CCHris