Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2005
    Posts
    16

    How to Add actions to a button!!!

    I've used this code to create a button"

    -- Button object properties table.
    tblBtnProps = {};
    tblBtnProps.ButtonFile = "AutoPlay\\Buttons\\1_313.btn";
    tblBtnProps.Text = "";
    tblBtnProps.FontName = "Verdana";
    tblBtnProps.FontSize = 15;
    tblBtnProps.FontWeight = FW_BOLD;
    tblBtnProps.FontItalic = false;
    tblBtnProps.FontStrikeout = false;
    tblBtnProps.FontScript = ANSI_CHARSET;
    tblBtnProps.FontAntiAlias = true;
    tblBtnProps.FontUnderline = false;
    tblBtnProps.XOffset = 0;
    tblBtnProps.YOffset = 0;
    tblBtnProps.Style = BTNSTYLE_STANDARD;
    tblBtnProps.ToggleState = BTN_TOGGLE_UP;
    tblBtnProps.Cursor = CURSOR_HAND;
    tblBtnProps.TooltipText = "";
    tblBtnProps.Y = 0;
    tblBtnProps.X = 0;
    tblBtnProps.Height = 54;
    tblBtnProps.Width = 198;
    tblBtnProps.Enabled = true;
    tblBtnProps.Visible = true;
    tblBtnProps.HighlightSound = SND_STANDARD;
    tblBtnProps.HighlightSoundFile = "";
    tblBtnProps.ClickSound = SND_STANDARD;
    tblBtnProps.ClickSoundFile = "";
    tblBtnProps.ColorNormal = Math.HexColorToNumber("FFFFFF");
    tblBtnProps.ColorHighlight = Math.HexColorToNumber("FFFFFF");
    tblBtnProps.ColorDown = Math.HexColorToNumber("FFFFFF");
    tblBtnProps.ColorDisabled = Math.HexColorToNumber("FFFFFF");
    tblBtnProps.Alignment = ALIGN_CENTER;
    Page.CreateObject(OBJECT_BUTTON, "Button1", tblBtnProps);

    How can I add actions to this button?

  2. #2
    Join Date
    Nov 2005
    Location
    Banned by moderator.
    Posts
    264
    http://indigorose.com/forums/showpos...89&postcount=2

    There is how to add actions, and is very simple.

Similar Threads

  1. Easy way to add Mute Button?
    By tranquilraven in forum AutoPlay Media Studio 5.0
    Replies: 1
    Last Post: 05-10-2005, 12:50 PM
  2. 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
  3. How do I add a working "Favorites" button to my Web Browser
    By JBS in forum AutoPlay Media Studio 5.0
    Replies: 3
    Last Post: 05-04-2004, 09:31 PM
  4. HOWTO: Add DirectX 8.1 Support to your Setup Factory 6.0 Installation
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-30-2002, 01:55 PM

Posting Permissions

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