home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Applications / UIFlow 1.0.1 / UIFlow Source / CFDFront / TModelessDialog.cp < prev    next >
Encoding:
Text File  |  1992-02-21  |  1.3 KB  |  32 lines  |  [TEXT/MPS ]

  1. #pragma segment MenuOption
  2. //*********************************************************************************
  3. //    TModelessDialog - Methods
  4. //        inherits all methods and vars from TDialogView
  5. //        provides a base class for the modeless dialog windows in this program
  6. //*********************************************************************************
  7. //------------------------------------------------------------------------------------------
  8. //    TOptFlow BringToFront Method... Implementation
  9. //        Brings the dialog to the front.
  10. //------------------------------------------------------------------------------------------
  11. void TMDialog::BringToFront(void)
  12.     {
  13.     TWindow * aWindow;
  14.     aWindow = this->GetWindow();
  15.     aWindow->Select();
  16.     }
  17.     
  18. //------------------------------------------------------------------------------------------
  19. //    Get the name of this check box
  20. //------------------------------------------------------------------------------------------
  21. void TMDialog::GetControlName (short index, char * strng)
  22.     {
  23.     sprintf(tbox.boxCH,strng);                                                        // stuff letters
  24.     if (index < 10)                                                                            // is index < 10
  25.         sprintf (tbox.boxCH+2,"0%d",index);                                    // yes: add 0 before index
  26.     else
  27.         sprintf(tbox.boxCH+2,"%d",index);                                        // no: stuff index
  28.     tbox.boxCH[4] = 0;                                                                    // null terminate
  29.     return;
  30.     }
  31.  
  32.