Markus Winter wrote:
> >> However I'm not clear on how I can make t more general, so that I can
>>> call it for all the different windows in my app ... or in other words
>>> how do I tell it to do this for all the controls in a certain window
>
>Thanks Joe - my problem is that I have one window where I set the font,
>size, etc preferences, and several others where I want the changes applied.
>
>I feel I'm having a "blonde" moment here - what is the best way to organise
>this? Put the method in a module and add a calling method to each window
>that I can trigger from the preference window?
>
>On a related note - would "self" work in a module? That is would self refer
>to the calling object?
>
>Markus
No, "self" is not defined for a module.
I am doing similar things as you: I have common methods for
scaling Windows and ContainerControls at load time. The scaling
methods, residing in a Module have the applicable window as a
parameter and then are called from that Window or ContainerControl
using "self" as the parameter. This works for me quite well. --
The only issues I have is with an ancient bug: the Captions in
BevelButtons and PopupMenues do not show the scaled text until they
are physically pushed when they are on composit windows.
--
Cheers,
Peter
TI PowerBook G4, 1GHz, 1GB RAM, OSX 10.3.9, RB2007r1 Pro
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>