Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] Very easy question...
#2
Solved
Function TEST1
Code:
Copy      Help
\Dialog_Editorstr dd=
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 224 136 "Dialog"
;3 ListBox 0x54230109 0x200 8 12 96 48 ""
;4 Button 0x54032000 0x0 124 16 48 14 "Button"
;1 Button 0x54030001 0x4 116 116 48 14 "OK"
;2 Button 0x54030000 0x4 168 116 48 14 "Cancel"
;END DIALOG
;DIALOG EDITOR: "" 0x2040800 "*" "" "" ""str controls = "3"
str lb3="Zero[]One[]Two"
if(!ShowDialog(dd &sub.DlgProc &controls)) ret
#sub DlgProc
function# hDlg message wParam lParam
sel message
,case WM_INITDIALOG,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case 4
,out
,str Selected_Item
,for _i 0 LB_GetCount(id(3 hDlg))
,,if(SendMessage(id(3 hDlg) LB_GETSEL _i 0) = 1)
,,,LB_GetItemText id(3 hDlg) _i &Selected_Item
,,,out "%s is selected" Selected_Item,case IDOK
,case IDCANCEL
ret 1


Messages In This Thread
[Solved] Very easy question... - by BK - 03-26-2019, 06:49 AM
RE: Very easy question... - by BK - 03-26-2019, 01:21 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)