[Plib-users] Plib beginner questions
Brought to you by:
sjbaker
From: Eoin D. <ed...@gm...> - 2007-02-12 14:31:25
|
Hi, hows it going, i just started using Plib to add some PUI widgets to an application i'm creating using GLUT and i just want to be pointed in the right direction. I want to design the app so that the user clicks an "Add object" button and the dialog box opens where the user can then enter the dimensions of the object. When the user clicks OK the dialog box should close and the object dimensions should be added to the program. I have it all working fine except i want a table to display the different object that the user has created. The user should then be able to highlight a row and hit a "Remove" button to delete an object. What widget should i use for this and how? I've been trying to use the puListBox but i can get it working right, and when i try to use the newList() functions in the callback from the OK button in the dialog box i get a runtime error. Is there any other widget that might be more suitable or is there someway of getting puListBox to do the job. Any suggestions will be greatly appreciated, i'm totally new to this and am getting really stuck with this problem. Thanks, Eoin |