You've already forked lazarus-ccr
tvplanit: Define initial control size by GetControlClassDefaultSize. New icons in PrintPreview dialog. Consistent 3D look of TVpPrintPreview.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8469 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -38,7 +38,7 @@ uses
|
||||
{$ELSE}
|
||||
Windows, Messages,
|
||||
{$ENDIF}
|
||||
Classes, Graphics, Controls, ExtCtrls, StdCtrls, Forms, Menus,
|
||||
Classes, Graphics, Types, Controls, StdCtrls, ExtCtrls, Forms, Menus,
|
||||
VpConst, VpBase, VpBaseDS, VpMisc, VpData, VpSR;
|
||||
|
||||
const
|
||||
@ -193,6 +193,7 @@ type
|
||||
procedure CreateParams(var Params: TCreateParams); override;
|
||||
procedure CreateWnd; override;
|
||||
function GetContactIndexByCoord(Pnt: TPoint): Integer;
|
||||
class function GetControlClassDefaultSize: TSize; override;
|
||||
function GetDisplayEMailField(AContact: TVpContact): String;
|
||||
function GetDisplayEMailValue(AContact: TVpContact): String;
|
||||
procedure SetDisplayEMailValue(AContact: TVpContact; AEMail: String);
|
||||
@ -523,15 +524,16 @@ begin
|
||||
cgDragBarNumber := -1;
|
||||
FMouseContactIndex := -1;
|
||||
|
||||
{ size }
|
||||
Height := 299;
|
||||
Width := 225;
|
||||
|
||||
// Popup menu
|
||||
FDefaultPopup := TPopupMenu.Create(Self);
|
||||
FDefaultPopup.Name := 'default';
|
||||
InitializeDefaultPopup;
|
||||
Self.PopupMenu := FDefaultPopup;
|
||||
|
||||
// Initial size of the control
|
||||
with GetControlClassDefaultSize do
|
||||
SetInitialBounds(0, 0, CX, CY);
|
||||
|
||||
LoadLanguage;
|
||||
|
||||
cgHookUp;
|
||||
@ -752,6 +754,13 @@ begin
|
||||
Result := '';
|
||||
end;
|
||||
|
||||
{ Defines the initial size of the control. }
|
||||
class function TVpContactGrid.GetControlClassDefaultSize: TSize;
|
||||
begin
|
||||
Result.CX := 225;
|
||||
Result.CY := 300;
|
||||
end;
|
||||
|
||||
function TVpContactGrid.GetControlType : TVpItemType;
|
||||
begin
|
||||
Result := itContacts;
|
||||
|
Reference in New Issue
Block a user