parent
76fa95bd22
commit
1042970ffe
|
|
@ -667,7 +667,7 @@ type TDVirutalWindow = class(TCustomControl)
|
||||||
function paint();override;
|
function paint();override;
|
||||||
begin
|
begin
|
||||||
//canvas.draw("polyline",array((0,0),(20,0),(20,20),(0,20)));
|
//canvas.draw("polyline",array((0,0),(20,0),(20,20),(0,20)));
|
||||||
canvas.StretchDraw(array(0,0,30,30),GetBitmap());
|
canvas.StretchDraw(array(1,1,width-3,height-3),GetBitmap());
|
||||||
end
|
end
|
||||||
function GetBitmap();
|
function GetBitmap();
|
||||||
begin
|
begin
|
||||||
|
|
@ -702,7 +702,7 @@ type TDVirutalWindow = class(TCustomControl)
|
||||||
r := FBindComponent.GetPublishEvents();
|
r := FBindComponent.GetPublishEvents();
|
||||||
return r;
|
return r;
|
||||||
end
|
end
|
||||||
if not r then return array(1:nil);
|
if not r then return array();//array(1:nil);
|
||||||
return r;
|
return r;
|
||||||
end
|
end
|
||||||
function GetChangedPublish();override;
|
function GetChangedPublish();override;
|
||||||
|
|
@ -2157,7 +2157,7 @@ type TDFileWindow = class(TDVirutalWindow)
|
||||||
end
|
end
|
||||||
function GetPublishEvents();override;
|
function GetPublishEvents();override;
|
||||||
begin
|
begin
|
||||||
return array(1:nil);
|
return array();//array(1:nil);
|
||||||
end
|
end
|
||||||
function bitmapinfo();override;
|
function bitmapinfo();override;
|
||||||
begin
|
begin
|
||||||
|
|
@ -2176,7 +2176,7 @@ type TDFileSaveWindow = class(TDVirutalWindow)
|
||||||
end
|
end
|
||||||
function GetPublishEvents();override;
|
function GetPublishEvents();override;
|
||||||
begin
|
begin
|
||||||
return array(1:nil);
|
return array();//array(1:nil);
|
||||||
end
|
end
|
||||||
function bitmapinfo();override;
|
function bitmapinfo();override;
|
||||||
begin
|
begin
|
||||||
|
|
@ -2196,7 +2196,7 @@ type TDInputQuerysWindow = class(TDVirutalWindow)
|
||||||
function GetPublishEvents();override;
|
function GetPublishEvents();override;
|
||||||
begin
|
begin
|
||||||
return array();
|
return array();
|
||||||
//return array(1:nil);
|
//return array();//array(1:nil);
|
||||||
end
|
end
|
||||||
function bitmapinfo();override;
|
function bitmapinfo();override;
|
||||||
begin
|
begin
|
||||||
|
|
@ -2216,7 +2216,7 @@ type TDColorChooseWindow = class(TDVirutalWindow)
|
||||||
end
|
end
|
||||||
function GetPublishEvents();override;
|
function GetPublishEvents();override;
|
||||||
begin
|
begin
|
||||||
return array(1:nil);
|
return array();//array(1:nil);
|
||||||
end
|
end
|
||||||
function bitmapinfo();override;
|
function bitmapinfo();override;
|
||||||
begin
|
begin
|
||||||
|
|
@ -2235,7 +2235,7 @@ type TDFontChooseWindow = class(TDVirutalWindow)
|
||||||
end
|
end
|
||||||
function GetPublishEvents();override;
|
function GetPublishEvents();override;
|
||||||
begin
|
begin
|
||||||
return array(1:nil);
|
return array();//array(1:nil);
|
||||||
end
|
end
|
||||||
function bitmapinfo();override;
|
function bitmapinfo();override;
|
||||||
begin
|
begin
|
||||||
|
|
@ -2254,7 +2254,7 @@ type TDFolderChooseWindow = class(TDVirutalWindow)
|
||||||
end
|
end
|
||||||
function GetPublishEvents();override;
|
function GetPublishEvents();override;
|
||||||
begin
|
begin
|
||||||
return array(1:nil);
|
return array();//array(1:nil);
|
||||||
end
|
end
|
||||||
function bitmapinfo();override;
|
function bitmapinfo();override;
|
||||||
begin
|
begin
|
||||||
|
|
@ -7092,7 +7092,7 @@ type TPropEditGrid = class(TPropGrid)
|
||||||
TSLData := v.GetPublishProperties();
|
TSLData := v.GetPublishProperties();
|
||||||
end else
|
end else
|
||||||
begin
|
begin
|
||||||
TSLData := array(NIL);
|
TSLData := array();//array(NIL);
|
||||||
end
|
end
|
||||||
inherited;
|
inherited;
|
||||||
end
|
end
|
||||||
|
|
@ -8409,7 +8409,7 @@ type TDMessageboxWindow = class(TDVirutalWindow)
|
||||||
end
|
end
|
||||||
function GetPublishEvents();override;
|
function GetPublishEvents();override;
|
||||||
begin
|
begin
|
||||||
return array(1:nil);
|
return array();//array(1:nil);
|
||||||
end
|
end
|
||||||
function bitmapinfo();override;
|
function bitmapinfo();override;
|
||||||
begin
|
begin
|
||||||
|
|
|
||||||
|
|
@ -1887,11 +1887,12 @@ type tsgtkapi = class(tgtkapis)
|
||||||
//cairo_pattern_set_extend(cairo_get_source(hdc),1);
|
//cairo_pattern_set_extend(cairo_get_source(hdc),1);
|
||||||
cairo_set_source_surface(hdc, img, x-rc[0], y-rc[1]);
|
cairo_set_source_surface(hdc, img, x-rc[0], y-rc[1]);
|
||||||
cairo_rectangle(hdc,xb+x,yb+y,rc[2]-rc[0],rc[3]-rc[1]);
|
cairo_rectangle(hdc,xb+x,yb+y,rc[2]-rc[0],rc[3]-rc[1]);
|
||||||
if flag = 0x8800c6 or flag = 0x4 then
|
if flag = 0x8800c6 or flag = 0x4 then
|
||||||
begin
|
begin
|
||||||
//echo "\r\nset alopha***********";
|
//echo "\r\nset alopha***********";
|
||||||
//cairo_paint_with_alpha(hdc,0.5);
|
//cairo_paint_with_alpha(hdc,0.2);
|
||||||
//cairo_set_source_rgba(hdc, 0.6, 0.6, 0.6, 0.5);
|
//cairo_set_source_rgba(hdc, 0.6, 0.6, 0.6, 0.5);
|
||||||
|
//cairo_set_operator(hdc, 12);
|
||||||
end else
|
end else
|
||||||
begin
|
begin
|
||||||
//cairo_paint_with_alpha(hdc,0);
|
//cairo_paint_with_alpha(hdc,0);
|
||||||
|
|
@ -1900,6 +1901,7 @@ type tsgtkapi = class(tgtkapis)
|
||||||
//cairo_fill(hdc);
|
//cairo_fill(hdc);
|
||||||
end
|
end
|
||||||
cairo_fill(hdc);
|
cairo_fill(hdc);
|
||||||
|
//cairo_set_operator(hdc, 1);
|
||||||
//cairo_set_source_surface(hdc, img, x-rc[0], y-rc[1]);
|
//cairo_set_source_surface(hdc, img, x-rc[0], y-rc[1]);
|
||||||
end
|
end
|
||||||
function drawbitmapstretchtodc(bm,hdc,drect,rc,flag,thdc);
|
function drawbitmapstretchtodc(bm,hdc,drect,rc,flag,thdc);
|
||||||
|
|
@ -2567,11 +2569,12 @@ type tsgtkapi = class(tgtkapis)
|
||||||
h := gtk_event_box_new();
|
h := gtk_event_box_new();
|
||||||
gtk_widget_hide(h);
|
gtk_widget_hide(h);
|
||||||
g_object_set_data(hwnd,"gtk_window_caret",h);
|
g_object_set_data(hwnd,"gtk_window_caret",h);
|
||||||
if nWidth>=0 and nHeight>=0 then
|
|
||||||
begin
|
end
|
||||||
g_object_set_data(h,"width_c",nWidth);
|
if nWidth>=0 and nHeight>=0 then
|
||||||
g_object_set_data(h,"heigt_c",nHeight);
|
begin
|
||||||
end
|
g_object_set_data(h,"width_c",nWidth);
|
||||||
|
g_object_set_data(h,"heigt_c",nHeight);
|
||||||
end
|
end
|
||||||
return h;
|
return h;
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -324,7 +324,7 @@ type tcustompagecontrol = class(TCustomControl)
|
||||||
|
|
||||||
if FCurrentid=i then
|
if FCurrentid=i then
|
||||||
begin
|
begin
|
||||||
dc.brush.color := rgb(200,200,200);
|
dc.brush.color := rgb(100,192,250);//rgb(230,240,250);//rgb(200,200,200);
|
||||||
end else dc.brush.color := rgb(254,254,254);
|
end else dc.brush.color := rgb(254,254,254);
|
||||||
dc.draw("roundrect",array(rec[0:1],rec[2:3],array(2,2)));
|
dc.draw("roundrect",array(rec[0:1],rec[2:3],array(2,2)));
|
||||||
//dc.draw("rectangle",array(rec[0:1],rec[2:3],array(5,5)));
|
//dc.draw("rectangle",array(rec[0:1],rec[2:3],array(5,5)));
|
||||||
|
|
@ -431,10 +431,10 @@ type tcustompagecontrol = class(TCustomControl)
|
||||||
PaintTabs();
|
PaintTabs();
|
||||||
PaintScroll();
|
PaintScroll();
|
||||||
end
|
end
|
||||||
|
|
||||||
function MouseUp(o,e);override;
|
function MouseUp(o,e);override;
|
||||||
begin
|
begin
|
||||||
ps := e.pos();
|
ps := e.pos();
|
||||||
|
if e.button()=mbRight then return ;
|
||||||
if FScrollBtnRect and pointinrect(ps,fnextrect) then
|
if FScrollBtnRect and pointinrect(ps,fnextrect) then
|
||||||
begin
|
begin
|
||||||
if e.Button() = mbLeft then
|
if e.Button() = mbLeft then
|
||||||
|
|
|
||||||
|
|
@ -4587,7 +4587,17 @@ type TcustomToolBar=class(TCustomControl)
|
||||||
begin
|
begin
|
||||||
c.draw("framecontrol",array(ci[0:1],ci[2:3]),DFC_BUTTON,DFCS_BUTTONCHECK);
|
c.draw("framecontrol",array(ci[0:1],ci[2:3]),DFC_BUTTON,DFCS_BUTTONCHECK);
|
||||||
end else
|
end else
|
||||||
c.draw("framecontrol",array(ci[0:1],ci[2:3]),DFC_BUTTON,DFCS_BUTTONPUSH);
|
begin
|
||||||
|
if bi.enabled then
|
||||||
|
begin
|
||||||
|
c.draw("framecontrol",array(ci[0:1],ci[2:3]),DFC_BUTTON,DFCS_BUTTONPUSH);
|
||||||
|
end else
|
||||||
|
begin
|
||||||
|
c.brush.Color := 0x8c8c8c;////0xc0c0cc;
|
||||||
|
c.FillRect(ci);
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
igslist := ImageList;
|
igslist := ImageList;
|
||||||
if igslist is class(TCustomImageList)then
|
if igslist is class(TCustomImageList)then
|
||||||
begin
|
begin
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue