Search found 713 matches

by Manolo
Fri Aug 28, 2020 7:41 pm
Forum: C++ Development
Topic: issues with wxcollapsiblepane and sizers
Replies: 2
Views: 266

Re: issues with wxcollapsiblepane and sizers

The three windows you added to column1 sizer have proportion=0. That's OK, specially with collasible panes. When the frame is created you call frame->Layout . OK. Now the frame knows the size required for its children and the frame is shown right. When you want to expand a collapsile pane, the curre...
by Manolo
Wed May 13, 2020 4:35 pm
Forum: Compiler / Linking / IDE Related
Topic: Codeblocks console debug output
Replies: 3
Views: 397

Re: Codeblocks console debug output

Yours is a question better asked at http://forums.codeblocks.org/index.php
by Manolo
Wed May 13, 2020 4:25 pm
Forum: C++ Development
Topic: Can't make wxTextCtrl fit more than 10 digits.
Replies: 4
Views: 373

Re: Can't make wxTextCtrl fit more than 10 digits.

I'm surprised that a custom box for ip addresses, allowing only legal addresses has not been developed before. There is a proposal, wxMaskedEdit , at http://trac.wxwidgets.org/ticket/14535 that never become accepted. A matter of more people testing it. While it's quite old, you may try it. Perhaps ...
by Manolo
Mon May 11, 2020 5:45 pm
Forum: General Development
Topic: Why does wxWidgets Documentation need to be so confusing?
Replies: 10
Views: 1194

Re: Why does wxWidgets Documentation need to be so confusing?

Nick, I know how you feel because I've felt the same. Let me share my experience here. I'm not educated in programming, apart from a brief curse. I'm an engineer in a different branch. Despite of it, I always liked to code, and I did. Many years ago I developed in Basic on DOS system. Everything was...
by Manolo
Thu Jan 30, 2020 11:32 pm
Forum: C++ Development
Topic: wxGridCellTextEditor::GetValue() nullptr exception
Replies: 3
Views: 308

Re: wxGridCellTextEditor::GetValue() nullptr exception

The editor for a cell is created when it's needed (read: double click on the cell), and deleted when the cell is de-activated (cursor is set to other cell). So, if you call editor->GetValue() it may raise an error. wxGridCellEditor* editor = m_grid->GetCellEditor(...) will give the editor to use whe...
by Manolo
Thu Jan 30, 2020 11:21 pm
Forum: C++ Development
Topic: Any way to catch a click on the wxDVLC cell?
Replies: 3
Views: 268

Re: Any way to catch a click on the wxDVLC cell?

I use my own custom renderer and catch "ActivateCell"
https://docs.wxwidgets.org/trunk/classw ... d803a552fc
by Manolo
Fri Jan 17, 2020 1:39 am
Forum: C++ Development
Topic: WarpPointer question
Replies: 8
Views: 867

Re: WarpPointer question

Zoom around the current mouse position is done like this: a) Calculate the zoom factor from the mouse wheel event. Notice it can be greater or less than one. Multiply the factor for the current window/rectangle/block/whatever sizes. Now you have new horizontal/vertical sizes. b) Get current mouse po...
by Manolo
Fri Jan 17, 2020 1:24 am
Forum: C++ Development
Topic: Best control for the task
Replies: 5
Views: 439

Re: Best control for the task

I agree with PB, the control you need is a wxGrid.
by Manolo
Thu Dec 19, 2019 4:37 pm
Forum: C++ Development
Topic: OpenGL Program Crash on First SwapBuffers() Call
Replies: 7
Views: 626

Re: OpenGL Program Crash on First SwapBuffers() Call

program runs on another Win10 machine with same build number (different video card and motherboard This would point to a video driver mess. Try unistalling AMD (ATI) driver. Does it run with defautl Windows driver?. Clean the Win register, reinstall AMD driver and try again. *cube sample runs *pyra...
by Manolo
Tue Dec 03, 2019 11:55 pm
Forum: Platform Related Issues
Topic: Different looking of wxChoice
Replies: 17
Views: 1589

Re: Different looking of wxChoice

There has been some recent bug fixes in sizing some controls under GTK+3. Download the last code directly from "git" and recompile wx.
by Manolo
Mon Dec 02, 2019 4:18 pm
Forum: C++ Development
Topic: wxString spliting syntax
Replies: 7
Views: 623

Re: wxString spliting syntax

mwxString[0].GetValue() == "(" This is wrong. You're trying to compare a string (that inside "") with a wxUniCharRef (returned by GetValue()). More at https://docs.wxwidgets.org/trunk/classwx_string.html "Traps for the unwary" Use ' instead of " mwxString[0].GetValue() == '(' While your code is "ev...
by Manolo
Fri Oct 25, 2019 3:53 pm
Forum: C++ Development
Topic: How to catch unicode text input in wxWidgets like wxTextCtrl on windows?
Replies: 3
Views: 704

Re: How to catch unicode text input in wxWidgets like wxTextCtrl on windows?

wxWindow can receive keyboard input, as wxTextCtrl does. See the keyboard sample. You can have a wxWindow (or one of its derivates) and handle its char-events. Joining chars you get the string. Also handle paste-event, you can get a string in just one event. But you have to draw the text on your own...
by Manolo
Fri Oct 25, 2019 3:41 pm
Forum: Compiler / Linking / IDE Related
Topic: problem with wxGLCanvas
Replies: 11
Views: 1604

Re: problem with wxGLCanvas

As @doublemax told, the "double buffer" feature is provided by the OS, not glut needed. wxWidgtes allows you to set it, please read every class doc from this grup: https://docs.wxwidgets.org/trunk/group__group__class__gl.html Some more info in this post: https://forums.wxwidgets.org/viewtopic.php?f=...
by Manolo
Thu Oct 24, 2019 4:01 pm
Forum: Platform Related Issues
Topic: wxGTK + OpenGL + gtk3 + Display Scaling
Replies: 7
Views: 1607

Re: wxGTK + OpenGL + gtk3 + Display Scaling

Fixed two months ago.
https://github.com/wxWidgets/wxWidgets/ ... 5283137a2f

Can you test it (as the patch uses gtk_widget_get_scale_factor() instead of gdk_monitor_get_scale_factor())?
by Manolo
Tue Oct 22, 2019 4:03 pm
Forum: Platform Related Issues
Topic: wxGTK + OpenGL + gtk3 + Display Scaling
Replies: 7
Views: 1607

Re: wxGTK + OpenGL + gtk3 + Display Scaling

In that ticket #17391 you can read that OpenGL knows nothing about the scale of the display. The best way to go is also told there: use const wxSize sizeInPixels = GetClientSize() * GetContentScaleFactor(); . No need to use GDK_SCALE , which will affect also the normal GUI. Then use that sizeInPixel...