Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2006
    Location
    UK SouthWest
    Posts
    420

    Dynamic button control

    Hi , ive just about finished my commandline plugin for resizing buttons except ive only just realised that refreshing the screen doesn't reload the buttons. Is there any way around this?
    Last edited by clueless; 08-09-2008 at 12:20 PM.

  2. #2
    Join Date
    Oct 2007
    Location
    Gensokyo
    Posts
    1,324
    Application.SetRedraw

    Page.Redraw

    doesnt work?

  3. #3
    Join Date
    Jun 2006
    Location
    UK SouthWest
    Posts
    420
    No, ive tried
    Code:
    Application.SetRedraw(true);
    
    Page.Redraw();
    
    Window.SetMask(Application.GetWndHandle(), "AutoPlay\\Images\\630_14.png", false, 0);
    and getting the page to jump to itself.

    ..and none of them reloads the buttons.
    Last edited by clueless; 08-09-2008 at 03:32 PM.

  4. #4
    Join Date
    May 2006
    Posts
    5,380
    you need to send a WM_PAINT message to the button, as we can not get the handle of a button thats going to be quite hard

    can you not just reload the button file into the button and make it refresh that way ?
    Open your eyes to Narcissism, Don't let her destroy your life!!

  5. #5
    Join Date
    Jun 2006
    Location
    UK SouthWest
    Posts
    420
    Ah ha

    Code:
    Button.SetProperties("Button1", {ButtonFile="AutoPlay\\Buttons\\Untitled.btn"});
    seems to do the job nicely.

  6. #6
    Join Date
    May 2006
    Posts
    5,380

    Lightbulb

    glad to be of service , lol
    Open your eyes to Narcissism, Don't let her destroy your life!!

Similar Threads

  1. 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
  2. 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
  3. Pass control back to button script from a listbox
    By Mango in forum AutoPlay Media Studio 5.0
    Replies: 6
    Last Post: 02-28-2007, 10:07 AM
  4. Button control statements
    By stevequest in forum AutoPlay Media Studio 6.0
    Replies: 2
    Last Post: 09-25-2006, 01:00 AM
  5. 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

Posting Permissions

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