AnimShowControl() -> AnimHideControl()?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #33099
    JohnBank
    Participant

    Hello,

    Thank you for your skins,thank you for your supportI have asked you anytime I faced a trouble using your components and you delivered the best ever support to me.However,I made myself a very handy function:

    CODE
    procedure FadeControls(ctrl:Array of TwinControl);
    var element:TwinControl;
    begin
      for element in ctrl do
      begin
        PrepareForAnimation(element);
        element.Visible := true;
        AnimShowControl(element,250);
      end;
    end;

    It shows the controls in 'ctrl' one by one and it looks cool after all.

    #39844
    Support
    Keymaster

    Hello
    Hiding will be possible in the next release I think by using a function like this :

    CODE
    procedure FadeControls(ctrl : Array of TwinControl; IsVisible : boolean);
    var element : TwinControl;
    begin
      for element in ctrl do
      begin
        PrepareForAnimation(element);
        element.Visible := IsVisible;
        AnimShowControl(element, 250);
      end;
    end;

    #39893
    JohnBank
    Participant

    QUOTE (Support @ Jul 10 2009, 08:44 AM)
    Hello
    Hiding will be possible in the next release I think by using a function like this :

    CODE
    procedure FadeControls(ctrl : Array of TwinControl; IsVisible : boolean);
    var element : TwinControl;
    begin
      for element in ctrl do
      begin
        PrepareForAnimation(element);
        element.Visible := IsVisible;
        AnimShowControl(element, 250);
      end;
    end;


    I have another question.Delphi VCL isn't thread safe and I can't do it with original delphi VCL,so I ask about your controls:

    Can I create a thread for each control in the loop so the gui doesn't freeze when I call the function? When I call the function with two controls,it freezes for 500 ms.

    Could you add this in the next release too? <img src="style_emoticons//wub.gif” style=”vertical-align:middle” emoid=”:wub:” border=”0″ alt=”wub.gif” />

    #39904
    JohnBank
    Participant

    6.40 stable just got released.

    Tell me did you add the feature? Please say “yes”. <img src="style_emoticons//a3.gif” style=”vertical-align:middle” emoid=”:a3:” border=”0″ alt=”a3.gif” />

    #39915
    Support
    Keymaster

    Yes <img src="style_emoticons//smile.gif” style=”vertical-align:middle” emoid=”:)” border=”0″ alt=”smile.gif” />

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.