We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possible new tip from extra/Topelina Tips.odt
extra/Topelina Tips.odt
Creating a roll up form (with animation).
Here's a handy piece of code that will create a roll-down and roll-up effect for a form object when a user right-clicks its title bar:
type TForm1 = class(TForm) private fOldClientHeight: Integer; procedure WMNCRButtonDown(var Msg: TWMNCRButtonDown) ; message WM_NCRBUTTONDOWN; public end; var Form1: TForm1; implementation {$R *.dfm} procedure TForm1.WMNCRButtonDown(var Msg: TWMNCRButtonDown) ; var h : integer; begin if (Msg.HitTest = HTCAPTION) then begin if (ClientHeight = 0) then begin for h := 0 to fOldClientHeight do ClientHeight := h; Application.ProcessMessages; end else begin fOldClientHeight := ClientHeight; for h := fOldClientHeight downto 0 do ClientHeight := h; Application.ProcessMessages; end; end; end;
Contributed by: topellina [email protected]
The text was updated successfully, but these errors were encountered:
delphidabbler
No branches or pull requests
Possible new tip from
extra/Topelina Tips.odt
formRolling
Creating a roll up form (with animation).
Here's a handy piece of code that will create a roll-down and roll-up effect for a form object when
a user right-clicks its title bar:
The text was updated successfully, but these errors were encountered: