Search found 16000 matches

by doublemax
Sun Jun 13, 2021 12:26 am
Forum: C++ Development
Topic: what does CloseSubpath () do?
Replies: 4
Views: 278

Re: what does CloseSubpath () do?

A wxGraphicsPath can contain multiple subpaths. E.g. you could draw 2 individual triangles with lines. But you don't want a line be drawn from the end of the last point of the first triangle to the first point of the seconds triangle. Calling CloseSubpath after the first triangle would solve this. L...
by doublemax
Sun Jun 13, 2021 12:23 am
Forum: General Development
Topic: seeking most basic opengl with a texture example
Replies: 1
Views: 192

Re: seeking most basic opengl with a texture example

The OpenGL samples that come with wxWidgets do use textures.

If you use "legacy" OpenGL, check the "Cube" sample.
If you use "modern" OpenGL, check the "Pyramid" sample.

Search for glGenTextures()
by doublemax
Wed Jun 09, 2021 5:19 am
Forum: C++ Development
Topic: How to resize parent on wxCollapsiblePane expansion
Replies: 1
Views: 629

Re: How to resize parent on wxCollapsiblePane expansion

As the code does not compile and is out of context: Did you check the "collpane" sample that comes with wxWidgets?
by doublemax
Tue Jun 08, 2021 5:07 am
Forum: Compiler / Linking / IDE Related
Topic: ogledit Where is it and can it be built?
Replies: 24
Views: 1366

Re: ogledit Where is it and can it be built?

ogl and OpenGL are two different, totally unrelated things.
by doublemax
Mon Jun 07, 2021 7:59 pm
Forum: C++ Development
Topic: How to TAB traversal on custom wxWindow controls
Replies: 6
Views: 405

Re: How to TAB traversal on custom wxWindow controls

thanks, the wxPanel did the trick, but it doesnt render the outside selection automatically, I guess I will have to code this too If you mean the focus rectangle, wxRendererNative::DrawFocusRect might help. https://docs.wxwidgets.org/trunk/classwx_renderer_native.html#a365bc24e598ce64e3a8d2b9559a8c...
by doublemax
Mon Jun 07, 2021 5:10 pm
Forum: C++ Development
Topic: How to TAB traversal on custom wxWindow controls
Replies: 6
Views: 405

Re: How to TAB traversal on custom wxWindow controls

Try deriving from wxPanel instead of wxWindow. A few unrelated comments: - get rid of the paintNow() method, just have a paint event handler. If you want to force a redraw, call Refresh() - you should pass the "size" parameter through to the base ctor - this will make the SetMinSize() call unnecessa...
by doublemax
Mon Jun 07, 2021 5:05 pm
Forum: C++ Development
Topic: Main/Primary Frame/Window should not get focus if secondary Frame/Window is opened
Replies: 12
Views: 807

Re: Main/Primary Frame/Window should not get focus if secondary Frame/Window is opened

Just for the record: Displaying a modal dialog when a textcontrol loses focus, is horrible GUI design. When ever i encounter a program that's does it, it'll get uninstalled immediately ;) The problem is that inside a wxEVT_KILL_FOCUS handler, you're doing something that will cause more focus events....
by doublemax
Sun Jun 06, 2021 5:38 pm
Forum: Compiler / Linking / IDE Related
Topic: ogledit Where is it and can it be built?
Replies: 24
Views: 1366

Re: ogledit Where is it and can it be built?

I threw all the ogl and ogledit files into an empty VS project and checked the errors. Although there are many, they're mostly the same type of error. It may take a few hours, but i think porting this to wx 3.x should be possible. If you want to do it, we can help, but i don't think anyone else is d...
by doublemax
Sun Jun 06, 2021 7:44 am
Forum: C++ Development
Topic: Main/Primary Frame/Window should not get focus if secondary Frame/Window is opened
Replies: 12
Views: 807

Re: Main/Primary Frame/Window should not get focus if secondary Frame/Window is opened

wxDialog should work. Make sure to open it with ShowModal(), not Show().
by doublemax
Sat Jun 05, 2021 11:21 pm
Forum: C++ Development
Topic: wxDataViewTreeCtrl - How to check if a container has child items?
Replies: 30
Views: 1499

Re: wxDataViewTreeCtrl - How to check if a container has child items?

What exactly is the meaning of the toggle column? If it just means "this file is in any favorite folder", then it should not be toggleable. It should just be an indicator. IMHO

(Going offline now, no more answers today ;) )
by doublemax
Sat Jun 05, 2021 10:18 pm
Forum: C++ Development
Topic: wxDataViewTreeCtrl - How to check if a container has child items?
Replies: 30
Views: 1499

Re: wxDataViewTreeCtrl - How to check if a container has child items?

Does it even make sense in your application to have duplicate entries in the list? If not, you should just check for that, and it will solve this problem.
by doublemax
Sat Jun 05, 2021 6:17 pm
Forum: C++ Development
Topic: SIGSEGV message during debugging, but not consistently
Replies: 14
Views: 839

Re: SIGSEGV message during debugging, but not consistently

I don't use VS2019, and I think that the IDE doesn't have an influence since I am using gcc/g++ which is independent from CodeLite. Now that we know that the "dialogs" sample shows the same issue, it must be either your build or your machine. Therefore, if you build it with VS2019 and it works fine...
by doublemax
Sat Jun 05, 2021 9:35 am
Forum: C++ Development
Topic: SIGSEGV message during debugging, but not consistently
Replies: 14
Views: 839

Re: SIGSEGV message during debugging, but not consistently

Please build and run the "dialogs" sample that comes with wxWidgets and check if it does the same.

Also: How big is your project? Could you easily just rebuild it with VS2019?
by doublemax
Sat Jun 05, 2021 6:31 am
Forum: C++ Development
Topic: [wxMSW] How to force a wxStaticBitmap drawing update.
Replies: 5
Views: 640

Re: [wxMSW] How to force a wxStaticBitmap drawing update.

Use Refresh() instead of update. As it's possible that the size of the bitmap is different to the previous one, you should also call Layout() to force a sizer layout.