Search found 9 matches

by rmd6502
Wed Jun 21, 2006 6:12 pm
Forum: C++ Development
Topic: Runaway wxSizer
Replies: 1
Views: 479

I think there may be a bug in the wxSizer code. When a wxPanel contains a wxSizer, which contains a wxScrolledWindow, the sizer seems to want the minimum size to be 15 pixels (scrollbar width) greater than its current size. Strangely, this seems to happen even when the width of the panel is greater ...
by rmd6502
Wed Jun 21, 2006 12:47 am
Forum: C++ Development
Topic: Runaway wxSizer
Replies: 1
Views: 479

Runaway wxSizer

I am running 2.6.2 on linux/gtk. I have a panel on the left which contains a wxScrolledWindow and a vSizer, and a panel containing a splitter window on the right. When the scrolledwindow displays a scrollbar, and I resize the window horizontally, the left panel expands. The left panel continues to e...
by rmd6502
Sun May 28, 2006 7:31 pm
Forum: Platform Related Issues
Topic: Button hotkeys don't cross wxPanels in MSWindows
Replies: 2
Views: 655

The OnKeyDown just did a printf and an event.Skip(), nothing fancy. I ended up defining a wxAcceleratorTable that redefined all the hotkeys, and that seemed to work.

Thanks!
by rmd6502
Fri May 26, 2006 9:58 pm
Forum: Platform Related Issues
Topic: Button hotkeys don't cross wxPanels in MSWindows
Replies: 2
Views: 655

Button hotkeys don't cross wxPanels in MSWindows

Using g++ version 4.0.0, cross compiling on Redhat FC3 for Windows 2000 using MinGW. Wx version is 2.6.2. I set hotkeys for buttons using the & notation. Regardless of where the focus is, on GTK I can hit Alt-Hotkey and the correct button will press. In Windows, only the button that has focus will p...
by rmd6502
Wed May 24, 2006 6:51 pm
Forum: C++ Development
Topic: AddPendingEvent to a child window hangs wxGTK hard
Replies: 6
Views: 1513

I've found a workaround - instead of using AddPendingEvent, I use wxMutexGuiEnter(); childWindow->ProcessEvent(event); wxMutexGuiLeave(); in the tester thread, and everything runs properly. I'm makring this thread as solved, but if anyone has any comments about dangers of doing this, or a solution t...
by rmd6502
Wed May 24, 2006 5:35 pm
Forum: C++ Development
Topic: AddPendingEvent to a child window hangs wxGTK hard
Replies: 6
Views: 1513

I ran gdb in an ssh session, with $DISPLAY still set to my original desktop - my desktop didn't hang this time - don't know if that datapoint helps.' I've appended the stack traces when the gui hangs. thanks again, Rob D Test Thread #0 0xffffe410 in __kernel_vsyscall () #1 0x00a881a6 in __nanosleep_...
by rmd6502
Tue May 23, 2006 5:21 pm
Forum: C++ Development
Topic: AddPendingEvent to a child window hangs wxGTK hard
Replies: 6
Views: 1513

Oops, spoke too soon, here's the other lock that doesn't return: Breakpoint 5, 0x08190d32 in wxMutexInternal::Lock () #0 0x08190d32 in wxMutexInternal::Lock () #1 0x08190da5 in wxMutexGuiEnter () #2 0x0819e807 in wxapp_poll_func () #3 0x4763c1d3 in g_main_context_acquire () from /usr/lib/libglib-2.0...
by rmd6502
Tue May 23, 2006 5:17 pm
Forum: C++ Development
Topic: AddPendingEvent to a child window hangs wxGTK hard
Replies: 6
Views: 1513

I put a breakpoint at wxMutexInternal::Lock and ::Unlock. It looks like this invocation of Lock never returns: Breakpoint 5, 0x08190d32 in wxMutexInternal::Lock () #0 0x08190d32 in wxMutexInternal::Lock () #1 0x081939d5 in wxEvtHandler::ProcessPendingEvents () #2 0x0815808c in wxAppConsole::ProcessP...
by rmd6502
Mon May 22, 2006 10:03 pm
Forum: C++ Development
Topic: AddPendingEvent to a child window hangs wxGTK hard
Replies: 6
Views: 1513

AddPendingEvent to a child window hangs wxGTK hard

I'm trying to do some automated testing of a wx application, using wxGTK version 2.6.2 on Linux FC3. The tester starts the main loop, then executes in another thread. It uses AddPendingEvent to post button presses, etc. to the application. As long as I post events to the main window everythings seem...