Roger,
I have some programs that have a browse window as the main window and various buttons. I cannot seem to make them modal using the standard modal command and setappwindow. Obviously this causes many problems. This is on a MAIN app for our own support desk, not from a dcmenubar.
************************************
DCGETOPTIONS NORESIZE ;
COLOR &QQONE sayrightbottom ;
TOOLTIPCOLOR GRA_CLR_BLACK, GRA_CLR_YELLOW ;
DCREAD GUI FIT TITLE 'Open Logs' ;
OPTIONS GetOptions ;
setfocus @oscan ;
PARENT @oDialog ;
setappwindow ;
Nodestroy ;
*******************************
Is there something else I need to add?
Thanks
Fred
Omni
DC Browse and Modal
Re: DC Browse and Modal
It sounds like you want to be SYSTEM MODAL rather than APPLICATION MODAL.
Try this:
Try this:
Code: Select all
DCREAD GUI .. EVAL {|o|o:setModalState(XBP_DISP_SYSMODAL)}
The eXpress train is coming - and it has more cars.
Re: DC Browse and Modal
Roger,
That was not it, but I found the problem. One of the static function windows had "PARENT @oDialog" in the dcread gui, which did not cause an error message, but caused any modal after that window was opened once to stop working. Must have confused the app...(obviously pasted in and not deleted)
Thanks
That was not it, but I found the problem. One of the static function windows had "PARENT @oDialog" in the dcread gui, which did not cause an error message, but caused any modal after that window was opened once to stop working. Must have confused the app...(obviously pasted in and not deleted)
Thanks