home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
slfinsta.zip
/
scripts
/
page3.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
2000-03-26
|
5KB
|
173 lines
/* $Id: page3.cmd,v 1.1 2000/03/27 04:53:13 ktk Exp $ */
/* REXX script to create third installer dialog page. */
/* Some System Defines */
BOXHORZ = 0
BOXVERT = 1
HWND_DESKTOP = 1
HWND_OBJECT = 2
FCF_TITLEBAR = x2d("1")
FCF_SYSMENU = x2d("2")
FCF_MENU = x2d("4")
FCF_SIZEBORDER = x2d("8")
FCF_MINBUTTON = x2d("10")
FCF_MAXBUTTON = x2d("20")
/*FCF_MINMAX = FCF_MINBUTTON | FCF_MAXBUTTON*/
FCF_VERTSCROLL = x2d("40")
FCF_HORZSCROLL = x2d("80")
FCF_DLGBORDER = x2d("100")
FCF_BORDER = x2d("200")
FCF_SHELLPOSITION = x2d("400")
FCF_TASKLIST = x2d("800")
FCF_NOBYTEALIGN = x2d("1000")
FCF_NOMOVEWITHOWNER = x2d("2000")
FCF_ICON = x2d("4000")
FCF_ACCELTABLE = x2d("8000")
FCF_SYSMODAL = x2d("10000")
FCF_SCREENALIGN = x2d("20000")
FCF_MOUSEALIGN = x2d("40000")
FCF_PALETTE_NORMAL = x2d("80000")
FCF_PALETTE_HELP = x2d("100000")
FCF_PALETTE_POPUPODD = x2d("200000")
FCF_PALETTE_POPUPEVEN = x2d("400000")
FCF_HIDEBUTTON = x2d("1000000")
FCF_HIDEMAX = x2d("1000020")
/*FCF_AUTOICON = x2d("40000000")*/
FCF_STANDARD = x2d("cc3f")
DT_LEFT = x2d("0")
DT_QUERYEXTENT = x2d("2")
DT_UNDERSCORE = x2d("10")
DT_STRIKEOUT = x2d("20")
DT_TEXTATTRS = x2d("40")
DT_EXTERNALLEADING = x2d("80")
DT_CENTER = x2d("100")
DT_RIGHT = x2d("200")
DT_TOP = x2d("0")
DT_VCENTER = x2d("400")
DT_BOTTOM = x2d("800")
DT_HALFTONE = x2d("1000")
DT_MNEMONIC = x2d("2000")
DT_WORDBREAK = x2d("4000")
DT_ERASERECT = x2d("8000")
CLR_ERROR = -255
CLR_NOINDEX = -254
CLR_FALSE = -5
CLR_TRUE = -4
CLR_DEFAULT = -3
CLR_WHITE = -2
CLR_BLACK = -1
CLR_BACKGROUND = 0
CLR_BLUE = 1
CLR_RED = 2
CLR_PINK = 3
CLR_GREEN =4
CLR_CYAN = 5
CLR_YELLOW = 6
CLR_NEUTRAL = 7
CLR_DARKGRAY = 8
CLR_DARKBLUE = 9
CLR_DARKRED = 10
CLR_DARKPINK = 11
CLR_DARKGREEN = 12
CLR_DARKCYAN = 13
CLR_BROWN = 14
CLR_PALEGRAY = 15
TRUE = 1
FALSE = 0
/*flStyle = FCF_SYSMENU | FCF_TITLEBAR | FCF_SHELLPOSITION | FCF_TASKLIST | FCF_DLGBORDER*/
call inst_updateentry
if arg(1) > 0 then
call dw_window_destroy arg(1)
mainwindow = dw_window_new(HWND_DESKTOP, "Installing PMBitchX 1.0c16", 3331)
/* This number must corespond to a resource ID in the bound resources */
call dw_window_set_icon mainwindow, 2000
bigbox = dw_box_new(BOXVERT, 10)
call dw_box_pack_start mainwindow, bigbox, 0, 0, TRUE, 0
mainbox = dw_box_new(BOXHORZ, 10)
call dw_box_pack_start bigbox, mainbox, 0, 0, TRUE, 0
logo = dw_bitmap_new(1001)
/* This number must corespond to a resource ID in the bound resources */
call dw_window_set_bitmap logo, 2001
call dw_box_pack_start mainbox, logo, 100, 275, FALSE, 5
custombox = dw_box_new(BOXVERT, 10)
call dw_box_pack_start mainbox, custombox, 0, 0, TRUE, 5
stext = dw_text_new("Ready to begin installation.", 0)
call dw_window_set_style stext, DT_VCENTER, DT_VCENTER
call dw_box_pack_start custombox, stext, 300, 15, TRUE, 10
desctext = dw_text_new("Thanks for trying PMBitchX. Feel free to contact me at dbsoft@technologist.com with comments, questions or bug reports.",0)
call dw_window_set_style desctext, DT_WORDBREAK, DT_WORDBREAK
call dw_box_pack_start custombox, desctext, 300, 200, TRUE, 10
buttonbox = dw_box_new(BOXHORZ, 5)
call dw_box_pack_start bigbox, buttonbox, 0, 0, TRUE, 0
exitbutton = dw_button_new("Exit Installer", 1003)
call inst_setbutton 1003, "exit"
call dw_box_pack_start buttonbox, exitbutton, 100, 30, TRUE, 0
blanktext = dw_text_new("", 0)
call dw_box_pack_start buttonbox, blanktext, 150, 30, TRUE, 0
backbutton = dw_button_new("<< Back", 1002)
call dw_box_pack_start buttonbox, backbutton, 60, 30, TRUE, 0
call inst_setbutton 1002, "page2.cmd"
nextbutton = dw_button_new("Start", 1001)
call inst_setbutton 1001, "page4.cmd"
call dw_box_pack_start buttonbox, nextbutton, 60, 30, TRUE, 0
/* Set some nice fonts and colors */
call dw_window_set_color bigbox, CLR_PALEGRAY, CLR_PALEGRAY
call dw_window_set_color mainbox, CLR_PALEGRAY, CLR_PALEGRAY
call dw_window_set_color custombox, CLR_PALEGRAY, CLR_PALEGRAY
call dw_window_set_color lbbox, CLR_PALEGRAY, CLR_PALEGRAY
call dw_window_set_color buttonbox, CLR_PALEGRAY, CLR_PALEGRAY
call dw_window_set_color directionbox, CLR_PALEGRAY, CLR_PALEGRAY
call dw_window_set_font stext, "9.WarpSans"
call dw_window_set_font desctext, "9.WarpSans"
call dw_window_set_color stext, CLR_BLACK, CLR_PALEGRAY
call dw_window_set_color desctext, CLR_BLACK, CLR_PALEGRAY
call dw_window_set_color blanktext, CLR_BLACK, CLR_PALEGRAY
call dw_window_set_font listbox, "9.WarpSans"
call dw_window_set_font nextbutton, "9.WarpSans"
call dw_window_set_font backbutton, "9.WarpSans"
call dw_window_set_font exitbutton, "9.WarpSans"
newx = (dw_screen_width()-500)/2
newy = (dw_screen_height()-400)/2
call dw_window_set_pos_size mainwindow, newx, newy, 500, 400
call dw_window_show mainwindow
call inst_setwindow mainwindow