-
Dialog IDs
Hi Friedrich,
One of the things that bugs me somethings are the Dialog IDs. The problem
is if you have code inside the "Loop Wizard" structure that looks like:
If %_SB_DIALOGID% Equals "5" Then
! Whatever
End
The problem comes up if you move things around in the user interface so now
the Dialog 5 is number 6. You then have to go through the code and make
sure that the IDs in your code now reflect the changes in the dialog order.
If the dialogs could be named instead of the IDE assigning numbers to them
it would help a great deal to avoid problems. Since I have code in the
wizard loop in just about every install I have, I very often run into the
"Arghhh, forgot to change the number in the IF statement" scenario.
Am I missing a better way to deal with this?
Best regards,
--
Arnór Baldvinsson - Icetips Creative, Inc.
Port Angeles, Washington
www.icetips.com - www.buildautomator.com
Icetips product subscriptions at http://www.icetips.com/subscribe.php
-
Re: Dialog IDs
Yes you are.
Name them!
The trick is that they become compiler constants.
For an illustration with a few screen shots, see my post of 7/22/08 in the
"Loop wizard and validation code" thread.
jf
-
Re: Dialog IDs
> Yes you are.
> Name them!
> The trick is that they become compiler constants.
>
> For an illustration with a few screen shots, see my post of 7/22/08 in the
> "Loop wizard and validation code" thread.
Great minds...
:-)
Charles
--
-------------------------------------------------------------------------------------------------------
Charles Edmonds
www.ezchangelog.com - "Free ChangeLog software to manage your projects!"
www.setupcast.com - "A revolutionary new publishing system for software
developers - enhanced for SetupBuilder users!"
www.pagesnip.com - "Print and Save the Web, just the way you want it!"
www.clarionproseries.com - "Serious imaging tools for Clarion Developers"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms!"
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------
-
Re: Dialog IDs
You should be scared, Charles...
VERY scared <g>
Jane Fleming
-
Re: Dialog IDs
> You should be scared, Charles...
> VERY scared <g>
LOL - well as long as one of us has a finger on the trigger...
:-)
Charles
--
-------------------------------------------------------------------------------------------------------
Charles Edmonds
www.ezchangelog.com - "Free ChangeLog software to manage your projects!"
www.setupcast.com - "A revolutionary new publishing system for software
developers - enhanced for SetupBuilder users!"
www.pagesnip.com - "Print and Save the Web, just the way you want it!"
www.clarionproseries.com - "Serious imaging tools for Clarion Developers"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms!"
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------
-
Re: Dialog IDs
"finger outside the trigger guard until sights are on target!" <g>
Jane Fleming
-
Re: Dialog IDs
> "finger outside the trigger guard until sights are on target!" <g>
But of course<g>
Charles
--
-------------------------------------------------------------------------------------------------------
Charles Edmonds
www.ezchangelog.com - "Free ChangeLog software to manage your projects!"
www.setupcast.com - "A revolutionary new publishing system for software
developers - enhanced for SetupBuilder users!"
www.pagesnip.com - "Print and Save the Web, just the way you want it!"
www.clarionproseries.com - "Serious imaging tools for Clarion Developers"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms!"
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------
-
4 Attachment(s)
Re: Dialog IDs
The pics are small enough that I'll just post them again.
jf
-
Re: Dialog IDs
Hi Jane,
> Yes you are.
> Name them!
> The trick is that they become compiler constants.
>
> For an illustration with a few screen shots, see my post of 7/22/08 in the
> "Loop wizard and validation code" thread.
THANK YOU! This has been a source of problems during testing in various
installs, but never enough to make me ask!
Best regards,
--
Arnór Baldvinsson - Icetips Creative, Inc.
Port Angeles, Washington
www.icetips.com - www.buildautomator.com
Icetips product subscriptions at http://www.icetips.com/subscribe.php
-
2 Attachment(s)
Re: Dialog IDs
> If the dialogs could be named instead of the IDE assigning numbers to them
> it would help a great deal to avoid problems. Since I have code in the
> wizard loop in just about every install I have, I very often run into the
> "Arghhh, forgot to change the number in the IF statement" scenario.
>
> Am I missing a better way to deal with this?
Hi Arnor,
Just set the "Dialog Label" on the Advanced Tab and you can then refer to
it by that name rather than the (default) number.
See attached.
Does that help?
Charles
--
-------------------------------------------------------------------------------------------------------
Charles Edmonds
www.ezchangelog.com - "Free ChangeLog software to manage your projects!"
www.setupcast.com - "A revolutionary new publishing system for software
developers - enhanced for SetupBuilder users!"
www.pagesnip.com - "Print and Save the Web, just the way you want it!"
www.clarionproseries.com - "Serious imaging tools for Clarion Developers"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms!"
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------