Search found 91 matches

by Peri
Wed Jun 06, 2012 2:55 pm
Forum: C++ Development
Topic: need wxToolBar iterator
Replies: 2
Views: 767

Re: need wxToolBar iterator

That will work. Thanks for the great, simple idea!
by Peri
Wed Jun 06, 2012 2:22 pm
Forum: C++ Development
Topic: need wxToolBar iterator
Replies: 2
Views: 767

need wxToolBar iterator

What's the proper way to iterate through the wxToolBar items?

In particular, I need to find all the "IsControl()" items and delete objects referenced by the control's SetClientData.

Thanks.
by Peri
Thu May 31, 2012 7:32 pm
Forum: C++ Development
Topic: show selection of whole wxRichTextCtrl
Replies: 0
Views: 524

show selection of whole wxRichTextCtrl

I would like a way to show when a wxRichTextCtrl is selected. This would be the wxRichTextCtrl that has focus, or last had focus until my code chooses to deselect it. Since the text in the control can be selected, I need a different look to show when the control as a whole is selected. I've consider...
by Peri
Fri May 25, 2012 3:50 pm
Forum: C++ Development
Topic: QueueEvent - need to direct event to specific window
Replies: 6
Views: 2156

Re: QueueEvent - need to direct event to specific window

You mean object->SetEventObject()? So, it's ok to override the original value? I'll give it a try.
Peri
by Peri
Fri May 25, 2012 2:27 pm
Forum: C++ Development
Topic: QueueEvent - need to direct event to specific window
Replies: 6
Views: 2156

Re: QueueEvent - need to direct event to specific window

Yep, that syntax works. Cool. Now, what I'm seeing is that, when I resend a copy of the event, it loses it's original event object - that is, event->GetEventObject doesn't return the original context menu. I need some way to detect the originating control and am wondering if I can use object->SetRef...
by Peri
Thu May 24, 2012 5:32 pm
Forum: C++ Development
Topic: QueueEvent - need to direct event to specific window
Replies: 6
Views: 2156

Re: QueueEvent - need to direct event to specific window

That sounds easy. I see that QueueEvent is protected. Is there another function I should use or should I just put a public wrapper on that?

By the way, yes, I am using Destroy(). Thanks for thinking of that, though.

Peri
by Peri
Thu May 24, 2012 3:44 pm
Forum: C++ Development
Topic: QueueEvent - need to direct event to specific window
Replies: 6
Views: 2156

QueueEvent - need to direct event to specific window

Hi I am attempting to use QueueEvent to asynchronously send an event to a specific window. I just tried wxTheApp->QueueEvent (event) but (not surprisingly) the event doesn't arrive at the expected window. More specifically, I have a context menu for deleting a control within a parent window. When th...
by Peri
Sat May 12, 2012 5:12 pm
Forum: C++ Development
Topic: wxLog message to file without showing user
Replies: 0
Views: 517

wxLog message to file without showing user

Hi, I am able to successfully log messages to a file, but when doing so the various wxLogX functions also popup and error to the user. I would like to handle the UI myself but still want to log to a file. Not sure how to do that. The current code I use to enable logging is: FILE* logFile = NULL; if ...
by Peri
Sat Apr 14, 2012 12:38 am
Forum: C++ Development
Topic: EVT_PAINT not repainting whole window after SetSize
Replies: 3
Views: 1138

Re: EVT_PAINT not repainting whole window after SetSize

Yea! Adding wxFULL_REPAINT_ON_RESIZE works. That makes me happy.
by Peri
Thu Apr 12, 2012 10:35 pm
Forum: C++ Development
Topic: EVT_PAINT not repainting whole window after SetSize
Replies: 3
Views: 1138

EVT_PAINT not repainting whole window after SetSize

In my app, I'm calling SetSize to change the size of a child window. (This is happening during a EVT_MOTION while the user is dragging a sizing handle.) The child window is initially displayed correctly. As well, during dragging, the newly exposed parts of the child window are painting correctly. Ho...
by Peri
Tue Apr 10, 2012 2:27 pm
Forum: C++ Development
Topic: need sizing or dragging handles
Replies: 4
Views: 1006

Re: need sizing or dragging handles

This is turning out to be complicated. One idea to implement this is to place a slightly larger temporary window behind the window to resize. Then, the edges of the larger window would show and could be drawn to look like a sizing border. However, wx doesn't provide any api for adjusting the z-order...
by Peri
Wed Apr 04, 2012 3:39 pm
Forum: C++ Development
Topic: need sizing or dragging handles
Replies: 4
Views: 1006

Re: need sizing or dragging handles

Those are all good, but not the same thing I'm looking for. Thanks.
by Peri
Wed Apr 04, 2012 2:11 pm
Forum: C++ Development
Topic: need sizing or dragging handles
Replies: 4
Views: 1006

need sizing or dragging handles

Does wxWidgets have an implimentation of sizing handles (or dragging handles)? I don't see anything but thought I'd ask before starting from scratch. I'm speaking of the the thin rectangle with black squares at the corners and mid span that may appear around an object. When you drag one of the squar...
by Peri
Tue Apr 03, 2012 11:50 pm
Forum: C++ Development
Topic: wxDragImage freezes right after BeginDrag
Replies: 2
Views: 913

Re: wxDragImage freezes right after BeginDrag

Yes, it does seem to have something to do with mouse capture. But in a trickier way. I used Bind to direct the mouse event from the control to MyWindow. That is, when the user clicks on a control, the EVT_LEFT_DOWN goes to MyWindow instead of the control. I think the reason is I would need a separat...
by Peri
Tue Apr 03, 2012 7:51 pm
Forum: C++ Development
Topic: wxDragImage freezes right after BeginDrag
Replies: 2
Views: 913

wxDragImage freezes right after BeginDrag

Hopefully this is something simple. The goal, at this point, is simply to drag the image of a control in the space of its parent window. On EVT_MOTION, I capture the image of a control. Then I create wxDragImage and call Move and Show and exit the mouse handler. After that, the application is frozen...