Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 6 of 6

Thread: Dynamic buttons

  1. #1
    Join Date
    Jun 2007
    Posts
    2

    Dynamic buttons

    Dynamic load buttons, do not load correct size, why?.

    Page.CreateObject(OBJECT_IMAGE,"DianamicBut",nil);
    Button.SetProperties("DianamicBut", {ButtonFile=ButtAddress});

  2. #2
    Join Date
    May 2006
    Posts
    1,443
    try it with a whole Image properties table

    Code:
    tblImageProps = {};
    tblImageProps.ImageFile = "";
    tblImageProps.Height = 150;
    tblImageProps.Width = 150;
    tblImageProps.Y = 0;
    tblImageProps.X = 0;
    tblImageProps.UseTransColor = false;
    tblImageProps.TransparentColor = Math.HexColorToNumber("FFFFFF");
    tblImageProps.Opacity = 100;
    tblImageProps.Tolerance = 10;
    tblImageProps.HitTest = HITTEST_STANDARD;
    tblImageProps.Cursor = CURSOR_ARROW;
    tblImageProps.TooltipText = "";
    tblImageProps.Visible = true;
    tblImageProps.Enabled = true;
    tblImageProps.ResizeLeft = false;
    tblImageProps.ResizeRight = false;
    tblImageProps.ResizeTop = false;
    tblImageProps.ResizeBottom = false;
    tblImageProps.ClickSound = SND_NONE;
    tblImageProps.ClickSoundFile = "";
    tblImageProps.HighlightSound = SND_NONE;
    tblImageProps.HighlightSoundFile = "";
    
    Page.CreateObject(OBJECT_IMAGE,"DianamicBut",tblImageProps);
    or try this example
    http://www.indigorose.com/forums/sho...3&postcount=13

  3. #3
    Join Date
    Oct 2007
    Location
    Gensokyo
    Posts
    1,324
    Quote Originally Posted by JUKEX View Post
    Dynamic load buttons, do not load correct size, why?.

    Page.CreateObject(OBJECT_IMAGE,"DianamicBut",nil);
    Button.SetProperties("DianamicBut", {ButtonFile=ButtAddress});
    Don't you get it?

    You created an OBJECT_IMAGE but then you tried to set properties using Button.SetProperties.

  4. #4
    Join Date
    May 2006
    Posts
    5,380
    Code:
    Page.CreateObject(OBJECT_IMAGE,"DianamicBut",nil);
    Button.SetProperties("DianamicBut", {ButtonFile=ButtAddress});

    Don't you get it?
    lol, check your falgs!
    Open your eyes to Narcissism, Don't let her destroy your life!!

  5. #5
    Join Date
    May 2006
    Posts
    1,443
    oh my God , i must sleep more

    Code:
    if (reteset_slept == "1 hour") then 
    
         Reteset.Sleep("5 hours"); 
    end
    first i have seen this and thought so

    Code:
    Page.CreateObject(OBJECT_IMAGE,"DianamicBut",nil);

  6. #6
    Join Date
    Apr 2007
    Location
    Raalte, OV, Netherlands
    Posts
    3,287
    I know, can't sleep much either:P

    Code:
    Reteset.TemporalSlumber("AllNight");
    Bas Groothedde
    Imagine Programming :: Blog :: Familiar people here

    My AMS Plugins:

  7. #7
    Join Date
    Jun 2007
    Posts
    2

    Size of image button

    Button file (close.but):

    _manifest.xml
    imagebuttonup.png
    imagebuttondwn.png


    Size of image button 100 x 100


    When reading With Page.CreateObject(OBJECT_IMAGE,"DianamicBut",{Butt onFile=ButtAddress}), does not put the size of the image.
    The button properties is in _manifest.xml, ¿Is not true?, ¿Why no the load?.

Similar Threads

  1. i love buttons !
    By noonmoon in forum AutoPlay Media Studio 5.0
    Replies: 8
    Last Post: 01-15-2010, 05:05 AM
  2. Dynamic Button Control & Dynamic Image control: Coming soon
    By clueless in forum AutoPlay Media Studio 7.5
    Replies: 13
    Last Post: 08-05-2008, 08:32 PM
  3. Dynamic Button Control & Dynamic Image control: Coming soon
    By clueless in forum AutoPlay Media Studio 6.0
    Replies: 0
    Last Post: 08-03-2008, 12:40 PM
  4. Import buttons created by Fireworks 8?
    By edsager in forum AutoPlay Media Studio 6.0
    Replies: 1
    Last Post: 12-22-2006, 02:29 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