Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
help with dialog plz
#1
ok im doing yahoo pool and i made functions to auto e-mail my team mates and im working on a dialog box im new to it but i have 10 functions ...and i made the dialog box with 10 buttons ...how do i get it to trigger the functions to the buttons ???

BEGIN DIALOG
0 "" 0x90C80A44 0x100 0 0 337 59 "U.S.A Pool Turneys"
1 Button 0x54030001 0x4 6 6 48 14 "rick"
3 Button 0x54013003 0x0 36 22 48 14 "net"
4 Button 0x54013003 0x0 62 6 48 14 "cris"
5 Button 0x54013003 0x0 92 22 48 14 "karina"
6 Button 0x54013003 0x0 118 6 48 14 "karena"
7 Button 0x54013003 0x0 148 22 48 14 "kely"
8 Button 0x54013003 0x0 174 6 48 14 "james"
9 Button 0x54013003 0x0 204 22 48 14 "jason"
10 Button 0x54013003 0x0 230 6 48 14 "george"
#2
THIS IS JUST AN EXAMPLE OF WHERE TO PUT IT:

Quote:BEGIN DIALOG
0 "" 0x90C80A44 0x100 0 0 337 59 "U.S.A Pool Turneys"
1 Button 0x54030001 0x4 6 6 48 14 "rick"
3 Button 0x54013003 0x0 36 22 48 14 "net"
4 Button 0x54013003 0x0 62 6 48 14 "cris"
5 Button 0x54013003 0x0 92 22 48 14 "karina"
6 Button 0x54013003 0x0 118 6 48 14 "karena"
7 Button 0x54013003 0x0 148 22 48 14 "kely"
8 Button 0x54013003 0x0 174 6 48 14 "james"
9 Button 0x54013003 0x0 204 22 48 14 "jason"
10 Button 0x54013003 0x0 230 6 48 14 "george"

This is somewhat hard to give an exact answer when you don't supply the whole dialog, but you can see if this works.


Code:
Copy      Help
ret
;messages
sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case 1
,,mac "rick"
,case 3
,,mac "net"
,case 4
,,mac "cris"
,case 5
,,mac "karina"
,case 6
,,mac "karena"
,case 7
,,mac "kely"
,case 8
,,mac "james"
,case 9
,,mac "jason"
,case 10
,,mac "george"
,,
,case IDOK
,case IDCANCEL
ret 1
Taking on Quick Macros one day at a time


Forum Jump:


Users browsing this thread: 2 Guest(s)