RE: [Plib-users] ComboBox Problems
Brought to you by:
sjbaker
From: Clay, B. <bc...@ba...> - 2004-05-04 12:24:14
|
Brian: I have had problems using the streams for debugging. Things get buffered so you may not see what you expect. Try using fprintf(stderr, ... Instead or put a break point in the callback. Also, if you are doing this with C++ you may have to declare the callback method as a static method. Bruce -----Original Message----- From: pli...@li... [mailto:pli...@li...] On Behalf Of Brian Smith Sent: Tuesday, May 04, 2004 12:24 AM To: pli...@li... Subject: [Plib-users] ComboBox Problems I am having a little problem with all of the selection objects (puaComboBox,=20 selectbox, buttonBox). I have posted this before but no one replied to me,=20 hoping maybe you can help. I declare the pointer in the header file. Here=20 is where I set the combo box and start to use it: char *listOne[] =3D { "First Entry", "Second Entry", "Third Entry", "Fourth=20 Entry", "Fifth Entry", "Sixth Entry", NULL } ; choiceOne =3D new puaComboBox(30, 400, 230, 425, listOne, FALSE); choiceOne->setCallback(ChoiceOneCallback); I have all of the necessary callbacks for keyboard and mouse. You can click=20 on the combobox and the menu drops down, however you can't select anything. =20 If you use the up arrow on the keyboard (or down whichever) the program will=20 crash. However I have displayed that the combo box does have six items in=20 it. I think I have narrowed it down to the callback function for the=20 combobox, it never enters in there when something is selected: void MainChoiceOneCallback(puObject *) { cout<<"HELLLOOOOOOOOO"; } this will display nothing. I have also tried changing the list for the=20 combobox within the callback and it doesn't change the display at all. So=20 my question is why is it not entering the callback, is it a bug with=20 pui/puAux or is it my doing?? Thank you in advance. -Brian _________________________________________________________________ Getting married? Find tips, tools and the latest trends at MSN Life Events.=20 http://lifeevents.msn.com/category.aspx?cid=3Dmarried ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3D3149&alloc_id=3D8166&op=3Dclick _______________________________________________ plib-users mailing list pli...@li... https://lists.sourceforge.net/lists/listinfo/plib-users |