Search found 145 matches

by Mick P.
Thu Jun 13, 2019 12:07 am
Forum: Platform Related Issues
Topic: Help? GTK events do/dont's for dummies (nothing works)
Replies: 44
Views: 8595

Re: Help? GTK events do/dont's for dummies (nothing works)

I will. I will have to find those examples, because this is the first I've read of examples. Assuming they are test projects somewhere. I will post the code if I don't figure out something. It's not OpenGL related, although the GTK version of the canvas has an awkward requirement that the window be ...
by Mick P.
Wed Jun 12, 2019 11:00 am
Forum: Platform Related Issues
Topic: Help? GTK events do/dont's for dummies (nothing works)
Replies: 44
Views: 8595

Help? GTK events do/dont's for dummies (nothing works)

Sorry to be a bother, but I can't find any guides for wxGTK. I kind of hoped that wxWidgets would be transparent across platforms... like the common subset of all of its platforms? But that's not the experience I'm having. I have a very simple system that spawns some windows that use the wxGLCanvas ...
by Mick P.
Wed Jun 12, 2019 10:15 am
Forum: Platform Related Issues
Topic: Xlib: How does wxWidgets understand x11's client options?
Replies: 16
Views: 3250

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

I'm sorry to generate such lengthy replies. All I meant was wxWidgets is a cross-platform library, so X11 is pretty much synonymous with Linux. I understand what this stuff is. I just don't know wxWidgets well. I've written Xlib interfacing code in the past. Like right now I have an app that works o...
by Mick P.
Tue Jun 11, 2019 1:38 am
Forum: Platform Related Issues
Topic: Xlib: How does wxWidgets understand x11's client options?
Replies: 16
Views: 3250

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

#-o It occurred to me that this likely works through environment-variables. In fact I know it does. I don't do a lot of Linux development, so I don't know the ins-and-outs well. I do on occasion build/test software with GCC but I've never had to deal much with navigating system settings. I think the...
by Mick P.
Tue Jun 11, 2019 1:08 am
Forum: Platform Related Issues
Topic: Xlib: How does wxWidgets understand x11's client options?
Replies: 16
Views: 3250

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

I assume X11 is a subset of GTK, since all Linux desktops use x11 protocols. The so-called x11 port is probably unmanaged x11. Which looks pretty crumby if you use it like a desktop, but not so bad on systems that are able to do unmanaged x11 with just a popup window. If you don't understand the que...
by Mick P.
Mon Jun 10, 2019 11:54 am
Forum: Platform Related Issues
Topic: Xlib: How does wxWidgets understand x11's client options?
Replies: 16
Views: 3250

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

Sorry, this may not be the best link, but it's the first that shows up in searches online, and I am not finding a better source: https://www.oreilly.com/library/view/x-window-system/9780937175149/Chapter08.html (scroll down) I've so far not seen anything about this (except wxGLAttribsBase has an x11...
by Mick P.
Mon Jun 10, 2019 7:00 am
Forum: C++ Development
Topic: Console+GUI with release builds (wxAppConsole::GetLayoutDirection is 0 in vtbl)
Replies: 18
Views: 2730

Re: Console+GUI with release builds (wxAppConsole::GetLayoutDirection is 0 in vtbl)

Now about the asserts - they are of course on for the debug build, but starting from version 2.9.0 they are on even for Release builds of the library. The reason being that assert are really helpful when you trying to debug a problem in a Release build, where debugging information is not available....
by Mick P.
Sun Jun 09, 2019 10:45 pm
Forum: C++ Development
Topic: FilterEvent: How-to correctly forward the event?
Replies: 4
Views: 878

Re: FilterEvent: How-to correctly forward the event?

Thanks for "CallAfter" but just FWIW I disagree CallAfter is "quite clear". It's funny logic. I think wxWidgets could use much better documentation, to explain its idiosyncrasies. If it's unnatural in order to accommodate every possible platform that's laudable, but it's really d...
by Mick P.
Sun Jun 09, 2019 10:32 pm
Forum: C++ Development
Topic: Timer (one-off) memory ownership semantics? Delete in event?
Replies: 16
Views: 3123

Re: Timer (one-off) memory ownership semantics? Delete in event?

Hi, On top of that - this is not the way to implement "heartbeat", especially if you are working in the cross-platform environment. You're right, I didn't mean it in that sense. I wasn't thinking about that (a strategy to check if something is dead or alive right?) what I mean is a regula...
by Mick P.
Sun Jun 09, 2019 10:19 pm
Forum: C++ Development
Topic: Console+GUI with release builds (wxAppConsole::GetLayoutDirection is 0 in vtbl)
Replies: 18
Views: 2730

Re: Console+GUI with release builds (wxAppConsole::GetLayoutDirection is 0 in vtbl)

In C++ you derive classes like so: class App : public wxConsoleApp{}; So there is no copying. Obviously. For technical software using the console as a basis for an app is the norm. It's like you have a console, and then it spawns some windows. I don't know what to tell you, but the distinction betwe...
by Mick P.
Sun Jun 09, 2019 1:09 am
Forum: C++ Development
Topic: Console+GUI with release builds (wxAppConsole::GetLayoutDirection is 0 in vtbl)
Replies: 18
Views: 2730

Re: Console+GUI with release builds (wxAppConsole::GetLayoutDirection is 0 in vtbl)

Without knowing what the message box is about we can't help you. ;-) Just to illustrate (or beat a dead horse) the problem, the boxes I was getting were communicating information about the program's supposed "Usage" and command-line arguments. This was from the built-in command-line parsi...
by Mick P.
Sun Jun 09, 2019 12:26 am
Forum: C++ Development
Topic: FilterEvent: How-to correctly forward the event?
Replies: 4
Views: 878

FilterEvent: How-to correctly forward the event?

The documentation for FilterEvent is very much lacking. Below is the body of code for ProcessEvent, that itself calls FilterEvent. This is itself pretty counterintuitive, since logically the filter processes events and not the other way around. bool wxEvtHandler::ProcessEvent(wxEvent& event) { /...
by Mick P.
Sun Jun 09, 2019 12:12 am
Forum: C++ Development
Topic: Timer (one-off) memory ownership semantics? Delete in event?
Replies: 16
Views: 3123

Re: Timer (one-off) memory ownership semantics? Delete in event?

Is it just that you want the timer to fire once and then stop? If so, you can use StartOnce() or pass wxTIMER_ONE_SHOT to the normal Start() method. The problem here is the timer can't be stored anywhere. Or I suppose you could stop it, and do something like garbage-collection on stopped timers. An...
by Mick P.
Sat Jun 08, 2019 11:42 am
Forum: C++ Development
Topic: Console+GUI with release builds (wxAppConsole::GetLayoutDirection is 0 in vtbl)
Replies: 18
Views: 2730

Re: Console+GUI with release builds (wxAppConsole::GetLayoutDirection is 0 in vtbl)

Can you post a minimal compilable sample that shows the problem? No, but I submitted a defect report for this and another matter with an MSW assert check rejecting the NULL cursor. https://trac.wxwidgets.org/ticket/18415#ticket It was the cursor that seemed worth pointing out. Like I said, make a 5...
by Mick P.
Sat Jun 08, 2019 9:34 am
Forum: C++ Development
Topic: Timer (one-off) memory ownership semantics? Delete in event?
Replies: 16
Views: 3123

Re: Timer (one-off) memory ownership semantics? Delete in event?

Is it just that you want the timer to fire once and then stop? If so, you can use StartOnce() or pass wxTIMER_ONE_SHOT to the normal Start() method. The problem here is the timer can't be stored anywhere. Or I suppose you could stop it, and do something like garbage-collection on stopped timers. An...