[Lazarus] Lazarus 1.6 DEB has dependency FPC >= 3.0.0

2016-03-26 Thread Krzysztof
Hi, I read on forum that Lazarus 1.6 is compatible with both FPC 2.6.4 and 3.0.0 but why downloaded 1.6 DEB package (i386) has required dependency >= 3.0.0 and can't install it by Ubuntu package manager with my existing FPC 2.6.4 (also installed from DEB)? Should I use sudo dpkg -i with force

Re: [Lazarus] SVN - SIGSEGV in external C lib when Lazarus in Debug mode (Qt)

2016-03-24 Thread Krzysztof
Found what was a problem. I did not associate the fact that few weeks ago I added -dDEBUG to my "Default" and "Debug" build modes. Now I read ( http://wiki.freepascal.org/IDE_Macros_in_paths_and_filenames ) that -dDEBUG is FPC reserved symbol and I didn't know that :( . I didn't add it into

Re: [Lazarus] SVN - SIGSEGV in external C lib when Lazarus in Debug mode (Qt)

2016-03-23 Thread Krzysztof
Tried with style plastique - same result. QPixmap log output is not from my code but from Qt Widgetset, I'm not using Qt API directly, I'm just assigning TLabel.Caption := Title in thread safe Application.QueueAsyncCall. Tried also prepare demo but when copy pasted to the empty project, everything

[Lazarus] SVN - SIGSEGV in external C lib when Lazarus in Debug mode (Qt)

2016-03-22 Thread Krzysztof
Hi, I have music player based on Bass library. It can play online radio and signal (metadata) if song in radio has changed. Code is quite old and Bass binary is not changed. Recently I updated SVN source (I need to use it because it has important bug fixes), rebuild Lazarus and receive metadata

[Lazarus] Can't build fpvectorialpkg on latest SVN revision

2016-01-23 Thread Krzysztof
Revision 51386. Yesteray I could fpvectorial.pas(3842,35) Error: Call by var for arg no. 3 has to match exactly: Got "Double" expected "Extended"; fpvectorial.pas(3846,37) Error: Call by var for arg no. 3 has to match exactly: Got "Double" expected "Extended" --

Re: [Lazarus] Is there tool for testing class methods speed?

2016-01-23 Thread Krzysztof
Thanks Graeme! FPProfiler, that is it! -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Can't build fpvectorialpkg on latest SVN revision

2016-01-23 Thread Krzysztof
Thanks -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] Is there tool for testing class methods speed?

2016-01-20 Thread Krzysztof
Hi, Almost 10 years ago I worked in company where they used tool (Delphi 5) which automatically added "checkpoints" after BEGIN and before END of each method of pointed class / pascal unit. Then after run, it reported (as extension for IDE) what was execution time of each method and how many

[Lazarus] How to close THintWindow after click on other form / application?

2016-01-04 Thread Krzysztof
Hi, I need component which popup TTrackBar when click on button (something like volume slider in multimedia players). Main form should not lose its focus so I'm using THintWindow with TTrackBar aligned as alClient. This popup should immediately close when user click on something else than

[Lazarus] How to destroy object / component by itself?

2015-12-03 Thread Krzysztof
Hi, How to destroy object or component in its own method (do this in next message queue)? Currently I'm using Application.QueueAsyncCall but IIRC there is special routine in FPC/LCL but can't find. For example Qt has myobject.qDeleteLater() Regards --

[Lazarus] Which method is called at the very end of TWinControl creation?

2015-11-08 Thread Krzysztof
Hi, I have form which has a lot of panels created at runtime. These panels have controls and splitters (inside). The problem is with setting initial splitters position when user open form. I want that spliiters should have center position of its parent (parent = runtime created panel) but it is

[Lazarus] AnsiPropercase (aka Capitalize) with UTF-8 support

2015-11-06 Thread Krzysztof
Hi, Is there any similar function for UTF-8? Can't find anything in LazUtf8 unit Regards -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] lazcontrols filters

