parent
759e06ea4a
commit
9203ab6a08
|
|
@ -1484,13 +1484,6 @@ type TRadioGroupBox=class(TGroupbox)
|
||||||
begin
|
begin
|
||||||
return FGrid.Font;
|
return FGrid.Font;
|
||||||
end
|
end
|
||||||
function SetControlFont(v);override;
|
|
||||||
begin
|
|
||||||
if FGrid then
|
|
||||||
begin
|
|
||||||
FGrid.font := v;
|
|
||||||
end
|
|
||||||
end
|
|
||||||
function rctoindex(i,j);
|
function rctoindex(i,j);
|
||||||
begin
|
begin
|
||||||
if FColumnLayout=pstHorizontal then return i * Columns+j;
|
if FColumnLayout=pstHorizontal then return i * Columns+j;
|
||||||
|
|
@ -1566,6 +1559,7 @@ type TRadioGroupBox=class(TGroupbox)
|
||||||
FColumnLayout := pstHorizontal;
|
FColumnLayout := pstHorizontal;
|
||||||
border := true;
|
border := true;
|
||||||
FGrid := new TDrawGrid(self);
|
FGrid := new TDrawGrid(self);
|
||||||
|
FGrid.ParentFont := true;
|
||||||
FGrid.border := false;
|
FGrid.border := false;
|
||||||
FGrid.ColumnHeader := false;
|
FGrid.ColumnHeader := false;
|
||||||
FGrid.GridLine := false;
|
FGrid.GridLine := false;
|
||||||
|
|
|
||||||
|
|
@ -695,7 +695,8 @@ type TCustomMemo = class(TCustomScrollControl,TCustomMemoCmd) //
|
||||||
static smNormal,smLine,smColumn;
|
static smNormal,smLine,smColumn;
|
||||||
//****************
|
//****************
|
||||||
protected
|
protected
|
||||||
function SetControlFont(v);override;
|
|
||||||
|
{function SetControlFont(v);override;
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
FCharWidth := Font.width;
|
FCharWidth := Font.width;
|
||||||
|
|
@ -703,7 +704,7 @@ type TCustomMemo = class(TCustomScrollControl,TCustomMemoCmd) //
|
||||||
FCharHeight := Font.Height;
|
FCharHeight := Font.Height;
|
||||||
fTextHeight := FCharHeight+FLineInterval;
|
fTextHeight := FCharHeight+FLineInterval;
|
||||||
UpDateScroll();
|
UpDateScroll();
|
||||||
end
|
end}
|
||||||
function GetClientXCapacity();override; //宽度容量
|
function GetClientXCapacity();override; //宽度容量
|
||||||
begin
|
begin
|
||||||
return integer(ClientRect[2]/GetXScrollDelta());
|
return integer(ClientRect[2]/GetXScrollDelta());
|
||||||
|
|
@ -1652,6 +1653,16 @@ type TCustomMemo = class(TCustomScrollControl,TCustomMemoCmd) //
|
||||||
@param(GutterCharCnt)(integer) 行号的宽度%%
|
@param(GutterCharCnt)(integer) 行号的宽度%%
|
||||||
**}
|
**}
|
||||||
public
|
public
|
||||||
|
function FontChanged(o);override;
|
||||||
|
begin
|
||||||
|
inherited;
|
||||||
|
FCharWidth := Font.width;
|
||||||
|
FGutter.Width := (5*(FGutterCharCount>0))+FGutterCharCount * FCharWidth+1;
|
||||||
|
FCharHeight := Font.Height;
|
||||||
|
fTextHeight := FCharHeight+FLineInterval;
|
||||||
|
ReCreateCaret();
|
||||||
|
UpDateScroll();
|
||||||
|
end
|
||||||
function UpDateCaret(); //更新光标
|
function UpDateCaret(); //更新光标
|
||||||
begin
|
begin
|
||||||
if IsUpDating()then return fForceCaret := true;
|
if IsUpDating()then return fForceCaret := true;
|
||||||
|
|
@ -4322,10 +4333,6 @@ type TSynMemoNorm = class(TsynCustomMemo) //
|
||||||
font := array("width":fw+1,"height":font.height+2);
|
font := array("width":fw+1,"height":font.height+2);
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if flg then
|
|
||||||
begin
|
|
||||||
ReCreateCaret();
|
|
||||||
end
|
|
||||||
e.skip := true;
|
e.skip := true;
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2157,6 +2157,7 @@ type TcustomCanvas = class(TSLUIBASE)
|
||||||
FCounter;
|
FCounter;
|
||||||
FTabLength;
|
FTabLength;
|
||||||
FTabLenParam;
|
FTabLenParam;
|
||||||
|
_xformobj;
|
||||||
static FHDC;
|
static FHDC;
|
||||||
type TCounter=class
|
type TCounter=class
|
||||||
private
|
private
|
||||||
|
|
@ -2726,12 +2727,14 @@ type TcustomCanvas = class(TSLUIBASE)
|
||||||
{$ifdef linux}
|
{$ifdef linux}
|
||||||
return r;
|
return r;
|
||||||
{$endif}
|
{$endif}
|
||||||
_xformobj._setvalue_("em11",trans[0]);
|
if not _xformobj then
|
||||||
_xformobj._setvalue_("em12",trans[1]);
|
_xformobj := new Ttagxform();
|
||||||
_xformobj._setvalue_("em21",trans[2]);
|
_xformobj.em11 := trans[0];
|
||||||
_xformobj._setvalue_("em22",trans[3]);
|
_xformobj.em12 := trans[1];
|
||||||
_xformobj._setvalue_("edx",trans[4]);
|
_xformobj.em21 := trans[2];
|
||||||
_xformobj._setvalue_("edy",trans[5]);
|
_xformobj.em22 := trans[3];
|
||||||
|
_xformobj.edx := trans[4];
|
||||||
|
_xformobj.edy := trans[5];
|
||||||
return _wapi.SetWorldTransform(FHandle,_xformobj._getptr_);
|
return _wapi.SetWorldTransform(FHandle,_xformobj._getptr_);
|
||||||
end
|
end
|
||||||
function SetPolyFillMode(md); //ÉèÖÃÌî³äÑùʽ
|
function SetPolyFillMode(md); //ÉèÖÃÌî³äÑùʽ
|
||||||
|
|
|
||||||
|
|
@ -1436,6 +1436,34 @@ type tagCOMPOSITIONFORM=class(tslcstructureobj)
|
||||||
private
|
private
|
||||||
FPonter;
|
FPonter;
|
||||||
end
|
end
|
||||||
|
type Ttagxform=class(tslcstructureobj)
|
||||||
|
private
|
||||||
|
static SSTRUCT;
|
||||||
|
class function getstruct()
|
||||||
|
begin
|
||||||
|
if not SSTRUCT then SSTRUCT := MemoryAlignmentCalculate(array(
|
||||||
|
(0,"float",0),
|
||||||
|
(1,"float",0),
|
||||||
|
(2,"float",0),
|
||||||
|
(3,"float",0),
|
||||||
|
(4,"float",0),
|
||||||
|
(5,"float",0)
|
||||||
|
)
|
||||||
|
);
|
||||||
|
return SSTRUCT;
|
||||||
|
end
|
||||||
|
public
|
||||||
|
function create(ptr)
|
||||||
|
begin
|
||||||
|
inherited create(getstruct(),ptr);
|
||||||
|
end
|
||||||
|
property eM11 index 0 read _getvalue_ write _setvalue_;
|
||||||
|
property eM12 index 1 read _getvalue_ write _setvalue_;
|
||||||
|
property eM21 index 2 read _getvalue_ write _setvalue_;
|
||||||
|
property eM22 index 3 read _getvalue_ write _setvalue_;
|
||||||
|
property edx index 4 read _getvalue_ write _setvalue_;
|
||||||
|
property edy index 5 read _getvalue_ write _setvalue_;
|
||||||
|
end
|
||||||
implementation
|
implementation
|
||||||
(*
|
(*
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2372,14 +2372,11 @@ type TcustomLabel = class(TGraphicControl)
|
||||||
InvalidateRect(nil,true);
|
InvalidateRect(nil,true);
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
protected
|
|
||||||
function SetControlFont(v);override;
|
|
||||||
begin
|
|
||||||
inherited;
|
|
||||||
//invalidaterect(nil,true);
|
|
||||||
invalidaterect(nil,false);
|
|
||||||
end
|
|
||||||
public
|
public
|
||||||
|
function FontChanged(o);override;
|
||||||
|
begin
|
||||||
|
InvalidateRect(nil,false);
|
||||||
|
end
|
||||||
function paint();override;
|
function paint();override;
|
||||||
begin
|
begin
|
||||||
dc := canvas;
|
dc := canvas;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue