Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dialog with Combolist
#3
hey i have this so far... it works kind of lol wen i click one of the three in the drop down list it opens them all? can i make it so it just opens the one i click?

Websites2

Code:
Copy      Help
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages

BEGIN DIALOG
0 "" 0x90C80A44 0x100 0 0 223 135 "Website's"
1 Button 0x54030001 0x4 48 114 48 14 "OK"
2 Button 0x54030000 0x4 120 114 48 14 "Cancel"
4 ComboBox 0x54230243 0x0 58 52 96 213 ""
3 Button 0x54020007 0x0 52 6 108 100 "Website's"
END DIALOG
DIALOG EDITOR: "" 0x202000A "" ""

ret
messages
if(message=WM_INITDIALOG) DT_Init(hDlg lParam)
int param=DT_GetParam(hDlg)

sel message
    case WM_INITDIALOG
    ret 1
    case WM_DESTROY DT_DeleteData(hDlg)
    case WM_COMMAND goto messages2
ret
messages2
sel wParam
    case CBN_SELENDOK<<16|4
    _i=CB_SelectedItem(lParam)
    mac "GOOGLE"
    mac "UWE"
    mac "IE"
    
    case IDOK DT_Ok hDlg
    case IDCANCEL DT_Cancel hDlg
ret 1

Macro

Code:
Copy      Help
str controls = "4"
str cb4
cb4= "www.google.com[]www.quickmacros.com[]www.yahoo.com"
if(!ShowDialog("Websites2" &Websites2 &controls)) ret


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)