界面库
优化
This commit is contained in:
@@ -1887,11 +1887,12 @@ type tsgtkapi = class(tgtkapis)
|
||||
//cairo_pattern_set_extend(cairo_get_source(hdc),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]);
|
||||
if flag = 0x8800c6 or flag = 0x4 then
|
||||
if flag = 0x8800c6 or flag = 0x4 then
|
||||
begin
|
||||
//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_operator(hdc, 12);
|
||||
end else
|
||||
begin
|
||||
//cairo_paint_with_alpha(hdc,0);
|
||||
@@ -1900,6 +1901,7 @@ type tsgtkapi = class(tgtkapis)
|
||||
//cairo_fill(hdc);
|
||||
end
|
||||
cairo_fill(hdc);
|
||||
//cairo_set_operator(hdc, 1);
|
||||
//cairo_set_source_surface(hdc, img, x-rc[0], y-rc[1]);
|
||||
end
|
||||
function drawbitmapstretchtodc(bm,hdc,drect,rc,flag,thdc);
|
||||
@@ -2567,12 +2569,13 @@ type tsgtkapi = class(tgtkapis)
|
||||
h := gtk_event_box_new();
|
||||
gtk_widget_hide(h);
|
||||
g_object_set_data(hwnd,"gtk_window_caret",h);
|
||||
if nWidth>=0 and nHeight>=0 then
|
||||
begin
|
||||
g_object_set_data(h,"width_c",nWidth);
|
||||
g_object_set_data(h,"heigt_c",nHeight);
|
||||
end
|
||||
|
||||
end
|
||||
if nWidth>=0 and nHeight>=0 then
|
||||
begin
|
||||
g_object_set_data(h,"width_c",nWidth);
|
||||
g_object_set_data(h,"heigt_c",nHeight);
|
||||
end
|
||||
return h;
|
||||
end
|
||||
function DestroyCaret():integer;
|
||||
|
||||
@@ -324,7 +324,7 @@ type tcustompagecontrol = class(TCustomControl)
|
||||
|
||||
if FCurrentid=i then
|
||||
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);
|
||||
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)));
|
||||
@@ -431,10 +431,10 @@ type tcustompagecontrol = class(TCustomControl)
|
||||
PaintTabs();
|
||||
PaintScroll();
|
||||
end
|
||||
|
||||
function MouseUp(o,e);override;
|
||||
begin
|
||||
ps := e.pos();
|
||||
if e.button()=mbRight then return ;
|
||||
if FScrollBtnRect and pointinrect(ps,fnextrect) then
|
||||
begin
|
||||
if e.Button() = mbLeft then
|
||||
|
||||
@@ -4587,7 +4587,17 @@ type TcustomToolBar=class(TCustomControl)
|
||||
begin
|
||||
c.draw("framecontrol",array(ci[0:1],ci[2:3]),DFC_BUTTON,DFCS_BUTTONCHECK);
|
||||
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;
|
||||
if igslist is class(TCustomImageList)then
|
||||
begin
|
||||
|
||||
Reference in New Issue
Block a user