[Lazarus] K8055 counter [was: libusb access...]

2008-11-18 Thread Valdas Jankūnas
me to 0ms for I2 (with my app developed in Lazarus) then counter starts counting "air" (board is free from external connections)- it not stops even I shortening I2 input with Inp1 button. Can You test this with Your board? -- Valdas Jankūnas

Re: [Lazarus] Lazarus in KUbuntu 8.10

2008-11-01 Thread Valdas Jankūnas
Vincent Snijders rašė: > Valdas Jankūnas schreef: >> Hello, >> >> I trying install both fpc and lazarus svn versions in KUbuntu 8.10 i386. >>I follow instructions " >> http://wiki.lazarus.freepascal.org/Installing_Lazarus#Installing_Free_Pascal_under_Li

[Lazarus] Lazarus in KUbuntu 8.10

2008-11-01 Thread Valdas Jankūnas
"/etc", but in 6 step on "ppc386 -i" I still geting "2.2.2" version. Where is my mistake? -- Valdas Jankūnas ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Initializing my App

2008-10-28 Thread Valdas Jankūnas
ME: Boolean=False; begin if (not SHOWED_FIRST_TIME) then begin SHOWED_FIRST_TIME:=True; // initializing end; end; -- Valdas Jankūnas ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] Strange Circular unit reference

2008-10-06 Thread Valdas Jankūnas
i" uses "NustatymaiIO" in interface section). Any thoughts? FPC 2.2.2; Lazarus v0.9.27 r16883 i386-linux-gtk 2 (beta). -- Valdas Jankūnas ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] TSpeedButton an mouse capturing

2008-08-27 Thread Valdas Jankūnas
got OnMouseMove or OnMouseUp only if mouse is over speed button (Linux, i386, FPC 2.2.2, Lazarus svn v0.9.25 r16188M, Gtk1 (or Gtk2, on win not tested)). -- Valdas Jankūnas ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http

Re: [Lazarus] Prevent focus losing

