[Plib-devel] Corrections to "puaComboBox"
Brought to you by:
sjbaker
From: Fay J. F C. AAC/W. <joh...@eg...> - 2004-08-19 13:05:15
|
Gentlemen, In my application I just tried to put in a call to the "setSize" function for a "puaComboBox" and found that it has absolutely no effect. In an effort to fix this, I added the following to the following files: puAux.h, starting at line 252: /* Ensure that popup menu will show up at the right place */ newList ( list ) ; } + void setSize ( int w, int h ) ; + void draw ( int dx, int dy ) ; puaComboBox.cxx, starting at line 269: newList ( entries ) ; } + void puaComboBox::setSize ( int w, int h ) + { + int arrow_width = (int) ( float(h) / 1.5f ) ; + input->setSize ( w - arrow_width, h ) ; + arrow_btn->setPosition ( w - arrow_width, 0 ) ; + arrow_btn->setSize ( arrow_width, h ) ; + } + If somebody could please put this into CVS I would deeply appreciate it. Similar changes may also be necessary for other compound widgets but I cannot say for sure. John F. Fay joh...@eg... |