2015-10-10 Thread Krzysztof
TextHint could be visibile even when edit is focused (but still empty of course). This is how many edit controls work nowadays, e.g address edit in FireFox -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

[Lazarus] Gtk3 - Set entry placeholder

2015-01-05 Thread Krzysztof
Hi, I'm testing Gtk3 (I know that it is in alpha stage). I have latest lazarus from svn (1.3) When using low level Gtk3 api then this code work fine: uses {$IFDEF UNIX}{$IFDEF UseCThreads} cthreads, {$ENDIF}{$ENDIF} Interfaces, // this includes the LCL widgetset LazGtk3, LazGObject2;

[Lazarus] TListView - column alignment doesn't work when OwnerData

2014-12-31 Thread Krzysztof
Hi, I have column alignment taRightJustify. When using as normal listview then everything is ok but with OwnerData, data is always taLeftJustify (but column title is ok). Is it a bug or need I set some extra property? Regards. -- ___ Lazarus mailing

Re: [Lazarus] TListView - column alignment doesn't work when OwnerData

2014-12-31 Thread Krzysztof
Forgot write details: Lazarus 1.2.6 FPC 2.6.4 Kubuntu 14.04 64 bit (Qt widgetset) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] System color to TFPColor

2014-11-13 Thread Krzysztof
Hi, I need to convert system color (like clHighlight, clBtnText etc) into TFPColor. Function TColorToFPColor has comment does not work on system color and indeed it doesn't work (I always get black color). Many other color functions has this same comment. How to workaround this? Regards --

Re: [Lazarus] System color to TFPColor

2014-11-13 Thread Krzysztof
Ok solved by TColorToFPColor(ColorToRGB(clHighlight)) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] Paint over TEdit control

2014-06-18 Thread Krzysztof
Hi, Is it possible to paint over TEdit control? I need this for windows and linux (qt, gtk). For now I need only draw text Regards. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Paint over TEdit control

2014-06-18 Thread Krzysztof
I'm overriding protected PaintWindow method but seems that it is never called -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] TIpHTMLPanel bug and extension

2014-05-21 Thread Krzysztof
Hi, Where report bugs for TurboPower IpHTMLPanel? I don't see category for this package in mantis bugtracker. ***Bug*** I have html table. I want to add new rows on runtime by creating new node TIpHtmlNodeTR.Create() to avoid reloading and reparsing whole HTML. Table can contain thousands rows

Re: [Lazarus] [fpc-pascal] Lazarus 1.2.2 Release

2014-04-25 Thread Krzysztof
Yes, I can type but carret is invisible. After checking Persistent Caret everything is working fine, thanks! 2014-04-25 18:45 GMT+02:00 Martin Frb laza...@mfriebe.de: On 25/04/2014 17:07, Krzysztof wrote: Cursor is not blinking. I don't know where it is Does the window have focus, can

[Lazarus] Can't post on fpc-pascal mailing list

2013-10-29 Thread Krzysztof
Hi, Is there any FPC mailing list admin? I can't post on fpc-pascal mailing list. I get response that message can't be delivered. When I try to edit my account at http://lists.freepascal.org/mailman/listinfo/fpc-pascal/ I get authorization failed but when I try to subscribe I get error that i'm

Re: [Lazarus] Can't post on fpc-pascal mailing list

2013-10-29 Thread Krzysztof
up on 193.224.143.26 2013/10/29 Krzysztof dib...@wp.pl Hi, Is there any FPC mailing list admin? I can't post on fpc-pascal mailing list. I get response that message can't be delivered. When I try to edit my account at http://lists.freepascal.org/mailman/listinfo/fpc-pascal/ I get

Re: [Lazarus] For QtLCL users - new feature, need testers

2013-10-15 Thread Krzysztof
2013/10/13 zeljko zel...@holobit.net On 10/13/2013 01:14 AM, Krzysztof wrote: I'm still dreaming about modular Qt :) . Now to deploy QtLCL application I need to provide all Qt libs (even webkit, but I don't use it). I'm working on project based on pure Qt 5.1, I needed to use C++ instead

