11-04-2006, 06:49 PM
Ok when I click on the button for my dialog to run the macro it will not run here is my dialog that i made so far. Just a quick one.
Running a certain macro from dialog
|
11-04-2006, 06:49 PM
Ok when I click on the button for my dialog to run the macro it will not run here is my dialog that i made so far. Just a quick one.
11-04-2006, 07:22 PM
Create smart dialog, click the button, click Events, OK and add the code there.
;\Dialog_Editor
11-04-2006, 07:37 PM
im not sure on what i am doing i tried to create a smart dialog except when i press the Minimize QM button it will not run the macro.
11-04-2006, 07:39 PM
Show all your code, ie dialog function and function or macro where is ShowDialog, and their names.
11-04-2006, 07:44 PM
Ok i have a dialog here is the code in the dialog
;\Dialog_Editor then i have a macro called Minimize QM the code in there is....... When I open the dialog from a nother function called Function which has the code to show the dialog, when I press Minimize QM i want it to run the macro Minimize QM.
11-04-2006, 07:47 PM
just insert case 3 mac ..., like in example.
11-04-2006, 07:51 PM
do i insert that in the dialog or the function that shows the dialog?
11-04-2006, 07:55 PM
ok sorry for asking so many questions just kind of new and not understanding i will try.
11-04-2006, 08:05 PM
ok i finally got it but now i add another macro and when i want that macro to run it will run Minimize QM and the second macro is Help which runs to the qm forum? help
11-04-2006, 08:10 PM
If you have 2 buttons, add similar code for each of them. Example:
... ,case 3 ,mac "macro1" ,case 4 ,mac "macro2"
11-04-2006, 08:13 PM
i tried it and it said case without sel. in the qm output i am putting this in the function that shows the dialog correct?
11-04-2006, 10:10 PM
Nevermind I finally figured out ty for your help Gin appriciate it!
|
« Next Oldest | Next Newest »
|