parent
65ade2d828
commit
26b74435fb
|
|
@ -1627,8 +1627,8 @@ type TVclDesigner = class(tvcform)
|
||||||
wnd.OnDesignClick := thisfunction(ClickComponent);
|
wnd.OnDesignClick := thisfunction(ClickComponent);
|
||||||
wnd.OnDesigndblClick := thisfunction(DBLClickComponent);
|
wnd.OnDesigndblClick := thisfunction(DBLClickComponent);
|
||||||
wnd.OnDesignrClick := thisfunction(RClickComponent);
|
wnd.OnDesignrClick := thisfunction(RClickComponent);
|
||||||
wnd.onmove := thisfunction(ComponentMove);
|
//wnd.onmove := thisfunction(ComponentMove);
|
||||||
wnd.onsize := thisfunction(ComponentSize);
|
//wnd.onsize := thisfunction(ComponentSize);
|
||||||
//wnd.Onclose := thisfunction(CompClose); //Ö»ÊǺöÂÔ
|
//wnd.Onclose := thisfunction(CompClose); //Ö»ÊǺöÂÔ
|
||||||
wnd.Onclose := function(o,e)begin
|
wnd.Onclose := function(o,e)begin
|
||||||
e.skip := true;
|
e.skip := true;
|
||||||
|
|
@ -7037,6 +7037,39 @@ type TPropGrid = class(TTSLDataGrid)
|
||||||
end
|
end
|
||||||
end }
|
end }
|
||||||
end
|
end
|
||||||
|
function Notification(o,op);override;
|
||||||
|
begin
|
||||||
|
inherited;
|
||||||
|
if HandleAllocated() and ifarray(op) and (op["type"]="possize") and (FComponent is class(TDComponent)) and (FComponent.Cwnd = o) then
|
||||||
|
begin
|
||||||
|
dt := TSLData;
|
||||||
|
|
||||||
|
flg := op["flag"];
|
||||||
|
if ifarray(dt) then
|
||||||
|
begin
|
||||||
|
for i,v in mrows(dt,1) do
|
||||||
|
begin
|
||||||
|
if (flg .& 1) and v="left" then
|
||||||
|
begin
|
||||||
|
CellChanged(i,1,"value",op["data"][0]);
|
||||||
|
end
|
||||||
|
if (flg .& 2) and v="top" then
|
||||||
|
begin
|
||||||
|
CellChanged(i,1,"value",op["data"][1]);
|
||||||
|
end
|
||||||
|
if (flg .& 4) and v="width" then
|
||||||
|
begin
|
||||||
|
CellChanged(i,1,"value",op["data"][2]);
|
||||||
|
end
|
||||||
|
if (flg .& 8) and v="height" then
|
||||||
|
begin
|
||||||
|
CellChanged(i,1,"value",op["data"][3]);
|
||||||
|
end
|
||||||
|
end
|
||||||
|
return 1;
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
function SetGridValue(index,d,o);
|
function SetGridValue(index,d,o);
|
||||||
begin
|
begin
|
||||||
if (FComponent is class(TDComponent)) and FComponent.Cwnd = o then
|
if (FComponent is class(TDComponent)) and FComponent.Cwnd = o then
|
||||||
|
|
|
||||||
|
|
@ -1395,7 +1395,7 @@ type tcontrol = class(tcomponent)
|
||||||
obj := class(tUIglobalData).uigetdata("tuiapplication");
|
obj := class(tUIglobalData).uigetdata("tuiapplication");
|
||||||
if obj then
|
if obj then
|
||||||
begin
|
begin
|
||||||
obj.Notification(self(true),array("type":"possize","flag",rchange,"data":array(fleft,ftop,FWidth,FHeight)));
|
obj.Notification(self(true),array("type":"possize","flag":rchange,"data":array(fleft,ftop,FWidth,FHeight)));
|
||||||
end
|
end
|
||||||
//echo "\r\n note change mtoc:",caption,"===",mtoc;
|
//echo "\r\n note change mtoc:",caption,"===",mtoc;
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue