[Plib-users] Re: Custom 'Looking' Widgets
Brought to you by:
sjbaker
From: Majel d. <in...@em...> - 2002-07-28 17:37:40
|
Another question... I want to change the look of defined PUI widgets, so as was pointed out to me, I would use renderCallback(). Where however do I supply the new 'look' for the widget. Is it in the renderCallback function? And is it possible to use OpenGL drawing commands like glVertex etc to create the new look? For instance if I had the following code: void customCallback(puObject * ob, int x, int y, void *){ //what goes here??? } void main(){ ... puOneShot * myButton = new puOneShot(10, 200, 210, 240) myButton->setStyle(PUSTYLE_NONE) //turn off any style so that nothing is //drawn myButton->setRenderCallback(customCallback); ... } I've tried variations of the above code but nothing shows up. What am I doing wrong? Thanks again. _____________________________________________________________ A free email account your friends will never forget! Get YOU...@Em... at http://www.emailaccount.com/ _____________________________________________________________ Promote your group and strengthen ties to your members with em...@yo... by Everyone.net http://www.everyone.net/?btn=tag |