Re: [Lazarus] For QtLCL users - new feature, need testers

2013-10-12 Thread Krzysztof
I'm still dreaming about modular Qt :) . Now to deploy QtLCL application I need to provide all Qt libs (even webkit, but I don't use it). I'm working on project based on pure Qt 5.1, I needed to use C++ instead of FPC :/ . Those libs are amazing, not only GUI but for example QMultimedia, QNetwork

Re: [Lazarus] Gtk3 hello world application crash

2013-10-06 Thread Krzysztof
2013/10/6 Andrew Haines andrewd...@aol.com Which function's for box layouts are missing? The generator does not include things which are marked deprecated in the introspection files so that could be the cause. For example gtk_vbox_new(); -- ___

Re: [Lazarus] Gtk3 hello world application crash

2013-10-03 Thread Krzysztof
Ok I give up. Could not find simple Gtk3 example in lazarus implementation. So I found another gtk hello world in C based on Gtk3 from: https://developer.gnome.org/gnome-devel-demos/3.6/checkbutton.c.html.en . But same error with division by zero: var window: PGtkWidget; app: PGtkApplication;

Re: [Lazarus] Gtk3 hello world application crash

2013-10-03 Thread Krzysztof
Totally forgot about SetExceptionMask! Remember that I needed to use it in fpGUI application too. I forgot about this because Gtk2 example is working fine. Thanks zeljko, now it is working! Great :D 2013/10/3 zeljko zel...@holobit.net On 10/03/2013 11:50 AM, Krzysztof wrote: Ok I give up

Re: [Lazarus] Gtk3 hello world application crash

