On Mar 28, 2007, at 4:32 AM, 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?


There isn't a best way, and in fact there are several ways to  
approach it.  In general, what you would like is for the preference  
window and other windows to not know about each other.  Let me first  
suggest a lazy, brute-force approach.  In the other windows, simply  
call your SetFontSizeEtc method in the Paint event handler.

Charles Yeomans
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to