Search found 14 matches
- Thu Apr 02, 2020 8:29 am
- Forum: C++ Development
- Topic: Resize a window full width
- Replies: 12
- Views: 1025
Re: Resize a window full width
Thank you all for your support. As suggested I have solved the problem by increasing, on windows, by 8 pixels to the right, left and bottom.
- Fri Mar 27, 2020 12:16 pm
- Forum: C++ Development
- Topic: Resize a window full width
- Replies: 12
- Views: 1025
Re: Resize a window full width
I ran some tests: 1) On windows wx version 3.1.3 the code doesn't work as aspected 2) On windows wx version 3.0.4 it doesn't work as aspected 3) On Linux wx version 3.1.1 it WORKS :D ! (It was just a test, I need a windows software, unfortunately) On Windows in debugging mode, I followed step by ste...
- Thu Mar 26, 2020 6:00 pm
- Forum: C++ Development
- Topic: Resize a window full width
- Replies: 12
- Views: 1025
Re: Resize a window full width
Yes, display.GetClientArea() returns the expected values (1920x1040) I tested the code in the minimal sample and I got the same problem... I pasted the code into MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event)) Unfortunately, I removed an old version of wx library (useful to test) but at this point...
- Thu Mar 26, 2020 2:32 pm
- Forum: C++ Development
- Topic: Resize a window full width
- Replies: 12
- Views: 1025
Resize a window full width
Hi, Simplifying what I need with an example: I'm trying to implement a button that changes the position and the size of the window. In the end, the windows should have a size s=(full-width, 250 pixels) and be positioned on the top of my display. The following code works... but the window is some pix...
- Tue Oct 22, 2019 1:30 pm
- Forum: Platform Related Issues
- Topic: wxEVT_SET_FOCUS on Linux
- Replies: 6
- Views: 1426
Re: wxEVT_SET_FOCUS on Linux
The event.GetActive() reduces the noise :D Now the code works perfectly: - when the NewFrame is created by the MainFrame button and receives the focus - when I switch the focus using the keyboard - correctly OnSetFocus1() doesn't run when I click/select the MainFrame If I select the NewFrame using t...
- Thu Oct 17, 2019 12:25 pm
- Forum: Platform Related Issues
- Topic: wxEVT_SET_FOCUS on Linux
- Replies: 6
- Views: 1426
Re: wxEVT_SET_FOCUS on Linux
You mean that the button Bind() does? Yes, it worked. But I tested the following and it sounds like a good workaround in my case. BEGIN_EVENT_TABLE(NewFrame,wxFrame) //(*EventTable(NewFrame) EVT_ACTIVATE(NewFrame::OnSetFocus1) //*) END_EVENT_TABLE() void NewFrame::OnSetFocus1(wxActivateEvent& event...
- Thu Oct 17, 2019 9:54 am
- Forum: Platform Related Issues
- Topic: wxEVT_SET_FOCUS on Linux
- Replies: 6
- Views: 1426
Re: wxEVT_SET_FOCUS on Linux
Thanks for the reply David, Yes, my codes are minimal problem demostrations. I don't need an empty frame. I followed your tips and tried to use Bind for the main panel and for a button. The first, the most important for me, doesn't work. Hier the source code NewFrame::NewFrame(wxWindow* parent,wxWin...
- Wed Oct 16, 2019 9:05 am
- Forum: Platform Related Issues
- Topic: wxEVT_SET_FOCUS on Linux
- Replies: 6
- Views: 1426
wxEVT_SET_FOCUS on Linux
I have a main frame that opens with a button a new frame. On Linux, I cannot detect when the second frame gets the focus. On Windows, it works fine. a) Is there an error in my code? b) Is it a known bug? c) Is there a workaround? Thanks for the help NewFrame::NewFrame(wxWindow* parent,wxWindowID id,...
- Mon Mar 19, 2018 12:46 pm
- Forum: Platform Related Issues
- Topic: Button get focus, layout doesn't change
- Replies: 3
- Views: 753
Re: Button get focus, layout doesn't change
Hi,
Thanks for your test on other distros.
Ideas to implement a workaround?
Thanks
p.s. Button1->SetDefault() changes the layout of the Button1, why not also the focus after the tab_traversal...
Thanks for your test on other distros.
Ideas to implement a workaround?
Thanks
p.s. Button1->SetDefault() changes the layout of the Button1, why not also the focus after the tab_traversal...

- Mon Mar 19, 2018 9:37 am
- Forum: Platform Related Issues
- Topic: Button get focus, layout doesn't change
- Replies: 3
- Views: 753
Button get focus, layout doesn't change
Hi,
I'm working on a cross-platform GUI. On Linux when a button receives the focus doesn't change its look (no highlight frame around the button as usual).
Is it a known problem? Or a misconfiguration of my environment... any info?
Many thanks
OS: Linux Mint
wx: 3.0.3 and 3.1.1
code::block & gcc
I'm working on a cross-platform GUI. On Linux when a button receives the focus doesn't change its look (no highlight frame around the button as usual).
Is it a known problem? Or a misconfiguration of my environment... any info?
Many thanks
OS: Linux Mint
wx: 3.0.3 and 3.1.1
code::block & gcc
- Thu Feb 08, 2018 4:34 pm
- Forum: Platform Related Issues
- Topic: does wxTAB_TRAVERSAL work on Linux for multi-line TextCtl?
- Replies: 4
- Views: 1521
Re: does wxTAB_TRAVERSAL work on Linux for multi-line TextCtl?
Thanks ONEEYEMAN, thanks doublemax,
I get and built the last version from github... and now my app works also on Linux.
Many thanks
I get and built the last version from github... and now my app works also on Linux.
Many thanks
- Thu Feb 08, 2018 1:16 pm
- Forum: Platform Related Issues
- Topic: does wxTAB_TRAVERSAL work on Linux for multi-line TextCtl?
- Replies: 4
- Views: 1521
Re: does wxTAB_TRAVERSAL work on Linux for multi-line TextCtl?
Hi,
I'm using on Linux 3.0.3 and I also tried 3.1.0.
With both, the wxTAB_TRAVERSAL doesn't work in my program.
Where can I find the path of Vadim?
Many thanks
I'm using on Linux 3.0.3 and I also tried 3.1.0.
With both, the wxTAB_TRAVERSAL doesn't work in my program.
Where can I find the path of Vadim?
Many thanks
- Wed Feb 07, 2018 7:11 pm
- Forum: Platform Related Issues
- Topic: does wxTAB_TRAVERSAL work on Linux for multi-line TextCtl?
- Replies: 4
- Views: 1521
does wxTAB_TRAVERSAL work on Linux for multi-line TextCtl?
Dear all, I have again a problem with my wxWidget application. The wxTAB_TRAVERSAL property seams do not work on Linux for multi-line TextCtl. The same code works on Windows, and it works on Linux if the TextCtl is Read-only or not Multi-line. Any ideas? Here a demo code: wx01Frame::wx01Frame(wxWind...
- Wed Jan 24, 2018 5:08 pm
- Forum: C++ Development
- Topic: TextCtrl GetInsertionPoint and GetValue
- Replies: 1
- Views: 450
TextCtrl GetInsertionPoint and GetValue
Dear all, I have a problem with a multiline TextCtrl. In an empty box of my app, if I write: "abcd<newline>abcd" and then I get the length of content of the text box and the cursor position, the two values are not the same. In my case, I aspect '9' for the length of the string and '9' also for the c...