[Plib-devel] Re: [BUG] puaComboBox: initial value isn't respected
Brought to you by:
sjbaker
From: Melchior F. <mf...@us...> - 2006-05-14 14:49:47
|
* Melchior FRANZ -- Sunday 14 May 2006 15:10: > I hadn't noticed that there's another puaComboBox bug: The input > field is now correctly updated, but the initial value isn't respected This would fix it, but I have no idea if it's done the Right Way, nor why it worked in puComboBox without it. And it ignores the fact that I could just choose a different widget and stick with it instead of wasting my time with improvements. m. Index: puAux.h =================================================================== RCS file: /cvsroot/plib/plib/src/puAux/puAux.h,v retrieving revision 1.11 diff -u -p -r1.11 puAux.h --- puAux.h 25 Mar 2006 00:34:08 -0000 1.11 +++ puAux.h 14 May 2006 14:44:04 -0000 @@ -269,6 +269,11 @@ public: void setSize ( int w, int h ) ; + void setValue ( float f ) { puValue::setValue ( f ) ; input->setValue ( f ) ; } + void setValue ( int i ) { puValue::setValue ( i ) ; input->setValue ( i ) ; } + void setValue ( const char *s ) { puValue::setValue ( s ) ; input->setValue ( s ) ; } + void setValue ( puValue *pv ) { puValue::setValue ( pv ) ; input->setValue ( pv ) ; } + void draw ( int dx, int dy ) ; int checkHit ( int button, int updown, int x, int y ) ; int checkKey ( int key, int updown ) ; |