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

Home » Public Forums » archive » Widget Question
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: Widget question [message #16032 is a reply to message #1496] Thu, 01 July 1999 00:00 Go to previous messageGo to previous message
gabriel rodriguez ibe is currently offline  gabriel rodriguez ibe
Messages: 10
Registered: July 1999
Junior Member
If I undestand OK you are manipulating your info via a pointer, so you don't
have to
store it back anywhere, because your are really changing the original info.

If it does not seem to work you are probably not using pointers correctly.
Check this

info={...., kk:oneValue , ....}
ptrInfo= PTR_NEW(info)

Now, if you try to do

info= *ptrInfo
info.kk= newValue

it will not change the original info structure, because I'm working with a
copy of it (I should
have written " newInfo= *ptrInfo)

The correct way to do it is

(*ptrInfo).kk= newValue

Now I have modified the original info structure, I don't have to store it
anywhere.

Gabriel


Harald Frey escribi�:

> Sorry if I missed that point somewhere in the very interesting
> discussion about "Passing info and destroying widgets". I followed the
> suggestion by Liam Gumley to create my widget structure but now I have a
> problem.
>
> I have 3 levels in my widget structure, main, parent and child. What I
> do is:
>
> - Create main widget
> - Create info structure
> - store info structure in the main level base
> - start Xmanager with event handler
>
> A certain button on the main widget calls the parent process where I
> - get the info structure
> - create the parent widget
> - create a pointer to the info structure
> - store pointer in parent base
> - start second Xmanager with second event handler
>
> Now a button on the parent widget calls a process on the child level
> where I
> - get the pointer
> - get the info structure via pointer
> - manipulate the info
>
> So far everything is fine but now I want to store the manipulated info
> from the child level back into the main widget and destroy the parent
> widget. How do I do this?
>
> Harald
> hfrey@ssl.berkeley.edu
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Widget Question
Next Topic: Find group_leader of a widget

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

Current Time: Sat Oct 11 17:25:48 PDT 2025

Total time taken to generate the page: 1.44020 seconds