You've already forked lazarus-ccr
First commit for release 0.2.2, which restores Ctl3D so it can again be compiled by Lazarus 0.9.27+
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@963 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -33,6 +33,18 @@
|
|||||||
<A name="Whats_New"></A><H3>What's New</H3>
|
<A name="Whats_New"></A><H3>What's New</H3>
|
||||||
|
|
||||||
<UL>
|
<UL>
|
||||||
|
<LI>20090921 release (0.2.2):
|
||||||
|
<UL>
|
||||||
|
<LI>Lazarus 0.9.27 eliminated the Ctl3D property, breaking Orpheus, which uses
|
||||||
|
Ctl3D in several controls. This release restores the Ctl3D property so
|
||||||
|
Orpheus can again be compiled with Lazarus.
|
||||||
|
<LI>The status table below has been updated for all widgetsets. In some cases
|
||||||
|
Orpheus controls have improved with general improvements and bug fixes
|
||||||
|
in the LCL and underlying widgetset code; in a few cases, however, Orpheus
|
||||||
|
controls perform worse than they did previously, probably due to
|
||||||
|
side-effects from LCL changes.<P>
|
||||||
|
</UL>
|
||||||
|
|
||||||
<LI>20081229 release (0.2.1):
|
<LI>20081229 release (0.2.1):
|
||||||
<UL>
|
<UL>
|
||||||
<LI>Adds TOvcCalendar.
|
<LI>Adds TOvcCalendar.
|
||||||
@ -219,15 +231,23 @@ access to the Lazarus install folder. After rebuilding, be sure to start
|
|||||||
<TD>XP SP2</TD>
|
<TD>XP SP2</TD>
|
||||||
<TD> </TD>
|
<TD> </TD>
|
||||||
<TD>win32</TD>
|
<TD>win32</TD>
|
||||||
<TD>Stable 0.9.26 with FPC 2.2.2</TD>
|
<TD>0.9.28 RC with FPC 2.2.4</TD>
|
||||||
</TR>
|
</TR>
|
||||||
|
|
||||||
<TR VALIGN=TOP>
|
<TR VALIGN=TOP>
|
||||||
<TD>OS X</TD>
|
<TD>OS X</TD>
|
||||||
<TD>10.4.11 (Tiger) on PowerPC</TD>
|
<TD>10.4.11 (Tiger) on PowerPC</TD>
|
||||||
<TD>gtk: 1.2.0.9.1<BR>gtk2: 2.12.9</TD>
|
<TD>gtk: 1.2.0.9.1<BR>gtk2: 2.14.7<BR>qt: 4.5.2</TD>
|
||||||
<TD>gtk, gtk2, carbon</TD>
|
<TD>gtk, gtk2, carbon, qt</TD>
|
||||||
<TD>Stable 0.9.26 with FPC 2.2.2</TD>
|
<TD>0.9.28 RC with FPC 2.2.4</TD>
|
||||||
|
</TR>
|
||||||
|
|
||||||
|
<TR VALIGN=TOP>
|
||||||
|
<TD>OS X</TD>
|
||||||
|
<TD>10.5.8 (Leopard) on Intel</TD>
|
||||||
|
<TD> </TD>
|
||||||
|
<TD>carbon</TD>
|
||||||
|
<TD>0.9.28 RC with FPC 2.2.4</TD>
|
||||||
</TR>
|
</TR>
|
||||||
|
|
||||||
<TR VALIGN=TOP>
|
<TR VALIGN=TOP>
|
||||||
@ -318,13 +338,15 @@ tell the added comments by their context (near IFDEF's, for example).
|
|||||||
<LI>When you first add an Orpheus control to a form, Lazarus will add
|
<LI>When you first add an Orpheus control to a form, Lazarus will add
|
||||||
the Orpheus unit to the uses section of your main source file (.lpr).
|
the Orpheus unit to the uses section of your main source file (.lpr).
|
||||||
This pulls in a great deal of code that you don't need. Delete the Orpheus unit
|
This pulls in a great deal of code that you don't need. Delete the Orpheus unit
|
||||||
from the uses section to reduce the size of your executable file.<P>
|
from the uses section to reduce the size of your executable file.
|
||||||
<LI>The TOvcSimpleField and TOvcTCSimpleField controls do not work on non-Windows
|
<==<I>Fixed in 0.2.2 release.</I><P>
|
||||||
widgetsets (see table below). For now, don't use these controls in cross-platform
|
<LI>The TOvcSimpleField and TOvcTCSimpleField controls originally did not work
|
||||||
applications. Just opening a form that has a TOvcSimpleField or TOvcTCSimpleField
|
at all on non-Windows widgetsets, although they now have some functionality.
|
||||||
control on it may crash non-Windows versions of Lazarus. Use the
|
For now, don't use these controls in cross-platform applications. Just opening
|
||||||
TO32FlexEdit and TO32TCFlexEdit controls in place of TOvcSimpleField and
|
a form that has a TOvcSimpleField or TOvcTCSimpleField control on it may crash
|
||||||
TOvcTCSimpleField controls in cross-platform applications.<P>
|
non-Windows versions of Lazarus. Use the TO32FlexEdit and TO32TCFlexEdit
|
||||||
|
controls in place of TOvcSimpleField and TOvcTCSimpleField controls in
|
||||||
|
cross-platform applications.<P>
|
||||||
<LI>To display the TOvcLabel's Style Manager property editor in the Lazarus
|
<LI>To display the TOvcLabel's Style Manager property editor in the Lazarus
|
||||||
IDE, right-click on the TOvcLabel control (Apple key+click on Mac). You can
|
IDE, right-click on the TOvcLabel control (Apple key+click on Mac). You can
|
||||||
also change Style Manager properties via the CustomSettings in the
|
also change Style Manager properties via the CustomSettings in the
|
||||||
@ -342,14 +364,16 @@ in the Delphi VCL.
|
|||||||
<OL>
|
<OL>
|
||||||
<LI>The TO32FlexEdit and TO32TCFlexEdit controls include code for displaying
|
<LI>The TO32FlexEdit and TO32TCFlexEdit controls include code for displaying
|
||||||
an optional button within the text editing area. However, this TBitBtn-within-
|
an optional button within the text editing area. However, this TBitBtn-within-
|
||||||
a-TEdit is not supported by the LCL, so the code has been IFDEF'd out for now.
|
a-TEdit has not been supported by the LCL, so the code has been IFDEF'd out for
|
||||||
If this is ever supported by the LCL, defining ButtonOkay in o32flxed.pas
|
now. Beginning with Lazarus 0.9.27, this code appears to work okay with the win32
|
||||||
is all that's needed to enable the button code.<P>
|
and carbon widgetsets. To enable the button code, see the comments above the
|
||||||
|
ButtonOkay define in o32flxed.pas.<P>
|
||||||
<LI>Widgetsets generally implement LCL controls by creating native controls
|
<LI>Widgetsets generally implement LCL controls by creating native controls
|
||||||
that correspond to the LCL controls (text edit, check box, etc.). However,
|
that correspond to the LCL controls (text edit, check box, etc.). However,
|
||||||
Orpheus builds its TOvcSimpleField control from TCustomControl, rather than
|
Orpheus builds its TOvcSimpleField control from TCustomControl, rather than
|
||||||
descending from an existing edit control such as TCustomEdit. Currently
|
descending from an existing edit control such as TCustomEdit. In general,
|
||||||
TOvcSimpleField and TOvcTCSimpleField do not work on non-Windows widgetsets.<P>
|
TOvcSimpleField and TOvcTCSimpleField have not worked very well on non-Windows
|
||||||
|
widgetsets.<P>
|
||||||
<LI>The GTK widgetset does not support TOvcRotatedLabel, apparently
|
<LI>The GTK widgetset does not support TOvcRotatedLabel, apparently
|
||||||
because the GetTextMetrics function is not fully implemented on that
|
because the GetTextMetrics function is not fully implemented on that
|
||||||
widgetset.<P>
|
widgetset.<P>
|
||||||
@ -366,7 +390,7 @@ LCL. In a couple places, the ported code uses LM_SETFOCUS and LM_KILLFOCUS
|
|||||||
messages to obtain some functionality. Similarly, the lack of LCL support for the
|
messages to obtain some functionality. Similarly, the lack of LCL support for the
|
||||||
CM_CTL3DCHANGED message means that changing the Ctl3D property in Lazarus for
|
CM_CTL3DCHANGED message means that changing the Ctl3D property in Lazarus for
|
||||||
controls such as TOvcCalendar may not update the control's design (reloading the
|
controls such as TOvcCalendar may not update the control's design (reloading the
|
||||||
form will show the correct design). Finally, some properties like Ctl3D are True
|
form will show the correct design). Finally, some properties are True
|
||||||
by default in Delphi but False in Lazarus, meaning forms converted from Delphi
|
by default in Delphi but False in Lazarus, meaning forms converted from Delphi
|
||||||
may not look quite the same for properties with default values until you
|
may not look quite the same for properties with default values until you
|
||||||
explicitly set the properties in Lazarus or in your code.
|
explicitly set the properties in Lazarus or in your code.
|
||||||
@ -410,7 +434,7 @@ explicitly set the properties in Lazarus or in your code.
|
|||||||
<TD>Working</TD>
|
<TD>Working</TD>
|
||||||
<TD>Working</TD>
|
<TD>Working</TD>
|
||||||
<TD>Working</TD>
|
<TD>Working</TD>
|
||||||
<TD>Crashes</TD>
|
<TD>Working</TD>
|
||||||
</TR>
|
</TR>
|
||||||
|
|
||||||
<TR VALIGN=TOP>
|
<TR VALIGN=TOP>
|
||||||
@ -432,7 +456,7 @@ explicitly set the properties in Lazarus or in your code.
|
|||||||
<TD> </TD>
|
<TD> </TD>
|
||||||
<TD>Working</TD>
|
<TD>Working</TD>
|
||||||
<TD>Working</TD>
|
<TD>Working</TD>
|
||||||
<TD>Partial</TD>
|
<TD>Working</TD>
|
||||||
<TD>Working</TD>
|
<TD>Working</TD>
|
||||||
<TD>Crashes</TD>
|
<TD>Crashes</TD>
|
||||||
</TR>
|
</TR>
|
||||||
@ -444,7 +468,7 @@ explicitly set the properties in Lazarus or in your code.
|
|||||||
<TD> </TD>
|
<TD> </TD>
|
||||||
<TD>Working</TD>
|
<TD>Working</TD>
|
||||||
<TD>Working</TD>
|
<TD>Working</TD>
|
||||||
<TD>Partial</TD>
|
<TD>Working</TD>
|
||||||
<TD>Working</TD>
|
<TD>Working</TD>
|
||||||
<TD>Partial</TD>
|
<TD>Partial</TD>
|
||||||
</TR>
|
</TR>
|
||||||
@ -458,7 +482,7 @@ explicitly set the properties in Lazarus or in your code.
|
|||||||
<TD>Working</TD>
|
<TD>Working</TD>
|
||||||
<TD>Working</TD>
|
<TD>Working</TD>
|
||||||
<TD>Working</TD>
|
<TD>Working</TD>
|
||||||
<TD>?</TD>
|
<TD>Partial</TD>
|
||||||
</TR>
|
</TR>
|
||||||
|
|
||||||
<TR VALIGN=TOP>
|
<TR VALIGN=TOP>
|
||||||
@ -470,31 +494,31 @@ explicitly set the properties in Lazarus or in your code.
|
|||||||
<TD>Partial</TD>
|
<TD>Partial</TD>
|
||||||
<TD>Partial</TD>
|
<TD>Partial</TD>
|
||||||
<TD>Partial</TD>
|
<TD>Partial</TD>
|
||||||
<TD>Crashes</TD>
|
<TD>Partial</TD>
|
||||||
</TR>
|
</TR>
|
||||||
|
|
||||||
<TR VALIGN=TOP>
|
<TR VALIGN=TOP>
|
||||||
<TD>TO32FlexEdit<BR><IMG SRC="TO32FLEXEDIT.bmp"></TD>
|
<TD>TO32FlexEdit<BR><IMG SRC="TO32FLEXEDIT.bmp"></TD>
|
||||||
<TD>TCustomEdit</TD>
|
<TD>TCustomEdit</TD>
|
||||||
<TD>Edit control with validation</TD>
|
<TD>Edit control with validation</TD>
|
||||||
<TD> </TD>
|
<TD>gtk and qt used to work better</TD>
|
||||||
<TD>Working</TD>
|
<TD>Working</TD>
|
||||||
<TD>Working</TD>
|
<TD>Partial</TD>
|
||||||
<TD>Working</TD>
|
|
||||||
<TD>Working</TD>
|
<TD>Working</TD>
|
||||||
<TD>Working</TD>
|
<TD>Working</TD>
|
||||||
|
<TD>Partial</TD>
|
||||||
</TR>
|
</TR>
|
||||||
|
|
||||||
<TR VALIGN=TOP>
|
<TR VALIGN=TOP>
|
||||||
<TD>TOvcTable<BR><IMG SRC="TOVCTABLE.bmp"></TD>
|
<TD>TOvcTable<BR><IMG SRC="TOVCTABLE.bmp"></TD>
|
||||||
<TD>TCustomControl</TD>
|
<TD>TCustomControl</TD>
|
||||||
<TD>Full-featured grid control</TD>
|
<TD>Full-featured grid control</TD>
|
||||||
<TD>See "To Do" list</TD>
|
<TD>See "To Do" list;<BR>0.9.26 didn't crash</TD>
|
||||||
<TD>Working</TD>
|
|
||||||
<TD>Working</TD>
|
|
||||||
<TD>Working</TD>
|
<TD>Working</TD>
|
||||||
|
<TD>Crashes</TD>
|
||||||
|
<TD>Crashes</TD>
|
||||||
<TD>Partial</TD>
|
<TD>Partial</TD>
|
||||||
<TD>Partial</TD>
|
<TD>Freezes</TD>
|
||||||
</TR>
|
</TR>
|
||||||
|
|
||||||
<TR VALIGN=TOP>
|
<TR VALIGN=TOP>
|
||||||
@ -530,7 +554,7 @@ explicitly set the properties in Lazarus or in your code.
|
|||||||
<TD>Working</TD>
|
<TD>Working</TD>
|
||||||
<TD>Working</TD>
|
<TD>Working</TD>
|
||||||
<TD>Working</TD>
|
<TD>Working</TD>
|
||||||
<TD>Working</TD>
|
<TD>Partial</TD>
|
||||||
</TR>
|
</TR>
|
||||||
|
|
||||||
<TR VALIGN=TOP>
|
<TR VALIGN=TOP>
|
||||||
@ -541,8 +565,8 @@ explicitly set the properties in Lazarus or in your code.
|
|||||||
<TD>Working</TD>
|
<TD>Working</TD>
|
||||||
<TD>Partial</TD>
|
<TD>Partial</TD>
|
||||||
<TD>Partial</TD>
|
<TD>Partial</TD>
|
||||||
<TD>Crashes</TD>
|
<TD>Partial</TD>
|
||||||
<TD>Crashes</TD>
|
<TD>Partial</TD>
|
||||||
</TR>
|
</TR>
|
||||||
|
|
||||||
<TR VALIGN=TOP>
|
<TR VALIGN=TOP>
|
||||||
@ -554,7 +578,7 @@ explicitly set the properties in Lazarus or in your code.
|
|||||||
<TD>Working</TD>
|
<TD>Working</TD>
|
||||||
<TD>Working</TD>
|
<TD>Working</TD>
|
||||||
<TD>Working</TD>
|
<TD>Working</TD>
|
||||||
<TD>Working</TD>
|
<TD>Partial</TD>
|
||||||
</TR>
|
</TR>
|
||||||
|
|
||||||
<TR VALIGN=TOP>
|
<TR VALIGN=TOP>
|
||||||
@ -575,8 +599,8 @@ explicitly set the properties in Lazarus or in your code.
|
|||||||
<TD>Table cell for combo box</TD>
|
<TD>Table cell for combo box</TD>
|
||||||
<TD>Dropdown problem w/o XP manifest</TD>
|
<TD>Dropdown problem w/o XP manifest</TD>
|
||||||
<TD>Working</TD>
|
<TD>Working</TD>
|
||||||
<TD>Working</TD>
|
<TD>Not working</TD>
|
||||||
<TD>Working</TD>
|
<TD>Not working</TD>
|
||||||
<TD>Working</TD>
|
<TD>Working</TD>
|
||||||
<TD>Partial</TD>
|
<TD>Partial</TD>
|
||||||
</TR>
|
</TR>
|
||||||
@ -626,7 +650,7 @@ explicitly set the properties in Lazarus or in your code.
|
|||||||
<TD>Working</TD>
|
<TD>Working</TD>
|
||||||
<TD>Working</TD>
|
<TD>Working</TD>
|
||||||
<TD>Working</TD>
|
<TD>Working</TD>
|
||||||
<TD>Working</TD>
|
<TD>Partial</TD>
|
||||||
</TR>
|
</TR>
|
||||||
|
|
||||||
<TR VALIGN=TOP>
|
<TR VALIGN=TOP>
|
||||||
@ -739,7 +763,7 @@ OS X tips for Lazarus:<P>
|
|||||||
|
|
||||||
<P>
|
<P>
|
||||||
<HR>
|
<HR>
|
||||||
Last updated: December 29, 2008
|
Last updated: Sept. 21, 2009
|
||||||
<P>
|
<P>
|
||||||
|
|
||||||
</BODY>
|
</BODY>
|
||||||
|
@ -472,7 +472,11 @@ begin
|
|||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
if nIndex = SM_CYBORDER then
|
if nIndex = SM_CYBORDER then
|
||||||
nIndex := SM_CYEDGE; //Substitute for now so returned value is valid.
|
// nIndex := SM_CYEDGE; //Substitute for now so returned value is valid.
|
||||||
|
begin //Neither implemented, so catch here to eliminate TODO messages.
|
||||||
|
Result := 0; //0 was being returned before.
|
||||||
|
Exit;
|
||||||
|
end;
|
||||||
Result := LclIntf.GetSystemMetrics(nIndex);
|
Result := LclIntf.GetSystemMetrics(nIndex);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
@ -53,6 +53,9 @@ type
|
|||||||
protected {private}
|
protected {private}
|
||||||
{property variables}
|
{property variables}
|
||||||
FLabelInfo : TOvcLabelInfo;
|
FLabelInfo : TOvcLabelInfo;
|
||||||
|
{$IFDEF LCL}
|
||||||
|
FCtl3D : Boolean;
|
||||||
|
{$ENDIF}
|
||||||
{property methods}
|
{property methods}
|
||||||
function GetAbout : string;
|
function GetAbout : string;
|
||||||
function GetAttachedLabel : TOvcAttachedLabel;
|
function GetAttachedLabel : TOvcAttachedLabel;
|
||||||
@ -79,6 +82,9 @@ type
|
|||||||
override;
|
override;
|
||||||
property About : string read GetAbout write SetAbout stored False;
|
property About : string read GetAbout write SetAbout stored False;
|
||||||
property LabelInfo : TOvcLabelInfo read FLabelInfo write FLabelInfo;
|
property LabelInfo : TOvcLabelInfo read FLabelInfo write FLabelInfo;
|
||||||
|
{$IFDEF LCL}
|
||||||
|
property Ctl3D : Boolean read FCtl3D write FCtl3D;
|
||||||
|
{$ENDIF}
|
||||||
public
|
public
|
||||||
constructor Create(AOwner : TComponent); override;
|
constructor Create(AOwner : TComponent); override;
|
||||||
destructor Destroy; override;
|
destructor Destroy; override;
|
||||||
@ -123,7 +129,9 @@ type
|
|||||||
property OEMConvert;
|
property OEMConvert;
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
property ParentColor;
|
property ParentColor;
|
||||||
|
{$IFNDEF LCL}
|
||||||
property ParentCtl3D;
|
property ParentCtl3D;
|
||||||
|
{$ENDIF}
|
||||||
property ParentFont;
|
property ParentFont;
|
||||||
property ParentShowHint;
|
property ParentShowHint;
|
||||||
property PasswordChar;
|
property PasswordChar;
|
||||||
|
@ -391,11 +391,18 @@ type
|
|||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
// The optional button inside a TO32FlexEdit doesn't work with LCL,
|
// The optional button inside a TO32FlexEdit originally did not work with LCL,
|
||||||
// so exclude all button-related code for now.
|
// so excluded all button-related code.
|
||||||
|
// Note now seems to work with win32 and carbon as of 0.9.28. To enable,
|
||||||
|
// delete the dot in the two DEFINE's.
|
||||||
// For more information, see Lazarus bug 7097.
|
// For more information, see Lazarus bug 7097.
|
||||||
{$IFNDEF LCL}
|
{$IFNDEF LCL}
|
||||||
{$DEFINE ButtonOkay}
|
{$DEFINE ButtonOkay}
|
||||||
|
{$ELSE}
|
||||||
|
{.$DEFINE ButtonOkay}
|
||||||
|
{$IFNDEF MSWINDOWS}
|
||||||
|
{.$DEFINE ButtonNotChild} //Manually reposition relative to edit control
|
||||||
|
{$ENDIF}
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
|
||||||
{===== TO32FEButton ==================================================}
|
{===== TO32FEButton ==================================================}
|
||||||
@ -1345,8 +1352,13 @@ begin
|
|||||||
end else begin
|
end else begin
|
||||||
FButton.Height := CHgt - 2;
|
FButton.Height := CHgt - 2;
|
||||||
FButton.Width := GetButtonWidth;
|
FButton.Width := GetButtonWidth;
|
||||||
|
{$IFNDEF ButtonNotChild}
|
||||||
FButton.Left := Width - FButton.Width - 1;
|
FButton.Left := Width - FButton.Width - 1;
|
||||||
FButton.Top := 1;
|
FButton.Top := 1;
|
||||||
|
{$ELSE}
|
||||||
|
FButton.Left := Left + Width - FButton.Width - 1;
|
||||||
|
FButton.Top := Top + 1;
|
||||||
|
{$ENDIF}
|
||||||
end;
|
end;
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
end;
|
end;
|
||||||
@ -1578,7 +1590,7 @@ end;
|
|||||||
|
|
||||||
{$IFDEF LCL}
|
{$IFDEF LCL}
|
||||||
// Eliminates LCL "[Type1] can not have [Type2] as child" runtime message,
|
// Eliminates LCL "[Type1] can not have [Type2] as child" runtime message,
|
||||||
// but button still doesn't work. See Lazarus bug 7097.
|
// but button still doesn't work with all widgetsets. See Lazarus bug 7097.
|
||||||
function TO32CustomFlexEdit.ChildClassAllowed(ChildClass: TClass): Boolean;
|
function TO32CustomFlexEdit.ChildClassAllowed(ChildClass: TClass): Boolean;
|
||||||
begin
|
begin
|
||||||
Result := True;
|
Result := True;
|
||||||
|
@ -1,23 +1,23 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<CONFIG>
|
<CONFIG>
|
||||||
<Package Version="2">
|
<Package Version="3">
|
||||||
<PathDelim Value="\"/>
|
<PathDelim Value="\"/>
|
||||||
<Name Value="Orpheus"/>
|
<Name Value="Orpheus"/>
|
||||||
|
<AddToProjectUsesSection Value="False"/>
|
||||||
<Author Value="Delphi version by TurboPower; ported to Lazarus by Phil Hess"/>
|
<Author Value="Delphi version by TurboPower; ported to Lazarus by Phil Hess"/>
|
||||||
<CompilerOptions>
|
<CompilerOptions>
|
||||||
<Version Value="5"/>
|
<Version Value="8"/>
|
||||||
<PathDelim Value="\"/>
|
<PathDelim Value="\"/>
|
||||||
<SearchPaths>
|
<SearchPaths>
|
||||||
<UnitOutputDirectory Value="units\$(TargetCPU)-$(TargetOS)"/>
|
<UnitOutputDirectory Value="units\$(TargetCPU)-$(TargetOS)"/>
|
||||||
</SearchPaths>
|
</SearchPaths>
|
||||||
<Parsing>
|
<Parsing>
|
||||||
<SyntaxOptions>
|
<SyntaxOptions>
|
||||||
<D2Extensions Value="False"/>
|
<SyntaxMode Value="Delphi"/>
|
||||||
<CStyleOperator Value="False"/>
|
<CStyleOperator Value="False"/>
|
||||||
<IncludeAssertionCode Value="True"/>
|
<IncludeAssertionCode Value="True"/>
|
||||||
<AllowLabel Value="False"/>
|
<AllowLabel Value="False"/>
|
||||||
<CPPInline Value="False"/>
|
<CPPInline Value="False"/>
|
||||||
<DelphiCompat Value="True"/>
|
|
||||||
</SyntaxOptions>
|
</SyntaxOptions>
|
||||||
</Parsing>
|
</Parsing>
|
||||||
<Other>
|
<Other>
|
||||||
@ -31,7 +31,7 @@
|
|||||||
"/>
|
"/>
|
||||||
<License Value="MPL 1.1
|
<License Value="MPL 1.1
|
||||||
"/>
|
"/>
|
||||||
<Version Minor="2" Release="1"/>
|
<Version Minor="2" Release="2"/>
|
||||||
<Files Count="1">
|
<Files Count="1">
|
||||||
<Item1>
|
<Item1>
|
||||||
<Filename Value="myovcreg.pas"/>
|
<Filename Value="myovcreg.pas"/>
|
||||||
|
@ -152,6 +152,9 @@ type
|
|||||||
FBorders : TOvcBorders;
|
FBorders : TOvcBorders;
|
||||||
FEdit : TOvcCustomEdit;
|
FEdit : TOvcCustomEdit;
|
||||||
FLabelInfo : TOvcLabelInfo;
|
FLabelInfo : TOvcLabelInfo;
|
||||||
|
{$IFDEF LCL}
|
||||||
|
FCtl3D : Boolean;
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
FOrgHeight : integer;
|
FOrgHeight : integer;
|
||||||
|
|
||||||
@ -220,6 +223,11 @@ type
|
|||||||
property LabelInfo : TOvcLabelInfo
|
property LabelInfo : TOvcLabelInfo
|
||||||
read FLabelInfo
|
read FLabelInfo
|
||||||
write FLabelInfo;
|
write FLabelInfo;
|
||||||
|
|
||||||
|
{$IFDEF LCL}
|
||||||
|
property Ctl3D : Boolean read FCtl3D write FCtl3D;
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
@ -156,6 +156,9 @@ type
|
|||||||
FWantDblClicks : Boolean; {true to include cs_dblclks style}
|
FWantDblClicks : Boolean; {true to include cs_dblclks style}
|
||||||
FWeekStarts : TOvcDayType; {the day that begins the week}
|
FWeekStarts : TOvcDayType; {the day that begins the week}
|
||||||
FYear : Integer; {calendar year}
|
FYear : Integer; {calendar year}
|
||||||
|
{$IFDEF LCL}
|
||||||
|
FCtl3D : Boolean;
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
{event variables}
|
{event variables}
|
||||||
FOnChange : TDateChangeEvent;
|
FOnChange : TDateChangeEvent;
|
||||||
@ -218,8 +221,10 @@ type
|
|||||||
{-calcualte new sizes for rows and columns}
|
{-calcualte new sizes for rows and columns}
|
||||||
|
|
||||||
{VCL control methods}
|
{VCL control methods}
|
||||||
|
{$IFNDEF LCL}
|
||||||
procedure CMCtl3DChanged(var Msg : TMessage);
|
procedure CMCtl3DChanged(var Msg : TMessage);
|
||||||
message CM_CTL3DCHANGED;
|
message CM_CTL3DCHANGED;
|
||||||
|
{$ENDIF}
|
||||||
procedure CMEnter(var Msg : TMessage);
|
procedure CMEnter(var Msg : TMessage);
|
||||||
message {$IFNDEF LCL} CM_ENTER; {$ELSE} LM_SETFOCUS; {$ENDIF}
|
message {$IFNDEF LCL} CM_ENTER; {$ELSE} LM_SETFOCUS; {$ENDIF}
|
||||||
//CM_ messages not supported in LCL, so use something similar
|
//CM_ messages not supported in LCL, so use something similar
|
||||||
@ -300,6 +305,9 @@ type
|
|||||||
read GetMonth;
|
read GetMonth;
|
||||||
property Year : Integer
|
property Year : Integer
|
||||||
read GetYear;
|
read GetYear;
|
||||||
|
{$IFDEF LCL}
|
||||||
|
property Ctl3D : Boolean read FCtl3D write FCtl3D default True;
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
{properties}
|
{properties}
|
||||||
property BorderStyle : TBorderStyle
|
property BorderStyle : TBorderStyle
|
||||||
@ -364,7 +372,9 @@ type
|
|||||||
property Font;
|
property Font;
|
||||||
property LabelInfo;
|
property LabelInfo;
|
||||||
property Options;
|
property Options;
|
||||||
|
{$IFNDEF LCL}
|
||||||
property ParentCtl3D;
|
property ParentCtl3D;
|
||||||
|
{$ENDIF}
|
||||||
property ParentFont;
|
property ParentFont;
|
||||||
property ParentShowHint;
|
property ParentShowHint;
|
||||||
property PopupMenu;
|
property PopupMenu;
|
||||||
@ -754,6 +764,7 @@ begin
|
|||||||
clBtnRevert.Left := clBtnToday.Left - clBtnRevert.Width - calMargin;
|
clBtnRevert.Left := clBtnToday.Left - clBtnRevert.Width - calMargin;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
{$IFNDEF LCL}
|
||||||
procedure TOvcCustomCalendar.CMCtl3DChanged(var Msg : TMessage);
|
procedure TOvcCustomCalendar.CMCtl3DChanged(var Msg : TMessage);
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
@ -772,6 +783,7 @@ begin
|
|||||||
|
|
||||||
Invalidate;
|
Invalidate;
|
||||||
end;
|
end;
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
procedure TOvcCustomCalendar.CMEnter(var Msg : TMessage);
|
procedure TOvcCustomCalendar.CMEnter(var Msg : TMessage);
|
||||||
var
|
var
|
||||||
@ -825,6 +837,9 @@ begin
|
|||||||
Font.Height := -11;
|
Font.Height := -11;
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
|
||||||
|
{$IFDEF LCL}
|
||||||
|
FCtl3D := True;
|
||||||
|
{$ENDIF}
|
||||||
FBorderStyle := bsNone;
|
FBorderStyle := bsNone;
|
||||||
FDayNameWidth := 3;
|
FDayNameWidth := 3;
|
||||||
FDateFormat := dfLong;
|
FDateFormat := dfLong;
|
||||||
|
@ -317,6 +317,9 @@ type
|
|||||||
FLastOperand : Extended;
|
FLastOperand : Extended;
|
||||||
FOptions : TOvcCalculatorOptions;
|
FOptions : TOvcCalculatorOptions;
|
||||||
FTapeSeparatorChar : Char;
|
FTapeSeparatorChar : Char;
|
||||||
|
{$IFDEF LCL}
|
||||||
|
FCtl3D : Boolean;
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
{event variables}
|
{event variables}
|
||||||
FOnButtonPressed : TOvcCalcButtonPressedEvent;
|
FOnButtonPressed : TOvcCalcButtonPressedEvent;
|
||||||
@ -379,8 +382,10 @@ type
|
|||||||
procedure SetVisible(const Value : Boolean);
|
procedure SetVisible(const Value : Boolean);
|
||||||
|
|
||||||
{VCL control methods}
|
{VCL control methods}
|
||||||
|
{$IFNDEF LCL}
|
||||||
procedure CMCtl3DChanged(var Msg : TMessage);
|
procedure CMCtl3DChanged(var Msg : TMessage);
|
||||||
message CM_CTL3DCHANGED;
|
message CM_CTL3DCHANGED;
|
||||||
|
{$ENDIF}
|
||||||
procedure CMDesignHitTest(var Msg : TCMDesignHitTest);
|
procedure CMDesignHitTest(var Msg : TCMDesignHitTest);
|
||||||
message CM_DESIGNHITTEST;
|
message CM_DESIGNHITTEST;
|
||||||
procedure CMEnter(var Msg : TMessage);
|
procedure CMEnter(var Msg : TMessage);
|
||||||
@ -450,6 +455,9 @@ type
|
|||||||
read FTapeSeparatorChar write FTapeSeparatorChar;
|
read FTapeSeparatorChar write FTapeSeparatorChar;
|
||||||
property Visible : Boolean
|
property Visible : Boolean
|
||||||
read GetVisible write SetVisible;
|
read GetVisible write SetVisible;
|
||||||
|
{$IFDEF LCL}
|
||||||
|
property Ctl3D : Boolean read FCtl3D write FCtl3D;
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
{protected events}
|
{protected events}
|
||||||
property OnButtonPressed : TOvcCalcButtonPressedEvent
|
property OnButtonPressed : TOvcCalcButtonPressedEvent
|
||||||
@ -513,7 +521,9 @@ type
|
|||||||
property MaxPaperCount default 9999;
|
property MaxPaperCount default 9999;
|
||||||
property TapeHeight ; {Must be Prior to Options}
|
property TapeHeight ; {Must be Prior to Options}
|
||||||
property Options default [coShowMemoryButtons, coShowItemCount];
|
property Options default [coShowMemoryButtons, coShowItemCount];
|
||||||
|
{$IFNDEF LCL}
|
||||||
property ParentCtl3D;
|
property ParentCtl3D;
|
||||||
|
{$ENDIF}
|
||||||
property ParentFont;
|
property ParentFont;
|
||||||
property ParentShowHint;
|
property ParentShowHint;
|
||||||
property PopupMenu;
|
property PopupMenu;
|
||||||
@ -650,7 +660,9 @@ begin
|
|||||||
Style := lbOwnerDrawFixed;
|
Style := lbOwnerDrawFixed;
|
||||||
Parent := taOwner as TWinControl;
|
Parent := taOwner as TWinControl;
|
||||||
ParentFont := False;
|
ParentFont := False;
|
||||||
|
{$IFNDEF LCL}
|
||||||
ParentCtl3D := True;
|
ParentCtl3D := True;
|
||||||
|
{$ENDIF}
|
||||||
BorderStyle := bsSingle;
|
BorderStyle := bsSingle;
|
||||||
Color := taTapeColor;
|
Color := taTapeColor;
|
||||||
Visible := FVisible;
|
Visible := FVisible;
|
||||||
@ -1930,6 +1942,7 @@ begin
|
|||||||
cEngine.PushOperand(Value);
|
cEngine.PushOperand(Value);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
{$IFNDEF LCL}
|
||||||
procedure TOvcCustomCalculator.CMCtl3DChanged(var Msg : TMessage);
|
procedure TOvcCustomCalculator.CMCtl3DChanged(var Msg : TMessage);
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
@ -1944,6 +1957,7 @@ begin
|
|||||||
|
|
||||||
Invalidate;
|
Invalidate;
|
||||||
end;
|
end;
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
procedure TOvcCustomCalculator.CMDesignHitTest(var Msg : TCMDesignHitTest);
|
procedure TOvcCustomCalculator.CMDesignHitTest(var Msg : TCMDesignHitTest);
|
||||||
begin
|
begin
|
||||||
@ -2174,7 +2188,9 @@ begin
|
|||||||
cPanel.Font.Name := 'Courier New';
|
cPanel.Font.Name := 'Courier New';
|
||||||
cPanel.Font.Size := 10;
|
cPanel.Font.Size := 10;
|
||||||
cPanel.Font.Style := [];
|
cPanel.Font.Style := [];
|
||||||
|
{$IFNDEF LCL}
|
||||||
cPanel.ParentCtl3D := True;
|
cPanel.ParentCtl3D := True;
|
||||||
|
{$ENDIF}
|
||||||
cPanel.Alignment := taLeftJustify;
|
cPanel.Alignment := taLeftJustify;
|
||||||
cPanel.BevelOuter := bvLowered;
|
cPanel.BevelOuter := bvLowered;
|
||||||
cPanel.BorderStyle := bsNone;
|
cPanel.BorderStyle := bsNone;
|
||||||
|
@ -50,6 +50,9 @@ type
|
|||||||
protected {private}
|
protected {private}
|
||||||
{property Variables}
|
{property Variables}
|
||||||
FShowColorNames : Boolean;
|
FShowColorNames : Boolean;
|
||||||
|
{$IFDEF LCL}
|
||||||
|
FCtl3D : Boolean;
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
{internal variables}
|
{internal variables}
|
||||||
BoxWidth : Integer;
|
BoxWidth : Integer;
|
||||||
@ -73,6 +76,9 @@ type
|
|||||||
read GetSelectedColor write SetSelectedColor;
|
read GetSelectedColor write SetSelectedColor;
|
||||||
property ShowColorNames : Boolean
|
property ShowColorNames : Boolean
|
||||||
read FShowColorNames write SetShowColorNames default True;
|
read FShowColorNames write SetShowColorNames default True;
|
||||||
|
{$IFDEF LCL}
|
||||||
|
property Ctl3D : Boolean read FCtl3D write FCtl3D;
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
public
|
public
|
||||||
constructor Create(AOwner : TComponent); override;
|
constructor Create(AOwner : TComponent); override;
|
||||||
@ -104,7 +110,9 @@ type
|
|||||||
property ItemHeight;
|
property ItemHeight;
|
||||||
property LabelInfo;
|
property LabelInfo;
|
||||||
property ParentColor;
|
property ParentColor;
|
||||||
|
{$IFNDEF LCL}
|
||||||
property ParentCtl3D;
|
property ParentCtl3D;
|
||||||
|
{$ENDIF}
|
||||||
property ParentFont;
|
property ParentFont;
|
||||||
property ParentShowHint;
|
property ParentShowHint;
|
||||||
property PopupMenu;
|
property PopupMenu;
|
||||||
|
@ -117,6 +117,9 @@ type
|
|||||||
FMRUListColor : TColor;
|
FMRUListColor : TColor;
|
||||||
FMRUListCount : Integer;
|
FMRUListCount : Integer;
|
||||||
FStyle : TOvcComboStyle;
|
FStyle : TOvcComboStyle;
|
||||||
|
{$IFDEF LCL}
|
||||||
|
FCtl3D : Boolean;
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
{event variables}
|
{event variables}
|
||||||
FAfterEnter : TNotifyEvent;
|
FAfterEnter : TNotifyEvent;
|
||||||
@ -284,6 +287,9 @@ type
|
|||||||
default 3;
|
default 3;
|
||||||
property Style : TOvcComboStyle
|
property Style : TOvcComboStyle
|
||||||
read FStyle write SetOcbStyle;
|
read FStyle write SetOcbStyle;
|
||||||
|
{$IFDEF LCL}
|
||||||
|
property Ctl3D : Boolean read FCtl3D write FCtl3D;
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
{events}
|
{events}
|
||||||
property AfterEnter : TNotifyEvent
|
property AfterEnter : TNotifyEvent
|
||||||
@ -397,7 +403,9 @@ type
|
|||||||
property MRUListColor;
|
property MRUListColor;
|
||||||
property MRUListCount;
|
property MRUListCount;
|
||||||
property ParentColor;
|
property ParentColor;
|
||||||
|
{$IFNDEF LCL}
|
||||||
property ParentCtl3D;
|
property ParentCtl3D;
|
||||||
|
{$ENDIF}
|
||||||
property ParentFont;
|
property ParentFont;
|
||||||
property ParentShowHint;
|
property ParentShowHint;
|
||||||
property PopupMenu;
|
property PopupMenu;
|
||||||
|
@ -195,7 +195,9 @@ type
|
|||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
property LabelInfo;
|
property LabelInfo;
|
||||||
property ParentColor;
|
property ParentColor;
|
||||||
|
{$IFNDEF LCL}
|
||||||
property ParentCtl3D;
|
property ParentCtl3D;
|
||||||
|
{$ENDIF}
|
||||||
property ParentFont;
|
property ParentFont;
|
||||||
property ParentShowHint;
|
property ParentShowHint;
|
||||||
property PopupAnchor;
|
property PopupAnchor;
|
||||||
@ -748,7 +750,9 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
{set 3d to be the same as our own}
|
{set 3d to be the same as our own}
|
||||||
|
{$IFNDEF LCL}
|
||||||
FCalendar.ParentCtl3D := False;
|
FCalendar.ParentCtl3D := False;
|
||||||
|
{$ENDIF}
|
||||||
FCalendar.Ctl3D := False;
|
FCalendar.Ctl3D := False;
|
||||||
|
|
||||||
{determine the proper position}
|
{determine the proper position}
|
||||||
|
@ -162,7 +162,9 @@ type
|
|||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
property LabelInfo;
|
property LabelInfo;
|
||||||
property ParentColor;
|
property ParentColor;
|
||||||
|
{$IFNDEF LCL}
|
||||||
property ParentCtl3D;
|
property ParentCtl3D;
|
||||||
|
{$ENDIF}
|
||||||
property ParentFont;
|
property ParentFont;
|
||||||
property ParentShowHint;
|
property ParentShowHint;
|
||||||
property PopupAnchor;
|
property PopupAnchor;
|
||||||
@ -499,7 +501,9 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
{set 3d to be the same as our own}
|
{set 3d to be the same as our own}
|
||||||
|
{$IFNDEF LCL}
|
||||||
FCalculator.ParentCtl3D := False;
|
FCalculator.ParentCtl3D := False;
|
||||||
|
{$ENDIF}
|
||||||
FCalculator.Ctl3D := False;
|
FCalculator.Ctl3D := False;
|
||||||
|
|
||||||
{determine the proper position}
|
{determine the proper position}
|
||||||
|
@ -53,6 +53,9 @@ type
|
|||||||
{property variables}
|
{property variables}
|
||||||
FController : TOvcController;
|
FController : TOvcController;
|
||||||
FLabelInfo : TOvcLabelInfo;
|
FLabelInfo : TOvcLabelInfo;
|
||||||
|
{$IFDEF LCL}
|
||||||
|
FCtl3D : Boolean;
|
||||||
|
{$ENDIF}
|
||||||
{property methods}
|
{property methods}
|
||||||
function GetAbout : string;
|
function GetAbout : string;
|
||||||
function GetAttachedLabel : TOvcAttachedLabel;
|
function GetAttachedLabel : TOvcAttachedLabel;
|
||||||
@ -81,6 +84,9 @@ type
|
|||||||
function ControllerAssigned : Boolean;
|
function ControllerAssigned : Boolean;
|
||||||
property About : string read GetAbout write SetAbout stored False;
|
property About : string read GetAbout write SetAbout stored False;
|
||||||
property LabelInfo : TOvcLabelInfo read FLabelInfo write FLabelInfo;
|
property LabelInfo : TOvcLabelInfo read FLabelInfo write FLabelInfo;
|
||||||
|
{$IFDEF LCL}
|
||||||
|
property Ctl3D : Boolean read FCtl3D write FCtl3D;
|
||||||
|
{$ENDIF}
|
||||||
public
|
public
|
||||||
constructor Create(AOwner : TComponent); override;
|
constructor Create(AOwner : TComponent); override;
|
||||||
destructor Destroy; override;
|
destructor Destroy; override;
|
||||||
@ -127,7 +133,9 @@ type
|
|||||||
property OEMConvert;
|
property OEMConvert;
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
property ParentColor;
|
property ParentColor;
|
||||||
|
{$IFNDEF LCL}
|
||||||
property ParentCtl3D;
|
property ParentCtl3D;
|
||||||
|
{$ENDIF}
|
||||||
property ParentFont;
|
property ParentFont;
|
||||||
property ParentShowHint;
|
property ParentShowHint;
|
||||||
property PasswordChar;
|
property PasswordChar;
|
||||||
|
@ -186,7 +186,9 @@ type
|
|||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
property ParentColor;
|
property ParentColor;
|
||||||
|
{$IFNDEF LCL}
|
||||||
property ParentCtl3D;
|
property ParentCtl3D;
|
||||||
|
{$ENDIF}
|
||||||
property ParentFont;
|
property ParentFont;
|
||||||
property ParentShowHint;
|
property ParentShowHint;
|
||||||
property PopupMenu;
|
property PopupMenu;
|
||||||
|
@ -108,6 +108,9 @@ type
|
|||||||
FUserData : TOvcUserData; {field mask and data object}
|
FUserData : TOvcUserData; {field mask and data object}
|
||||||
FZeroDisplay : TZeroDisplay; {true to display an empty field}
|
FZeroDisplay : TZeroDisplay; {true to display an empty field}
|
||||||
FZeroDisplayValue : Double; {value used by ZeroDisplay logic}
|
FZeroDisplayValue : Double; {value used by ZeroDisplay logic}
|
||||||
|
{$IFDEF LCL}
|
||||||
|
FCtl3D : Boolean;
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
{event variables}
|
{event variables}
|
||||||
FOnChange : TNotifyEvent;
|
FOnChange : TNotifyEvent;
|
||||||
@ -220,8 +223,10 @@ type
|
|||||||
|
|
||||||
|
|
||||||
{VCL control methods}
|
{VCL control methods}
|
||||||
|
{$IFNDEF LCL}
|
||||||
procedure CMCtl3DChanged(var Msg : TMessage);
|
procedure CMCtl3DChanged(var Msg : TMessage);
|
||||||
message CM_CTL3DCHANGED;
|
message CM_CTL3DCHANGED;
|
||||||
|
{$ENDIF}
|
||||||
procedure CMDialogChar(var Msg : TCMDialogChar);
|
procedure CMDialogChar(var Msg : TCMDialogChar);
|
||||||
message CM_DIALOGCHAR;
|
message CM_DIALOGCHAR;
|
||||||
procedure CMEnabledChanged(var Msg : TMessage);
|
procedure CMEnabledChanged(var Msg : TMessage);
|
||||||
@ -613,6 +618,9 @@ type
|
|||||||
read FZeroDisplay write SetZeroDisplay default zdShow;
|
read FZeroDisplay write SetZeroDisplay default zdShow;
|
||||||
property ZeroDisplayValue : Double
|
property ZeroDisplayValue : Double
|
||||||
read FZeroDisplayValue write SetZeroDisplayValue;
|
read FZeroDisplayValue write SetZeroDisplayValue;
|
||||||
|
{$IFDEF LCL}
|
||||||
|
property Ctl3D : Boolean read FCtl3D write FCtl3D default True;
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
{events}
|
{events}
|
||||||
property OnChange : TNotifyEvent
|
property OnChange : TNotifyEvent
|
||||||
@ -692,6 +700,7 @@ begin
|
|||||||
Perform(WM_CLEAR, 0, 0);
|
Perform(WM_CLEAR, 0, 0);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
{$IFNDEF LCL}
|
||||||
procedure TOvcBaseEntryField.CMCtl3DChanged(var Msg : TMessage);
|
procedure TOvcBaseEntryField.CMCtl3DChanged(var Msg : TMessage);
|
||||||
begin
|
begin
|
||||||
if not HandleAllocated then
|
if not HandleAllocated then
|
||||||
@ -711,6 +720,7 @@ begin
|
|||||||
|
|
||||||
inherited;
|
inherited;
|
||||||
end;
|
end;
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
procedure TOvcBaseEntryField.CMDialogChar(var Msg : TCMDialogChar);
|
procedure TOvcBaseEntryField.CMDialogChar(var Msg : TCMDialogChar);
|
||||||
begin
|
begin
|
||||||
@ -797,6 +807,9 @@ begin
|
|||||||
FUninitialized := False;
|
FUninitialized := False;
|
||||||
FZeroDisplay := zdShow;
|
FZeroDisplay := zdShow;
|
||||||
FZeroDisplayValue := 0;
|
FZeroDisplayValue := 0;
|
||||||
|
{$IFDEF LCL}
|
||||||
|
FCtl3D := True;
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
efRangeLo := BlankRange;
|
efRangeLo := BlankRange;
|
||||||
efRangeHi := BlankRange;
|
efRangeHi := BlankRange;
|
||||||
|
@ -144,7 +144,9 @@ type
|
|||||||
property Options;
|
property Options;
|
||||||
property PadChar;
|
property PadChar;
|
||||||
property ParentColor;
|
property ParentColor;
|
||||||
|
{$IFNDEF LCL}
|
||||||
property ParentCtl3D;
|
property ParentCtl3D;
|
||||||
|
{$ENDIF}
|
||||||
property ParentFont;
|
property ParentFont;
|
||||||
property ParentShowHint;
|
property ParentShowHint;
|
||||||
property PasswordChar;
|
property PasswordChar;
|
||||||
|
@ -85,6 +85,9 @@ type
|
|||||||
FOptions : TOvcTblOptionSet; {set of table options}
|
FOptions : TOvcTblOptionSet; {set of table options}
|
||||||
FScrollBars : TScrollStyle; {scroll bar presence}
|
FScrollBars : TScrollStyle; {scroll bar presence}
|
||||||
Filler : byte;
|
Filler : byte;
|
||||||
|
{$IFDEF LCL}
|
||||||
|
FCtl3D : Boolean;
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
{property event fields}
|
{property event fields}
|
||||||
FActiveCellChanged : TCellNotifyEvent; {active cell changed event}
|
FActiveCellChanged : TCellNotifyEvent; {active cell changed event}
|
||||||
@ -368,7 +371,9 @@ type
|
|||||||
|
|
||||||
{Delphi component messages}
|
{Delphi component messages}
|
||||||
procedure CMColorChanged(var Msg : TMessage); message CM_COLORCHANGED;
|
procedure CMColorChanged(var Msg : TMessage); message CM_COLORCHANGED;
|
||||||
|
{$IFNDEF LCL}
|
||||||
procedure CMCtl3DChanged(var Msg : TMessage); message CM_CTL3DCHANGED;
|
procedure CMCtl3DChanged(var Msg : TMessage); message CM_CTL3DCHANGED;
|
||||||
|
{$ENDIF}
|
||||||
procedure CMDesignHitTest(var Msg : TCMDesignHitTest); message CM_DESIGNHITTEST;
|
procedure CMDesignHitTest(var Msg : TCMDesignHitTest); message CM_DESIGNHITTEST;
|
||||||
procedure CMFontChanged(var Msg : TMessage); message CM_FONTCHANGED;
|
procedure CMFontChanged(var Msg : TMessage); message CM_FONTCHANGED;
|
||||||
|
|
||||||
@ -490,6 +495,10 @@ type
|
|||||||
property TopRow : TRowNum
|
property TopRow : TRowNum
|
||||||
read FTopRow write SetTopRow;
|
read FTopRow write SetTopRow;
|
||||||
|
|
||||||
|
{$IFDEF LCL}
|
||||||
|
property Ctl3D : Boolean read FCtl3D write FCtl3D default True;
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
{New events}
|
{New events}
|
||||||
property OnActiveCellChanged : TCellNotifyEvent
|
property OnActiveCellChanged : TCellNotifyEvent
|
||||||
read FActiveCellChanged write FActiveCellChanged;
|
read FActiveCellChanged write FActiveCellChanged;
|
||||||
@ -680,7 +689,9 @@ type
|
|||||||
property LockedRowsCell;
|
property LockedRowsCell;
|
||||||
property Options default [];
|
property Options default [];
|
||||||
property ParentColor default False;
|
property ParentColor default False;
|
||||||
|
{$IFNDEF LCL}
|
||||||
property ParentCtl3D;
|
property ParentCtl3D;
|
||||||
|
{$ENDIF}
|
||||||
property ParentFont;
|
property ParentFont;
|
||||||
property ParentShowHint;
|
property ParentShowHint;
|
||||||
property PopupMenu;
|
property PopupMenu;
|
||||||
@ -807,6 +818,10 @@ constructor TOvcCustomTable.Create(AOwner : TComponent);
|
|||||||
FTopRow := tbDefLockedRows;
|
FTopRow := tbDefLockedRows;
|
||||||
FSelAnchorRow := tbDefLockedRows;
|
FSelAnchorRow := tbDefLockedRows;
|
||||||
|
|
||||||
|
{$IFDEF LCL}
|
||||||
|
FCtl3D := True;
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
{$IFNDEF LCL}
|
{$IFNDEF LCL}
|
||||||
tbColMoveCursor := LoadBaseCursor('ORCOLUMNMOVECURSOR');
|
tbColMoveCursor := LoadBaseCursor('ORCOLUMNMOVECURSOR');
|
||||||
tbRowMoveCursor := LoadBaseCursor('ORROWMOVECURSOR');
|
tbRowMoveCursor := LoadBaseCursor('ORROWMOVECURSOR');
|
||||||
@ -5328,6 +5343,7 @@ procedure TOvcCustomTable.CMColorChanged(var Msg : TMessage);
|
|||||||
AllowRedraw := true;
|
AllowRedraw := true;
|
||||||
end;
|
end;
|
||||||
{--------}
|
{--------}
|
||||||
|
{$IFNDEF LCL}
|
||||||
procedure TOvcCustomTable.CMCtl3DChanged(var Msg : TMessage);
|
procedure TOvcCustomTable.CMCtl3DChanged(var Msg : TMessage);
|
||||||
begin
|
begin
|
||||||
if (csLoading in ComponentState) or not HandleAllocated then
|
if (csLoading in ComponentState) or not HandleAllocated then
|
||||||
@ -5342,6 +5358,7 @@ procedure TOvcCustomTable.CMCtl3DChanged(var Msg : TMessage);
|
|||||||
|
|
||||||
inherited;
|
inherited;
|
||||||
end;
|
end;
|
||||||
|
{$ENDIF}
|
||||||
{--------}
|
{--------}
|
||||||
procedure TOvcCustomTable.CMDesignHitTest(var Msg : TCMDesignHitTest);
|
procedure TOvcCustomTable.CMDesignHitTest(var Msg : TCMDesignHitTest);
|
||||||
var
|
var
|
||||||
|
@ -64,6 +64,9 @@ type
|
|||||||
PrevEditWndProc : pointer;
|
PrevEditWndProc : pointer;
|
||||||
NewEditWndProc : pointer;
|
NewEditWndProc : pointer;
|
||||||
{.Z-}
|
{.Z-}
|
||||||
|
{$IFDEF LCL}
|
||||||
|
FCtl3D : Boolean;
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
protected
|
protected
|
||||||
{.Z+}
|
{.Z+}
|
||||||
@ -86,6 +89,9 @@ type
|
|||||||
|
|
||||||
property CellOwner : TOvcBaseTableCell
|
property CellOwner : TOvcBaseTableCell
|
||||||
read FCell write FCell;
|
read FCell write FCell;
|
||||||
|
{$IFDEF LCL}
|
||||||
|
property Ctl3D : Boolean read FCtl3D write FCtl3D;
|
||||||
|
{$ENDIF}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
TOvcTCCustomComboBox = class(TOvcTCBaseString)
|
TOvcTCCustomComboBox = class(TOvcTCBaseString)
|
||||||
|
@ -68,6 +68,9 @@ type
|
|||||||
FMaxLength : word;
|
FMaxLength : word;
|
||||||
FAutoAdvanceChar : boolean;
|
FAutoAdvanceChar : boolean;
|
||||||
FAutoAdvanceLeftRight : boolean;
|
FAutoAdvanceLeftRight : boolean;
|
||||||
|
{$IFDEF LCL}
|
||||||
|
FCtl3D : Boolean;
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
protected
|
protected
|
||||||
function GetCellEditor : TControl; override;
|
function GetCellEditor : TControl; override;
|
||||||
@ -82,6 +85,9 @@ type
|
|||||||
property MaxLength : word
|
property MaxLength : word
|
||||||
read FMaxLength write FMaxLength;
|
read FMaxLength write FMaxLength;
|
||||||
|
|
||||||
|
{$IFDEF LCL}
|
||||||
|
property Ctl3D : Boolean read FCtl3D write FCtl3D;
|
||||||
|
{$ENDIF}
|
||||||
public
|
public
|
||||||
function CreateEditControl(AOwner : TComponent) : TOvcTCStringEdit; virtual;
|
function CreateEditControl(AOwner : TComponent) : TOvcTCStringEdit; virtual;
|
||||||
|
|
||||||
@ -165,6 +171,9 @@ type
|
|||||||
FMaxLength : word;
|
FMaxLength : word;
|
||||||
FWantReturns : boolean;
|
FWantReturns : boolean;
|
||||||
FWantTabs : boolean;
|
FWantTabs : boolean;
|
||||||
|
{$IFDEF LCL}
|
||||||
|
FCtl3D : Boolean;
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
protected
|
protected
|
||||||
function GetCellEditor : TControl; override;
|
function GetCellEditor : TControl; override;
|
||||||
@ -179,6 +188,9 @@ type
|
|||||||
property WantTabs : boolean
|
property WantTabs : boolean
|
||||||
read FWantTabs write FWantTabs;
|
read FWantTabs write FWantTabs;
|
||||||
|
|
||||||
|
{$IFDEF LCL}
|
||||||
|
property Ctl3D : Boolean read FCtl3D write FCtl3D;
|
||||||
|
{$ENDIF}
|
||||||
public
|
public
|
||||||
constructor Create(AOwner : TComponent); override;
|
constructor Create(AOwner : TComponent); override;
|
||||||
function CreateEditControl(AOwner : TComponent) : TOvcTCMemoEdit; virtual;
|
function CreateEditControl(AOwner : TComponent) : TOvcTCMemoEdit; virtual;
|
||||||
|
@ -55,6 +55,9 @@ type
|
|||||||
FCol : TColNum;
|
FCol : TColNum;
|
||||||
FCellAttr : TOvcCellAttributes;
|
FCellAttr : TOvcCellAttributes;
|
||||||
{.Z-}
|
{.Z-}
|
||||||
|
{$IFDEF LCL}
|
||||||
|
FCtl3D : Boolean;
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
protected
|
protected
|
||||||
{.Z+}
|
{.Z+}
|
||||||
@ -75,6 +78,9 @@ type
|
|||||||
read FCell write FCell;
|
read FCell write FCell;
|
||||||
property Value : integer
|
property Value : integer
|
||||||
read FValue write SetValue;
|
read FValue write SetValue;
|
||||||
|
{$IFDEF LCL}
|
||||||
|
property Ctl3D : Boolean read FCtl3D write FCtl3D;
|
||||||
|
{$ENDIF}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
TOvcTCCustomGlyph = class(TOvcTCBaseBitMap)
|
TOvcTCCustomGlyph = class(TOvcTCBaseBitMap)
|
||||||
|
@ -151,6 +151,9 @@ type
|
|||||||
FTopIndex : LongInt; {item at top of window}
|
FTopIndex : LongInt; {item at top of window}
|
||||||
FUseTabStops : Boolean; {true to use tab stops}
|
FUseTabStops : Boolean; {true to use tab stops}
|
||||||
FWheelDelta : Integer;
|
FWheelDelta : Integer;
|
||||||
|
{$IFDEF LCL}
|
||||||
|
FCtl3D : Boolean;
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
{event variables}
|
{event variables}
|
||||||
FOnCharToItem : TCharToItemEvent;
|
FOnCharToItem : TCharToItemEvent;
|
||||||
@ -260,8 +263,10 @@ type
|
|||||||
{-scroll vertically}
|
{-scroll vertically}
|
||||||
|
|
||||||
{VCL control messages}
|
{VCL control messages}
|
||||||
|
{$IFNDEF LCL}
|
||||||
procedure CMCtl3DChanged(var Message: TMessage);
|
procedure CMCtl3DChanged(var Message: TMessage);
|
||||||
message CM_CTL3DCHANGED;
|
message CM_CTL3DCHANGED;
|
||||||
|
{$ENDIF}
|
||||||
procedure CMFontChanged(var Message: TMessage);
|
procedure CMFontChanged(var Message: TMessage);
|
||||||
message CM_FONTCHANGED;
|
message CM_FONTCHANGED;
|
||||||
|
|
||||||
@ -419,6 +424,9 @@ type
|
|||||||
read FUseTabStops write FUseTabStops default vlDefUseTabStops;
|
read FUseTabStops write FUseTabStops default vlDefUseTabStops;
|
||||||
property WheelDelta: Integer
|
property WheelDelta: Integer
|
||||||
read FWheelDelta write FWheelDelta default 3;
|
read FWheelDelta write FWheelDelta default 3;
|
||||||
|
{$IFDEF LCL}
|
||||||
|
property Ctl3D : Boolean read FCtl3D write FCtl3D default vlDefCtl3D;
|
||||||
|
{$ENDIF}
|
||||||
{protected events}
|
{protected events}
|
||||||
property OnCharToItem : TCharToItemEvent
|
property OnCharToItem : TCharToItemEvent
|
||||||
read FOnCharToItem write FOnCharToItem;
|
read FOnCharToItem write FOnCharToItem;
|
||||||
@ -536,7 +544,9 @@ type
|
|||||||
property Enabled;
|
property Enabled;
|
||||||
property Font;
|
property Font;
|
||||||
property ParentColor default vlDefParentColor;
|
property ParentColor default vlDefParentColor;
|
||||||
|
{$IFNDEF LCL}
|
||||||
property ParentCtl3D default vlDefParentCtl3D;
|
property ParentCtl3D default vlDefParentCtl3D;
|
||||||
|
{$ENDIF}
|
||||||
property ParentFont default vlDefParentFont;
|
property ParentFont default vlDefParentFont;
|
||||||
property ParentShowHint;
|
property ParentShowHint;
|
||||||
property PopupMenu;
|
property PopupMenu;
|
||||||
@ -607,6 +617,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
{$IFNDEF LCL}
|
||||||
procedure TOvcCustomVirtualListBox.CMCtl3DChanged(var Message: TMessage);
|
procedure TOvcCustomVirtualListBox.CMCtl3DChanged(var Message: TMessage);
|
||||||
begin
|
begin
|
||||||
if (csLoading in ComponentState) or not HandleAllocated then
|
if (csLoading in ComponentState) or not HandleAllocated then
|
||||||
@ -621,6 +632,7 @@ begin
|
|||||||
|
|
||||||
inherited;
|
inherited;
|
||||||
end;
|
end;
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
procedure TOvcCustomVirtualListBox.CMFontChanged(var Message: TMessage);
|
procedure TOvcCustomVirtualListBox.CMFontChanged(var Message: TMessage);
|
||||||
begin
|
begin
|
||||||
@ -660,7 +672,9 @@ begin
|
|||||||
Ctl3D := vlDefCtl3D;
|
Ctl3D := vlDefCtl3D;
|
||||||
Height := vlDefHeight;
|
Height := vlDefHeight;
|
||||||
ParentColor := vlDefParentColor;
|
ParentColor := vlDefParentColor;
|
||||||
|
{$IFNDEF LCL}
|
||||||
ParentCtl3D := vlDefParentCtl3D;
|
ParentCtl3D := vlDefParentCtl3D;
|
||||||
|
{$ENDIF}
|
||||||
ParentFont := vlDefParentFont;
|
ParentFont := vlDefParentFont;
|
||||||
TabStop := vlDefTabStop;
|
TabStop := vlDefTabStop;
|
||||||
Width := vlDefWidth;
|
Width := vlDefWidth;
|
||||||
|
@ -64,7 +64,11 @@ begin
|
|||||||
{$IFNDEF MSWINDOWS}
|
{$IFNDEF MSWINDOWS}
|
||||||
{TO32FlexEdit OnUserValidation doesn't work, so validate here
|
{TO32FlexEdit OnUserValidation doesn't work, so validate here
|
||||||
so user is notified if error, even though focus will change.}
|
so user is notified if error, even though focus will change.}
|
||||||
SendMessage(TO32FlexEdit(Sender).Handle, OM_VALIDATE, 0, 0);
|
// SendMessage(TO32FlexEdit(Sender).Handle, OM_VALIDATE, 0, 0);
|
||||||
|
// This workaround no longer works with LCL 0.9.28 -- error message dialog
|
||||||
|
// just repeats. SendMessage/OM_VALIDATE cancels exit event?
|
||||||
|
// PostMessage appears to work okay, though.
|
||||||
|
PostMessage(TO32FlexEdit(Sender).Handle, OM_VALIDATE, 0, 0);
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user