mirror of
https://github.com/moparisthebest/Simba
synced 2024-11-22 09:12:19 -05:00
Colour picker change.
git-svn-id: http://www.villavu.com/repositories/merlijn/mufasa@88 3f818213-9676-44b0-a9b4-5e4c4e03d09d
This commit is contained in:
parent
7806e9ceac
commit
8f7966e002
@ -8,6 +8,12 @@ uses
|
|||||||
Classes, SysUtils, LCLIntf,LCLType,InterfaceBase,Forms,Controls,ExtCtrls,
|
Classes, SysUtils, LCLIntf,LCLType,InterfaceBase,Forms,Controls,ExtCtrls,
|
||||||
Graphics,
|
Graphics,
|
||||||
Window
|
Window
|
||||||
|
|
||||||
|
{$IFNDEF PICKER_CLIENT}
|
||||||
|
{$IFDEF LINUX}
|
||||||
|
,x
|
||||||
|
{$ENDIF}
|
||||||
|
{$ENDIF}
|
||||||
;
|
;
|
||||||
|
|
||||||
type
|
type
|
||||||
@ -62,8 +68,22 @@ procedure TMColorPicker.Pick(Var C, X, Y: Integer);
|
|||||||
var
|
var
|
||||||
w, h: integer;
|
w, h: integer;
|
||||||
bmp: TBitmap;
|
bmp: TBitmap;
|
||||||
|
|
||||||
|
{$IFNDEF PICKER_CLIENT}
|
||||||
|
{$IFDEF LINUX}
|
||||||
|
OldWindow: TWindow;
|
||||||
|
{$ENDIF}
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
begin
|
begin
|
||||||
Form := TForm.Create(Application.MainForm);
|
Form := TForm.Create(Application.MainForm);
|
||||||
|
{$IFNDEF PICKER_CLIENT}
|
||||||
|
{$IFDEF LINUX}
|
||||||
|
OldWindow := Window.CurWindow;
|
||||||
|
Window.SetTarget(Window.DesktopWindow);
|
||||||
|
{$ENDIF}
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
Window.GetDimensions(w, h);
|
Window.GetDimensions(w, h);
|
||||||
|
|
||||||
Form.Width := w;
|
Form.Width := w;
|
||||||
@ -119,6 +139,12 @@ begin
|
|||||||
x := Colorx;
|
x := Colorx;
|
||||||
y := Colory;
|
y := Colory;
|
||||||
|
|
||||||
|
{$IFNDEF PICKER_CLIENT}
|
||||||
|
{$IFDEF LINUX}
|
||||||
|
Window.SetTarget(OldWindow);
|
||||||
|
{$ENDIF}
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
Note.Free;
|
Note.Free;
|
||||||
Bitmap.Free;
|
Bitmap.Free;
|
||||||
Timor.Free;
|
Timor.Free;
|
||||||
|
Loading…
Reference in New Issue
Block a user