I’m trying to place a “pin” icon on all forms’ title bar, so users can save form-position.
For that I’d like to use a universal procedure (and not 58 different).
How to get the owner Form of a TsTitleButton at OnMouseUp procedure from “Sender: TObject” ?
TsTitleButton has no “.Owner”
procedure TFoForm.sSkinProvider1TitleButtons0MouseUp(Sender: TObject;
Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
begin
SaveMyFormsPosition( TForm(TsTitleButton( Sender ).??? ) );
(This code is just a trial, not the “universal” one yet.)
-
This topic was modified 3 years, 5 months ago by SzakiLaci.
-
This topic was modified 3 years, 5 months ago by SzakiLaci.