Two small (but annoying) problems with dialog editing

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
User avatar
Phil Pendlebury
Automation Wizard
Posts: 538
Joined: Tue Jan 16, 2007 9:00 am
Contact:

Two small (but annoying) problems with dialog editing

Post by Phil Pendlebury » Wed Apr 04, 2007 1:11 am

Steps to repro:

1. Make a dialog box with a set of radio buttons radio.
2. Name the radio buttons anything you want. (Here is an example):

Code: Select all

RadioGroup=msRadioGroup1,Set Locators To,224,88,121,145,Manually Set%CRLF%All Project%CRLF%Parts on Tracks%CRLF%Start to Last Part%CRLF%Separate Parts,deflocate
3. Notice that my radio group has a default value of "deflocate" because this value is read from an ini file.

4. Edit the dialog graphically. Move a box around or something.

5. Re-paste the code to your script.

Notice the "deflocate" has been replaced with a 0? Happens every time I edit my dialog. And as you know when designing dialogs it needs to be edited many, many times.

---------

1. Make a dialog and edit it (not graphically)

2. Insert a logo like:

Code: Select all

Image=%SCRIPT_DIR%\graphics\sxspecial.ico,16,16,33,33
3. Edit the dialog graphically. Move a box around or something.

5. Re-paste the code to your script.

Notice that the Image is now something completely different? In my case:

Code: Select all

Image=,0,0,105,105
Is it only me having this trouble?

:)
Phil Pendlebury - Linktree

User avatar
Rain
Automation Wizard
Posts: 550
Joined: Tue Aug 09, 2005 5:02 pm
Contact:

Post by Rain » Thu Apr 05, 2007 2:33 pm

I'm having the same problems.

User avatar
Phil Pendlebury
Automation Wizard
Posts: 538
Joined: Tue Jan 16, 2007 9:00 am
Contact:

Post by Phil Pendlebury » Sun Apr 08, 2007 1:03 am

Not meaning to be a pain but Marcus have you any comments on this?

:)
Phil Pendlebury - Linktree

User avatar
Phil Pendlebury
Automation Wizard
Posts: 538
Joined: Tue Jan 16, 2007 9:00 am
Contact:

Post by Phil Pendlebury » Tue Apr 24, 2007 8:26 am

Honestly I can live with this bit would just like to know at least if Marcus has seen it.

Have I done something wrong?

:oops:
Phil Pendlebury - Linktree

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

Post by Marcus Tettmar » Tue Apr 24, 2007 8:36 am

The dialog designer is unable to use variables at design time, because these don't have values until run time. Therefore at design time these values can only be seen as zero.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

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