Search found 14 matches

by Remdul
Wed Jul 07, 2021 9:40 pm
Forum: Platform Related Issues
Topic: wxTreeCtrl and right click events
Replies: 10
Views: 3623

Re: wxTreeCtrl and right click events

Yes, but I'd rather have it working in my application as well. Unfortunately it's easy to get bogged down by undefined behaviour with wxWidgets. I know it's usually related to lower level API (Win32/GTK/X11) and not directly wxWidgets fault, but it's really frustrating and time consuming to make eve...
by Remdul
Wed Jul 07, 2021 6:53 pm
Forum: Platform Related Issues
Topic: wxTreeCtrl and right click events
Replies: 10
Views: 3623

Re: wxTreeCtrl and right click events

I should also try the wx sample program by the way!
by Remdul
Wed Jul 07, 2021 6:43 pm
Forum: Platform Related Issues
Topic: wxTreeCtrl and right click events
Replies: 10
Views: 3623

Re: wxTreeCtrl and right click events

Hmm, that's interesting (I'm also using Mint Cinnamon 19 by the way, which has some minor GTK/Gnome/GTK related quirks here and there). I have something working now, using a workaround. I've set the style to wxTR_MULTIPLE instead of wxTR_SINGLE. This prevents one tree item being selected all the tim...
by Remdul
Wed Jul 07, 2021 6:22 pm
Forum: Platform Related Issues
Topic: wxTreeCtrl and right click events
Replies: 10
Views: 3623

Re: wxTreeCtrl and right click events

No, the problem is that it is not possible to de-select tree item(s) at all. There's always one tree item selected at all times. So right-clicking always invokes the tree item context event because there's always at least one tree item selected. This makes it impossible to implement a generic contex...
by Remdul
Wed Jul 07, 2021 5:33 pm
Forum: Platform Related Issues
Topic: wxTreeCtrl and right click events
Replies: 10
Views: 3623

Re: wxTreeCtrl and right click events

I'm still trying to figure that out. But for sure, it's non-intuitive if you just want to implement a simple context menu that's not tied to the currently selected tree item.

I'll post it here if I get it working somehow.
by Remdul
Wed Jul 07, 2021 3:40 pm
Forum: Platform Related Issues
Topic: wxTreeCtrl and right click events
Replies: 10
Views: 3623

Re: wxTreeCtrl and right click events

Resurrecting this ancient thread: seems this is still an issue in wxWidgets 3.0.x anno 2021 on Linux/GTK. EVT_TREE_SEL_CHANGED = works only when clicking on items EVT_TREE_ITEM_MENU = works only when clicking on items EVT_CONTEXT_MENU = nothing [s]EVT_RIGHT_DOWN = nothing[/s]* [s]EVT_RIGHT_UP = noth...
by Remdul
Wed Jul 07, 2021 3:34 pm
Forum: General Forum Issues
Topic: Error "The submitted form was invalid"
Replies: 25
Views: 14725

Re: Error "The submitted form was invalid"

I also had this issue, after loging in an hour ago after some months (years) since last login (with same system/browser because it remembered my login settings).

I fixed it by clearing my browser cookies for forums.wxwidgets.org !

I think this may be a phpBB3 issue with cookies settings.
by Remdul
Tue May 05, 2020 8:16 pm
Forum: The Code Dump
Topic: v-sync and wxGLCanvas
Replies: 0
Views: 9661

v-sync and wxGLCanvas

I was trying to add this to the wxWiki, but my edits keep getting flagged as spam (new wiki account). If someone could add this to the wiki page for me (below section titled "Animation Flicker"), that would be swell. :) https://wiki.wxwidgets.org/WxGLCanvas **code removed** *Edit: was able to update...
by Remdul
Fri May 06, 2016 10:10 pm
Forum: C++ Development
Topic: Non-blocking (Popup)menu possible?
Replies: 7
Views: 1725

Re: Non-blocking (Popup)menu possible?

Thanks doublemax, didn't know about that one yet, I will experiment with it and post the results here. It is kinda weird though that something as simple as showing a menu blocks things, while other more complex controls don't. @ONEEYEMAN: I try to avoid threads at all cost, I've found they are rarel...
by Remdul
Thu Apr 28, 2016 1:52 pm
Forum: C++ Development
Topic: Non-blocking (Popup)menu possible?
Replies: 7
Views: 1725

Non-blocking (Popup)menu possible?

I currently implement a context menu (wxMenu) with Popupmenu(), but that is a blocking function. It halts execution of the rest of the application. This is a problem for me, because the application is running a real-time simulation which should continue in the background regardless of UI events. Thi...
by Remdul
Thu Feb 14, 2013 3:12 pm
Forum: Compiler / Linking / IDE Related
Topic: wxSpinCtrlDouble undefined
Replies: 1
Views: 900

wxSpinCtrlDouble undefined

I'm wondering why wxSpinCtrlDouble is undefined for me, even though I #include "wx/spinctrl.h". wxSpinCtrl is also undefined, however I'm using wxPGEditor_SpinCtrl without problems in a wxPropertyGrid. I'm confused. I'm using wxWidgets2.9.4 on Linux Mint (~=Ubuntu), with the below configuration: wx-...
by Remdul
Thu Oct 29, 2009 3:32 pm
Forum: C++ Development
Topic: wxEXPAND wxTreeCtrl horizontally & vertically
Replies: 4
Views: 1111

What I meant is that there's no 3-argument variation listed. Now, I'll assume that the remaining arguments are optional, but I find that sort of thing rather confusing, as evident.
by Remdul
Wed Oct 28, 2009 8:16 pm
Forum: C++ Development
Topic: wxEXPAND wxTreeCtrl horizontally & vertically
Replies: 4
Views: 1111

Thanks, that did it. :)

This variation of wxSpacer::Add() Does not appear to be documented though. Usually intellisense (MSVC) gets me on the right track, but often it dies parsing the wx headers...
by Remdul
Tue Oct 27, 2009 11:39 pm
Forum: C++ Development
Topic: wxEXPAND wxTreeCtrl horizontally & vertically
Replies: 4
Views: 1111

wxEXPAND wxTreeCtrl horizontally & vertically

Hi, In my program I use wxAUI, which works well. However, there does not seem to be a way to directly add two controls into a single pane. According to a wxAUI author/maintainer, the way to do this is to put the controls in a wxPanel, and put that one into a wxAUI pane. Which I did. However, by defa...