PDA

View Full Version : hide button at run time


jessewu
01-24-2006, 01:44 PM
hi

when i use setup factory, i have serveral screen,one is product screen, another one is path,
in product screen, i put three check box here
in path screen, i put three edit box with button here

in path screen pre-load , i check the product screen check box,to show editor box and button

pre-load script as following

if FMClient.Checked then
-- Do something here, they are not equal
DlgButton.SetProperties(CTRL_BUTTON_01, {Visible=true,Enable=true});
DlgStaticText.SetProperties(CTRL_STATICTEXT_LABEL_ 01, {Visible=true,Enable=true});
DlgEditField.SetProperties(CTRL_EDIT_01, {Visible=true,Enable=true});
else
DlgButton.SetProperties(CTRL_BUTTON_01, {Visible=false,Enable=false});
DlgStaticText.SetProperties(CTRL_STATICTEXT_LABEL_ 01, {Visible=false,Enable=false});
DlgEditField.SetProperties(CTRL_EDIT_01, {Visible=false,Enable=false});
end;

--FM Web site
if FMWeb.Checked and FMLive.Checked then
DlgButton.SetProperties(CTRL_BUTTON_02, {Visible=true,Enable=true});
DlgStaticText.SetProperties(CTRL_STATICTEXT_LABEL_ 02, {Visible=true,Enable=true});
DlgEditField.SetProperties(CTRL_EDIT_02, {Visible=true,Enable=true});
else
DlgButton.SetProperties(CTRL_BUTTON_02, {Visible=false,Enable=false});
DlgStaticText.SetProperties(CTRL_STATICTEXT_LABEL_ 02, {Visible=false,Enable=false});
DlgEditField.SetProperties(CTRL_EDIT_02, {Visible=false,Enable=false});
end;

if FMWeb.Checked and FMTraining.Checked then
DlgButton.SetProperties(CTRL_BUTTON_03, {Visible=true,Enable=true});
DlgStaticText.SetProperties(CTRL_STATICTEXT_LABEL_ 03, {Visible=true,Enable=true});
DlgEditField.SetProperties(CTRL_EDIT_03, {Visible=true,Enable=true});
else
DlgButton.SetProperties(CTRL_BUTTON_03, {Visible=false,Enable=false});
DlgStaticText.SetProperties(CTRL_STATICTEXT_LABEL_ 03, {Visible=false,Enable=false});
DlgEditField.SetProperties(CTRL_EDIT_03, {Visible=false,Enable=false});
end;


sometime the path screen is ok, when i only check one check box in product screen, sometimes the path screen show is mixed, one button cover whole window.

is here someone can help me?

thanks

jessewu
01-25-2006, 02:48 PM
Help!!!!!!!!!!!!!!!!!!!!!!1

Adam
01-25-2006, 03:04 PM
There is not much I can say from the code/expanation provided. Perhaps you could post a sample project that illustartes your issue?

Thanks

Adam Kapilik

jessewu
01-26-2006, 08:34 AM
1.run project
2.on Second Option window, first time only select one, then goto next window
3.first enter data window display is ok
4.back to second option window. check both checkbox, goto next window
5. error happen, the browse button cover whole window.

csd214
02-15-2006, 08:34 AM
Hi,

I have studied your project, and yes, it is a bit strange at runtime (depends on user acions). My problem: I don’t really understand what you want to achieve (I do not know the product you are going to install).

- You have two “Option” screens, each of them with four options (not identical)
- You have two “Enter Data” screens, each of them with three folder browse objects.

My best advice
- Make a note of the projects purpose
- “Translate” your description into SUF70 screens/actions
- Take care of variables (names, where defined, where to use)

Your subject is “hide button at run time”. Definitively, it *is* possible to hide a button at runtime (what button, which conditions?)