summaryrefslogtreecommitdiff
path: root/examples/apps
diff options
context:
space:
mode:
authordrewski207 <drewski207@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-03-22 00:16:23 +0000
committerdrewski207 <drewski207@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-03-22 00:16:23 +0000
commitd68f8093d13b87706ca774d903411aa4228d4588 (patch)
tree8aef10d4b8781779984deef62f306e6837f63276 /examples/apps
parent517e5e85cace58eb47c0092793711ba9bb7cde6d (diff)
downloadfpGUI-d68f8093d13b87706ca774d903411aa4228d4588.tar.xz
* Changed the ui designer to set msg.Stop for it's widgets events.
Diffstat (limited to 'examples/apps')
-rw-r--r--examples/apps/uidesigner/vfddesigner.pas7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/apps/uidesigner/vfddesigner.pas b/examples/apps/uidesigner/vfddesigner.pas
index c310439a..227e04bd 100644
--- a/examples/apps/uidesigner/vfddesigner.pas
+++ b/examples/apps/uidesigner/vfddesigner.pas
@@ -272,6 +272,7 @@ var
shift: boolean;
begin
// writeln('TFormDesigner.MsgMouseDown');
+ msg.Stop := True;
FDragging := True;
FWasDrag := False;
FDragPosX := msg.Params.mouse.x;
@@ -309,6 +310,7 @@ var
x, y: integer;
begin
// writeln('TFormDesigner.MsgMouseUp');
+ msg.Stop := True;
FDragging := False;
shift := (ssShift in msg.Params.mouse.shiftstate);
@@ -373,6 +375,7 @@ var
dx, dy: integer;
wgd: TWidgetDesigner;
begin
+ msg.Stop := True;
if not FDragging then
Exit;
@@ -403,6 +406,7 @@ begin
key := msg.params.keyboard.keycode;
ss := msg.params.keyboard.shiftstate;
+ msg.Stop := True;
consumed := False;
DesignerKeyPress(key, ss, consumed);
@@ -412,10 +416,12 @@ procedure TFormDesigner.MsgMove(var msg: TfpgMessageRec);
begin
if msg.dest = FForm then
UpdatePropWin;
+ msg.Stop := True;
end;
procedure TFormDesigner.MsgResize(var msg: TfpgMessageRec);
begin
+ msg.Stop := True;
if msg.dest = FForm then
begin
DeSelectAll; // because of the anchorings
@@ -1230,6 +1236,7 @@ end;
procedure TFormDesigner.MsgActivate(var msg: TfpgMessageRec);
begin
+ msg.Stop := True;
maindsgn.SelectForm(self);
end;