PDA

View Full Version : Dynamix button control


clueless
08-09-2008, 01:05 PM
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?

ShadowUK
08-09-2008, 03:08 PM
Application.SetRedraw

Page.Redraw

doesnt work?

clueless
08-09-2008, 04:21 PM
No, ive tried
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.

RizlaUK
08-09-2008, 04:26 PM
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 ?

clueless
08-09-2008, 05:00 PM
Ah ha ;)

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

RizlaUK
08-09-2008, 06:07 PM
glad to be of service :yes, lol