Welcome to Phrogram Sign in | Join | Help


System Class?

  •  12-03-2006, 8:16 AM

    System Class?

    There may be enough here to warrent adding a System class.  Letting the user browse for a file, or pick a file path and name to save to are common taks for file I/O.  It would also be nice to be able to stop the program window from flashing when changing sizes (if it were made invisible first, then size and graphics could be added before it was made visible again).  A color dialog, access to the Printer, and a host of other tasks would fit nicely in a new System class.  For starters, here is a list I've come up with...

    System Constants
        System Colors
        System Date format
        System Time format
    
    System Devices
        Monitor Width
        Monitor Height
        Printer
    
    Environment Variables
        Temp Folder
        Application Data Folder
        User Name
        ComSpec
    
    User Dialogs
        OpenFileDialog
        SaveFileDialog
        ColorsDialog
    
    Application Data
        Application path
        Icon
        Minimized/Maximize state
        Visible Property
    
    External Applications
        CallExecutable (Shell)
        ShowDocument   (ShellExecute)
    
    Filed under: ,
View Complete Thread