All,
I currently have a main window which looks like this:
I would like to add a logo in the top right, thus:
The idea is to occupy both unused toolbar space and unused notebook space. I'm guessing it's not possible to do this with sizers. I have tried creating the logo window as a child of the frame itself, but this seems to mess up everything else—the main panel is screwed up and everything is in the top left corner. And if I create the logo window as a child of the main panel, I cannot move it on top of the toolbar—tried positioning it on creation and using Raise, but to no avail.
Any ideas for an easy way to achieve this layout? By the way, I'm not too bothered if the logo covers the toolbar or notebook tabs if the user resizes the window too small.
Windows 7 / 10 only.
Thanks,
Andrew
Window layout question
Re: Window layout question
I don't think this is possible with wxWidgets methods.
In any case you'd have to split the logo into an upper and lower part and draw them separately.
In any case you'd have to split the logo into an upper and lower part and draw them separately.
Use the source, Luke!
Re: Window layout question
OK, thanks. Pity, it would have looked great. I'm not keen on trying to split it, as I can imagine it would be a nightmare keeping the bits together in all situations.
Andrew
Andrew
Re: Window layout question
Yes, indeed. However as you'd have the right edge of the frame as reference, it wouldn't be too bad.
I do have a vague idea how this could be done (Windows only), but i'll need some time for an experiment. If i get something that works, i let you know. ( No promises )
Use the source, Luke!
- T-Rex
- Moderator
- Posts: 1248
- Joined: Sat Oct 23, 2004 9:58 am
- Location: Zaporizhzhya, Ukraine
- Contact:
Re: Window layout question
I think that it should be possible with wxAUI art classes:
https://docs.wxwidgets.org/3.0/classwx_ ... r_art.html
https://docs.wxwidgets.org/3.0/classwx_aui_tab_art.html
But anyway will take some time to implement.
https://docs.wxwidgets.org/3.0/classwx_ ... r_art.html
https://docs.wxwidgets.org/3.0/classwx_aui_tab_art.html
But anyway will take some time to implement.
Re: Window layout question
Thanks doublemax, thanks T-Rex.