parent
328da041da
commit
532b2959b5
|
|
@ -428,8 +428,9 @@ type TVclDesigner = class(tvcform)
|
||||||
if e.wparam = 123 and e.lparam=123 then
|
if e.wparam = 123 and e.lparam=123 then
|
||||||
begin
|
begin
|
||||||
if o.height>Foh then
|
if o.height>Foh then
|
||||||
o.height := Foh;
|
begin
|
||||||
|
o.height := Foh; //gtk 逻辑正确但是设置无效
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
function openclassfile(); //打开编辑器
|
function openclassfile(); //打开编辑器
|
||||||
|
|
|
||||||
|
|
@ -1493,7 +1493,6 @@ type tsgtkapi = class(tgtkapis)
|
||||||
brc := gtk_object_get_data(dc,"brush.color");
|
brc := gtk_object_get_data(dc,"brush.color");
|
||||||
if pw>0 then cairo_set_line_width(dc,pw);
|
if pw>0 then cairo_set_line_width(dc,pw);
|
||||||
else cairo_set_line_width(dc,1);
|
else cairo_set_line_width(dc,1);
|
||||||
|
|
||||||
mx := (l+r)/2+x;
|
mx := (l+r)/2+x;
|
||||||
my := (b+t)/2+y;
|
my := (b+t)/2+y;
|
||||||
cairo_translate(dc,mx,my);
|
cairo_translate(dc,mx,my);
|
||||||
|
|
@ -1942,7 +1941,6 @@ type tsgtkapi = class(tgtkapis)
|
||||||
//cairo_paint_with_alpha(hdc,0);
|
//cairo_paint_with_alpha(hdc,0);
|
||||||
//cairo_paint_with_alpha(hdc,1);
|
//cairo_paint_with_alpha(hdc,1);
|
||||||
//cairo_set_source_rgba(hdc, 1.0, 1.0, 1.0, 0);
|
//cairo_set_source_rgba(hdc, 1.0, 1.0, 1.0, 0);
|
||||||
|
|
||||||
end
|
end
|
||||||
cairo_fill(hdc);
|
cairo_fill(hdc);
|
||||||
cairo_scale(hdc,1/p1,1/p2);
|
cairo_scale(hdc,1/p1,1/p2);
|
||||||
|
|
@ -2086,7 +2084,6 @@ type tsgtkapi = class(tgtkapis)
|
||||||
cbmp := class(tUIglobalData).uigetdata("G_T_BITMAP_");
|
cbmp := class(tUIglobalData).uigetdata("G_T_BITMAP_");
|
||||||
if not cbmp then return 0;
|
if not cbmp then return 0;
|
||||||
class(TGdiplusflat).GdipCreateBitmapFromHBITMAP(hbmImage,0,r1);
|
class(TGdiplusflat).GdipCreateBitmapFromHBITMAP(hbmImage,0,r1);
|
||||||
|
|
||||||
bmp := createobject(cbmp);
|
bmp := createobject(cbmp);
|
||||||
bmp.Handle := r1;
|
bmp.Handle := r1;
|
||||||
if id=-1 then obj.Push(bmp);
|
if id=-1 then obj.Push(bmp);
|
||||||
|
|
@ -2110,11 +2107,9 @@ type tsgtkapi = class(tgtkapis)
|
||||||
end
|
end
|
||||||
function ImageList_LoadImageA2(hi:pointer;lpbmp:pointer;cx:integer;cGrow:integer; crMask:integer;uType:integer;uFlags:integer):pointer;
|
function ImageList_LoadImageA2(hi:pointer;lpbmp:pointer;cx:integer;cGrow:integer; crMask:integer;uType:integer;uFlags:integer):pointer;
|
||||||
begin
|
begin
|
||||||
|
|
||||||
end
|
end
|
||||||
function ImageList_GetBkColor(himl:pointer):integer;
|
function ImageList_GetBkColor(himl:pointer):integer;
|
||||||
begin
|
begin
|
||||||
|
|
||||||
end
|
end
|
||||||
function ImageList_GetDragImage(ppt:pointer;pptHotspot:pointer):pointer;
|
function ImageList_GetDragImage(ppt:pointer;pptHotspot:pointer):pointer;
|
||||||
function ImageList_GetImageCount(himl:pointer):integer;
|
function ImageList_GetImageCount(himl:pointer):integer;
|
||||||
|
|
@ -2375,7 +2370,6 @@ type tsgtkapi = class(tgtkapis)
|
||||||
end
|
end
|
||||||
function ChooseFontA(LOGFONTA:pointer):integer;
|
function ChooseFontA(LOGFONTA:pointer):integer;
|
||||||
begin
|
begin
|
||||||
|
|
||||||
obj := new ttagCHOOSEFONTA(LOGFONTA);
|
obj := new ttagCHOOSEFONTA(LOGFONTA);
|
||||||
lgobj := obj._getvalue_("lplogfont");
|
lgobj := obj._getvalue_("lplogfont");
|
||||||
ht := lgobj._getvalue_("height");
|
ht := lgobj._getvalue_("height");
|
||||||
|
|
@ -2482,7 +2476,6 @@ type tsgtkapi = class(tgtkapis)
|
||||||
end
|
end
|
||||||
gtk_widget_destroy(cdlg);
|
gtk_widget_destroy(cdlg);
|
||||||
return r;
|
return r;
|
||||||
|
|
||||||
end
|
end
|
||||||
function SHGetPathFromIDListA(LPBROWSEINFOA:pointer;var buf:string ):integer;
|
function SHGetPathFromIDListA(LPBROWSEINFOA:pointer;var buf:string ):integer;
|
||||||
begin
|
begin
|
||||||
|
|
@ -5900,24 +5893,20 @@ type tgtk_im_object = class(tgtk_ctl_object)
|
||||||
"commit":
|
"commit":
|
||||||
begin
|
begin
|
||||||
FCommit := ReadStringFromPtr(c);
|
FCommit := ReadStringFromPtr(c);
|
||||||
//echo FCommit,FCtl,"**\r\n";
|
|
||||||
if FCtl then
|
if FCtl then
|
||||||
begin
|
begin
|
||||||
s := utf8toansi(FCommit);
|
s := utf8toansi(FCommit);
|
||||||
for i:= 1 to length(s) do
|
for i:= 1 to length(s) do
|
||||||
begin
|
begin
|
||||||
//echo "***\r\n",ord(s[i]),">>",FCtl._const.WM_CHAR,"<<<";
|
|
||||||
FCtl.CallTslVclProc(_const.WM_CHAR,ord(s[i]),0);
|
FCtl.CallTslVclProc(_const.WM_CHAR,ord(s[i]),0);
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
//echo "cmt=====",tostn(FCommit);
|
|
||||||
end
|
end
|
||||||
end;
|
end;
|
||||||
end
|
end
|
||||||
function GtkBaseEventName();override; //°ó¶¨µÄÏûÏ¢
|
function GtkBaseEventName();override; //°ó¶¨µÄÏûÏ¢
|
||||||
begin
|
begin
|
||||||
//"commit","delete-surrounding",
|
return array("commit");//,"preedit-changed","preedit-end","preedit-start","retrieve-surrounding");//"commit","delete-surrounding",
|
||||||
return array("commit");//,"preedit-changed","preedit-end","preedit-start","retrieve-surrounding");
|
|
||||||
end
|
end
|
||||||
function focusin();//focus in
|
function focusin();//focus in
|
||||||
begin
|
begin
|
||||||
|
|
@ -5983,7 +5972,6 @@ type tgtk_ctl_object_scroll = class(tgtk_ctl_object)
|
||||||
function Create(h);override;
|
function Create(h);override;
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
//Connect("event",thisfunction(scrollevent));
|
|
||||||
end
|
end
|
||||||
function GtkBaseEventName();override;
|
function GtkBaseEventName();override;
|
||||||
begin
|
begin
|
||||||
|
|
@ -5993,14 +5981,12 @@ type tgtk_ctl_object_scroll = class(tgtk_ctl_object)
|
||||||
begin
|
begin
|
||||||
return false;
|
return false;
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
type tgtk_ctl_object_scroll_Bar = class(tgtk_ctl_object)
|
type tgtk_ctl_object_scroll_Bar = class(tgtk_ctl_object)
|
||||||
function Create(h);override;
|
function Create(h);override;
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
Connect("event",thisfunction(scrollevent));
|
Connect("event",thisfunction(scrollevent));
|
||||||
|
|
||||||
end
|
end
|
||||||
function scrollevent(a,b,c,d);
|
function scrollevent(a,b,c,d);
|
||||||
begin
|
begin
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue