Autor Beitrag
mimi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3458

Ubuntu, Win XP
Lazarus
BeitragVerfasst: Do 10.06.04 08:35 
Hallo,
wie kann ich draufreagieren, wenn ein form pos geändet wird ????
ohne einen timer !!!


Moderiert von user profile iconPeter Lustig: Topic aus Sonstiges verschoben am Do 10.06.2004 um 11:12

_________________
MFG
Michael Springwald, "kann kein englisch...."
raziel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2453

Arch Linux
JS (WebStorm), C#, C++/CLI, C++ (VS2013)
BeitragVerfasst: Do 10.06.04 08:49 
Was besseres, als die WM_MOVE Message abzufangen, fällt mir grad nich ein:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
{...}
type
  TForm1 = class(TForm)
    Label1: TLabel;
    procedure MsgMove(var Msg: TMEssage); message WM_MOVE;
{...}
procedure TForm1.MsgMove(var Msg: TMessage);
begin
  label1.Caption := 'moved: ' + inttostr(Form1.Left);
end;

end.


raziel

_________________
JSXGraph
mimi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3458

Ubuntu, Win XP
Lazarus
BeitragVerfasst: Do 10.06.04 10:21 
was ist denn am besten:
die procedure in einem Timer einzugeben, oder die botschaft abzufangen, oder gibts noch mehr möglichkeiten ???

_________________
MFG
Michael Springwald, "kann kein englisch...."
raziel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2453

Arch Linux
JS (WebStorm), C#, C++/CLI, C++ (VS2013)
BeitragVerfasst: Do 10.06.04 10:27 
laut microsoft ist wohl die message-abfang-und-drauf-reagier-methode am besten, sonst hätten sie von vornherein ein polling-system dem message-system vorgezogen... :roll:
afaik gibts nur die zwei möglichkeiten:
  • interrupt (message)
  • polling (timer)


raziel

_________________
JSXGraph
mimi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3458

Ubuntu, Win XP
Lazarus
BeitragVerfasst: Fr 11.06.04 08:35 
danke.... dann nehme ich das mit der botschaft !!!

_________________
MFG
Michael Springwald, "kann kein englisch...."