opening extra frames

Hello, what's the recommended way of opening extra independent windows
(frames, e.g. a help window, etc) for an application:
- in the event callback that requires extra frame, create a new wxFrame in a
separate thread and return
- in the event callback that requires extra frame, create a non-modal dialog
and return
- other, better method?

Thanks for any help.
Oliver

Schoenborn, Oliver wrote:

Hello, what's the recommended way of opening extra independent windows
(frames, e.g. a help window, etc) for an application: - in the event callback that requires extra frame, create a new wxFrame in a
separate thread and return
- in the event callback that requires extra frame, create a non-modal dialog
and return

Why not:

> - in the event callback that requires extra frame, create a new wxFrame in the SAME thread and return

-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer
                                         
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov

Robin Dunn wrote:

Schoenborn, Oliver wrote:

Hello, what's the recommended way of opening extra independent windows
(frames, e.g. a help window, etc) for an application: - in the event callback that requires extra frame, create a new wxFrame in a
separate thread and return

Just create and show the other frame(s), no need for threads. They all can share the same event loop just fine.

As another note: you CAN'T create a wxFrame in another thread...all wxGUI calls must be made from the same thread.

-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer
                                         
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov