Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2006
    Posts
    4

    hide button at run time

    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

  2. #2
    Join Date
    Jan 2006
    Posts
    4

    Screen Shot

    Help!!!!!!!!!!!!!!!!!!!!!!1
    Attached Images

  3. #3
    Join Date
    May 2000
    Location
    Indigo Rose Software
    Posts
    2,150
    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

  4. #4
    Join Date
    Jan 2006
    Posts
    4

    project file

    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.
    Attached Files

  5. #5
    Join Date
    Oct 2001
    Location
    Norway
    Posts
    939
    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?)

Similar Threads

  1. Example: Creating an on/off button to toggle background audio
    By Jonas DK in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 07-10-2004, 02:54 PM
  2. Controling Volume Settings at Run Time
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 10-03-2003, 01:08 PM
  3. access 2000 run time
    By jennersc in forum AutoPlay Media Studio 4.0
    Replies: 0
    Last Post: 07-31-2003, 12:09 PM
  4. Button Hiding Blues
    By Tezcatlipoca in forum AutoPlay Media Studio 4.0
    Replies: 5
    Last Post: 04-11-2003, 04:57 PM
  5. HOWTO: Make a Program Run Every Time the System Starts
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-01-2002, 09:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts