April 29, 2024, 11:06:37 AM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Title lines in Console Mode

Started by Egil, January 29, 2011, 08:22:53 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Egil

I think I have seen this for IWB, but not for CB so here it is:

'
' titles.cba
'
DECLARE "kernel32.dll", SetConsoleTitle Alias SetConsoleTitleA(lpConsoleTitle:STRING),INT
DECLARE ConsoleTitle(title:string)

OPENCONSOLE
def toptxt:string
print
ConsoleTitle("CB Console Title")
INPUT "Input NEW Title: ",toptxt
ConsoleTitle(toptxt)
PRINT
PRINT "Press ESC to stop  "
do:until INKEY$ = CHR$(27)
CLOSECONSOLE
END

'
'Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨Ã,¨
'  ConsoleTitle   -   Setting Console Titles
'
SUB ConsoleTitle(title:string)
SetConsoleTitle(title)
RETURN



Enjoy!
Support Amateur Radio  -  Have a ham  for dinner!