Re: Top-level bases [message #41054] |
Thu, 23 September 2004 17:27  |
algosat
Messages: 7 Registered: September 2004
|
Junior Member |
|
|
>
> So, alternatively, you could make one copy of the info
> structure, and store a pointer to that info structure in
> the UValue of any TLB that required the info structure
> information.
Hi David,
thanks for the advice. I suspected it was going to involve pointers.
I did manage to get around the problem by creating a function
(yesterday) that allows the user to find the widget_id of any realized
widget that is being managed by xmanager. The only input information
needed is the uname of the widget (most of us will always remember the
unames).
I have found that I dont then need to pass any information, regarding
the TLB, to the compound widget (read pop-up). I only need to wait
till I am in the event rountine for my pop-up and use the function to
get the widget id of the widget holding the state info. Update the
info and then return. In this manner it does not matter if I lose a
link, or TLB id, and since the TLB is always realized, I can always
link back to it no matter where I am in the code. If this sounds of
interest to you I can post a copy of the code tomorrow. It was a fix
to a problem that was driving me nuts and where I was hoping I wouldnt
need to use pointers (not that I dont like pointers).
Cheers
Andrew
|
|
|