2008-08-25 Thread Valdas Jankūnas
>> >> Another question: how is implemented focus grabbing in TCustomButton, >> is there way to disable focus grabbing in TSpeedButton? indeed.. maybe I doing something wrong :( Thanks! -- Valdas Jankūnas ___ Lazaru

Re: [Lazarus] Prevent focus losing

2008-08-25 Thread Valdas Jankūnas
;> How to prevent losing focus when I press speed button? This is workaround, thanks for suggestion. Another question: how is implemented focus grabbing in TCustomButton, is there way to disable focus grabbing in TSpeedButton? -- Valdas Jankūnas

[Lazarus] Prevent focus losing

2008-08-24 Thread Valdas Jankūnas
Hello, situation: I have TCustomEdit and TCustomSpeedButton; when focus is in edit and I press speed button then edit loses focus. How to prevent losing focus when I press speed button? -- Valdas Jankūnas ___ Lazarus mailing list Lazarus

[Lazarus] Lazarus IDE: bookmarks

2008-08-02 Thread Valdas Jankūnas
Hello, i'm in trouble :D : how to unset or clear bookmarks shown in Lazarus IDE editor? Lazarus svn 15897; LCL_WIDGETSET=gtk2; pfc v2.2.0 -- Valdas Jankūnas ___ Lazarus mailing list Lazarus@lazarus.freepascal.org

Re: [Lazarus] ColotToRGB in GTK apps

2008-07-28 Thread Valdas Jankūnas
Mattias Gaertner rašė: > On Sun, 27 Jul 2008 15:26:34 +0300 > Valdas Jankūnas <[EMAIL PROTECTED]> wrote: > >> Hello, >> >>I found solution: in unit GtkProc is procedure UpdateSysColorMap >> that updates SysColorMap array (from where ColorToRGB ge

Re: [Lazarus] ColotToRGB in GTK apps

2008-07-27 Thread Valdas Jankūnas
n code of mentioned procedure. Now this procedure I call in OnCreate and then ColorToRGB returns correct values. -- Valdas Jankūnas ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] ColotToRGB in GTK apps

2008-07-26 Thread Valdas Jankūnas
Mattias Gaertner rašė: > On Sat, 26 Jul 2008 21:55:03 +0300 > Valdas Jankūnas <[EMAIL PROTECTED]> wrote: > >> Hello, >> >> i trying get R G B values of system color "clBackground" (and >> others). So i use ColorToRGB function (app compiled with g

[Lazarus] ColotToRGB in GTK apps

2008-07-26 Thread Valdas Jankūnas
quot;color" i get random value. Why? -- Valdas Jankūnas ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Create transparency

2008-07-22 Thread Valdas Jankūnas
Marc Weustink rašė: > Valdas Jankūnas wrote: >> Marc Weustink rašė: >> >>> A faster way, (which might work in most cases) is when you have a 24bit >>> depth description with a 32bits per pixel image. >> How retrieve image description from TBitmap? > &

Re: [Lazarus] Create transparency

2008-07-22 Thread Valdas Jankūnas
IntfImg.LoadFromFile('red.bmp', ImgReader); DumpMem(PCardinal(IntfImg.PixelData), IntfImg.DataDescription.Height * IntfImg.DataDescription.Width); ImgReader.Destroy; IntfImg.Destroy; end; -- Valdas Jankūnas ___

Re: [Lazarus] Create transparency

2008-07-21 Thread Valdas Jankūnas
y image, but load resource from stream directly to LazIntfImage (created with Init_BPP32_B8G8R8A8_BIO_TTB description). Now i always got alpha channel and code is flexible to various image types (need just change image reader type). I thing il stay with this solution. Thanks for he

[Lazarus] Create transparency

2008-07-18 Thread Valdas Jankūnas
s no alpha channel (img.HasTransparency returns False in these cases), then in resulting image i get black colour where i set colTransparent (in "modyfy" code block). How to insert alpha channel (or maybe mask, [transparency==mask in recent graphics changes?]) in existing image? --

Re: [Lazarus] Bug using Lazarus under KDE (minimizing)

2008-06-06 Thread Valdas Jankūnas
e to restore all the windows one at a > time: right-click on the Lazarus icon in the taskbar at the bottom of > the screen and you are offered a number of options including 'Restore > all'. This does the trick!! > only if Grouping is enable

Re: [Lazarus] Anchoring with negative values

2008-05-24 Thread Valdas Jankūnas
Mattias Gaertner rašė: >> If i place TImage (AutoSize=True) into Panel then which settings in >> OI i must change to let TPanel always accommodate TImage size? > > AutoSize=true How simple! :) Thanks -- Valdas Jankūnas _

Re: [Lazarus] Anchoring with negative values

2008-05-23 Thread Valdas Jankūnas
inControl where i can (because of additional handle [i heard this rule somewhere from old days]). If i place TImage (AutoSize=True) into Panel then which settings in OI i must change to let TPanel always accommodate TImage size? -- Valdas Jankūnas ___

[Lazarus] Anchoring with negative values

2008-05-23 Thread Valdas Jankūnas
nd=-1", but i cant set Border size to negative values. As workaround i use Image.OnResize to adjust size and position of Bevel. Why Border size in BorderSpacing is restricted to only positive values? -- Valdas Jankūnas ___ Lazarus mailing li

Re: [Lazarus] Read image from resources with TLazIntfImage

2008-04-28 Thread Valdas Jankūnas
Marc Weustink rašė: > Valdas Jankūnas wrote: >> Hello, >> how i can read PNG image from Lazarus resources using TLazIntfImage? >> I tried TPortableNetworkGraphic to read transparent PNG from resource >> or file, but in transparent areas of saved PNG image i get random

Re: [Lazarus] Read image from resources with TLazIntfImage

2008-04-28 Thread Valdas Jankūnas
aybe it will help you: > ... Thanks, i take a look... -- Valdas Jankūnas ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] Read image from resources with TLazIntfImage

2008-04-26 Thread Valdas Jankūnas
image from resource. -- Valdas Jankūnas ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] Read PNG with transparency

2008-04-25 Thread Valdas Jankūnas
ge is gone, or if i check property "img.Transparent" i got False. I using Lazarus svn 14975, Free Pascal Compiler version 2.2.0 [2007/08/31] for i386 -- Valdas Jankūnas ___ Lazarus mailing list Lazarus@lazarus

[Lazarus] Breakpoints

2008-04-25 Thread Valdas Jankūnas
n that project open mentioned file and find that breakpoint still there. I using Lazarus svn 14975, Free Pascal Compiler version 2.2.0 [2007/08/31] for i386 -- Valdas Jankūnas ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.la