Hi
Have a small issue having ported an app from IBasic Std to EBasic. Under IBasic Std when I PRINT to a window, the printed text's background color is that of the window's BG color. Under IBasic Pro and EBasic (code snippet attached) the printed text's BG is white.
I can obviously fix it by not using PRINT but a text control but I would like to know what the difference is between IB Std and IB Pro/EBasic's PRINT statement. I suspect I must use some or other color statement before printing but cannot find one. If there is an incompatibility, then as long as I am aware of it, I can recode a work-around.
The buttons in the code snippet below do not work so use the close window button to close.
Regards
Dennis
$MAIN
DEF winLogin: WINDOW
OPENWINDOW winLogin,5,5,500,500,@MINBOX|@MAXBOX|@MAXIMIZED,0,"",&wsubLoginÂÃ,Â
SETWINDOWCOLOR winLogin, RGB(224,220,224)ÂÃ,Â
MOVE winLogin,230,5ÂÃ,Â
PRINT winLogin, "ABCDEFG"ÂÃ,Â
MOVE winLogin,230,60ÂÃ,Â
PRINT winLogin, "XYZZZZZZZZ"ÂÃ,Â
MOVE winLogin,28,170ÂÃ,Â
CONTROL winLogin,@Edit,"",350,130,110,22,0,1
MOVE winLogin,275,134ÂÃ,Â
PRINT winLogin, "ÂÃ, Ã‚Ã, User id:"ÂÃ,Â
CONTROL winLogin,@Edit,"",350,160,110,22,0x50800020,2
MOVE winLogin,275,164ÂÃ,Â
PRINT winLogin, "Password:"ÂÃ,Â
CONTROL winLogin,@Button,"OK",300,212,70,26,0x50800000,112
CONTROL winLogin,@Button,"Cancel",390,212,70,26,0x50800000,113
intLoginRun = 1ÂÃ,Â
WAITUNTIL intLoginRun <> 1ÂÃ,Â
CLOSEWINDOW winLoginÂÃ,Â
END
SUB wsubLogin
SELECT @CLASSÂÃ,Â
CASE @IDCLOSEWINDOWÂÃ,Â
intLoginRun = 0ÂÃ,Â
ENDSELECTÂÃ,Â
RETURNÂÃ,Â
ENDSUB
Hi Dennis,
Try: BACKPEN(winLogin,RGB(224,220,224))
regards, :)
Graham
Duh! Of course!! :-[ :-[
Thanks Graham! :) :)
Does point to a difference between Std and Pro/EBasic though. In Std BACKPEN is not needed but in Pro/EBasic it is.
Thanks for quick response!