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.
Post Reply
gorge.alan.sw
Experienced Solver
Experienced Solver
Posts: 82
Joined: Tue Sep 25, 2012 6:51 pm

How to add image to --- panel

Post by gorge.alan.sw »

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/Misc ... 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 1764 times
User avatar
doublemax
Moderator
Moderator
Posts: 19116
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: How to add image to --- panel

Post by doublemax »

I think you can use a wxStaticBitmap for both purposes.
http://docs.wxwidgets.org/trunk/classwx ... itmap.html
Use the source, Luke!
gorge.alan.sw
Experienced Solver
Experienced Solver
Posts: 82
Joined: Tue Sep 25, 2012 6:51 pm

Re: How to add image to --- panel

Post by gorge.alan.sw »

Thanks it is working... for first part.

I will try for second part.

regards,

allan
Post Reply