Jump to content

hide TContainerpanel on scroll down, show on scroll up..


erich.wanker

Recommended Posts

can someone translate this to javascript - please 😉

display_panel = Tuniscrollbox
toppanel = TUniContainerpanel

 

procedure TMainForm.display_panelScrollChange(Sender: TComponent; const X,
  Y: Integer);
begin
new_y:=y;
if  old_y  <  new_y then toppanel.top := -125 else toppanel.top :=0;
old_y:= new_y;
end;

 

..i want to hide header on scroll down, show on scroll up ...

 my delphi code works like i want  .. but my code workes just after a time-delay and that is not nice 😉

 

ThanX

Erich

Link to comment
Share on other sites

Hello, 

1 hour ago, erich.wanker said:

my delphi code works like i want  .. but my code workes just after a time-delay and that is not nice 😉

How can we check? 🙂

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...