Code: Select all
DEFINE WINDOW Win_Main FROM 0, 0 TO 600, 800 PIXEL TITLE 'Application name' MDI ICON oIcon MENU mainmenu()
...
...
ACTIVATE WINDOW Win_Main ON INIT login() VALID lExitAllowed
The user then logs in and I have a variable: cUsername
I would now like to change the Win_main Title to cUsername + ' Application name'
I've tried this after the login:
hMainWnd := Win_Main:hWnd
SetProp( hMainWnd, "Title", cUsername + ' Application name')
Win_Main:Refresh()
And it gives an error.
Thanks in advance.
Ollie.