$itask challenge
John Boehme
john at integralservices.biz
Thu Nov 8 19:13:03 EST 2018
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
More information about the omnisdev-en
mailing list