The window.....
I was trying to make a real window but every time i compile, the darkBASIC itself give me error, it says that i haven't declare the type i used for the window:
Function window (X,Y,title$,text$)
Rem //
Type window_
title as string
XWindow as float
YWindow as float
Xtitle as float
Ytitle as float
Xcontest as float
Ycontest as float
status as string
skin as string
Endtype
win as window_
win.skin = "Skin/window.tga"
nwindows = nwindows + 1
Rem // Position the window and the text
win.XWindow = ((screen width()/2)-(304/2))
win.YWindow = ((screen height()/2)-(110/2))
win.Xtitle = (win.XWindow + 10)
win.Ytitle = (win.YWindow - 10)
paste image nwindows,win.XWindow,win.YWindow
text win.Xtitle,win.Ytitle,title$
Text win.Xcontest,win.Ycontest,text$
endfunction
I never could compile it and now that my trial version can not compile... i'm waiting for friend of mine to sold his DB Pro (Why the demo isn't updated with the fixed bugs?). And i haven't work yet on the code to move the window so it's still incomplete.
The log on window you say is very simple: It's automaticly center because of the
screen width and the
screen heightcommands:
paste image 1,login.XWindow,login.YWindow,1
ink rgb(0, 0, 0),rgb (255, 255, 255)
set cursor (screen width()/2)-67,(screen height()/2)-15
input usercheck
set cursor (screen width()/2)-67,(screen height()/2)+8
input passcheck
True Phantasy