Page 1 of 1

PostPosted: Fri Feb 09, 2001 8:41 pm
by iebnn
Hello I'm making a joke application that makes it look like it's doing a hard reset.
How would I make the entire screen blank, so that I can put text onto it without anything else being on the screen? Like the real hard reset screen :)
PS is there/going to be a visual editor for PocketC?

PostPosted: Sat Feb 10, 2001 12:25 am
by Power
Hi... try graph_on() it clears the screen...

visual editor for pocketc...
try PocketGUI, CControls, CEditor, PToolbox..

PostPosted: Sat Feb 10, 2001 12:31 am
by iebnn
I mean visual editors for WIndows
BTW could I Get anyone's ICQ number so I can contact you there? thanks

PostPosted: Sat Feb 10, 2001 12:33 am
by Power
take a look at my info... there's a Flower... green means am online gray flower means am offline but you can leave a message regardless if online or offline

PostPosted: Sat Feb 10, 2001 12:34 am
by iebnn
How do you get rid of those Output and Clear buttons, even after it's been compiled they're still there. (I used the desktop version)

PostPosted: Sat Feb 10, 2001 12:39 am
by Power
execute graph_on() this will force your application into graphics mode... there will be no output & clear button... just a blank screen... unless you put a new title on the title() then a form title will be displayed... try the clearg() to clear the screen

Edited by - power on 02/09/2001 18:40:18

PostPosted: Sat Feb 10, 2001 12:42 am
by iebnn
but then I can't use puts in graphics mode
isn't there an easier way to print text in the correct place (you know, so it's where the next line would be) in graphics mode, since you can't use puts, only the pixels where the text is?

PostPosted: Sat Feb 10, 2001 8:40 am
by Power
it is true that you can't use the puts() anymore... but ofcourse there is a n appropriate function that performs like puts() <img src=icon_smile.gif border=0 align=middle>... which if the developer don't supply this it would make no sense at all going into graphics mode.

the functions to uses is text(), performs like puts() but you must supply the x,y location of the text. read the pocketc basic functions. enjoy <img src=icon_smile_big.gif border=0 align=middle>

for further reading you might want to read the following too... textattr(), textalign(), textwidth()...

btw, my ICQ # 31745809. nick is Power <img src=icon_smile.gif border=0 align=middle>

PostPosted: Sat Feb 10, 2001 7:32 pm
by iebnn
but it's harder to make lines of text, because you don't specify the line, you specify the pixel
I'll probably write a function then that will let you specify a line and it'll return the pixel

PostPosted: Sat Feb 10, 2001 10:10 pm
by Power
true you dont specify the line but the pixel itself... then it will make the text starting at the pixel you specify... it's traqnsparent...