Search found 44 matches

by nroberts
Fri Oct 29, 2010 4:40 pm
Forum: C++ Development
Topic: Default event target
Replies: 4
Views: 1163

Interesting idea. I suppose a nice answer might be to filter interesting keystrokes and turn them into custom events. Then direct all such events to the controller responsible for handling them.

Thanks.
by nroberts
Thu Oct 28, 2010 11:27 pm
Forum: C++ Development
Topic: Default event target
Replies: 4
Views: 1163

I was able to perform this default handling thing with the following: bool my_app::ProcessEvent(wxEvent & event) { bool parent = wxApp::ProcessEvent(event); wxKeyEvent * kevent = dynamic_cast<wxKeyEvent*>(&event); if ( !parent && kevent ) { return special_handling(*kevent) } return p...
by nroberts
Tue Oct 26, 2010 7:28 pm
Forum: C++ Development
Topic: Ensuring column visibility with wxListCtrl
Replies: 0
Views: 655

Ensuring column visibility with wxListCtrl

I want wxListCtrl in report mode and I want to lock one or more columns such that when you scroll left and right those columns remain visible at all times. For example: | name | field1 | field2 | field3 |....| When scrolled to the left I want it to be like: | name | field3 | field 4 | ... | I can't ...
by nroberts
Tue Sep 07, 2010 4:28 pm
Forum: C++ Development
Topic: Dialogs and multiple monitors
Replies: 0
Views: 619

Dialogs and multiple monitors

Having trouble finding information on making dialogs appear on the correct monitor when the parent is not on the main display. Currently I used wxDefaultPosition to initialize the dialog but this doesn't seem to play well with dual monitors (or more). Is there something I need to do so that the WX o...
by nroberts
Fri Jul 30, 2010 4:47 pm
Forum: C++ Development
Topic: Default event target
Replies: 4
Views: 1163

Default event target

I'm trying to set up a situation in which if an event is not handled by the focused window or anything above it then to send the event to a particular window in the frame. The basic issue is that I have a canvas window that needs to get key events that are not being sent to it. I can almost get the ...
by nroberts
Mon Feb 15, 2010 4:58 pm
Forum: C++ Development
Topic: another AUI issue
Replies: 3
Views: 1088

jfouche wrote:Hello

I saw it today on my project, but didn't spend time on it. I presume it's just a refresh problem, because dragging another window on it refresh correctly the pane.
I'll probably investigate in the next days.
Did you ever solve this?
by nroberts
Mon Feb 01, 2010 6:39 pm
Forum: C++ Development
Topic: another AUI issue
Replies: 3
Views: 1088

bump
by nroberts
Fri Jan 15, 2010 5:39 pm
Forum: C++ Development
Topic: another AUI issue
Replies: 3
Views: 1088

another AUI issue

When the frame that contains "panes" is resized so that the panes go past each other, they end up drawing on each other and then not refreshing correctly.

Anyone else see this problem and what did you do about it?

Attached is before and after images.
by nroberts
Wed Jan 06, 2010 11:45 pm
Forum: C++ Development
Topic: cursor not being refreshed
Replies: 5
Views: 1324

On msw it is very likely that it is not due to wxW. You can see the same behavior with Firefox for example. I also tried to do that once but I remember giving up. One workaround can be to programmatically move the mouse pointer by 1 pixel after setting the cursor. Or maybe move it, and then move it...
by nroberts
Wed Jan 06, 2010 10:13 pm
Forum: C++ Development
Topic: cursor not being refreshed
Replies: 5
Views: 1324

DavidHart wrote:Hi,

Update(); is worth a go. Failing that, try Refresh(); Update();

Regards,

David
Not surprisingly, this did not work.
by nroberts
Wed Jan 06, 2010 7:56 pm
Forum: C++ Development
Topic: cursor not being refreshed
Replies: 5
Views: 1324

cursor not being refreshed

I'm calling SetCursor() on a window in response to a key event. The cursor does not change until the mouse moves. I've tried calling Refresh() and SetFocus() on the window and neither works. How can I cause the cursor to immediately change rather than depend on the mouse moving first?
by nroberts
Thu Dec 10, 2009 6:32 pm
Forum: C++ Development
Topic: wxAuiMDIParentFrame - disabling tab moving
Replies: 3
Views: 1113

Hi, What you have looks very similar to wxAuiNotebook which has a configurable tab handling including prevention of moving a tab using the style parameter (wxAUI_NB_TAB_MOVE). See http://docs.wxwidgets.org/stable/wx_wxauinotebook.html I've never used wxAuiMDIParentFrame, but glancing at the source,...
by nroberts
Wed Dec 09, 2009 10:25 pm
Forum: C++ Development
Topic: wxAuiMDIParentFrame - disabling tab moving
Replies: 3
Views: 1113

wxAuiMDIParentFrame - disabling tab moving

With the Aui MDI stuff you have tabs that can be moved around and arranged in various split screen methods. Unfortunately there is a rather serious bug in this system that can render the entire thing unusable should the user accidentally do one, basic thing that could easily come up. We don't want t...
by nroberts
Mon Jul 20, 2009 9:11 pm
Forum: C++ Development
Topic: Sizing troubles
Replies: 6
Views: 1615

Just to be sure. If you put the same code outside wxAUI panes, the sizing is right? Then maybe you need to telol the wxAUI pane what minimum size you want (if I understand well your first screenshot) Not exactly. If I set the minimum size of the widget it does start out big enough, but doesn't keep...
by nroberts
Mon Jul 20, 2009 4:04 pm
Forum: C++ Development
Topic: Sizing troubles
Replies: 6
Views: 1615

bump.

I still need help with this if anyone can.