Hello,
Coming from C::B to VS Comm 2019, when starting a New wx v3.x Projects, there is no builtin wx v3.x templates like in C::B.
I was wondering, what is the best way to start a New wx v3.x Project in VS Comm 2019!?
TIA.
Search found 207 matches
- Sat Aug 28, 2021 11:14 pm
- Forum: Compiler / Linking / IDE Related
- Topic: How should I start a New VS Comm 2019 wx v3.x Project?
- Replies: 6
- Views: 6020
- Tue Jun 08, 2021 1:18 am
- Forum: C++ Development
- Topic: [wxMSW] How to force a wxStaticBitmap drawing update.
- Replies: 5
- Views: 2069
Re: [wxMSW] How to force a wxStaticBitmap drawing update.
The problem was because of the child wxPanels. This answered my question: https://forums.wxwidgets.org/viewtopic.php?t=32912 Suppose a window has a wxPanel inside, which in turn contains some other wxPanels, and so on. It seems like calling Layout() for the outermost window does not call the Layout ...
- Sat Jun 05, 2021 4:25 pm
- Forum: C++ Development
- Topic: [wxMSW] How to force a wxStaticBitmap drawing update.
- Replies: 5
- Views: 2069
Re: [wxMSW] How to force a wxStaticBitmap drawing update.
Nothing helped.
Neither Refresh(), Update(), Layout() nor all of them.
Neither Refresh(), Update(), Layout() nor all of them.
- Fri Jun 04, 2021 9:57 pm
- Forum: C++ Development
- Topic: [wxMSW] How to force a wxStaticBitmap drawing update.
- Replies: 5
- Views: 2069
[wxMSW] How to force a wxStaticBitmap drawing update.
Hello,
Have a look at this minimal patch .
I need to force the wxStaticBitmap to update just after I select an Image from the wxFilePickerCtrl.
It is happening only when I drag the splitter window sash manually.
TIA.
Have a look at this minimal patch .
I need to force the wxStaticBitmap to update just after I select an Image from the wxFilePickerCtrl.
It is happening only when I drag the splitter window sash manually.
TIA.
- Thu May 13, 2021 5:00 pm
- Forum: C++ Development
- Topic: How to get the initial size of a wxTextCtrl later after its creation?
- Replies: 13
- Views: 2512
Re: How to get the initial size of a wxTextCtrl later after its creation?
Thank you. The solution to my problem is that I should replace every SetSize() by SetMinSize() because the sizer will always override the size set by SetSize() . And, as said in wxWindow::GetBestSize() documentation https://docs.wxwidgets.org/trunk/classwx_window.html#a7e64b9380374e5681f146e9e319e35...
- Thu May 13, 2021 2:11 pm
- Forum: C++ Development
- Topic: How to get the initial size of a wxTextCtrl later after its creation?
- Replies: 13
- Views: 2512
Re: How to get the initial size of a wxTextCtrl later after its creation?
Hello, Using wxWidgets v3.1.6 (dev) This minimal patch (which I should have uploaded in the first place, sorry for wasting your time) explains what I was trying to achieve: minimal.patch But when I have tried it one more time, SetSize(wxDefaultSize); seems working. Also, there is this problem that d...
- Wed May 12, 2021 5:10 pm
- Forum: C++ Development
- Topic: How to get the initial size of a wxTextCtrl later after its creation?
- Replies: 13
- Views: 2512
Re: How to get the initial size of a wxTextCtrl later after its creation?
Yes, SetSize(wxDefaultSize) seemed working and tricked me again, and caused the application to crash.
- Wed May 12, 2021 4:47 pm
- Forum: C++ Development
- Topic: How to get the initial size of a wxTextCtrl later after its creation?
- Replies: 13
- Views: 2512
Re: How to get the initial size of a wxTextCtrl later after its creation?
Did you try just SetSize(wxDefaultSize) ? Before My application was crashing using SetSize(wxDefaultSize) and I thought it is not the correct way to use it. I thought, that unless specified otherwise, default size = best size = minimal size, i.e., obtainable by GetBestSize()? However, I do not unde...
- Wed May 12, 2021 4:31 pm
- Forum: C++ Development
- Topic: How to get the initial size of a wxTextCtrl later after its creation?
- Replies: 13
- Views: 2512
Re: How to get the initial size of a wxTextCtrl later after its creation?
It has nothing to do with monitor or DPI. The main reason to all of this is to provide it as a sample (I want to demonstrate something), when the user checks the checkbox it became huge, and when the user unchecks the checks box again its size has to go back to it normal size again (But I don't know...
- Wed May 12, 2021 3:13 pm
- Forum: C++ Development
- Topic: How to get the initial size of a wxTextCtrl later after its creation?
- Replies: 13
- Views: 2512
Re: How to get the initial size of a wxTextCtrl later after its creation?
Hello, sorry for the misunderstanding, what I meant is the default control size given by the system after creation using wxDefaultSize Because, using wxDefaultSize outside the constructor or Create later has no meaning. I wanted to know if there is a method I am not seeing that does this! After some...
- Wed May 12, 2021 6:46 am
- Forum: C++ Development
- Topic: How to get the initial size of a wxTextCtrl later after its creation?
- Replies: 13
- Views: 2512
How to get the initial size of a wxTextCtrl later after its creation?
Hello,
I need to get the initial size of a wxTextCtrl later after its size has been changed so I can resize it back to the initial size ?
TIA.
I need to get the initial size of a wxTextCtrl later after its size has been changed so I can resize it back to the initial size ?
TIA.
- Fri May 07, 2021 11:42 pm
- Forum: Platform Related Issues
- Topic: [wxMSW] How to set an RTL layout direction a PopUp wxMenu?
- Replies: 5
- Views: 7563
Re: [wxMSW] How to set an RTL layout direction a PopUp wxMenu?
I just tested the internat sample. All the menu-bar menus have the correct RTL layout except when a popup menu that is fired via PopupMenu() is stayed in an LTR layout. It seems impossible even the native Right-click context-menu on an edit control in the "Test locale availability..." menu...
- Fri May 07, 2021 10:40 pm
- Forum: Platform Related Issues
- Topic: [wxMSW] How to set an RTL layout direction a PopUp wxMenu?
- Replies: 5
- Views: 7563
Re: [wxMSW] How to set an RTL layout direction a PopUp wxMenu?
The local in my system is English US, and I have overridden it by the following method: wxLocale local(wxLANGUAGE_ARABIC_ALGERIA, wxLOCALE_DONT_LOAD_DEFAULT); What I meant is the popup menu should be mirrored in application level like in the attached screenshots: Original Popup menu: Popup.png What ...
- Fri May 07, 2021 5:06 am
- Forum: Platform Related Issues
- Topic: [wxMSW] How to set an RTL layout direction a PopUp wxMenu?
- Replies: 5
- Views: 7563
[wxMSW] How to set an RTL layout direction a PopUp wxMenu?
Hello,
Is it possible to set an RTL layout direction a PopUp wxMenu before calling the PopupMenu() method.
It seems not working by calling SetLayoutDirection(wxLayout_RightToLeft);
TIA.
Is it possible to set an RTL layout direction a PopUp wxMenu before calling the PopupMenu() method.
It seems not working by calling SetLayoutDirection(wxLayout_RightToLeft);
TIA.
- Sat May 01, 2021 8:03 pm
- Forum: C++ Development
- Topic: How to get the Pressed, Focused and Disabled state bitmaps from a Normal state wxBitmap?
- Replies: 11
- Views: 1941
Re: How to get the Pressed, Focused and Disabled state bitmaps from a Normal state wxBitmap?
Hello,
it is now possible.
It has been merged in wxWidgets github master:
https://github.com/wxWidgets/wxWidgets/pull/2310
https://github.com/wxWidgets/wxWidgets/ ... 793de2fc1b
Thank you.
it is now possible.
It has been merged in wxWidgets github master:
https://github.com/wxWidgets/wxWidgets/pull/2310
https://github.com/wxWidgets/wxWidgets/ ... 793de2fc1b
Thank you.