April 15, 2024, 10:41:45 PM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


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!