Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2007
    Posts
    2

    Check box with command button

    Hello

    I am newbie to this app.

    I want to create a list of applications with check boxes and a command button.

    When the command button is clicked all the checked items should run one after another. How to do that?

  2. #2
    Join Date
    May 2006
    Posts
    5,380
    well, to start you would need to download these, checkbox and/or radio buttons
    http://www.indigorose.com/forums/sho...ighlight=radio

    make the buttons toggle buttons in the button settings and use the command "Button.GetState" to check weather the button is checked and use File.Run to install the file, set the wait for return to true to make the app wait for the file to install b4 installing the next file

    eg: you would use this code for each button (or check box)
    PHP Code:
    isBtn1Checked Button.GetState(Button1);
    if 
    isBtn1Checked == 1 then
    result 
    File.Run("AutoPlay\\Docs\\MyProg.exe"""""SW_SHOWNORMAL,true);
    end 
    you would need to edit the code to suit your needs, ie button name and file path and chacge isBtn(button number here)Checked

    hope it helps
    Last edited by RizlaUK; 01-09-2007 at 07:36 PM.
    Open your eyes to Narcissism, Don't let her destroy your life!!

  3. #3
    Join Date
    May 2006
    Posts
    5,380
    sorry for the double post guys but the edit button seems to have dissapeard (or im just so tired i cant see it)

    Lyria, i forgot to mention that you would put that code in your command button and use label objects next to the check boxes so the user knows what checkbox installs what program,

    again.....hope it helps
    Open your eyes to Narcissism, Don't let her destroy your life!!

  4. #4
    Join Date
    Jan 2007
    Posts
    2
    Thank you very much RizlaUK
    I am gonna try your nice suggestion.

Similar Threads

  1. Shortcuts Desktop, Check Box Screen
    By spidermanxp in forum Setup Factory 7.0
    Replies: 1
    Last Post: 07-13-2006, 02:20 PM
  2. Default check box value based on variable
    By Terry Rasmussen in forum Setup Factory 6.0
    Replies: 7
    Last Post: 02-27-2004, 02:08 PM
  3. HOWTO: Display Conditional Text Based Upon a List Box Selection
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-15-2002, 10:54 AM
  4. Packages and If Statements
    By Medlir in forum Setup Factory 6.0
    Replies: 4
    Last Post: 05-09-2002, 03:51 PM
  5. check box on finish screen
    By smarty in forum Setup Factory 6.0
    Replies: 3
    Last Post: 04-10-2002, 08:42 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