How can I decorate the window

Are you writing your own components and need help with how to set them up or have questions about the components you are deriving from ? Ask them here.
Post Reply
sumit
In need of some credit
In need of some credit
Posts: 6
Joined: Mon May 31, 2010 10:40 am
Location: Amritsar

How can I decorate the window

Post by sumit »

I want to add my own title bar image, buttons, window background and status bar. how can i do this.
Auria
Site Admin
Site Admin
Posts: 6695
Joined: Thu Sep 28, 2006 12:23 am
Contact:

Post by Auria »

custom background : http://wiki.wxwidgets.org/An_image_panel

About "buttons", do you mean normal buttons? --> http://docs.wxwidgets.org/stable/wx_wxbutton.html
custom buttons? --> http://wiki.wxwidgets.org/Painting_your_custom_control or http://www.upcase.de/wxSkin.html
Status bar --> http://docs.wxwidgets.org/stable/wx_wxf ... tstatusbar
Can you define a bit more "title bar image"? Do you mean change the app icon, or skin the whole titlebar?
"Keyboard not detected. Press F1 to continue"
-- Windows
sumit
In need of some credit
In need of some credit
Posts: 6
Joined: Mon May 31, 2010 10:40 am
Location: Amritsar

Post by sumit »

Thanks Auria,

I want to create a customized window that will have my own designed themed Title bar, Buttons and other various controls.

I looked into the manual and have found that it can be done by wxUniversal but I don't know how to procede with that.

I have designed my GUI in Photoshop which is a Transparent PNG Image with alpha channels and does have shadow in it.

Can I generate the shadow dynamically of my shaped window using wxWidgets?

I just need to skin my whole application using wxWidgets.

I hope I can achieve using wxWidgets.
sumit
In need of some credit
In need of some credit
Posts: 6
Joined: Mon May 31, 2010 10:40 am
Location: Amritsar

Post by sumit »

Hi I go through your provided link, wxSkin is amazing. I think it will fulfill my requirements. I'm going to start work with it. I will post further after implementing the controls
sumit
In need of some credit
In need of some credit
Posts: 6
Joined: Mon May 31, 2010 10:40 am
Location: Amritsar

Post by sumit »

HI Auria, I downloaded the code, when I compile the code in visual studio it gave two error, one syntax error and other error regarding Reassign control does not belong to wxSkinEngine . I did two minor changes in header file(include reassign function declaration). I build the library in Debug. Now at the end it display message box "Please specify the name of the executable file to be use for the debug session". It asking for the executable file name and URL where the project can be access(ATL Server only). If I entered one of the given example then it show error "Missing skin file or skin file is broken " Please help me out ASAP
sumit
In need of some credit
In need of some credit
Posts: 6
Joined: Mon May 31, 2010 10:40 am
Location: Amritsar

Post by sumit »

Ok I parse the main program and sort the error, program trying to get skinfile folder from c:/wxSkin/debug but actually it placed in wxskin. I change the the location and it works.
sumit
In need of some credit
In need of some credit
Posts: 6
Joined: Mon May 31, 2010 10:40 am
Location: Amritsar

Post by sumit »

I use wxSkin It work fine, I want to add shadow. I use a png image with alpha channel for shadow, but it is masking the alpha channel pixel having opacity not equal to 100% making the shadow disappear. Is there any way I can render shadow dynamically using wxWidgets, wxSkin or any win32 function.
Post Reply