sandyrepope
08-09-2007, 20:56
I'm not sure if there is a bug or I'm just making a mistake. When I run this script nothing shows up in the label.
uses "UI"
%ID_CURRENT_WORD = 10
DIM hDlg AS DWORD, hImg AS DWORD, x AS DWORD, Y AS DWORD
dim Msg, wparam,lparam as dword
DIALOG NEW 0, "thinBASIC", -1, -1, 280, 240, _
%WS_DLGFRAME OR _
%DS_CENTER OR _
%WS_CAPTION OR _
%WS_SYSMENU OR _
%WS_OVERLAPPEDWINDOW, _
0 TO hDlg
control add label, hDlg, %ID_CURRENT_WORD, "Some text to display", 7, 150, 255, 25, %SS_ETCHEDFRAME
DIALOG SHOW modeless hDlg
while isWindow(hDlg)
Msg = GetMessage(hDlg, wParam, lParam)
select case Msg
CASE %WM_SYSCOMMAND
SELECT CASE wParam
CASE %SC_CLOSE
EXIT WHILE
END SELECT
END SELECT
wend
DIALOG END hDlg
I might be making a mistake but if I am I can't find it.
Thanks
Sandy
uses "UI"
%ID_CURRENT_WORD = 10
DIM hDlg AS DWORD, hImg AS DWORD, x AS DWORD, Y AS DWORD
dim Msg, wparam,lparam as dword
DIALOG NEW 0, "thinBASIC", -1, -1, 280, 240, _
%WS_DLGFRAME OR _
%DS_CENTER OR _
%WS_CAPTION OR _
%WS_SYSMENU OR _
%WS_OVERLAPPEDWINDOW, _
0 TO hDlg
control add label, hDlg, %ID_CURRENT_WORD, "Some text to display", 7, 150, 255, 25, %SS_ETCHEDFRAME
DIALOG SHOW modeless hDlg
while isWindow(hDlg)
Msg = GetMessage(hDlg, wParam, lParam)
select case Msg
CASE %WM_SYSCOMMAND
SELECT CASE wParam
CASE %SC_CLOSE
EXIT WHILE
END SELECT
END SELECT
wend
DIALOG END hDlg
I might be making a mistake but if I am I can't find it.
Thanks
Sandy