Part of a program I am creating will have a calculator built into it (even though windows already has one...not the point lol). I got the layout to work fine but when the window for the calculator is created in its little window, I can't close it unless I close the parent window. How can I make that not the case? (see code below:NOTE- you will need your own Blue GUI start info/gui file)
GLOBAL CalcPanel
GLOBAL CalcWindow
`Calc number buttons
GLOBAL CalcZero
GLOBAL CalcOne
GLOBAL CalcTwo
GLOBAL CalcThree
GLOBAL CalcFour
GLOBAL CalcFive
GLOBAL CalcSix
GLOBAL CalcSeven
GLOBAL CalcEight
GLOBAL CalcNine
`calc math signs
GLOBAL CalcPlus
GLOBAL CalcMinus
GLOBAL CalcMultiply
GLOBAL CalcDivide
GLOBAL CalcEqual
GLOBAL CalcDecimal
`create calc window
CalcWindow = CREATEWINDOW(100,100,280,400,"Calculator",WINDOW_FIXED,WINDOW_TOOLWINDOW,1,0)
`create calculator number buttons
CalcOne = CREATEBUTTON(10,100,35,35,"1",1,CalcWindow)
CalcTwo = CREATEBUTTON(55,100,35,35,"2",1,CalcWindow)
CalcThree = CREATEBUTTON(100,100,35,35,"3",1,CalcWindow)
CalcFour = CREATEBUTTON(10,145,35,35,"4",1,CalcWindow)
CalcFive = CREATEBUTTON(55,145,35,35,"5",1,CalcWindow)
CalcSix = CREATEBUTTON(100,145,35,35,"6",1,CalcWindow)
CalcSeven = CREATEBUTTON(10,190,35,35,"7",1,CalcWindow)
CalcEight = CREATEBUTTON(55,190,35,35,"8",1,CalcWindow)
CalcNine = CREATEBUTTON(100,190,35,35,"9",1,CalcWindow)
CalcZero = CREATEBUTTON(10,235,80,35,"0",1,CalcWindow)
CalcDecimal = CREATEBUTTON(100,235,35,35,".",1,CalcWindow)
`create caluclator math operation buttons
CalcPlus = CREATEBUTTON(150,100,35,35,"+",1,CalcWindow)
CalcMinus = CREATEBUTTON(150,145,35,35,"-",1,CalcWindow)
CalcMultiply = CREATEBUTTON(150,190,35,35,"*",1,CalcWindow)
CalcDivide = CREATEBUTTON(150,235,35,35,"/",1,CalcWindow)
WAIT KEY
END
LIFE: "That thing that happens to us when we are too young to die"
~V.J.C. 2003