home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
magazine
/
pcmagazi
/
1992
/
11
/
mc
/
global.bas
< prev
next >
Wrap
BASIC Source File
|
1992-02-18
|
3KB
|
105 lines
Global Const True = -1, False = 0
Global CRLF As String
Global IsDirty As Integer 'Really Boolean
Global HistoryIsDirty As Integer 'Really Boolean
'IsDirty tracks whether the configuration data has changed and
'HistoryIsDirry whether history has changed so MC knows
'whether to pop up a "Save configuration dialog.
Type Program
Drive As String
Path As String
Filename As String
params As String
End Type
'This is the fundemental type saved in history
Global VarProg As Program
Global TempPrg As Program
Type Item
name As String
Prog As Program
End Type
Type PManGrp
Filename As String
grpname As String
NumItems As Integer
ListName As String 'holder for GrpName(NumItems)
Selected As Integer 'really Boolean
End Type
'Preference Items
Type DTPref
European As Integer 'really Boolean
SecsOn As Integer 'Boolean
ZeroOnDay As Integer 'Boolean
Weekday As Integer ' 0 = None (Default) 1=Full 2=Abbrev.
MonthType As Integer ' 0 = Number 1=Full 2=Abbrev (Default)
YearType As Integer ' 0 = 92 (Default) 1=1992 2=None
AMType As Integer ' 0 = PM (Default) 1=pm 2=12hr none 3=24 hr
DateSeparator As Integer '0=- 1=/ 2=none 3=,
End Type
Global DateOpt As DTPref
Global DisplayDO As DTPref
Global MaxGroups As Integer
Global MaxItems As Integer
Global MaxHistory As Integer
Global NextMaxGroups As Integer 'store after Configure
Global NextMaxItems As Integer
Global NextMaxHistory As Integer
Global MinOnLoad As Integer 'really Boolean
Global DefaultLaunch As Integer '0=Normal, 2=Max 1=Min
Global FileChoiceArray(5) As Integer 'really Boolean
'0=exe 1=com 2=bat 3=pif 4=associated files 5=all
'ends Preference Items
Global HistoryArray() As Program 'will have MaxHistory items, so MaxHistory - 1 array
Global MenuArray() As Item '2d (MaxGroups - 1) x (MaxItems); Group Name in name, dirty state in path
Global MNumArray() As Integer 'MaxGroups - 1 size arrray; counts actual number of items
Global NumberOfGroups As Integer
Global YourPGroups() As PManGrp
Global NumYourGroups As Integer
Global DummyItem As Item
Global LastRunOK As Integer 'really Boolean
Global NoValidItem As Integer 'really Boolean
Global Test As Double
Global MenuCtrlWord As String
Global MenuCtrlExit% '0=Cancel (FALSE) -1=Action (TRUE)
Global MenuCtrlType% '0=Group -1=Item
Global MenuCtrlString As String
Global CurrentItem As String
Global FullItem As String
Global CurrentGroup As String
Global EditItem As String
Global EditGroup As String
Global Const FILEBOXCLICK = 0, DIRSBOXCLICK = 1
Global Const HISTORYBOXCLICK = 2, MENULISTBOXCLICK = 3
Global Const MENUCOMBOCLICK = 4
Global LastChange As Integer
Global CaptionType As Integer
Global AssociationList As String
Global Const F1 = &H70
'F1 key in KeyDown events