This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Blanking out text in a Control
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 30, 2008
12:21 PM
Blanking out text in a Control
Installscript project.
I've added a third text box in the SdFinish dialog which adds additional information that I want. Works great.
But when I go to uninstall, that third text box appears. I do not want it there for the uninstall.
I understand that szMsg1 and szMsg2 are controllable from within the OnFirstUIAfter and OnMainUIAfter routines but how do I blank out the third box in the OnMainUIAfter?
I've added a third text box in the SdFinish dialog which adds additional information that I want. Works great.
But when I go to uninstall, that third text box appears. I do not want it there for the uninstall.
I understand that szMsg1 and szMsg2 are controllable from within the OnFirstUIAfter and OnMainUIAfter routines but how do I blank out the third box in the OnMainUIAfter?
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 30, 2008
02:23 PM
Have you tried something like this???
Here is how to use it...
function My_ControlVisible(hDlg, nControlID, bState)
number hCtrl;
begin
hCtrl = GetDlgItem(hDlg, nControlID);
if bState then
ShowWindow(hCtrl, SW_SHOW);
else
ShowWindow(hCtrl, SW_HIDE);
endif;
end;
Here is how to use it...
HWND hDlg;
STRING szDlg;
NUMBER ctrl_IDNumber;
begin
ctrl_IDNumber = 1201; // THis is the control ID of the object on the form.
szDlg = "MyDialogName"
hDlg = CmdGetHwndDlg(szDlg);
My_ControlVisible(hDlg, ctrl_IDNumber, TRUE );
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 30, 2008
03:48 PM
So is the dialog name I'm after called "SdFinish"?
I tried a quick test on the SdWelcome dialog and when I tried it to get the handle I got a -1 return to the call. (both before the appearance and while it was displayed).
How does one get the handle before it appears? If you can't, then won't there be a blip on the screen while you SW_HIDE the text box you want to hide?
I tried a quick test on the SdWelcome dialog and when I tried it to get the handle I got a -1 return to the call. (both before the appearance and while it was displayed).
How does one get the handle before it appears? If you can't, then won't there be a blip on the screen while you SW_HIDE the text box you want to hide?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 30, 2008
04:18 PM
I used this function in my custom dialogs that I made from scratch. I have code that creates the dialog and in doing that, I can get the dialog handle.
So I guess we should start as to how you added this text box to the SdFinish dialog?
So I guess we should start as to how you added this text box to the SdFinish dialog?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 30, 2008
06:12 PM
I just added a text box to the SdFinish dialog (DialogId_12032) and
called it ControlId_712 (Text).
In my project if you look at the String table it appears as
IDS_DialogId_12032_ControlId_712
I want it to appear when I do a regular install, which it does.
What I want to do is prevent it from showing up when the SdFinish dialog is called from a Remove or Uninstall.
Thoughts?
called it ControlId_712 (Text).
In my project if you look at the String table it appears as
IDS_DialogId_12032_ControlId_712
I want it to appear when I do a regular install, which it does.
What I want to do is prevent it from showing up when the SdFinish dialog is called from a Remove or Uninstall.
Thoughts?