|
|
Home » U++ Library support » U++ Widgets - General questions or Mixed problems » design custom controls
design custom controls [message #4979] |
Tue, 29 August 2006 01:50  |
ronnie@ijpc.nl
Messages: 2 Registered: August 2006 Location: Almere
|
Junior Member |
|
|
Hi,
I’m pretty new here, so forgive me if me questions were described earlier. Is there a common way to design custom controls? In MFC I can use png image’s to draw controls en add some handles to it (like click, mouse hover etc.)
What’s the best way to do it in Ultimate++? The main reason is I want to give my app’s a custom look instead of a platform Native look. Maybe somebody knows where I can find example code for this. Just a funny looking button created by images would be enough.
Thanks for your reply.
|
|
|
|
|
|
|
Re: design custom controls [message #4987 is a reply to message #4984] |
Tue, 29 August 2006 14:22   |
|
luzr wrote on Tue, 29 August 2006 06:27 | At the moment, none of them.
In fact, I am not still 100% sure how this should work.
The very simple possibility, one that I plan to implement as the first quick fix, is to detect the theme name and then use internal U++ theme that matches it (or loosely matches it:). Ugly but simple.
Of course, I think that in some advanced phase, it should be also possible to use GTK and/or KDE theming engines. But it seems like quite complicated bussines right now.
Mirek
|
From what I know KDE themes are simply C++ files with new redering code.. and if we want to be 100% compatible with kde look there is no other way than calling kde painting routines..
But I'm not 100% sure if that what I wrote is true.
I think that most KDE users use default theme (Plastik). The same situation probably takes place in GNOME.
The best IMO would be to add only these two themes to upp rendering code (using chameleon engine if possible) - that should satisfy most users.
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Sat Apr 26 23:12:40 CEST 2025
Total time taken to generate the page: 0.03224 seconds
|
|
|