Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
question in dialog
#1
Hello, in this dialog

\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
str controls = "3 4"
str e3 lb4
lb4="test 1 one[]Test 2 two[]test 3 three"
if(!ShowDialog("temp2" &temp2 &controls)) ret
function# hDlg message wParam lParam
if(hDlg) goto messages

BEGIN DIALOG
0 "" 0x10C80A44 0x100 0 0 223 135 "Form"
1 Button 0x54030001 0x4 120 116 48 14 "OK"
2 Button 0x54030000 0x4 170 116 48 14 "Cancel"
3 Edit 0x54030080 0x200 2 2 218 14 ""
4 ListBox 0x54630581 0x8 2 18 218 42 ""
END DIALOG
DIALOG EDITOR: "" 0x2030208 "" "" ""

ret
messages
sel message
case WM_INITDIALOG DT_Init(hDlg lParam); ret 1
case WM_DESTROY DT_DeleteData(hDlg)
case WM_COMMAND goto messages2
ret
messages2
sel wParam
case LBN_SELCHANGE<<16|4
_i=LB_SelectedItem(lParam)
case EN_CHANGE<<16|3
SendMessage(id(4 hDlg) LB_SELECTSTRING -1 _s.getwintext(lParam))
case IDOK DT_Ok hDlg
case IDCANCEL DT_Cancel hDlg
ret 1

Is it possible to let the search also search for the second or further words? So if i type two, the second line is selected?

Thx in advance....


Forum Jump:


Users browsing this thread: 1 Guest(s)