Project

General

Profile

Revision 65

Toolbar button logic enable/disable

View differences:

cDebugCJMenuItemClasses.pkg
431 431
        Send doSetBreakPoint
432 432
    End_Procedure
433 433
    
434
    //Function IsEnabled Returns Boolean
435
    //  Boolean bPaused
436
    //
437
    //  Get HasProgramPaused To bPaused
438
    //  Function_Return bPaused
439
    //End_Function
434
    Function IsEnabled Returns Boolean
435
      Handle hoDebugger
436
      Get phoDebugger to hoDebugger
437
      Function_Return (hoDebugger<>0)
438
    End_Function
440 439
    
441 440
End_Class // cCJAddBreakpointMenuItem
442 441

  
......
535 534
    End_Procedure
536 535
    
537 536
    Function IsEnabled Returns Boolean
538
      Boolean bPaused
539
      // always allow to open source files.
540
      //Get HasProgramPaused To bPaused
541
      Function_Return True //bPaused
537
      Handle hoDebugger
538
      Get phoDebugger to hoDebugger
539
      Function_Return (hoDebugger<>0)
542 540
    End_Function
543 541
    
544 542
End_Class // cCJOpenFileMenuItem

Also available in: Unified diff