I am looking at the sample program that came with wxWidgets called statbar (see below). Part of the executable of statbar shows a wxStatusBar bar containing a checkbox, a bitmap, and text.
My question is, how do the checkbox, bitmap, and text get loaded into the fields of the status box? What procedure calls do that?
I read the wxStatusBar Class Reference page http://docs.wxwidgets.org/3.0/classwx_status_bar.html, looking for a procedure or method called "LoadObject" or LoadBitmap" or something. Fail. I don't know what text I should be looking for.
Thanks!
Colleen
How to Place a wxStaticBitmap into a wxStatusBar
- ColleenKobe
- Experienced Solver
- Posts: 88
- Joined: Mon Aug 31, 2015 3:47 pm
Re: How to Place a wxStaticBitmap into a wxStatusBar
Check the statbar sample. In particular look for "m_statbmp" there.
Basically, as is said in the remark in the docs you linked, you create the controls as children of the status bar and need to position them by yourself in the size event handler.
Basically, as is said in the remark in the docs you linked, you create the controls as children of the status bar and need to position them by yourself in the size event handler.
Re: How to Place a wxStaticBitmap into a wxStatusBar
Please don't add unnecessary attachments.ColleenKobe wrote:I am looking at the sample program that came with wxWidgets called statbar (see below)
If you are able to look at it, everybody else should be able to do it as well. If you want to make it easier for them share a link to the same file in a github repository for example.
They are not loaded, they are created as children of the statusbar. You have the source, it's all there, just take the time to read it.ColleenKobe wrote:how do the checkbox, bitmap, and text get loaded into the fields of the status box?