Hi,
If you look at the code you will see that I used a placeholder for the wxStdDialogButtonSizer.
You should use the actual sizer instead.
Second - are you testing on HighDPI monitor? Do you use manifest with the DPI Aware set?
Third - how big you expect the dialog to be? Can you run it with the actual strings in the list? (Just remember - this is an example).
Thank you.
How Do I extend the wxMessageDialog Topic is solved
Re: How Do I extend the wxMessageDialog
What do you mean by the "actual sizer". I only see a wxBoxSizer and a wxStaticBoxSizer. I don't know how to check my DPI. I expect it to be as big as the wxMessageDialog
Re: How Do I extend the wxMessageDialog
In general the size is determined by the content, if you add more controls, the dialog size will increase, too. If you want it even bigger, you can set an explicit size yourself.
Use the source, Luke!
Re: How Do I extend the wxMessageDialog
I don't have to set the size for wxMessageDialog, so I shouldnt need to set the size for this. Why do you guys give me hard workarounds. There should be an easy way to add a listbox to a wxMessageDialog without having to do all of this sizer stuff.
- doublemax@work
- Super wx Problem Solver
- Posts: 474
- Joined: Wed Jul 29, 2020 6:06 pm
- Location: NRW, Germany
Re: How Do I extend the wxMessageDialog
If you really only need a wxListBox and nothing else, check wxSingleChoiceDialog or wxMultiChoiceDialog.
Build and run the "dialogs" sample that comes with wxWidets, you'll find these dialogs under "Dialogs -> Choices and Selectors".
Maybe one of them does what you need.
Build and run the "dialogs" sample that comes with wxWidets, you'll find these dialogs under "Dialogs -> Choices and Selectors".
Maybe one of them does what you need.
Re: How Do I extend the wxMessageDialog
Alright I guess , In the end since wxWidgets can't implement this , I just implemented my own wxDialog that does what I want. And it works fine. Its a bit sad I can't just get the source for the wxMessageDialog, but this is a fine workaround. I'm gonna mark @ONEEYEMAN ' s first reply as the answer
Last edited by ibrahim on Wed May 18, 2022 10:57 am, edited 1 time in total.
Re: How Do I extend the wxMessageDialog
Hi,
WxStdDialogButtonSizer takes care of platform difference.
Thank you.
WxStdDialogButtonSizer takes care of platform difference.
Thank you.
Re: How Do I extend the wxMessageDialog
Oh wait yeh thats true