mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-10-24 21:31:43 +02:00
examples: use FPC resources for component images
git-svn-id: trunk@43103 -
This commit is contained in:
parent
caf5ed2d2f
commit
29d5850f58
4
.gitattributes
vendored
4
.gitattributes
vendored
@ -4490,12 +4490,12 @@ examples/gridexamples/grid_semaphor/example/table04hidden.stb -text svneol=unset
|
||||
examples/gridexamples/grid_semaphor/example/unit1.lfm svneol=native#text/plain
|
||||
examples/gridexamples/grid_semaphor/example/unit1.pas svneol=native#text/pascal
|
||||
examples/gridexamples/grid_semaphor/readme.txt svneol=native#text/plain
|
||||
examples/gridexamples/grid_semaphor/semaphordbgridicon.lrs svneol=native#text/pascal
|
||||
examples/gridexamples/grid_semaphor/semaphordbgridicon.res -text
|
||||
examples/gridexamples/grid_semaphor/semaphordbgrids.pas svneol=native#text/pascal
|
||||
examples/gridexamples/grid_semaphor/semaphorgridlpk.lpk svneol=native#text/pascal
|
||||
examples/gridexamples/grid_semaphor/semaphorgridlpk.pas svneol=native#text/pascal
|
||||
examples/gridexamples/grid_semaphor/semaphorgrids.pas svneol=native#text/pascal
|
||||
examples/gridexamples/grid_semaphor/semaphorgridsicon.lrs svneol=native#text/pascal
|
||||
examples/gridexamples/grid_semaphor/semaphorgridsicon.res -text
|
||||
examples/gridexamples/grid_semaphor/tsemaphorgrid.xpm -text svneol=native#image/x-xpixmap
|
||||
examples/gridexamples/gridcelleditor/gridcelleditor.lpi svneol=native#text/plain
|
||||
examples/gridexamples/gridcelleditor/gridcelleditor.lpr svneol=native#text/plain
|
||||
|
||||
@ -1,15 +0,0 @@
|
||||
LazarusResources.Add('TSemaphorDBGrid','XPM',[
|
||||
'/* XPM */'#13#10'static char * TSemaphorDBGrid_xpm[] = {'#13#10'"21 21 9 1",'
|
||||
+#13#10'" '#9'c None",'#13#10'".'#9'c #040404",'#13#10'"+'#9'c #048404",'#13
|
||||
+#10'"@'#9'c #7A7A7A",'#13#10'"#'#9'c #BABABA",'#13#10'"$'#9'c #FA0404",'#13
|
||||
+#10'"%'#9'c #FA04FA",'#13#10'"&'#9'c #FAFA04",'#13#10'"*'#9'c #FAFAFA",'#13
|
||||
+#10'"@@@@@@@@@@@@@@@ ",'#13#10'"@#@*####*#####@ ",'#13#10'"@@@@@@@'
|
||||
+'@@@@@@@@ ",'#13#10'"@#@****#******@ $$ ",'#13#10'"@*@*$$*#*++++*@ $$'
|
||||
+'$$ ",'#13#10'"@#@****#******@ $$$$ ",'#13#10'"@*@*&&*#*###**@ $$ ",'#13#10
|
||||
+'"@#@****#******@ ",'#13#10'"@*@..............&&..",'#13#10'"@#@.#.*###'
|
||||
+'##*###&&&&.",'#13#10'"@@@.............&&&&.",'#13#10'" .#.*****#*****&&*.'
|
||||
+'",'#13#10'" .*.##############.",'#13#10'" .#.*****#*****++*.",'#13#10'"'
|
||||
+' .*.##########++++.",'#13#10'" .#.*****#****++++.",'#13#10'" .*.#####'
|
||||
+'######++#.",'#13#10'" .#.*****#********.",'#13#10'" .*.##############."'
|
||||
+','#13#10'" .#.*****#********.",'#13#10'" .................."};'#13#10
|
||||
]);
|
||||
BIN
examples/gridexamples/grid_semaphor/semaphordbgridicon.res
Normal file
BIN
examples/gridexamples/grid_semaphor/semaphordbgridicon.res
Normal file
Binary file not shown.
@ -67,6 +67,8 @@ procedure Register;
|
||||
|
||||
implementation
|
||||
|
||||
{$R SemaphorDBGridIcon.res}
|
||||
|
||||
procedure TSemaphorDBGrid.SetSemaphorShape(Value : TSemaphorShape);
|
||||
begin
|
||||
FSemaphorShape:=Value;
|
||||
@ -165,9 +167,6 @@ begin
|
||||
RegisterComponents('Data Controls',[TSemaphorDBGrid]);
|
||||
end;
|
||||
|
||||
initialization
|
||||
{$I SemaphorDBGridIcon.lrs}
|
||||
|
||||
end.
|
||||
|
||||
|
||||
|
||||
@ -148,6 +148,8 @@ procedure Register;
|
||||
|
||||
implementation
|
||||
|
||||
{$R SemaphorGridsicon.res}
|
||||
|
||||
procedure TSemaphorGrid.DrawCell(aCol,aRow: Integer; aRect: TRect; aState:TGridDrawState);
|
||||
const dr=4;
|
||||
var Rect:TRect;
|
||||
@ -772,8 +774,5 @@ begin
|
||||
RegisterComponents('Additional',[TSemaphorGrid]);
|
||||
end;
|
||||
|
||||
initialization
|
||||
{$I SemaphorGridsicon.lrs}
|
||||
|
||||
end.
|
||||
|
||||
|
||||
@ -1,17 +0,0 @@
|
||||
LazarusResources.Add('TSemaphorGrid','XPM',[
|
||||
'/* XPM */'#13#10'static char * TSemaforoGrid_xpm[] = {'#13#10'"23 23 10 1",'
|
||||
+#13#10'" '#9'c None",'#13#10'".'#9'c #000000",'#13#10'"+'#9'c #FF0000",'#13
|
||||
+#10'"@'#9'c #C0C0C0",'#13#10'"#'#9'c #FFFFFF",'#13#10'"$'#9'c #46A057",'#13
|
||||
+#10'"%'#9'c #FFFF00",'#13#10'"&'#9'c #008000",'#13#10'"*'#9'c #1D0101",'#13
|
||||
+#10'"='#9'c #0E0000",'#13#10'" ",'#13#10'" ...........'
|
||||
+'..... ++ ",'#13#10'" .@.#@@@@#@@@@@@. ++++ ",'#13#10'" ................ +'
|
||||
+'+++ ",'#13#10'" .@.####@#######. ++ ",'#13#10'" .#.#$$#@#%%%%%#. ",'
|
||||
+#13#10'" .@.####@#######. %% ",'#13#10'" .#.#++#@#....##. %%%% ",'#13#10'"'
|
||||
+' .@.####@#######. %%%% ",'#13#10'" .#.#%%#@#$$$$$#. %% ",'#13#10'" .@.###'
|
||||
+'#@#######. ",'#13#10'" .#.#..#@#++++##. && ",'#13#10'" .@.####@#####'
|
||||
+'##. &&&& ",'#13#10'" *=.............. &&&& ",'#13#10'" + &&'
|
||||
+' ",'#13#10'" + ",'#13#10'" ++ +++ ++ ",'#13
|
||||
+#10'" + + + + + ",'#13#10'" +++ + + + ",'#13#10'" +'
|
||||
+' + + + + ",'#13#10'" + + + + + + ",'#13#10'" +++ +++'
|
||||
+' ++ ",'#13#10'" "};'#13#10
|
||||
]);
|
||||
BIN
examples/gridexamples/grid_semaphor/semaphorgridsicon.res
Normal file
BIN
examples/gridexamples/grid_semaphor/semaphorgridsicon.res
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user