AW: $itask challenge

Udo Sonnabend U.Sonnabend at wigasoft.ch
Fri Nov 9 04:24:31 EST 2018


Hi John

Try this:

Set Ref to your Windowclass

Do $root.$modes.$dotoolmethod(kEnvToolBrowser,44,Ref)

Regards, 
Udo.


-----Ursprüngliche Nachricht-----
Von: omnisdev-en [mailto:omnisdev-en-bounces at lists.omnis-dev.com] Im Auftrag von John Boehme
Gesendet: Freitag, 9. November 2018 01:13
An: omnisdev-en at lists.omnis-dev.com
Betreff: $itask challenge

Hi All,

 

Here is an interesting little challenge:

 

I have a little library class browser I've been toying with. Has some interesting features plus some future ones to be done. One thing I am trying to do now is, open a window from another library, in the context of the task started by other library.

 

1)      No modifying the target task in any way.

2)      No modifying the window in any way.

 

Just want to open a window under the task of the library like the Omnis class browser does.

 

Tried something like this:

 

***** All these variations and others similar opens the class, but in the task for my browser, not the task for the target application.

Do
$libs.$findname(IClasses.lib_name).$classes.$findname(IClasses.name).$open(I
Classes.name,kWindowNormal)

 

 

Do
$itasks.$sendall(#1.$assign($libs.$findname(IClasses.lib_name).$classes.$fin
dname(IClasses.name).$open(IClasses.name,kWindowNormal)),

                                       $sendallref.$name=IClasses.lib_name)

 

Do $itasks.$sendall($sendallref.$name.$assign(

 
pick($libs.$findname(IClasses.lib_name).$classes.$findname(IClasses.name).$o
pen(IClasses.name,kWindowNormal),

                                                          $sendallref.$name,

 
$sendallref.$name)),

                                       $sendallref.$name=IClasses.lib_name)

 

Calculate #S1 as IClasses.lib_name

Calculate #S2 as IClasses.name

Do
$itasks.$sendall(#1.$assign($libs.$findname(#S1).$classes.$findname(#S2).$op
en(#S2,kWindowNormal)),$sendallref.$name=#S1)

 

 

 

Set the $isIDE flag to true in my browser task, but that didn't change anything.

Tried several other variations of this pattern with no success. 

 

Any thoughts? Thanks Much.

 

John Boehme

Integral Consulting Services

Bothell, WA

940-597-3046

 

_____________________________________________________________
Manage your list subscriptions at http://lists.omnis-dev.com Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 



More information about the omnisdev-en mailing list