Dear Spencer

One way to do this is using API.The following is for 16 bit MapInfo:-

Declare Function SetWindowText Lib "user" (
                byval hwnd as smallint,
                lpszBuf as string) as smallint


The following is for 32 bit

Declare Function SetWindowText Lib "user32" (
                byval hwnd as smallint,
                lpszBuf as string) as smallint


The following is an example of a call setting title

gsNewTitle = "OS Copyright - Hackney LA09?????"
lnReturn = SetWindowText(hwnd,gsNewTitle)


I think you can do it directly from MapBasic as well but I would
strongly recommend getting used to using the API calls - theres some
great functions in there - especially on 32 bit platforms.

Using API calls is also the same in VB as MapBasic which helps as well.

Regards

Bob
By Design


PS You can get the hwnd ( handle to MapInfo window) using the SystemInfo
function in MapBasic.




In message <000d01bf14bc$1b859650$[EMAIL PROTECTED]>, Spencer
Chainey <[EMAIL PROTECTED]> writes
>Dear All,
>Is there a way, using MapBasic, to change the title that appears at the top
>of the MI window from 'MapInfo Professional' to 'My Application'?
>Regards,
>Spencer Chainey
>Corporate GIS Manager
>London Borough of Hackney
>[EMAIL PROTECTED]
>
>----------------------------------------------------------------------
>To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
>"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

-- 
Bob Young
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

Reply via email to