XP style options dialog

Do you like to promote your wxWidgets based application or component!? Post it here and let's see what the critics have to say. Also, if you found that ONE wx component the world needs to know about, put it here for future reference.
Post Reply
asp
Knows some wx things
Knows some wx things
Posts: 32
Joined: Sun Sep 12, 2004 4:35 pm

XP style options dialog

Post by asp » Wed Jan 26, 2005 12:33 pm

wxPropDialog allows you to create modern-look options dialogs. Currently, it works under MSW only. You can customize the height of the caption and use it with or without images. Here are some screenshots:

Image

Image

You can download it here

Enjoy it!

Juan[/img]

Jorg
Moderator
Moderator
Posts: 3971
Joined: Fri Aug 27, 2004 9:38 pm
Location: Delft, Netherlands
Contact:

Post by Jorg » Sun Mar 06, 2005 1:20 pm

Hi ASP,

Just wondering, how did you make the gradient top part on the right side of the window?

Regards,
- Jorgen
Forensic Software Engineer
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb

Avi
Super wx Problem Solver
Super wx Problem Solver
Posts: 398
Joined: Mon Aug 30, 2004 9:27 pm
Location: Tel-Aviv, Israel

Post by Avi » Sun Mar 06, 2005 7:38 pm

As far as I can see, he is using platform specific (currently MSW only) code.
Instead of using portable wxDC, wxBrush, wxRect, wxBitmap, etc... he's using HDC, HBRUSH, RECT, HBITMAP...

Anyway, why not try and use wxWidgets itself for this job? (and therefor, your code will work on other platforms as well...)

Thanks for posting! :)

Jorg
Moderator
Moderator
Posts: 3971
Joined: Fri Aug 27, 2004 9:38 pm
Location: Delft, Netherlands
Contact:

Post by Jorg » Sun Mar 06, 2005 8:13 pm

I was wondering if he could use wxCaptionBar which is part of wxFoldPanelBar.. That would give him customizable gradient bars and perhaps other style of bars.

I hope the wxCommunity will take that control to the next level, I designed it so it would be useful for others. It fires an event when clicking on the icon and changes the status of the pic. The two colors and style are runtime customizable.

So maybe that's an idea to make it completely wxWidgets portable. :-)

That's why I asked, I had not seen a control that could do the gradient bar that's why I designed my own in wxFoldBar / wxFoldPanelBar (what's in a name anyway)

- Jorgen
Forensic Software Engineer
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb

asp
Knows some wx things
Knows some wx things
Posts: 32
Joined: Sun Sep 12, 2004 4:35 pm

Post by asp » Mon Mar 07, 2005 4:53 pm

Hi Jorg

Avi is right. I made the gradient using the native function GradientFill. As I just have to use native code to paint the themed page, I decided to paint the gradient using native code too (and I didn't noticed that wxFoldPanelBar has that great class). I will have a look at wxCaptionBar to make it portable. :D

Thanks!

Jorg
Moderator
Moderator
Posts: 3971
Joined: Fri Aug 27, 2004 9:38 pm
Location: Delft, Netherlands
Contact:

Post by Jorg » Mon Mar 07, 2005 6:08 pm

Hi asp!

Everything for portability right ;-) It was just an idea, I was curious if you found a better control because I couldn't find one..

Regards,
- Jorgen
Forensic Software Engineer
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb

Post Reply