I define the main window of my app as follows:
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.
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 lExitAllowedThe 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.
Many thanks
Ollie.
Using:
xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)
Borland C++ 5.5.1
FWH 9.04 (2009 Apr)
Ollie.
Using:
xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)
Borland C++ 5.5.1
FWH 9.04 (2009 Apr)