Help needed to run widgets in other contexts

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Help needed to run widgets in other contexts

keith1y
Help!

Hi All,

A while ago Lukas gave me the following code for opening a pier widget
so that it would be able to access its context even though we are not
even in a pier application!

self - is my control panel which runs in the WADispatcherEditor's session.
widget is PUUsers or PUGroups

ControlPanel-callWidget: widget  titled: title

    PRCurrentContext use: self during: [
        WARenderLoop new call: (widget
            addDecoration: (WAWindowDecoration new
                title: title;
                yourself);
            yourself) ]


This works to the extent that the widget displays correctly, however the
buttons do not work due to PRCurrentContext value being nil.

I am using the latest everything in the development universes.

Does anyone have any ideas?

thanks in advance

Keith


_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki