wxButton Look and feel problem

Questions about wxWidgets running on MS.NET, mono or Portable.NET ? Ask it here !
Locked
MuhammadSohail
Experienced Solver
Experienced Solver
Posts: 96
Joined: Fri Jun 17, 2005 1:53 pm
Location: Germany
Contact:

wxButton Look and feel problem

Post by MuhammadSohail »

Hi all,

I want to button should be round at each corner but unfortunately it looks
square. I am using windows xp.
I am creating buttons as follows

wxButton* cancelButton = new wxButton( this, CANCEL_BUTTON_ID, "Cancel", wxPoint(-1,-1), wxSize(-1, 30) );

Someone help me to create round at corners button.

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

Post by Jorg »

I assume you mean the XP theme?

You either have to include the wx.rc file to your own project, or create a manifest file for Windows XP to use the proper DLL that will render the buttons the modern style.

- Jorgen
Forensic Software Engineer
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb
Jorg
Moderator
Moderator
Posts: 3971
Joined: Fri Aug 27, 2004 9:38 pm
Location: Delft, Netherlands
Contact:

Post by Jorg »

Please do not crosspost. I wasted time on this and you were already helped on another thread.

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