Search found 110 matches

by Mick P.
Fri Aug 02, 2019 6:01 pm
Forum: General Development
Topic: 3rd party listings/resources? (e.g. wxImageHandler supplemental.) Not wxCode.
Replies: 4
Views: 117

3rd party listings/resources? (e.g. wxImageHandler supplemental.) Not wxCode.

Sorry again, web search is failing me. I know there is a good looking third-party SVG component for wxWidgets integration... I've seen it... but I don't know, where is a place to find out what third-party options are available to wxWidget users? (I see wxCode. http://wxcode.sourceforge.net/index.php...
by Mick P.
Fri Aug 02, 2019 5:44 pm
Forum: C++ Development
Topic: Curiosity: "Creating a Custom Cursor" example... WTH is wxWidgets?
Replies: 9
Views: 198

Re: Curiosity: "Creating a Custom Cursor" example... WTH is wxWidgets?

#ifdef __WXMSW__ wxCursor down_cursor = wxCursor(down_bits, 32, 32, 6, 14, down_mask, wxWHITE, wxBLACK); #elif defined(__WXGTK__) or defined(__WXMOTIF__) wxCursor down_cursor = wxCursor(down_bits, 32, 32, 6, 14, down_mask, wxWHITE, wxBLACK); #endif is what I think it should look like. I can't under...
by Mick P.
Thu Aug 01, 2019 11:02 pm
Forum: C++ Development
Topic: Advise: Best handle wxMenu/accelerator event?
Replies: 24
Views: 329

Re: Advise: Best handle wxMenu/accelerator event?

I don't know enough about wxWidgets to comment, but the ACCEL structure is limited to 16-bit also, even though WM_MENUCOMMAND appears to use 32-bit. Even being limited to 16-bit unique IDs is not so bad. Probably wxWidgets could implement hotkeys without ACCEL since it isn't a cosmetic/look-feel thi...
by Mick P.
Thu Aug 01, 2019 10:45 pm
Forum: C++ Development
Topic: Curiosity: "Creating a Custom Cursor" example... WTH is wxWidgets?
Replies: 9
Views: 198

Curiosity: "Creating a Custom Cursor" example... WTH is wxWidgets?

Sorry to do this, but I'm scratching my head looking at this (https://docs.wxwidgets.org/3.0/classwx_cursor.html) document, in the "Creating a Custom Cursor" section.... static char down_bits[] = { 255, 255, 255, 255, 31, 255, 255, 255, 31, 255, 255, 255, 31, 255, 255, 255, 31, 255, 255, 255, 31, 25...
by Mick P.
Tue Jul 30, 2019 11:48 am
Forum: C++ Development
Topic: Advise: Best handle wxMenu/accelerator event?
Replies: 24
Views: 329

Re: Advise: Best handle wxMenu/accelerator event?

Thanks for support as always! I wonder if it's possible to implement this on wxWidget's platforms. I may take it to the tracker, to see if anyone is interested in researching the possibilities. Working with `int` is not much to go on. It runs counter to most of wxWidget's design. Even if the fix is ...
by Mick P.
Mon Jul 29, 2019 5:14 pm
Forum: C++ Development
Topic: Advise: Best handle wxMenu/accelerator event?
Replies: 24
Views: 329

Re: Advise: Best handle wxMenu/accelerator event?

FWIW I looked at the problem for Win32 and learned about a new (to me) WM_MENUCOMMAND message, that provides the handle to the menu, unlike WM_COMMAND. I guess at some point I will have to set up a trace to see what wxWidgets does. Right now I can't do that easily. It just occurred to today that get...
by Mick P.
Mon Jul 29, 2019 4:16 pm
Forum: C++ Development
Topic: Advise: Best handle wxMenu/accelerator event?
Replies: 24
Views: 329

Re: Advise: Best handle wxMenu/accelerator event?

Can you explain what you're trying to achieve? Binding user-data to a menu entry in the menubar would be every unusual. IMHO this only makes sense with popup menus. But you can always subclass wxMenuItem and put any data you like into it. That will work. Is the wxMenuItem object part of the event s...
by Mick P.
Mon Jul 29, 2019 4:03 pm
Forum: C++ Development
Topic: Advise: Best handle wxMenu/accelerator event?
Replies: 24
Views: 329

Re: Advise: Best handle wxMenu/accelerator event?

Any sample, including the "minimal" sample, shows how to handle menu events. If you want to use Bind() instead of a static event table, bind to the frame. Binding to the wxMenuBar or individual wxMenu items will not work - even if the API allows it and it would compile. Weird, I was reading somethi...
by Mick P.
Mon Jul 29, 2019 3:47 pm
Forum: C++ Development
Topic: Advise: Best handle wxMenu/accelerator event?
Replies: 24
Views: 329

Re: Advise: Best handle wxMenu/accelerator event?

Hi, Did you look at the menu sample? Thank you. No, just documentation. FWIW those examples are too inaccessible... by which I mean they don't turn up in web searches, so even if you stumble across them, it's a bit of effort to stash the URL away. Even having seen them before, I wouldn't know where...
by Mick P.
Mon Jul 29, 2019 1:41 pm
Forum: C++ Development
Topic: Advise: Best handle wxMenu/accelerator event?
Replies: 24
Views: 329

Advise: Best handle wxMenu/accelerator event?

I find the documentation for handling menu selection (i.e. WM_COMMAND for WSM) opaque. For context menu it's very simple. For wxMenuBar I'm unclear what to do exactly. From the wxMenu documentation, I think it's possible to bind an event to the menu object itself? I'm not sure which flavor of event ...
by Mick P.
Sat Jun 22, 2019 9:50 pm
Forum: Platform Related Issues
Topic: wxEVT_MOVE_END equivalent for GTK
Replies: 3
Views: 249

Re: wxEVT_MOVE_END equivalent for GTK

I think it sends wxEVT_MOVE only after the window is released from moving? It certainly looks that way, but it may depend on if the session is remote or other factors. I'm curious to know if that's the case.
by Mick P.
Sat Jun 22, 2019 9:48 pm
Forum: Platform Related Issues
Topic: Xlib: How does wxWidgets understand x11's client options?
Replies: 16
Views: 427

Re: Xlib: How does wxWidgets understand x11's client options?

Hi, Well you should've started with it in the first place. The reason is - it uses latest, more modern implementation of OpenGL. But for command-line parameters parsing you check either console sample or docview sample. Thank you. I'm well-versed in OpenGL (graphics in general) thank you :mrgreen: ...
by Mick P.
Sat Jun 22, 2019 9:27 am
Forum: C++ Development
Topic: [wxwidgets3.1.2, opengl] A hen and egg problem
Replies: 14
Views: 425

Re: [wxwidgets3.1.2, opengl] A hen and egg problem

Manolo wrote:
Sat Jun 22, 2019 12:00 am
Please, stop adding confusion. The OP has problems with 'creating a openGL context in wxWidgets', and some people (like me) are trying to help.
Yeah, I was trying to help [-X
by Mick P.
Fri Jun 21, 2019 8:58 pm
Forum: C++ Development
Topic: [wxwidgets3.1.2, opengl] A hen and egg problem
Replies: 14
Views: 425

Re: [wxwidgets3.1.2, opengl] A hen and egg problem

I suggest the opposite. Using wx3.1 OGL features is much much easier than dealing with OS API. Take a look at glcanvas.cpp for several targets to see the required steps to go, that you can avoid just by using wx. Well I hope you realize (I didn't at first) sarah.miller is specifically NOT using wxG...
by Mick P.
Fri Jun 21, 2019 12:24 pm
Forum: C++ Development
Topic: [wxwidgets3.1.2, opengl] A hen and egg problem
Replies: 14
Views: 425

Re: [wxwidgets3.1.2, opengl] A hen and egg problem

So I create a wxglcanvas and then an wxglcontext but the problem I'm facing is that the internal context created by the canvas triggers an assert and I've got no clue as to what goes wrong. Sorry, I think I misread. I thought maybe you had confused these (https://docs.wxwidgets.org/trunk/classwx_g_...