Jump to content
Fórum Script Brasil
  • 0

Movendo um Componente em Run-Time


Guest Bruna
 Share

Question

Guest Bruna

Movendo um Componente em Run-Time

No exemplo abaixo deve ser incluído um componente Button.

Para testar este exemplo mantenha a tecla CTRL pressionada

clique com o mouse no componente Button.

Feito isto, basta arrastar o componente Button para qualquer lado.

type

TForm1 = class(TForm)

Button1: TButton;

procedure Button1MouseDown(Sender: TObject; Button: TMouseButton;Shift: TShiftState; X, Y: Integer);

procedure Button1MouseMove(Sender: TObject; Shift: TShiftState; X,Y: Integer);

procedure Button1MouseUp(Sender: TObject; Button: TMouseButton;Shift: TShiftState; X, Y: Integer);

VEJA NA ÍNTEGRA EM www.tcsystems.com.br

TEM muita coisa interessante, confiram!!!

----------- Movido - Progr'amador --------------

Aki fica mais adequado. biggrin.gif

Edited by Progr'amador
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

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

Guest
Answer this question...

×   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.

 Share



  • Forum Statistics

    • Total Topics
      151k
    • Total Posts
      649.1k
×
×
  • Create New...