I display a modal dialog that contains gadgets for color picking (a black 
rectangle filled with the selected color.) I open this dialog on a menuEvent 
and fire a frmOpenEvent to set it up:

case MapDepthColors :
    form = FrmInitForm( DepthColorsForm );
    FireFrmOpenEvent( DepthColorsForm );
    FrmSetEventHandler( form, ( FormEventHandlerPtr)
                              DepthColorsHandleEvent );
    FrmDoDialog( form );
    FrmDeleteForm( form );
    handled = true;
break;

The first time I open the dialog, everything's fine. But after that, my color 
gadgets do not show up anymore, even if I exit with the Cancel button, that my 
event handler ignores (thus doing nothing.) What can remain after a 
FrmDeleteForm?


Luc Le Blanc
-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to