Dialog Designer Info

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
fthomas
Pro Scripter
Posts: 91
Joined: Fri Oct 03, 2008 6:40 pm

Dialog Designer Info

Post by fthomas » Tue Nov 09, 2010 3:52 pm

Good day!

I've been getting more involved with the mjtnet products and I've been trying to learn more about using the Dialog Designer. In particular, is there any way to modify the text labels to display the text in a different size or color to differientiate from other stuff.

Also, some dialog designer (and beyond) tutorials in general?

Thanks very much,

Frank

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Tue Nov 09, 2010 4:38 pm

To modify the size/color etc of text labels, click on the label in question and then in the properties editor (shown to the left of the main dialog) alter the font and color settings (etc).
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

fthomas
Pro Scripter
Posts: 91
Joined: Fri Oct 03, 2008 6:40 pm

Post by fthomas » Tue Nov 09, 2010 6:16 pm

Hi Marcus,

Is this specific to version 12? I'm still running 11.

Frank

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Tue Nov 09, 2010 6:31 pm

Yes, sorry.

V11 dialogs were very basic and you could not change the font size/style etc of an object at design time but you can use SetDialogObjectFont and SetDialogObjectColor.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

fthomas
Pro Scripter
Posts: 91
Joined: Fri Oct 03, 2008 6:40 pm

Post by fthomas » Thu Nov 11, 2010 1:58 am

No issues, decided to upgrade to version 12. Marcus, do you have any good posts on using the dialogs designer?

Also, is there a way to keep a master dialog open throughout the running of a macro?

Frank

sarver311
Pro Scripter
Posts: 84
Joined: Tue Jun 17, 2008 6:37 pm

Post by sarver311 » Thu Nov 18, 2010 4:26 pm

Hey Fthomas,

Do you just want a dialog to appear and then in the background your script runs? If so if your dialog name was dialog1 you would use this command.

Code: Select all


show>dialog1
If you want your dialog to appear and halt the script until you put some sort of input into your dialog or press buttons etc. You'll want to use this.

Code: Select all


show>dialog1,r
With that second method, the script will not continue until the dialog is either closed or a modalresult is returned via button. In MS12 dialogs you'll notice a property for buttons called modalresult. If you a put a value in there (anything above 0) then anytime that button is clicked it returns that modalresult value to the dialog and then it will close and the script will continue.

That's kind of a generalization but hopefully you get the idea, if you any other questions let me know.

-Josh

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts