Search found 14 matches

by jamesrf
Thu Nov 03, 2005 3:26 pm
Forum: C++ Development
Topic: wxUpdateUIEvent propogation - confused.
Replies: 0
Views: 628

wxUpdateUIEvent propogation - confused.

Hi, Could someone help me out on the best way of using the update UI system when used with menus? I only have a single update UI handler in my mainframe which listens for a single command ID. The trouble is that when a context menu is popped up from deep in the window hierarchy this handler sometime...
by jamesrf
Fri Jul 15, 2005 10:01 am
Forum: C++ Development
Topic: wxPopup/capture problem
Replies: 0
Views: 484

wxPopup/capture problem

Hi,

I have a wxPopup window (not transient one) which contains a wxScrolledWindow in a sizer. When I show the window I want to set focus to the scrolled window and I want it to capture the mouse. Unfortunately this hangs the app. Can anyone shed any light?

James
by jamesrf
Thu Nov 04, 2004 10:25 am
Forum: C++ Development
Topic: Ctrl+Z accelerator and edit boxes
Replies: 4
Views: 1534

Re: Ctrl+Z accelerator and edit boxes

Hi Guys, I have an undo facility which is bound to the CTRL+Z accelerator. However, when a wxTextCtrl has focus I want CTRL+Z to do the usual wxTextCtrl undo. What is the best way of doing this? One way that springs to mind is to intercept the accelerator event, check focus, if its a text box ignor...
by jamesrf
Fri Oct 29, 2004 11:05 am
Forum: C++ Development
Topic: Ctrl+Z accelerator and edit boxes
Replies: 4
Views: 1534

geon wrote:Won't the textbox automatically "consume" the event if it has focus?
Not if there's an accelerator table set on the main frame.
by jamesrf
Fri Oct 29, 2004 10:27 am
Forum: C++ Development
Topic: Ctrl+Z accelerator and edit boxes
Replies: 4
Views: 1534

Ctrl+Z accelerator and edit boxes

Hi Guys, I have an undo facility which is bound to the CTRL+Z accelerator. However, when a wxTextCtrl has focus I want CTRL+Z to do the usual wxTextCtrl undo. What is the best way of doing this? One way that springs to mind is to intercept the accelerator event, check focus, if its a text box ignore...
by jamesrf
Wed Sep 29, 2004 5:03 pm
Forum: General Development
Topic: Implementing applications using hierarchical state machines.
Replies: 3
Views: 1515

Hi, I am very interested in the concept itself, because I see myself using more and more statemachines myself as well in UI design. Do you have more online links about it ? Regards, - Jorgen Have a look at http://www.smartstatestudio.com/. Download SmartState and have a look at the samples. Other t...
by jamesrf
Wed Sep 29, 2004 11:09 am
Forum: General Development
Topic: Implementing applications using hierarchical state machines.
Replies: 3
Views: 1515

Implementing applications using hierarchical state machines.

Hi guys, In the last couple of years I got into the practice of implementing custom widgets and views with a finite state machine (FSM) controlling each one. It is definitely the way forward to separate behaviour from drawing (presentation) from management. The limitation with this approach is twofo...
by jamesrf
Wed Sep 15, 2004 8:35 am
Forum: C++ Development
Topic: Memory cleanup
Replies: 12
Views: 3690

hi, very interesting theme, I've to admit, that my mem-leak checking is limited to detect the W2K taskmanager while debugging, little less I guess! :oops: So can anybody recommend a mem-leak-detector, suiting to gcc, btw MinGW (using Dev-Cpp)? tanx achim I don't use any 3rd party leak detector. Ins...
by jamesrf
Tue Sep 14, 2004 4:58 pm
Forum: C++ Development
Topic: Memory cleanup
Replies: 12
Views: 3690

Re: Memory cleanup

I always free everything, and check for memory leaks in C, because this is a small part of my personnal rules for making good software. Absolutely! In addition, I'd say that 1 time in 3 (or more), the fix is not just a case of a missing delete. It often shows up very real bugs in the software. I've...
by jamesrf
Tue Sep 14, 2004 4:48 pm
Forum: C++ Development
Topic: Double buffering/wxScrolledWindow problem
Replies: 6
Views: 2041

We talk about wxScrolledWindow, I have another problem with it too. As a big flikking is visible, I would use a wxBufferedPaintDC. in my intercept of wPaintEvent. It is OK : no flikkinkg, correct offset according scorllbars. But one problem : when I scroll (pageup/pagedown) the old showed zone is c...
by jamesrf
Mon Sep 13, 2004 10:45 am
Forum: C++ Development
Topic: Double buffering/wxScrolledWindow problem
Replies: 6
Views: 2041

We talk about wxScrolledWindow, I have another problem with it too. As a big flikking is visible, I would use a wxBufferedPaintDC. in my intercept of wPaintEvent. It is OK : no flikkinkg, correct offset according scorllbars. But one problem : when I scroll (pageup/pagedown) the old showed zone is c...
by jamesrf
Fri Sep 10, 2004 4:29 pm
Forum: C++ Development
Topic: Double buffering/wxScrolledWindow problem
Replies: 6
Views: 2041

Double buffering/wxScrolledWindow problem

Hi board, I am trying to double buffer stuff that I'm drawing in a wxScrolledWindow but I don't seem to be able to do it without allocating a bitmap that is the virtual size of the window. Obviously this won't work if the view is huge. What I want is to allocate a bitmap that is the size of the clie...
by jamesrf
Wed Sep 08, 2004 9:28 am
Forum: Component Writing
Topic: need advice on writing custom widget
Replies: 3
Views: 3530

Thanks

Thanks for your help Jorgen. Much appreciated.

James
by jamesrf
Fri Sep 03, 2004 2:46 pm
Forum: Component Writing
Topic: need advice on writing custom widget
Replies: 3
Views: 3530

need advice on writing custom widget

Hi people, For the last six months (on and off) I've been developing my own version of the generic tree control which is an exact replica of the MS windows tree control in terms of appearance and behaviour, but with some bug fixes and nice features added (column support - ie tree list, double buffer...