Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » Look and Chameleon Technology » A question of C++
A question of C++ [message #20619] Fri, 27 March 2009 10:06 Go to previous message
kbyte is currently offline  kbyte
Messages: 87
Registered: July 2008
Member
I have a SDI like application (developed using UPP) that has a menu and in it client are there is the main data where user makes their work. This application has lots of dialogs that are opened, using the main menu, in a modal fashion.

Now the user doesn’t like the windows default colors and want to customize every color in every control (grids, labels, edits, etc) in all dialogs, including the client are of the main window.

Mirek had helped me in colorization (thank you again) of controls and the main Windows client are ready and sesnitive to colors stored in a binary file (windows background, label forecolor, edits textcolor, etc). Now I have to apply this to all modal dialogs too when they are invoked.

I know that C++ has means to make this without code copy-past, say, by deriving classes but has I don’t have enough skills for that I would like to ask you the best way to do that.

All my modal dialogs classes are follow this pattern:

class CChangeUnitsDlg : public WithChangeUnitsDlgLayout<TopWindow>
{

}

Hence, all dialogs must store and be sensitive to the selected colors for background, labels and text on edit controls and on painting time the dialogs must paint using the selected colors.

Thanks very much


Alex

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Custom Font
Next Topic: Questions about themeing plz
Goto Forum:
  


Current Time: Sat Apr 20 08:06:04 CEST 2024

Total time taken to generate the page: 0.03659 seconds