Re: Dialog frame bug/response problem
Brought to you by:
set
From: Salvador E. T. <sal...@in...> - 2005-07-29 13:51:28
|
Eddie wrote: >I've created a dialog (TDlg1 -> TDialog) which runs another one (TDlg2 -> >TDialog) when a button is pressed. Button command is catch in >TDlg1::handleEvent. > > To see examples where that's implemented take a look at setedit. The setedit/edkeys.cc file implements a set of dialogs that calls other dialogs. >When the second one comes up (TDlg2 -> TDialog) and when user press a button >a window comes (TWnd -> TWindow) up. > > Without closing the dialogs? >The window is inserted like this (in TDlg2::handleEvent): >getAppPtr()->desktop->insert( pkWnd ); > >And I wait until it's closed, using this: > > [snip] > >Second dialog (TDlg2) frame becomes single lined (something like dlg is >dragged, but frame color is black). > > Because it doesn't have the focus anymore. >When I close TWnd. >Second dialog buttons (TDlg2 has only button controls) are working. The >frame is as I wrote above. I can't move it. But I can close it. > >The first dialog frame is untouched. > >Set please tell me why is it happening? > > You are inserting a normal window from a modal window, it doesn't have any sense. You should do all using windows or dialogs, this mix is invalid (other don't). Just imagine Windows opening a window from one of those dialogs that blocks the whole UI. SET -- Salvador Eduardo Tropea (SET). (Electronics Engineer) Visit my home page: http://welcome.to/SetSoft or http://www.geocities.com/SiliconValley/Vista/6552/ Alternative e-mail: se...@co... se...@ie... Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA Phone: +(5411) 4759 0013 |