12
DeleteXpmArraySize=DeleteXpmHeight+DeleteXpmColors+1;
13
DeleteXpm : Array[1..DeleteXpmArraySize] of Pchar = (
14
'16 16 2 1', { 16x16 bitmap using 2 colors, 1 char per color}
15
'. c #000000', { First color: Black }
16
'# c None', { Second color : Transparent}
17
'################', { The bitmap }
35
PropertiesXpmHeight = 16;
36
PropertiesXpmColors = 4;
37
PropertiesXpmArraySize = PropertiesXpmHeight+PropertiesXpmColors+1;
38
PropertiesXpm : Array [1..PropertiesXpmArraySize] of PChar = (
39
'16 16 4 1', { 16x16 bitmap using 2 colors, 1 char per color}
40
'. c #000000', { First color : Black }
41
'# c #000080', { Second color : Light Blue }
42
'a c None', { Third color : Transparent }
43
'b c #f8fcf8', { Last color : greyish }
62
function CreateWidgetFromXPM (Window : PGtkWidget; Data : PPChar) : PgtkWidget;
66
function CreateWidgetFromXPM (Window : PGtkWidget; Data : PPChar) : PGtkWidget;
73
pixmap:=gdk_pixmap_create_from_xpm_d(window^.window,@mask,nil,ppgchar(Data));
74
Result:=gtk_pixmap_new(Pixmap,Mask);
75
gtk_widget_show(Result);