How to add image to --- panel

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.

How to add image to --- panel

Postby gorge.alan.sw » Sun Sep 30, 2012 5:50 pm

Hi,

I have made a control base GUI where i will be controlling some relays onto the network.
Network have some nodes. So GUI use to show what all relay are there for each node on wxtreectrl.
When i Moves along the tree across different node number of relays changes. I am just destroying & remaking the panel
Button are toggle button & status i am indicating through extra check button.

I am also using Html window to show details of a node, in text format.

1> I am looking forward to display a image on the central panel when i am at the root of wxtreectrl.
Please suggest how to add this

Image like this, which is related to tool name :--
http://cwer.ws/media/files/u614910/Miscellaneous30/2012_03_16_002015.jpg


2> How to make it more attracting.
Can i replace check box with some image changing like bulb glowing to bulb off.


Please suggest how to meet above two points. I have attached .png file related to it.

kind regards,

allan
Attachments
untitled.PNG
untitled.PNG (64.86 KiB) Viewed 415 times
gorge.alan.sw
Experienced Solver
Experienced Solver
 
Posts: 82
Joined: Tue Sep 25, 2012 6:51 pm

Re: How to add image to --- panel

Postby doublemax » Sun Sep 30, 2012 9:03 pm

I think you can use a wxStaticBitmap for both purposes.
http://docs.wxwidgets.org/trunk/classwx ... itmap.html
Use the source, Luke!
User avatar
doublemax
Part Of The Furniture
Part Of The Furniture
 
Posts: 7675
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: How to add image to --- panel

Postby gorge.alan.sw » Mon Oct 01, 2012 9:50 am

Thanks it is working... for first part.

I will try for second part.

regards,

allan
gorge.alan.sw
Experienced Solver
Experienced Solver
 
Posts: 82
Joined: Tue Sep 25, 2012 6:51 pm


Return to C++ Development

Who is online

Users browsing this forum: No registered users and 18 guests