Subwindow Widgets in Omnis Studio (was: Displaying icons in a complex grid)
Bastiaan Olij
bastiaan at basenlily.me
Tue Mar 3 04:08:18 EST 2015
Hey Vik,
I use that all the time, great for overriding the build in properties or
to add your own however the thing that I miss is a right click on that
method and do a "add property to the property manager" option so that
when you use that window as a subwindow, you can set default values from
those properties in the property editor when selecting the subwindow
field on another window.
Cheers,
Bas
On 3/03/2015 8:05 pm, Vik Shah wrote:
> Hey Bas,
>
>> - the inability to define properties, this is an enhancement I've put
>> into TigerLogic many moons ago but I'd like to add custom properties to
>> my subwindow that I can actually set during design time with the
>> property manager. Now I have to set those by code
> A while back I came across someone’s code that had an ingenious trickery in it... It was so simple that I really wonder why didn’t I think of that.
>
> To assign a property of any object, one must, $cinst.$objs.someObject.$left.$assign(10)
>
> In the case where the sub-window is a single field or not overly complex, have a bunch of methods in it like…
> $left.$assign
> $top.$assign
> $height.$assign
> $width.$assign
> etc...
>
> Then to resize or call any method of your sub window,
> $cinst.$objs.mySubWindow.$left.$assign(10)
> $cinst.$objs.mySubWindow.$top.$assign(2)
> etc...
>
> fake properties and methods... =)
>
> Regards,
>
> Vik Shah
> Director
> Keys2Solutions
More information about the omnisdev-en
mailing list