Hi All,
How can I modify a dialogbox window (type SdAskOptions) in the way that some of the check boxes would be grayed out unless other check box in the window is marked.
Thanks
Tal
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Dialog Box features
Started by
talzur
, May 02 2005 15:18
8 replies to this topic
Posted 03 May 2005 - 07:42
Yes you can just goto Dialogs in IDE choose SdAskOptions then right click and modify ...
Bonum initium est dimidium facti
Posted 03 May 2005 - 08:52
Thanks for the help !!!
the part in the IDE in which I can edit the dialog is known to me , but the question is how do I use the edited dialog or should it happen automatically by the IDE if it detect that a dialog which is in use has been modified
Thanks again to you all
the part in the IDE in which I can edit the dialog is known to me , but the question is how do I use the edited dialog or should it happen automatically by the IDE if it detect that a dialog which is in use has been modified
Thanks again to you all
Posted 03 May 2005 - 08:56
Hi again,
Another question is how can I control a checkbox or a radio button inside the dialog in the way that an event which happen in the script would enable/disable the checkbox/button (gray out).
Thanks
Another question is how can I control a checkbox or a radio button inside the dialog in the way that an event which happen in the script would enable/disable the checkbox/button (gray out).
Thanks
Posted 03 May 2005 - 08:57
It would happen automaticly ... when you call this dialog, but if you want to edit bahaivor of dialog the best way to do it is to create your own dialog.
Bonum initium est dimidium facti
Posted 03 May 2005 - 09:10
QUOTE (talzur @ 2005-05-03 08:56) |
Hi again, Another question is how can I control a checkbox or a radio button inside the dialog in the way that an event which happen in the script would enable/disable the checkbox/button (gray out). Thanks |
You shuold create new dialog that u need and write it's logic like this
Here is sample of some simple dialog ...
CODE |
#define BUTTON_NEXT 1 #define BUTTON_BACK 12 #define BUTTON_CANCEL 9 #define EDIT_USERNAME 1205 #define EDIT_PASSWORD 1206 #define EDIT_DOMAIN 1207 #define EDIT_CTRL 1208 #define SD_DLG_USER "DialogName"; function NUMBER SomeFunctionThatRepresentsUrDialog() BOOL bDone; STRING szDlg; NUMBER nCtrl, nReturn, nSdDlg; HWND hMSI; begin szDlg = SD_DLG_USER; if (EzDefineDialog( szDlg, ISUSER, "DialogName", 0 ) = DLG_ERR) then return -1; endif; bDone = FALSE; while (!bDone) nCtrl = WaitOnDialog(szDlg); switch (nCtrl) case DLG_INIT: case BUTTON_BACK: nReturn = BUTTON_BACK; bDone = TRUE; case BUTTON_NEXT: nReturn = BUTTON_NEXT; bDone = TRUE; case BUTTON_CANCEL: Do(EXIT); endswitch; endwhile; EndDialog(szDlg); ReleaseDialog(szDlg); return nCtrl; end; |
I think it's right ...
Bonum initium est dimidium facti
Posted 03 May 2005 - 12:18
Hello Again,
how can I control from the script the checkbox's properties besides his state ?
for example - if I want to change checkbox's status from grayout to visible how can it be done from the script ?
THANKS
how can I control from the script the checkbox's properties besides his state ?
for example - if I want to change checkbox's status from grayout to visible how can it be done from the script ?
THANKS
Posted 03 May 2005 - 14:29
I don't realy know but maybe something like this ...
CODE |
#define SOMECHEAKBOX 1205 #define SD_SOME_DIALOG "SomeDialog" szDlg = SD_SOME_DIALOG; CtrlSetState ( szDlg, SOMECHEAKBOX, BUTTON_CHECKED ); |
And if this wont help you then try out here
<Program files>\InstallShield X\Script\isrt\src\
there you can find all standart dialogs sources ...
Bonum initium est dimidium facti