PDA

View Full Version : Events in custom dialog



NewsArchive
12-29-2000, 01:00 AM
Btw, is is possible to avoid the IS6 engine being installed? Eg, if I want
to make sure that the footprint on the end computer is exactly as it was
before running InstallShield.

I'm asking this because I've made a couple of tiny utilities with
InstallShield 5.5 (easy way to get a nice wizard interface for dll's
originally made only to be used in code from other programs...) and I still
need to keep 5.5 around. Some of those utilities are used on "clean
installations" and the computer must remain clean once the utility is run.

If there is an easy way of avoiding the installation of the IS6 engine, I'd
be happy to be able to move all of those older scripts to IS6 as well.

SamiV.
--
sami.vanhatalo@madonion.com

"Myron Boisjoli" <Myron.Boisjoli@investorsgroup.com> wrote in message
news:01c07121$f2181d60$f60e4520@pcc49b.investorsgroup.com...
> If you want to "get rid" of IS6's event driven model, you can use the
> following:
>
> #include "ifx.h"
>
> program
>
> MessageBox("Hello World!", INFORMATION);
>
> endprogram
>
> If you like C, this is your main() function. If you like Pascal, this is
> your program...endprogram block. :)
> As soon as you put in program...endprogram block, the event driven model
is
> turned off. This was provided for backward compatibility, and it's a heck
> of a lot easier if you are experementing with individual functions.
>
> Note that you are now responsible for doing everything yourself now!
>
> Unfortunately, there is no local scope for the program...endprogram block.
> The only variables that could possibly be instantiated before the
> program...endprogram block would be global variables. If you dislike
> global variables as much as I do, there is a way around it. Try the
> following:
>
> #include "ifx.h"
>
> prototype main();
>
> program
> main();
> endprogram
>
> function main();
> {declare your local variables}
> begin
> {call whatever functions you would have done in the program...endprogram
> block}
> end;
>
> Voila! No more global variables.
>
> If you are having a hard time with the event driven model, take a look in
> the IS6 help under "Functions,, functions called automatically during an
> event-based setup". This is extremely helpful if IS6 is doing something
> you don't want it to. It lists what functions, and when they are called.
> I have it printed out and stuck to my wall.
>
> --
> ---------------------------------
> Myron Boisjoli B.Sc. (Comp Sci)
> Integration Group
> Investors Group Inc.
>
>
> Vilasack Phothisan <Vilasack_Phothisan@hotmail.com> wrote in article
> <3a4b5ba0$1@12.41.20.38>...
> > I want all the processing done by me not IS6. I want to control the
> > ComponentTransferData etc..
> >
> > how do I override the events and if I do does that prevent the default
> IS6
> > events from executing?
> >
> > I want to do all the data moving... how do I do this in IS6?
> >
> >
> >
> >

francesco
02-08-2002, 03:57 AM
Hi,

i have a custom dialog with a combobox and an editbox.
i want to validate choices in both controls by typing Enter with keyboard.
When i look to the events being catched by the dialog, i don't have Enter events coming from the combobox or editbox.
Thank you for your help.

moonsea
02-08-2002, 08:08 AM
You might check out the third-party tool InstallDialogue. It brings you more event notifications than plain InstallShield.