Search found 207 matches

by tomay3000
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

How should I start a New VS Comm 2019 wx v3.x Project?

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.
by tomay3000
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 ...
by tomay3000
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.
by tomay3000
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
minimal1.patch
(5.76 KiB) Downloaded 93 times
.

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.
by tomay3000
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...
by tomay3000
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...
by tomay3000
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?

doublemax wrote: Wed May 12, 2021 4:49 pm I just tried it myself and SetSize(wxDefaultSize) did not work for me. Use GetBestSize().
If you're unsure if the window has a minimal size set, call SetMinSize( wxDefaultSize ) first.
Yes, SetSize(wxDefaultSize) seemed working and tricked me again, and caused the application to crash.
by tomay3000
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...
by tomay3000
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...
by tomay3000
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...
by tomay3000
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.
by tomay3000
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...
by tomay3000
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 ...
by tomay3000
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.