comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: pState structure without widgets?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: pState structure without widgets? [message #60378] Wed, 14 May 2008 15:58 Go to previous message
Robbie is currently offline  Robbie
Messages: 165
Registered: February 2006
Senior Member
I have resorted to writing "widget methods" which take the first
argument as the pState. For example:

mywidget_build, pState
mywidget_show, pState

I used pass around the widget id, until I encountered issues when
attempting to unpack the UVALUE twice. To be completely safe, pState
should be a pointer to a structure. By the time you've done everything
the *right* way, you might as well just use objects.

Compare the syntax of these two statements

data = *(*pState).pData

data = *self.pData

Which statement makes more sense to you?


Robbie
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: how to "check" checkbox state?
Next Topic: strange behaviour of .skip command

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 16:05:52 PDT 2025

Total time taken to generate the page: 0.23991 seconds