编辑器

优化
This commit is contained in:
JianjunLiu 2023-05-08 10:02:04 +08:00
parent cbeee269d4
commit bffdec23d9
2 changed files with 19 additions and 19 deletions

View File

@ -5624,23 +5624,23 @@ type TListPages=class(TListBox)
Visible := false; Visible := false;
WsPopUp := true; WsPopUp := true;
end end
function PaintIdx(idx,rc_,cvs);override; // function PaintIdx(idx,rc_,cvs);override;
begin // begin
{** // {**
@explan(说明)绘制项 %% // @explan(说明)绘制项 %%
@param(item)(TCustomListItem) 项 %% // @param(item)(TCustomListItem) 项 %%
@param(rc)(array) 绘制区域%% // @param(rc)(array) 绘制区域%%
@param(cvs)(tcanvas) 画布 %% // @param(cvs)(tcanvas) 画布 %%
**} // **}
inherited; // inherited;
if idx=getCurrentSelection()then // if idx=getCurrentSelection()then
begin // begin
rc := rc_; // rc := rc_;
rc[2:3]-= 1; // rc[2:3]-= 1;
cvs.pen.Color := rgb(30,144,255); // cvs.pen.Color := rgb(30,144,255);
cvs.draw("Polyline",array(rc[0:1],(rc[2],rc[1]),(rc[2],rc[3]),(rc[0],rc[3]),rc[0:1])); // cvs.draw("Polyline",array(rc[0:1],(rc[2],rc[1]),(rc[2],rc[3]),(rc[0],rc[3]),rc[0:1]));
end // end
end // end
function MouseUp(o,e);override; function MouseUp(o,e);override;
begin begin
inherited; inherited;
@ -5676,7 +5676,7 @@ type TListPages=class(TListBox)
function GetSelFileName(); function GetSelFileName();
begin begin
r := GetItem(getCurrentSelection()); r := GetItem(getCurrentSelection());
if pos("*",r)then if r and pos("*",r)then
begin begin
return r[2:]; return r[2:];
end end

View File

@ -146,7 +146,7 @@ type tgraphiccontrol = class(TControl)
return 1; return 1;
end end
end end
function CMCursorChanged(var Message:TLMessage):CM_CURSORCHANGED;override; function CMCursorChanged(o:tgraphiccontrol;var Message:TLMessage):CM_CURSORCHANGED;override;
begin begin
inherited; inherited;
end end