You've already forked lazarus-ccr
RxDateEdit - fix work with new ButtonEdit
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2943 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -3,8 +3,8 @@ rm rxdbgrid.lrs
|
|||||||
rm tooledit.res
|
rm tooledit.res
|
||||||
rm rxdbgrid.res
|
rm rxdbgrid.res
|
||||||
|
|
||||||
/usr/local/share/lazarus/tools/lazres tooledit.res picDateEdit.png
|
|
||||||
/usr/local/share/lazarus/tools/lazres rxdbgrid.res rx_markerdown.png rx_markerup.png
|
/usr/local/share/lazarus/tools/lazres rxdbgrid.res rx_markerdown.png rx_markerup.png
|
||||||
|
/usr/local/share/lazarus/tools/lazres rx_lcl.res picDateEdit.png rxbtn_downarrow.png
|
||||||
|
|
||||||
../../../../tools\lazres.exe tooledit.lrs picDateEdit.bmp
|
#../../../../tools\lazres.exe tooledit.lrs picDateEdit.bmp
|
||||||
#../../../../tools\lazres.exe rxdbgrid.lrs rx_markerdown.xpm rx_markerup.xpm
|
#../../../../tools\lazres.exe rxdbgrid.lrs rx_markerdown.xpm rx_markerup.xpm
|
||||||
|
Binary file not shown.
BIN
components/rx/trunk/images/componet_img/rxbtn_downarrow.png
Normal file
BIN
components/rx/trunk/images/componet_img/rxbtn_downarrow.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 124 B |
@ -57,9 +57,14 @@
|
|||||||
{$if FPC_FULLVERSION<20701}
|
{$if FPC_FULLVERSION<20701}
|
||||||
{$DEFINE NoAutomatedBookmark}
|
{$DEFINE NoAutomatedBookmark}
|
||||||
{$DEFINE RX_USE_LCL_DEVEL}
|
{$DEFINE RX_USE_LCL_DEVEL}
|
||||||
{$DEFINE RX_USE_LAZARUS_RESOURCE}
|
|
||||||
{$endif}
|
{$endif}
|
||||||
|
|
||||||
|
{$IFDEF OLD_EDITBUTTON}
|
||||||
|
{$if FPC_FULLVERSION<20701}
|
||||||
|
{$DEFINE RX_USE_LAZARUS_RESOURCE}
|
||||||
|
{$ENDIF}
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
{$IFDEF NoAutomatedBookmark}
|
{$IFDEF NoAutomatedBookmark}
|
||||||
{$ELSE}
|
{$ELSE}
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
BIN
components/rx/trunk/rx_lcl.res
Normal file
BIN
components/rx/trunk/rx_lcl.res
Normal file
Binary file not shown.
@ -627,12 +627,7 @@ begin
|
|||||||
FLookupDataLink.FOnLayoutChanged:=@ListLinkActiveChanged;
|
FLookupDataLink.FOnLayoutChanged:=@ListLinkActiveChanged;
|
||||||
FLookupDataLink.FOnDataSetChanged:=@LookupDataSetChanged;
|
FLookupDataLink.FOnDataSetChanged:=@LookupDataSetChanged;
|
||||||
|
|
||||||
|
|
||||||
// FDropDownCount:=8;
|
|
||||||
FFieldList:=TStringList.Create;
|
FFieldList:=TStringList.Create;
|
||||||
P:=CreateArrowBitmap;
|
|
||||||
Glyph.Assign(P);
|
|
||||||
P.Free;
|
|
||||||
ButtonWidth:=15;
|
ButtonWidth:=15;
|
||||||
FPopUpFormOptions:=TPopUpFormOptions.Create(Self);
|
FPopUpFormOptions:=TPopUpFormOptions.Create(Self);
|
||||||
end;
|
end;
|
||||||
|
@ -26,8 +26,8 @@ Copyright (c) 1998 Master-Bank
|
|||||||
translate to Lazarus by alexs in 2005 - 2014
|
translate to Lazarus by alexs in 2005 - 2014
|
||||||
"/>
|
"/>
|
||||||
<License Value="LGPL"/>
|
<License Value="LGPL"/>
|
||||||
<Version Major="2" Minor="6" Release="4" Build="142"/>
|
<Version Major="2" Minor="6" Release="5" Build="152"/>
|
||||||
<Files Count="67">
|
<Files Count="68">
|
||||||
<Item1>
|
<Item1>
|
||||||
<Filename Value="autopanel.pas"/>
|
<Filename Value="autopanel.pas"/>
|
||||||
<UnitName Value="AutoPanel"/>
|
<UnitName Value="AutoPanel"/>
|
||||||
@ -299,6 +299,10 @@ translate to Lazarus by alexs in 2005 - 2014
|
|||||||
<Filename Value="rxinipropstorage.pas"/>
|
<Filename Value="rxinipropstorage.pas"/>
|
||||||
<UnitName Value="RxIniPropStorage"/>
|
<UnitName Value="RxIniPropStorage"/>
|
||||||
</Item67>
|
</Item67>
|
||||||
|
<Item68>
|
||||||
|
<Filename Value="rx_lcl.res"/>
|
||||||
|
<Type Value="Binary"/>
|
||||||
|
</Item68>
|
||||||
</Files>
|
</Files>
|
||||||
<LazDoc Paths="docs;\usr\local\share\lazarus\components\rxnew\docs"/>
|
<LazDoc Paths="docs;\usr\local\share\lazarus\components\rxnew\docs"/>
|
||||||
<i18n>
|
<i18n>
|
||||||
|
@ -230,9 +230,9 @@ uses lclintf, LCLStrConsts, rxconst, rxstrutils, LResources,
|
|||||||
Forms, LCLProc,
|
Forms, LCLProc,
|
||||||
variants;
|
variants;
|
||||||
|
|
||||||
{$IFNDEF RX_USE_LAZARUS_RESOURCE}
|
{.$IFNDEF RX_USE_LAZARUS_RESOURCE}
|
||||||
{$R tooledit.res}
|
{.$R tooledit.res}
|
||||||
{$ENDIF}
|
{.$ENDIF}
|
||||||
|
|
||||||
type
|
type
|
||||||
TPopupCalendarAccess = class(TPopupCalendar)
|
TPopupCalendarAccess = class(TPopupCalendar)
|
||||||
|
@ -104,6 +104,10 @@ procedure OutOfResources;
|
|||||||
implementation
|
implementation
|
||||||
uses LCLProc, LCLIntf, LCLType, LCLStrConsts;
|
uses LCLProc, LCLIntf, LCLType, LCLStrConsts;
|
||||||
|
|
||||||
|
{$IFNDEF RX_USE_LAZARUS_RESOURCE}
|
||||||
|
{$R rx_lcl.res}
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
function WidthOf(R: TRect): Integer;
|
function WidthOf(R: TRect): Integer;
|
||||||
begin
|
begin
|
||||||
Result := R.Right - R.Left;
|
Result := R.Right - R.Left;
|
||||||
@ -600,10 +604,26 @@ end;
|
|||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
|
||||||
function CreateArrowBitmap:TBitmap;
|
function CreateArrowBitmap:TBitmap;
|
||||||
|
var
|
||||||
|
C : TCustomBitmap;
|
||||||
begin
|
begin
|
||||||
|
{$IFNDEF RX_USE_LAZARUS_RESOURCE}
|
||||||
|
Result := TBitmap.Create;
|
||||||
|
try
|
||||||
|
try
|
||||||
|
C := TPortableNetworkGraphic.Create;
|
||||||
|
C.LoadFromResourceName(hInstance, 'rxbtn_downarrow');
|
||||||
|
Result.Assign(C);
|
||||||
|
finally
|
||||||
|
C.Free;
|
||||||
|
end;
|
||||||
|
except
|
||||||
|
Result.Free;
|
||||||
|
raise;
|
||||||
|
end;
|
||||||
|
{$ELSE}
|
||||||
Result:=LoadLazResBitmapImage('rxbtn_downarrow')
|
Result:=LoadLazResBitmapImage('rxbtn_downarrow')
|
||||||
{ Result:=Graphics.TBitmap.Create;
|
{$ENDIF}
|
||||||
Result.LoadFromLazarusResource('rxbtn_downarrow');}
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
//Code from DBGrid
|
//Code from DBGrid
|
||||||
@ -650,10 +670,13 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
initialization
|
initialization
|
||||||
|
{$IFDEF RX_USE_LAZARUS_RESOURCE}
|
||||||
LazarusResources.Add('rxbtn_downarrow','XPM',[
|
LazarusResources.Add('rxbtn_downarrow','XPM',[
|
||||||
'/* XPM */'#13#10'static char * btn_downarrow_xpm[] = {'#13#10'"5 3 2 1",'#13
|
'/* XPM */'#13#10'static char * btn_downarrow_xpm[] = {'#13#10'"5 3 2 1",'#13
|
||||||
+#10'" '#9'c None",'#13#10'".'#9'c #000000",'#13#10'".....",'#13#10'" ... ",'
|
+#10'" '#9'c None",'#13#10'".'#9'c #000000",'#13#10'".....",'#13#10'" ... ",'
|
||||||
+#13#10'" . "};'#13#10]);
|
+#13#10'" . "};'#13#10]);
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user