AW: O$: class name of a window instance

Rudolf Bargholz rudolf at bargholz.ch
Thu Feb 11 10:58:30 EST 2016


Hi Jim,

As with so many things in life: it depends. If you are using subwindows then $cwind.$class().$name might be different to $cinst.$class().$name, as Udo mentioned. $cinst will return the subwindow instance, if a window class is used as a subwindow, whereas $cwind the reference to the top level window instance. Your workflow will determine which makes more sense. You can even get more complicated if you need to know the parent container subwindow, if you have subwindows in subwindows.

Regards

Rudolf

-----Ursprüngliche Nachricht-----
Von: omnisdev-en [mailto:omnisdev-en-bounces at lists.omnis-dev.com] Im Auftrag von Jim Pistrang
Gesendet: Donnerstag, 11. Februar 2016 16:29
An: Omnis List Mail <omnisdev-en at lists.omnis-dev.com>
Betreff: Re: O$: class name of a window instance

Hi all,

Brain is working agin.  It is $cwind.$class().$name

Jim

>Hi all,
>
>OK, this should be easy but my brain is not working...
>
>How do I get the class name of a window instance while I'm in an 
>instance method?  $cinst().$name gives me an instance name, which might 
>not be the same as the class name.  I thought $classname would do it, 
>but it doesn't.
>
>Working in Studio 5.2 Windows
>
>Thanks,
>
>Jim
>
>--
>Jim Pistrang
>JP Computer Resources
>413-256-4569
><http://www.jpcr.com>
>
>
>
>_____________________________________________________________
>Manage your list subscriptions at http://lists.omnis-dev.com
>

--
Jim Pistrang
JP Computer Resources
413-256-4569
<http://www.jpcr.com>



_____________________________________________________________
Manage your list subscriptions at http://lists.omnis-dev.com




More information about the omnisdev-en mailing list