You've already forked lazarus-ccr
* Removed unused code
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1052 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -1092,7 +1092,6 @@ type
|
|||||||
TVirtualTreeHintWindow = class(THintWindow)
|
TVirtualTreeHintWindow = class(THintWindow)
|
||||||
private
|
private
|
||||||
FHintData: TVTHintData;
|
FHintData: TVTHintData;
|
||||||
FTextHeight: Integer;
|
|
||||||
procedure WMShowWindow(var Message: TLMShowWindow); message LM_SHOWWINDOW;
|
procedure WMShowWindow(var Message: TLMShowWindow); message LM_SHOWWINDOW;
|
||||||
protected
|
protected
|
||||||
procedure Paint; override;
|
procedure Paint; override;
|
||||||
@ -4017,8 +4016,6 @@ type // streaming support
|
|||||||
MissedSteps: Double;
|
MissedSteps: Double;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
TCanvasEx = class(TCanvas);
|
|
||||||
|
|
||||||
const
|
const
|
||||||
CheckImagesStrings: array [TCheckImageKind] of String =
|
CheckImagesStrings: array [TCheckImageKind] of String =
|
||||||
('VT_CHECK_LIGHT',
|
('VT_CHECK_LIGHT',
|
||||||
@ -4051,10 +4048,8 @@ const
|
|||||||
RTLFlag: array[Boolean] of Integer = (0, ETO_RTLREADING);
|
RTLFlag: array[Boolean] of Integer = (0, ETO_RTLREADING);
|
||||||
AlignmentToDrawFlag: array[TAlignment] of Cardinal = (DT_LEFT, DT_RIGHT, DT_CENTER);
|
AlignmentToDrawFlag: array[TAlignment] of Cardinal = (DT_LEFT, DT_RIGHT, DT_CENTER);
|
||||||
|
|
||||||
WideNull = WideChar(#0);
|
|
||||||
WideCR = WideChar(#13);
|
WideCR = WideChar(#13);
|
||||||
WideLF = WideChar(#10);
|
WideLF = WideChar(#10);
|
||||||
WideLineSeparator = WideChar(#2028);
|
|
||||||
|
|
||||||
type
|
type
|
||||||
// internal worker thread
|
// internal worker thread
|
||||||
@ -5566,9 +5561,6 @@ end;
|
|||||||
|
|
||||||
procedure FinalizeGlobalStructures;
|
procedure FinalizeGlobalStructures;
|
||||||
|
|
||||||
var
|
|
||||||
HintWasEnabled: Boolean;
|
|
||||||
|
|
||||||
begin
|
begin
|
||||||
timeEndPeriod(MinimumTimerInterval);
|
timeEndPeriod(MinimumTimerInterval);
|
||||||
|
|
||||||
@ -5576,20 +5568,6 @@ begin
|
|||||||
|
|
||||||
if NeedToUnitialize then
|
if NeedToUnitialize then
|
||||||
OleUninitialize;
|
OleUninitialize;
|
||||||
|
|
||||||
// If VT is used in a package and its special hint window was used then the last instance of this
|
|
||||||
// window is not freed correctly (bug in the VCL). We explicitely tell the application to free it
|
|
||||||
// otherwise an AV is raised due to access to an invalid memory area.
|
|
||||||
//todo_lcl_remove
|
|
||||||
{
|
|
||||||
if ModuleIsPackage then
|
|
||||||
begin
|
|
||||||
HintWasEnabled := Application.ShowHint;
|
|
||||||
Application.ShowHint := False;
|
|
||||||
if HintWasEnabled then
|
|
||||||
Application.ShowHint := True;
|
|
||||||
end;
|
|
||||||
}
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
//----------------- TWorkerThread --------------------------------------------------------------------------------------
|
//----------------- TWorkerThread --------------------------------------------------------------------------------------
|
||||||
@ -11285,7 +11263,7 @@ procedure TVTHeader.Invalidate(Column: TVirtualTreeColumn; ExpandToBorder: Boole
|
|||||||
// a column is given.
|
// a column is given.
|
||||||
|
|
||||||
var
|
var
|
||||||
R, RW: TRect;
|
R: TRect;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
if (hoVisible in FOptions) and Treeview.HandleAllocated then
|
if (hoVisible in FOptions) and Treeview.HandleAllocated then
|
||||||
@ -16967,12 +16945,6 @@ end;
|
|||||||
|
|
||||||
procedure TBaseVirtualTree.WMKillFocus(var Msg: TLMKillFocus);
|
procedure TBaseVirtualTree.WMKillFocus(var Msg: TLMKillFocus);
|
||||||
|
|
||||||
var
|
|
||||||
Form: TCustomForm;
|
|
||||||
Control: TWinControl;
|
|
||||||
Pos: TSmallPoint;
|
|
||||||
Unknown: IUnknown;
|
|
||||||
|
|
||||||
begin
|
begin
|
||||||
Logger.EnterMethod([lcMessages],'WMKillFocus');
|
Logger.EnterMethod([lcMessages],'WMKillFocus');
|
||||||
inherited WMKillFocus(Msg);
|
inherited WMKillFocus(Msg);
|
||||||
@ -17001,24 +16973,6 @@ begin
|
|||||||
else
|
else
|
||||||
if Assigned(FFocusedNode) then
|
if Assigned(FFocusedNode) then
|
||||||
InvalidateNode(FFocusedNode);
|
InvalidateNode(FFocusedNode);
|
||||||
|
|
||||||
// Workaround for wrapped non-VCL controls (like TWebBrowser), which do not use VCL mechanisms and
|
|
||||||
// leave the ActiveControl property in the wrong state, which causes trouble when the control is refocused.
|
|
||||||
Form := GetParentForm(Self);
|
|
||||||
if Assigned(Form) and (Form.ActiveControl = Self) then
|
|
||||||
begin
|
|
||||||
//todo_lcl_check Probably this code is not necessary. LCL does not has TOLEControl AFAIK
|
|
||||||
{
|
|
||||||
Cardinal(Pos) := GetMessagePos;
|
|
||||||
Control := FindVCLWindow(SmallPointToPoint(Pos));
|
|
||||||
// Every control derived from TOleControl has potentially the focus problem. In order to avoid including
|
|
||||||
// the OleCtrls unit (which will, among others, include Variants), which would allow to test for the TOleControl
|
|
||||||
// class, the IOleClientSite interface is used for the test, which is supported by TOleControl and a good indicator.
|
|
||||||
if Assigned(Control) and Control.GetInterface(IOleClientSite, Unknown) then
|
|
||||||
Form.ActiveControl := nil;
|
|
||||||
}
|
|
||||||
// For other classes the active control should not be modified. Otherwise you need two clicks to select it.
|
|
||||||
end;
|
|
||||||
Logger.ExitMethod([lcMessages],'WMKillFocus');
|
Logger.ExitMethod([lcMessages],'WMKillFocus');
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -32446,14 +32400,6 @@ function TCustomVirtualStringTree.ContentToHTML(Source: TVSTTextSourceType; cons
|
|||||||
// If Caption is not empty then it is used to create and fill the header for the table built here.
|
// If Caption is not empty then it is used to create and fill the header for the table built here.
|
||||||
// Based on ideas and code from Frank van den Bergh and Andreas Hörstemeier.
|
// Based on ideas and code from Frank van den Bergh and Andreas Hörstemeier.
|
||||||
|
|
||||||
type
|
|
||||||
UCS2 = Word;
|
|
||||||
UCS4 = Cardinal;
|
|
||||||
|
|
||||||
const
|
|
||||||
MaximumUCS4: UCS4 = $7FFFFFFF;
|
|
||||||
ReplacementCharacter: UCS4 = $0000FFFD;
|
|
||||||
|
|
||||||
var
|
var
|
||||||
Buffer: TBufferedUTF8String;
|
Buffer: TBufferedUTF8String;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user