extern void DlgCmd( void ) { char *cmd; cmd = WndMustAlloc( 100 ); GUISetModalDlgs( TRUE ); DlgOpen( "Enter a command", DLG_CMD_ROWS, DLG_CMD_COLS, Controls, NUM_CONTROLS, &CmdEvent, cmd ); GUISetModalDlgs( FALSE ); }
void ToggleHardMode( void ) { TrapForceHardMode = !TrapForceHardMode; #ifdef __GUI__ TrapSetHardMode( TrapForceHardMode ); GUICheckMenuItem( WndGui( WndMain ), MENU_MAIN_WINDOW_HARD_MODE, TrapForceHardMode ); #endif GUISetModalDlgs( TrapForceHardMode || TrapHardModeRequired ); }
ToggleHardMode( void ) { ForceHardMode = !ForceHardMode; #ifdef __GUI__ SetHardMode( ForceHardMode ); GUICheckMenuItem( WndGui( WndMain ), MENU_MAIN_WINDOW_HARD_MODE, ForceHardMode ); #endif GUISetModalDlgs( ForceHardMode || HardModeRequired ); }
bool DebugScreen( void ) { if( ScreenState == DEBUG_SCREEN ) return( FALSE ); if( WndMain ) { ScreenState = DEBUG_SCREEN; GUISetModalDlgs( ForceHardMode || HardModeRequired ); SetFocus( GUIGetSysHandle( WndGui( WndMain ) ) ); } return( FALSE ); }
void InitScreen( void ) { FocusWnd = GetFocus(); RestoreMainScreen( "WDWIN" ); GUISetModalDlgs( false ); }