2013-10-02 Thread Krzysztof
Look at implementation in lazarus/lcl/interfaces/gtk3 . It works , also most of wincontrols works (using bit modified bindings from lazarus/lcl/interfaces/gtk3/**gtk3bindings zeljko Yes. I checked also source from interfaces. Same problem. Maybe I'm doing something wrong? My steps: 1. I

[Lazarus] Gtk3 hello world application crash

2013-10-01 Thread Krzysztof
Hi, According to this wiki page: http://wiki.freepascal.org/Gtk%2B3 I downloaded latest gtk3 headers from: http://sourceforge.net/p/lazarus-ccr/svn/HEAD/tree/bindings/gtk3/ I have very simple Hello World application which is working fine on GTK2: gtk_init(@argc, @argv); windows :=

[Lazarus] Get Lazarus version at runtime

2013-05-13 Thread Krzysztof
Hi, Does Lazarus has version tags in compiler defines? I need to use TAchart property which appear in latest SVN 1.1 version but doesn't exists in 1.0.8 Regards -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] SQLite - disk I/O error only on virtual machine

2013-03-08 Thread Krzysztof
Shared folder was the problem. Thanks! -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] SQLite - disk I/O error only on virtual machine

2013-03-07 Thread Krzysztof
Hi, I noticed strange behavior when running application on virtualbox linux mint 14 64bit machine. This occur only when I attach second database to sqlite3connection and then call SQLTransaction.Commit. This is my code: try FConn := TMySqlite3Connection.Create(Self); FConn.Transaction

[Lazarus] Simple daemon on linux does nothing

2013-02-25 Thread Krzysztof
Hi, I'm reading this article about services: http://wiki.freepascal.org/Daemons_and_Services I have created onStart event which should create text file in my home directory but nothing happens: procedure TDaemon1.DataModuleStart(Sender: TCustomDaemon; var Ok: Boolean); var sl: TStringList;

Re: [Lazarus] Simple daemon on linux does nothing

2013-02-25 Thread Krzysztof
Oh thanks! I didn't know that daemon is based on threading and on linux -dUseCThreads is needed. Now everything is working. Thanks -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

[Lazarus] Free Pascal + QML?

2013-02-12 Thread Krzysztof
Hi, Lazarus has Qt4Pas. Are plans to extend it for QML support? Reason is not only Ubuntu OS for mobile which come in autumn but I also looked at QML demos in QT Creator and I'm just amazed what it can do. Unlimited possibilities, 2D, 3D, physics. Just look at those demos:

Re: [Lazarus] Changing default font size for all controls

2013-01-20 Thread Krzysztof
Thanks, parent font did the trick! But TApplication.DefaultFont is good idea too (when we have many forms in project) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] Changing default font size for all controls

2013-01-19 Thread Krzysztof
Hi, By default controls has font size and height = 0, so size depend on OS configuration. Can I change global size or height to custom value for my application? Regards -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

[Lazarus] Code Editor - smart tabs to below line

2013-01-08 Thread Krzysztof
Hi, Normally smart tab affect to line above, is exist short key to affect to line below? Regards -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] Scrolling DBGrid without changing position of current record

2013-01-08 Thread Krzysztof
Hi, Is exists trick to avoid changing SQLQuery position while scrolling DBGrid? For example, I want keep selection on first record and want to scroll to the end of grid Regards -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

[Lazarus] SQLDB - Can't attach second SQLite database because transaction

2013-01-07 Thread Krzysztof
Hi, I want attach second databse to sqlite connection by command: DBConnection.ExecuteDirect('attach database '+QuotedStr(GetConfigDir+'second.db')+' as mydb2'); But I get error that cannot attach database when on transaction. Even If I commit transaction first, then ExecuteDirect start new

Re: [Lazarus] SQLDB - Can't attach second SQLite database because transaction

2013-01-07 Thread Krzysztof
Ok I found a hack. I created own TMyConnection = class(TSQLite3Connection) so I have access to protected execsql which don't check transaction: type { TMyConnection } TMyConnection = class(TSQLite3Connection) public procedure ExecSQLNoTrans(const ASql: String); end; implementation

Re: [Lazarus] SQLDB - Can't attach second SQLite database because transaction

2013-01-07 Thread Krzysztof
2013/1/7 Michael Van Canneyt mich...@freepascal.org Maybe we should make a method for this in TSQLite3Connection ? It would be great. Because without this we can't use all opportunities of SQLite, like attaching databases or also VACUUM (trim and pack database) --

Re: [Lazarus] Can't create calculated field

2013-01-02 Thread Krzysztof
I know how to create events (from object inspector and in runtime). Everything is connected correctly, events are fired but don't know why this error occur. Calculated fields in Laz SQLDB are different than in Delphi? I'm doing everything what I did in Delphi. My field is created in runtime

[Lazarus] Can't compile package SQLDBLaz in trunk

2012-12-30 Thread Krzysztof
Hi, I have latest revision 39694. When I try to add package SQLDBLaz 1.0.1 and rebuild IDE, then I get error: pqteventmonitor.pas(8,11) Fatal: Can not find unit PQEventMonitor used by PQTEventMonitor. My system: Linux Mint 14 64bit, Cinnamon (Gnome shell 3.XX fork). GTK2 widgetsets Regards --

Re: [Lazarus] Can't compile package SQLDBLaz in trunk

2012-12-30 Thread Krzysztof
I'm using FPC 2.7.1 from CodeTyphon installation (I don't know how to have two versions of FPC). So I will wait for new CodeTyphon, it should be release soon -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

[Lazarus] Can't create calculated field

2012-12-30 Thread Krzysztof
Hi, I have this code: f := TField.Create(FDataList); f.FieldName := 'calc'; f.FieldKind := fkCalculated; f.SetFieldType(ftBoolean); f.DataSet := SQLQuery1.FieldDefs.Dataset; procedure TForm1.OnCalc(DataSet: TDataSet); begin SQLQuery1.FieldByName('calc').AsBoolean := true; end;

Re: [Lazarus] Can't create calculated field

2012-12-30 Thread Krzysztof
If I add my calculated field in FieldDefs too, then I get error that this field doesn't exists in database table -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] Can't create fields in DesignTime

2012-12-24 Thread Krzysztof
Hi, I have SQLite3Connection and SQLQuery. SQLQuery has defined some field defs and I want create fields from them (right click - edit fields) but I get access violation error and all my defined fields are gone. Second problem is that lazarus don't recognize that I edited field defs (saving

[Lazarus] OpenDialog, TFileStream and unicode file name

2012-12-20 Thread Krzysztof
Hi, I have file 01 Amassakoul 'N'Ténéré.mp3 (don't know what language it is) This code work on linux: if OpenDialog1.Execute then begin ShowMessage(GuessEncoding(OpenDialog1.FileName)); f := TFileStream.Create(OpenDialog1.FileName,fmOpenRead); try finally f.Free;

Re: [Lazarus] OpenDialog, TFileStream and unicode file name

2012-12-20 Thread Krzysztof
Thanks. I thought that maybe exists some UTF8 class, but FileOpen work fine so this fooled me Regards -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] Support for SQLite virtual table?

2012-12-18 Thread Krzysztof
Hi, Reffering to this article: http://www.sqlite.org/vtab.html ... I'm trying to create virtual table. But before call standard CREATE VIRTUAL TABLE, some module must be created first. FPC has method sqlite3_create_module() but it return 0: var m: sqlite3_module; c: cint; begin

Re: [Lazarus] Support for SQLite virtual table?

2012-12-18 Thread Krzysztof
A virtual table means you will handle storage. So I think you must always implement all methods required to handle that ? After creating virtual table it should working like normal table (with joining etc) handled by TSQLite3Dataset. That it worked on PostgreSQL. This is good alternative for

Re: [Lazarus] Support for SQLite virtual table?

2012-12-18 Thread Krzysztof
You mean a temporary table ? I'm not an expert, but this is IMHO a completely different concept. Oh, now I see that SQLite has TEMP table too. I thought that PostgreSQL TEMP table is called VIRTUAL table in SQLite. After quick testing it's working fine without any dll API calls unlike

Re: [Lazarus] Support for SQLite virtual table?

2012-12-18 Thread Krzysztof
If you want a pure memory table in sqlite3, give it the special filename ':memory:'. No special support is required the user code. If you use TSQLite3Connection you can also use the TSQLite3Backup to easily copy the memory database from/to a disk database, if needed. What if I want that only

Re: [Lazarus] Support for SQLite virtual table?

2012-12-18 Thread Krzysztof
Ok I found solution. To use TEMP tables as pure in memory, just execute command: PRAGMA temp_store=2 . Then all temp tables will be stored in memory. So, I don't really need VIRTUAL tables anymore -- ___ Lazarus mailing list

[Lazarus] Popup window

2012-12-17 Thread Krzysztof
Hi, In some mediaplyaers (like rhythmbox or banshee on linux) when you try to change volume then some small window appear with trackbar. This popup window doesn't deactivate main form. Which property is responsible for that? I'm trying with different values of FormStyle and Popupmode but my popup

Re: [Lazarus] Popup window

2012-12-17 Thread Krzysztof
This depends on widgetset you are using. Where do you see this behavior? Linux Mint 13, 64 bit, Mate (fork of GNOME 2.XX) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Popup window

2012-12-17 Thread Krzysztof
And widgetset is ? Under Qt you can set rule ShowWithoutActivation, but don't know how it goes on under Gtk2. My widgetset is GTK. Mediaplayers (rhythmbox, banshee) are GTK too -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Popup window

2012-12-17 Thread Krzysztof
What I found that Banshee using GTK: VolumeButton which inherit from ScaleButton. ScaleButton has getpopup (GTKWidget type). So maybe it is using gtk window with GTK_WINDOW_POPUP type. I'm not familiar with C language and low level GTK, but documentation says: GtkWidget* gtk_window_new

[Lazarus] TCustomControl.Autosize issue

2012-12-10 Thread Krzysztof
Hi, I have own control TMyPanel which inherit from TCustomControl instead of TCustomPanel (because I don't want add ExtCtrls unit). My panel has the same flags and options like TCustomPanel, but Autosize doesn't work like in normal panel. My panel don't account child controls and I can't find

Re: [Lazarus] TCustomControl.Autosize issue

2012-12-10 Thread Krzysztof
If you are writing a custom control, then you need to write yourself code to calculate it's prefered size on autosize. I think that to do that you need to override the routine PreferredSize or something similar. And there implement the calculation like you want. I thought so. I just overrided

[Lazarus] Custom panel - issue with parent color in childs

2012-12-05 Thread Krzysztof
Hi, I have own custom panel which inherit from TCustomControl instead of TCustomPanel (which inherit from TCustomControl also). Problem is that controls placed on my panel don't refresh parent color. See screen ( http://i45.tinypic.com/16ld1fr.png ), top panel is my, bottom is standard TPanel.

[Lazarus] Multiple .lrs files for one .pas

2012-11-24 Thread Krzysztof
Hi, Is it possible to have more than one .lrs file for one .pas file? For example, I have one MyDialogs.pas unit. Inside this unit I have more than one forms like TMyForm1, TMyForm2 etc. And I would like to design each of them using form designer. This is probably not possible (because I don't

[Lazarus] Social login (facebook, g+, etc)

2012-11-22 Thread Krzysztof
Hi, I'm pretty sure that everything can be done with synapse, but maybe someone know wrapper for facebook / google API? I want to create something like Login with facebook in my desktop application (and like it). It would save me many hours analyzing API Regards --

[Lazarus] Code auto-formatting

2012-11-21 Thread Krzysztof
Hi, Can't find this option in Source menu. Is exists any package which format code in editor? I just updated CodeTyphon from 2.90 to 3.00. In my old project I see that code formatting is wrong in random lines (too much or too less tabs / spaces) Regards. --

Re: [Lazarus] Code auto-formatting

2012-11-21 Thread Krzysztof
Reinier Olislagers reinierolislag...@gmail.com On 21-11-2012 13:14, Krzysztof wrote: Hi, Can't find this option in Source menu. Is exists any package which format code in editor? I just updated CodeTyphon from 2.90 to 3.00. In my old project I see that code formatting is wrong in random

Re: [Lazarus] Code auto-formatting

2012-11-21 Thread Krzysztof
No AFAIK, it can't use partial parsing to format the code since it may lose scope information thus can cause wrong formatting. Right, but it is possible, for example Eclipse or Netbeans has also Fix indent for correcting tab only for selected lines. Seems that it is looking for first parent

Re: [Lazarus] lazdebian.lpk - Create Debian package from exiting Lazarus Project

2012-10-27 Thread Krzysztof
When I try to build debian package I get errors: make: *** [build] Błąd 2 dpkg-buildpackage: błąd: debian/rules build return error 2 debuild: fatal error at line 1350: dpkg-buildpackage -rfakeroot -d -us -uc -b failed Regards -- ___ Lazarus mailing

Re: [Lazarus] Deep exe strip :)

2012-10-25 Thread Krzysztof
Does the size change if you do a strip --strip-all executable in one of the large versions down to the small version? With strip-all I can't get the smallest exe which I get with lazarus switchers - 3.7 MB Note that you do not actually need to rebuild the IDE, it is enough to just change

Re: [Lazarus] What's going on with GTK on lazarus 1.0.2 from SVN?

2012-10-22 Thread Krzysztof
I have posted report for this issue: http://bugs.freepascal.org/view.php?id=23168 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] What's going on with GTK on lazarus 1.0.2 from SVN?

2012-10-19 Thread Krzysztof
Hi, Are some serious changes implementing in GTK interface right now? I'm the author and maintainer of BGRA Controls package which are using BGRA Bitmap package for drawing. Issues: 1. First, I can't compile BGRA Bitmap package without comment line: {ifdef LCL_GTK2} type TGtkDeviceContext =

[Lazarus] Dynamically loaded libQt4Pas

2012-10-08 Thread Krzysztof
Hi, Is exists any posibility to use dynamic libQt4Pas instead of static linking? Regards -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Drawing over LCL controls

2012-10-06 Thread Krzysztof
Ok I have done this with text manipulation (on enter, on exit events) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Drawing over LCL controls

2012-10-06 Thread Krzysztof
2012/10/6 William Oliveira Ferreira bdexterholl...@gmail.com: did you tested that link i've send? Yes, it is using another TEdit as a cover -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

[Lazarus] Drawing over LCL controls

2012-10-05 Thread Krzysztof
Hi, Can I draw something on standard lazarus controls (e.g TEdit)? I created new control which inherit from TEdit and override PaintWindow method but is is never fired Regards -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Drawing over LCL controls

2012-10-05 Thread Krzysztof
I want draw hint text over edit like search which disappear when control get focus. I have already done it by changing text in DoEnter and DoExit methods (like in lazarus control TTreeFilterEdit), but I'm just curious if it is possible do the same thing by drawing text --

Re: [Lazarus] lazdebian.lpk - Create Debian package from exiting Lazarus Project

2012-09-30 Thread Krzysztof
Wow. I have not tested it yet. But are you planning create something similar for RPM? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] Transparent Custom Drawn Controls

2012-09-20 Thread Krzysztof
Hi, I'm writting own drawer for custom drawn controls. But all controls inherit from (TCDControl - TCustomControl), so background by default is without transparent (I get uniform gray color). I think that non-container controls (like TCDStaticText, TCDButton etc) should inherit from

Re: [Lazarus] Transparent Custom Drawn Controls

2012-09-20 Thread Krzysztof
I found another solution. The best thing in Custom Drawn Controls is that all drawing logic is in drawer object. So I am just creating own component TMyCDStaticText which inherit from TGraphicControl and then in Paint method I call GetDefaultDrawer.DrawStaticText(). So with this trick I have

[Lazarus] QT Style

2012-09-16 Thread Krzysztof
Hi, I have application which is using QT widgetset on all platforms (gnome, kde, windows). But Qt is trying simulate native look on all platforms. Exists any style or switch which makes the program will look the same on all platforms? Regards -- ___

Re: [Lazarus] QT Style

2012-09-16 Thread Krzysztof
Yes. Start your application with param -style windows. It's win95 look and it works on all platforms. Thanks! fpGUI perhaps? This interface is the best solution, but I can't use it until it doesn't have trayicon component -- ___ Lazarus mailing

Re: [Lazarus] QT Style

2012-09-16 Thread Krzysztof
@Graeme. What about tray icon in fpGUI? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] QT Style

2012-09-16 Thread Krzysztof
LCL-fpGUI or via native fpGUI? Native. Hmm, I've never heard about LCL-fpGUI. What is this? I can mix standard LCL controls with fpGUI? How to install it? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Issue with GroupBox background color

2012-09-14 Thread Krzysztof
I found solution on forum. Problem solved when I set color to clForm or clBackground to all controls (with form included). But this is some kind of inconsistency. Controls which don't have transparency (e.g TLabel is transparent) but flat background, should have this same color by default. --

[Lazarus] Issue with GroupBox background color

2012-09-11 Thread Krzysztof
Hi, I have problems with set uniform background color for some controls (like TGroupBox) on GTK2. See first attachment. This is default view. So I tried set color from clDefault to clBtnFace on all controls. GroupBox still have brighter color (2 attachment). I thought that groupbox color is

[Lazarus] Android Virtual Image as torrent

2012-09-06 Thread Krzysztof
Hi, Is it possible to create torrent file instead of zip archive in http server? Because, this is a big file. I left my computer at night to download the file. But in the morning when I try extract this file, I get error that archive is corrupted (checked on linux and on windows with PeaZip like

Re: [Lazarus] Android Virtual Image as torrent

2012-09-06 Thread Krzysztof
I almost all time have torrent client running (I'm seeding linux distros etc.), so I can seed this file too (but max 50 kB/sek :/ ) How old is this virtual image? Maybe I wait for new version (it is not an immediate) and then I will contact with you Graeme --

Re: [Lazarus] KOL-CE - can't compile empty project

2012-08-31 Thread Krzysztof
Thanks! Now it run, but can't create events from object inspector (for example OnClick on TKolButton). I get error Unable to create new method. Please fix the error shown in the message window which is normally below the source editor, but I don't see any message --

[Lazarus] What happened with make LCL_PLATFORM?

2012-08-29 Thread Krzysztof
Hi, I always updated source from svn and then build lazarus by make LCL_PLATFORM=gtk2 but now this command doesn't work. I get error: The Makefile doesn't support target can't-executed,, please run fpcmake first. Stop Regards -- ___ Lazarus mailing

Re: [Lazarus] What happened with make LCL_PLATFORM?

2012-08-29 Thread Krzysztof
This is from trunk, but official release 1.0 has this problem too. But now I see that RC 2 branch has this problem too but 2 days ago it worked . Hmm it seems that something happened with my Free Pascal installation. I have linux ubuntu 12.04 64 bit, stable FPC 2.6.0. I want remove FPC and

Re: [Lazarus] What happened with make LCL_PLATFORM?

2012-08-29 Thread Krzysztof
Hmm seems that my last post to this discussion does not reached. So after reinstall FPC, everything works fine -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] What happened with make LCL_PLATFORM?

2012-08-29 Thread Krzysztof
BTW two questions: 1. What is FPC 2.6.1? Is this stable version? If yes why on http://www.freepascal.org/ is 2.6.0 as latest? 2.6.1 is some patch? 2. When FPC 2.7.X is planned? We have now Lazarus 1.0, It would be nice if it worked with version 2.7.X --

Re: [Lazarus] What happened with make LCL_PLATFORM?

2012-08-29 Thread Krzysztof
But Morgan mentioned something about 2.7.1. RC1 (Release Candidate), so 2.7.1 will be stable or number finally jump to 2.8.0? For example Lazarus had 1.0 RC and stable is 1.0 too -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

[Lazarus] Trackbar - how go to mouse click position?

2012-08-27 Thread Krzysztof
Hi, I'm using TTrackBar component. I can change position by moving mouse but how to go to position where mouse is clicked? When I do this, track position is moving only by PageSize value. Ubuntu 12.04 64bit. GTK2 Regards -- ___ Lazarus mailing list

Re: [Lazarus] Trackbar - how go to mouse click position?

2012-08-27 Thread Krzysztof
Thanks, I will try it -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Trackbar - how go to mouse click position?

2012-08-27 Thread Krzysztof
But one thing. Rhythmbox application on linux use gtk trackbar for music track and it can change position on mouse click. Maybe there is some hack for this? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Trackbar - how go to mouse click position?

2012-08-27 Thread Krzysztof
Ok, I read that on GTK, middle mouse button is responsible for jump to position. So I am trying to simulate it: procedure TForm1.TrackBar1Click(Sender: TObject); begin PostMessage(TrackBar1.Handle, LM_MBUTTONDOWN, 0, 0); //TrackBar1.Perform(LM_MBUTTONDOWN,0,0); end; But it doesn't work. Here

Re: [Lazarus] My Lazarus Dream: Cross Compile Linux64 - Linux32 on Ubuntu 12.04

2012-08-22 Thread Krzysztof
Hi, I also had problems with cross-compile Linux 64 bit - Linux 32 bit, but in CodeTyphon, but maybe someone find interesting tips in this topic (on 2 page I wrote step-by-step solution):

  1   2   >