User Preference
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: User Preference

  1. #1
    Join Date
    Nov 2008
    Posts
    1

    User Preference

    I have lots of form in my main form and those forms also contain lots of control...like tree, panel..

    so when anyone select some font style and color in User preference form it should be affect on all the open form ..so how can i do that so it can affect all the text in all open form controls..

  2. #2
    Join Date
    Mar 2002
    Location
    NY, USA
    Posts
    12,097

    Re: User Preference

    The basic pattern ("Observer") is that you implement a set of events in your preferences class, and have each of the UI elements listen for changes by registering for this event.
    TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
    2008, 2009
    In theory, there is no difference between theory and paractice; in practice there is.

    * Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions
    * How NOT to post a question here
    * Of course you read this carefully before you posted
    * Need homework help? Read this first

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center