Re: [Lazarus] TFont.size

2009-05-02 Thread zeljko
On Friday 01 May 2009 22:35, Felipe Monteiro de Carvalho wrote:
 Hello,

 Does anyone the difference between TFont.Height and TFont.Size?

 It seams to me that Height is measured in pixels and Size is some
 other unit which I don't know. Even worse, it doesn't seam to be an
 international system unit, but rather an american unit (some fraction
 of inches).

 The Delphi docs say:

 Use Size to specify the point size of the font. If the value is
 negative, the internal leading that appears at the top of each line of
 text is included. If the value is positive, Size represents the height
 of the characters but not the internal leading.

 To determine the size of the font in pixels, use the Height property
 instead. The value of Size can be obtained from the height in pixels
 using this formula:

 Copy Code
 Font.Size = -Font.Height * 72 / Font.PixelsPerInch
 When the Size property has a positive value, the Height property has a
 negative value. When the Height property has a positive value, the
 Size property has a negative value. 

 A rather exoteric property IMHO. Or yet another Windowsism in Delphi

No, it's not Windowsism, qt have the same thing on all platforms.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Failed to compile Lazarus

2009-04-29 Thread zeljko
On Wednesday 29 April 2009 14:07, Marco van de Voort wrote:
 On Wed, Apr 29, 2009 at 01:20:42PM +0200, Antonio Sanguigni wrote:
  I just updated my lazarus linux box at svn rev19689.
 
  Make now gives me this error:
 
  Compiling graphics.pp
  canvas.inc(88,24) Error: identifier idents no member SetClipping
  graphics.pp(2489) Fatal: There were 1 errors compiling module, stopping
  Fatal: Compilation aborted
  make[1]: *** [alllclunits.ppu] Error 1
  make[1]: Leaving directory `/home/antonio/lazarus/lcl'
  make: *** [lcl] Error 2
 
  I tried to comment out the statement that that follows because it seems
  SetClipping is not present into ancestor TFPCustomCanvas.

 (It is, but only since this morning)


but not in 2.2.5 ? or it'll come there too ?
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] OT: Namespaces?

2009-04-07 Thread zeljko
On Tuesday 07 April 2009 16:59, Mattias Gaertner wrote:
 On Tue, 7 Apr 2009 15:32:28 +0200

 zeljko zel...@holobit.net wrote:
  On Tuesday 07 April 2009 15:11, Mattias Gärtner wrote:
   AFAIK under Delphi the 'in' modifier has two purposes:
   - mark the unit as part of the project
   - use a unit from a directory which can not be added to the unit
   search path, because there is a duplicate.
 
  Lazarus uses same logic isn't it ?

 It does not.
 What belongs to the project is stored in the .lpi.

 The codetools support the 'in' modifier and so does the lazarus IDE a
 bit.
 But the IDE does not update the 'in' file names and it does not have
 any special consistency checks for them. So use them only if
 you know what you are doing.

I must use them :) 

 The converter for delphi projects supports them (fix the
 file cases, adds them to the lpi).

  I already have such projects where
  I must use in like in delphi.

 Please give a complete example. Maybe you are doing something wrong.

I have two dirs with projects, both have main.pas, but project2 uses some 
units from project1 dir.
So:
1.I must include project1 dir into project2, but sometimes , when building 
project2 lazarus (eg. when have some error in code), raised main.pas from 
project1 , but it shouldn't, it must open project2/main.pas.
In kylix this is normal (because of in), so each unit is properly 
recompiled.

I've seen that it's little bit messy and tricky with fpc, so my settings for 
eg. project2 are:
1.project1 units , which are used in project2 ARE included inside .lpr 
with in like myunitfromproj1 in '../project1/myunitfromproj1.pas' etc..
2.project1 dir is removed from my units path.
3.-FU is setted up to project2 dir.
4.Laz application output path is at third place ... eg. myBuilds/project2

Now it does not make any mess. Maybe I'm wrong ... but it works for me.


z.


___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazarus compiled with Qt - how stable?

2009-03-30 Thread zeljko
On Monday 30 March 2009 11:49, Graeme Geldenhuys wrote:
 Hi,

 How stable is Lazarus compiled with Qt widgetset? I'm currently using
 the 0.9.26 (first stable release). I'll update to the .2 release (I
 think that's the latest stable version) shortly. I recompiled Lazarus
 IDE and quickly ran though some of the features I use the most -
 everything seems to work ok.  Anybody use Lazarus with Qt widgetset on
 a day-to-day basis?

Yes :)
But I'm using latest SVN all the time, since many bugs (lclqt) is fixed in 
comparision with 0.9.26.XX.

z.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Where to place LCL-qt setup information on wiki?

2009-03-30 Thread zeljko
On Monday 30 March 2009 17:06, Graeme Geldenhuys wrote:
 I have just managed to setup LCL-Qt under Kubuntu 9.04 (beta) using
 the latest Lazarus SVN.  It was a bit of a struggle to find out about
 the Qt4intf.so file, where to place it etc...

 I searched the wiki and couldn't find any Qt information, other that
 'Qt on Mac'. I'm not using a Mac, I'm using Linux.

 Where could I add some notes on LCL-Qt setup and compiling Lazarus for Qt
 4?

http://wiki.lazarus.freepascal.org/index.php/Qt_Interface
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Mac OS X or iPhone applications created with Lazarus

2009-03-27 Thread zeljko
On Friday 27 March 2009 08:28, Graeme Geldenhuys wrote:
 Out of interest... Does Carbon and Cocoa applications look different?
 Joanna immediately said that the screenshot (link below) is a Carbon
 app, not a Cocoa app.  How does the look of the two differ?

 http://wiki.lazarus.freepascal.org/Image:Lazarusmac0.9.25.jpg

Dont know about screenshot, but there you can see  the explanation of 
screenshoot
A screenshot of Lazarus 0.9.25a on MacOs-X Tiger :), so if she looked into 
wiki page, it isn't so hard to guess that it isn't Cocoa.
btw. Qt-4.5 supports Cocoa (laz + lclqt should work), so if anyone have 
Leopard 64bit it can be tested (qt-4.5 works with 4.4 bindings, at least on 
my Tiger).

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TFloatSpinEdit and DecimalSeparator (GTK)

2009-03-13 Thread zeljko
On Friday 13 March 2009 14:27, Bart wrote:
  You included clocale unit in your .dpr (UNIX targets only) ?
   DecimalSeparator at programstart: '.' (period) = DEFAULT , that means
  that clocale unit is missing.

 I was under the impression that the value of SysUtils.DecimalSeparator
 was determined/set at programstart using locale settings?
 (At least in Windows it seems to be)
 Are they hardcoded in Linux version of SysUtils?

Under windows SysUtils have correct locales, but under unix (linux  mac) it's 
a mess, so that's the reason of clocale unit usage.
With clocale included you'll get correct locales.


 I'll try inclusing clocale unit and see what it does.
 Do I have to call some proc/function to make it set the value of
 DecimalSeparator?

No, but you can always say DecimalSeparator := ',';


   DecimalSeparator visible in control: ',' (comma) = that means that gtk
   controls uses libc (right) locales, setted up by LANG variable.

 And GTK1 differs form GTK2 with same locale setting?

 What LANG variable should I look for?
 (I'm not sure but I think I only saw one: it's value being nl_NL or
 something the like)

if LANG=nl_NL then glibc (under linux) reads it's locale settings for nl_NL 
eg.
DecimalSeparator := ',';
ThousandSeparator := ' ';
DateSeparator := '.';
ShortDateFormat := 'something'
if LANG=en_US then DateSeparator := '/'  etc ...etc ...

SysUtils are not multiplatform in that case, so you have to use clocale 
unit.

zeljko



___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TFloatSpinEdit and DecimalSeparator (GTK)

2009-03-11 Thread zeljko
On Wednesday 11 March 2009 15:01, Bart wrote:
 In Windows TFloatSpinEdit responds to changes in DecimalSeparator (if
 you update the control).
 I noticed that in Linux GTK it does not.

 (I use WinMe and Suse 10.0)

 Observed behaviour GTK1
 - DecimalSeparator at programstart: '.' (period)
 - DecimalSeparator visible in control: ',' (comma)
 - Changing DecimalSeparator and updating control: no effect

 Observed behaviour GTK2
 - DecimalSeparator at programstart: '.' (period)
 - DecimalSeparator visible in control: '.' (period)
 - Changing DecimalSeparator and updating control: no effect

 Observed behaviour Windows
 - DecimalSeparator at programstart: ',' (comma)
 - DecimalSeparator visible in control: ',' (comma)
 - Changing DecimalSeparator and updating control: Decimalseparator in
 control changes accordingly

 While this is not a big issue, currently at GTK (in my situation) the
 Text of TFLoatSpinEdit possibly cannot be translate back to a Float
 because of the mismatch in decimalsSeparators used by the control and
 the one in SysUtils.

 Does anyone know if GTK1/GTK2 even allows setting the character used
 for the FloatSpinEdit control (without having to change systemwide
 settings)?
 If so, I consider it a bug and will post it in the bugtracker.
 If not, well, tought luck, and I'll live with it ;-)

You included clocale unit in your .dpr (UNIX targets only) ?
DecimalSeparator at programstart: '.' (period) = DEFAULT , that means that 
clocale unit is missing.
DecimalSeparator visible in control: ',' (comma) = that means that gtk 
controls uses libc (right) locales, setted up by LANG variable.

zeljko




___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] repaint method on Darwin/Carbon

2009-02-10 Thread zeljko
On Tuesday 10 February 2009 15:08, Brad Campbell wrote:
 G'day all,

 I've got an app where I'm doing some time critical serial processing. I
 have 2 callbacks in the serial code that call back to methods in the form
 to update a status bar and caption label.

 I used to update the label/status bar and call Application.ProcessMessages
 so they would paint, but I discovered the indeterminacy in the other GUI
 events queued would cause my serial latency to randomly blow out badly.
 I've worked around this by doing..

 StatusBar1.Repaint;
 Label1.Repaint;

 rather than Application.ProcessMessages;

 On Win32 and GTK2/Linux this works perfectly, but on Carbon it won't
 repaint anything until the application can service its message queue.

1. like dmitry says - Carbon/Cocoa  Qt on all platforms does not allow 
paintings outside of paint event.
2. Calling repaint is very expensive (CPU), try with YourControl.Invalidate; 
or YourControl.Update; 

zeljko
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] repaint method on Darwin/Carbon

2009-02-10 Thread zeljko
On Tuesday 10 February 2009 16:49, dmitry boyarintsev wrote:
  1. like dmitry says - Carbon/Cocoa  Qt on all platforms does not allow
  paintings outside of paint event.
  2. Calling repaint is very expensive (CPU), try with
  YourControl.Invalidate; or YourControl.Update;

 Invalidate and Update will take effect only if messages queue is
 processed (by ProcessMessages or PostMessages if blocked by an event).

but he is calling Application.ProcessMessages; after Repaint; , so why not 
Invalidate or Update ?

 ___
 Lazarus mailing list
 Lazarus@lazarus.freepascal.org
 http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] FYI: qt is going to be LGPL

2009-01-14 Thread zeljko
On Wednesday 14 January 2009 11:47, Felipe Monteiro de Carvalho wrote:
 This is just fantastic. It really adds a lot of value to the
 lazarus-qt interface.

 And even more, it becomes a viable substitute for the gtk2 interface
 in UNIXes. The only problem being that Qt 4.5 would be required, which
 means that at the moment no distribution supports it out of the box.

But it will not be inside LCLQt until 4.5.1 release (so it's at least 4-6 
months from now on).
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] FYI: qt is going to be LGPL

2009-01-14 Thread zeljko
On Wednesday 14 January 2009 11:19, Luca Olivetti wrote:
 You probably already know this, anyway I thing is good news for the qt
 lazarus port.

 Qt 4.5 is going to be released under the LGPL instead of the GPL:
 http://www.qtsoftware.com/about/news/lgpl-license-option-added-to-qt

AFAIK , it will not be replacement for GPL. I got mail from nokia this 
morning:
 Dear Qt User:

Nokia is pleased to announce that with the release of Qt 4.5 you will
be able to use Qt under the Lesser General Public License (LGPL)
version 2.1 terms. When released in March 2009, Qt will be made
available under three licensing options: Commercial, LGPL and GPL.
Prior versions of Qt are not impacted by this announcement.

It says 3 licencing options.

zeljko
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Import library not found for libz

2008-12-04 Thread zeljko
On Thursday 04 December 2008 16:59, Bob K. wrote:
 I've uninstalled Lazarus, and re-installed.  I checked all the environment
 options and everything seems fine.  I ran some Lazarus example projects and
 they all work.

 Version #: 0.9.26 beta
 Date: 2008-10-05
 FPC Version: 2.2.2
 SVN Revision: 16885
 i386-win32-win32/win64

 Windows Vista

 I've compiled FlexCel.lpk and FlexCel_DESIGN.lpk successfully.  When I
 attempt to install FlexCel_DESIGN.lpk I'm getting the following error:

 C:\lazarus\ide\lazarus.pp(122,1) Error: Import library not found for libz
 C:\lazarus\ide\lazarus.pp(122,1) Fatal: There were 1 errors compiling
 module, stopping

hm...I've installed FlexCel w/o any problem (winXP), but I've copied zlib1.dll 
into ..Windows\System32 dir. I cannot remember of any error with libz it 
sound me like UNIX is declared somewhere ;)



 I updated the Compiler Options | Library (-Fl) to include the folder that
 contains zlib1.dll, but I'm still getting the same error.

 Please help,
 bob k.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Newsreader written with FPC/Lazarus?

2008-11-14 Thread zeljko
On Friday 14 November 2008 15:34, Graeme Geldenhuys wrote:
 On Fri, Nov 14, 2008 at 4:17 PM, zeljko [EMAIL PROTECTED] wrote:
  If I have to use a text mode news reader, I will. It just needs to
  handle attachments, offline reading and search message bodies...
 
  slrn  man slrn :)

 I'm actually busy trying it now I see it's got a 'slrnpull' which
 download articles for offline viewing. Now lets hope it has decent
 searching (article bodies)...  ;-)

slrn is a master of universe ;)

zeljko
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Performance of GTK 2 and CE

2008-11-11 Thread zeljko
On Tuesday 11 November 2008 17:55, Martin Schreiber wrote:
 On Tuesday 11 November 2008 14.09:08 Martin Schreiber wrote:
  Some more competition:   ;-)
 
  Suse 11 32bit, AMD Athlon XP3000+ 2.15GHz, ATI Radeon 9200SE

Fedora 3 (hardly updated) 32 bit, kernel 2.6.20, Intel CoreDuo 2.4 

ok here is qt/gtk2 comparision, current trunk, don't know what are you talking 
about but here are results ;)  

QT:
Duration: 00:00.333
Duration: 00:00.332
Duration: 00:00.330
Duration: 00:00.326
Duration: 00:00.326
Duration: 00:00.327
Duration: 00:00.326
Duration: 00:00.326

GTK2:
Duration: 00:00.735
Duration: 00:00.736
Duration: 00:00.738
Duration: 00:00.736
Duration: 00:00.736
Duration: 00:00.735
Duration: 00:00.734
Duration: 00:00.735

qt/gtk2 code:
var
   i: integer;
  s: TDateTime;
  e: TDateTime;
begin
   s := Now;
   for i := 1 to 1000 do
   begin
 if (i mod 2) = 0 then
   button2.Color := clRed
else
   button2.Color := clBlue;
  Application.ProcessMessages;
   end;
   e := Now - s;
   writeln('Duration: ' + FormatDateTime('nn:ss.zz', e));
end;


zeljko
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Performance of GTK 2 and CE

2008-11-11 Thread zeljko
On Tuesday 11 November 2008 18:17, Graeme Geldenhuys wrote:
 On Tue, Nov 11, 2008 at 6:55 PM, Martin Schreiber [EMAIL PROTECTED] wrote:
  fpGUI, current trunk, button with caption, compiled with -B -O3
  Duration: 00:00.305
  Duration: 00:00.302

 Umm, so there is some space for improvement in fpGUI. I'll try and
 find that stray 100ms. :)

   button2.backgroundColor := clBlue;
 fpgApplication.ProcessMessages;

 I wonder if the call to ProcessMessages in the cause of the 100ms
 stray... I don't require that line in fpGUI.  Just added it in, and it
 added +-40ms to my timing results.

Same code without ProcessMessages (qt/gtk2)

QT (can you imagine this ;) )
Duration: 00:00.025
Duration: 00:00.025
Duration: 00:00.026
Duration: 00:00.025
Duration: 00:00.025
Duration: 00:00.025
Duration: 00:00.025


GTK2

Duration: 00:00.394
Duration: 00:00.397
Duration: 00:00.390
Duration: 00:00.390
Duration: 00:00.394
Duration: 00:00.393
Duration: 00:00.396

zeljko
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Problems linking with QT4

2008-11-03 Thread zeljko
On Monday 03 November 2008 14:21, Darius Blaszyk wrote:
 I have some problems with linking to the QT widgetset. Apparently the
 linker does not like my library, but I believe to have correctly
 followed the instructions on the wiki. Is there anything else I need to
 do (or forget)?

What bindings version ? If you downloaded 1.66 then you must have qt-4.4 
installed and use lazarus svn = 17196 and set define USE_QT_44, otherwise it 
should work.


 ldconfig -p | grep libqt4intf

 gives:
   libqt4intf.so (libc6,x86-64) = /usr/local/lib/libqt4intf.so


 The output of the build process is:

 Linking ../lazarus
 /usr/bin/ld: skipping incompatible /usr/local/lib/libqt4intf.so when
 searching for -lqt4intf
 /usr/bin/ld: cannot find -lqt4intf
 lazarus.pp(122,1) Error: Error while linking
 /usr/bin/ld: skipping incompatible /usr/local/lib/libqt4intf.so when
 searching for -lqt4intf
 /usr/bin/ld: cannot find -lqt4intf

 Regards, Darius

 ___
 Lazarus mailing list
 Lazarus@lazarus.freepascal.org
 http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Patch to print selection in IDE.

2008-09-21 Thread zeljko
On Sunday 21 September 2008 18:02, Michael Van Canneyt wrote:
 Hi,

 I've uploaded small patch to the bug tracker (12197) to add support for
 printing just the selection in the IDE instead of the whole file.
 The IDE will ask if you want to print the whole file or the selection
 if it detects a non-emty selection.

 If it's OK, please apply.

 The question dialog should probably be enhanced to ask if you want to
 print line numbers or not, and select a font. If you want to get really
 fancy, maybe highlighted printing should be added as well.

Also, nice feature would be to set print to file as open option (qt can do 
that), so it's possible to print source / selection into pdf file.


 Michael.
 ___
 Lazarus mailing list
 Lazarus@lazarus.freepascal.org
 http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Exiting througth the Dock icon in Carbon

2008-09-19 Thread zeljko
On Friday 19 September 2008 08:55, zeljko wrote:
 On Thursday 18 September 2008 15:54, Felipe Monteiro de Carvalho wrote:
  On Thu, Sep 18, 2008 at 10:26 AM, zeljko [EMAIL PROTECTED] wrote:
   Are you talking about Lazarus IDE icon or your application ?
   btw. 4.4.2 is officialy out, just get letter from Trolltech ;)
 
  My software:
 
  svn co https://magnifier.svn.sourceforge.net/svnroot/magnifier/trunk
  magnifier
 
  I have Qt 4.4.1. I could upgrade, but I don't think it will make much
  difference.

 here it is (for Mac). It's a qt bug

 http://trolltech.com/developer/task-tracker/index_html?method=entryid=2082

Also linux problem comes from here:
http://trolltech.com/developer/task-tracker/index_html?method=entryid=224498
this bug is fixed 17.09.2008 (latest 4.4.X snapshots).
This is NOT fixed in 4.4.2 official release ...

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Exiting througth the Dock icon in Carbon

2008-09-18 Thread zeljko
On Thursday 18 September 2008 15:54, Felipe Monteiro de Carvalho wrote:
 On Thu, Sep 18, 2008 at 10:26 AM, zeljko [EMAIL PROTECTED] wrote:
  Are you talking about Lazarus IDE icon or your application ?
  btw. 4.4.2 is officialy out, just get letter from Trolltech ;)

 My software:

 svn co https://magnifier.svn.sourceforge.net/svnroot/magnifier/trunk
 magnifier

 I have Qt 4.4.1. I could upgrade, but I don't think it will make much
 difference.

I'm afraid that I have to tell you that it doesn't work on Linux too.
When start magnifier, and right click for the first time on trayicon, i can 
see menu , later nothing  seem like a bug with TTrayIcon.
MacOsX problem is same like yours.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TMS component for lazarus released

2008-09-17 Thread zeljko
On Wednesday 17 September 2008 11:29, Michael Van Canneyt wrote:
 Hi,

 For those that know TMS Software:

 They have released their first component for FPC/Lazarus: Flexcel.

 http://www.tmssoftware.com/go/?flexcel
 Depending on the feedback they get on this (I assume direct inquiries,
 purchases or requests to port other components), they may decide to port
 other TMS components as well.

hmm...I've ported my flexcel (licensed) to lazarus in 30 minutes ;), but I'll 
buy it once again just because it's nice component and want to support 
lazarus 3rd party component makers.



 So, please spread the news :-)

 Maybe someone can put this on the Lazarus website as well as a news item.

 Michael.
 ___
 Lazarus mailing list
 Lazarus@lazarus.freepascal.org
 http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TMS component for lazarus released

2008-09-17 Thread zeljko
On Wednesday 17 September 2008 18:13, zeljko wrote:
 On Wednesday 17 September 2008 13:58, Michael Van Canneyt wrote:
  On Wed, 17 Sep 2008, zeljko wrote:
   On Wednesday 17 September 2008 11:29, Michael Van Canneyt wrote:
Hi,
   
For those that know TMS Software:
   
They have released their first component for FPC/Lazarus: Flexcel.
   
http://www.tmssoftware.com/go/?flexcel
Depending on the feedback they get on this (I assume direct
inquiries, purchases or requests to port other components), they may
decide to port other TMS components as well.
  
   hmm...I've ported my flexcel (licensed) to lazarus in 30 minutes ;),
   but I'll buy it once again just because it's nice component and want to
   support lazarus 3rd party component makers.
 
  If you used a windows version only; yes then it'll work in 30 minutes.
  You can even get advstringgrid to work like that.
  But if you want to support Linux and MacOS, it is a completely different
  story. And that is what they have done.

 No, my flexcell works on Linux ,Mac  Win ... and I'm not winblows user :)


ah...now I see , they rewritten complete engine so no dependencies on libgsf 
on linux/mac ... that's nice :)  I've already filled up order form :)))
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] xml reader AV

2008-08-30 Thread zeljko
why is this so ?  new bug ?

TCodeHelpManager.GetFPDocFilenameForSource TLazPackage
TApplication.HandleException In Stream (line 1501 pos 7): Expected , 
found 
  Stack trace:
  $0828B532  TXMLREADER__RAISEEXC,  line 277 of laz_xmlread.pas
  $0828B755  RAISESTRINGNOTFOUND,  line 307 of laz_xmlread.pas
  $0828B641  TXMLREADER__EXPECTSTRING,  line 315 of laz_xmlread.pas
  $0828D9D6  CREATENAMEELEMENT,  line 1110 of laz_xmlread.pas
  $0828D739  TXMLREADER__PARSEELEMENT,  line 1129 of laz_xmlread.pas
  $0828D917  CREATENAMEELEMENT,  line 1102 of laz_xmlread.pas
  $0828D739  TXMLREADER__PARSEELEMENT,  line 1129 of laz_xmlread.pas
  $0828D917  CREATENAMEELEMENT,  line 1102 of laz_xmlread.pas
  $0828D739  TXMLREADER__PARSEELEMENT,  line 1129 of laz_xmlread.pas
  $0828D917  CREATENAMEELEMENT,  line 1102 of laz_xmlread.pas
  $0828D739  TXMLREADER__PARSEELEMENT,  line 1129 of laz_xmlread.pas
  $0828DA37  TXMLREADER__EXPECTELEMENT,  line 1139 of laz_xmlread.pas
  $0828BA48  TXMLREADER__PROCESSXML,  line 436 of laz_xmlread.pas
  $0828E757  READXMLFILE,  line 1396 of laz_xmlread.pas
  $0828E7BD  READXMLFILE,  line 1408 of laz_xmlread.pas
  $085C7304  TCODEHELPMANAGER__LOADFPDOCFILE,  line 1085 of codehelp.pas
  $085C9527  TCODEHELPMANAGER__GETELEMENTCHAIN,  line 1662 of codehelp.pas
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TMS Software to trial FPC Lazaru

2008-08-06 Thread zeljko
On Tuesday 05 August 2008 21:20, Bob K. wrote:
 Zeljko,

 Which version do you get (delphi 2007)?

CLX

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TMS Software to trial FPC Lazarus

2008-08-05 Thread zeljko
On Tuesday 05 August 2008 09:08, Graeme Geldenhuys wrote:
 Hi,

 I spoke to someone from TMS Software (http://www.tmssoftware.com) in
 the delph.non-technical newsgroups. He mentioned that TMS is trying
 out Lazarus and FPC for a new product. If all goes well with the first
 product, others will follow,  :-)

TAdvStringGrid is already working for me here ;)
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TMS Software to trial FPC Lazaru

2008-08-05 Thread zeljko
On Tuesday 05 August 2008 17:03, Graeme Geldenhuys wrote:
 On Tue, Aug 5, 2008 at 2:50 PM, Bob K. [EMAIL PROTECTED] wrote:
  Zeljko,
 
  Are you saying that TAdvStringGrid works with Lazarus?

 If you buy TMS software, I think you get the source code, so nothing
 stopping you from porting it yourself.

 BTW:
 I did mention that to the TMS guy that somebody is using AdvStringGrid
 in Lazarus. ;-)

not just TAdvStringGrid, but TAdvColumnGrid and TDBAdvStringGrid also works 
ok ;)


___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


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

2008-06-06 Thread zeljko
On Friday 06 June 2008 11:32, Graeme Geldenhuys wrote:
 Hi,

 Another issue when using Lazarus under KDE. This seems to be a Lazarus
 issue, because my fpGUI based applications do not behave like this.
 Every time I switch desktops and return to the desktop that is running
 Lazarus, all the Lazarus windows are minimized. That's 5-7 windows I
 have to restore one by one, every time!!

What KDE version ? I'm using 3.5.2 and never had such problem.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] MouseWheel scroll delta detection

2008-06-05 Thread zeljko
On Thursday 05 June 2008 10:38, Graeme Geldenhuys wrote:
 A follow-up from my previous post.

 So far, the only mention of this mouse wheel acceleration is in a
 article listed below:
   http://adomas.org/javascript-mouse-wheel/

 Under Mac OS X the mouse wheel delta goes from -+0.1 to -+30.0

 In XLib and Win32 API's,  I could only get a delta of -+1 (no range).  :-(

Take a look here, so maybe you'll get some idea

http://doc.trolltech.com/4.4/qwheelevent.html#delta

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Connecting to a Postgres Database

2008-05-25 Thread zeljko
On Sunday 25 May 2008 17:08, Dave Coventry wrote:
 Hi,

 I'm using a windows machine (XP) running my app written with Lazarus
 and trying to connect to a Postgres Server.

 Whenever I turn the Connected field on my PQConnection component, I
 get an error saying that it cannot find PostgreSQL client and
 referencing libpq.dll.

 Does anyone know what's happening?

 Do I need a client to start the connection with the server?

find libpq.dll/libpq8X.dll somewhere and copy it to C:\Windows\System32
(probably you can find libpq.dll in your windows postgres installation)

 ___
 Lazarus mailing list
 Lazarus@lazarus.freepascal.org
 http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Fonts Advise between Windows Linux

2008-04-14 Thread zeljko
Quoting Graeme Geldenhuys [EMAIL PROTECTED]:

 [EMAIL PROTECTED] wrote:

 Don't forget that many new distros are trying to standardize dpi's
 (96,120) etc ... with gtk or qt2 (K3) you have to force dpi to 96 (best
 results), but with qt4 not.

 It is very bad design which started with Microsoft to force all monitors
 to 96 dpi. X-Window servers are 100% correct in querying the monitor for
 the best dpi value. Native dpi values should also give the user a better
 visual experience. The GUI toolkits are supposed to handle the various
 dpi settings without developer intervention, but most don't, and simply
 rely on the hard-coded 96 dpi value. 10 out of 10 for Qt4, if they
 manage this correctly!

yes they are. Font expirience is excellent with qt4 compared with qt3  
and especially compared with qt2. qt4 doesn't use xfs so there's big  
diff.Think that latest gtk2 also doesn't take care of xfs.
My test projects with lcl-qt4 looks same on linux, win32 and mac.

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Fonts Advise between Windows Linux

2008-04-14 Thread zeljko
Quoting Graeme Geldenhuys [EMAIL PROTECTED]:

 [EMAIL PROTECTED] wrote:

 yes they are. Font expirience is excellent with qt4 compared with qt3
 and especially compared with qt2. qt4 doesn't use xfs so there's big

 What is XFS (other than the cool file-system from Sun)? Did you mean Xft?

xfs is X Font Server (but there's also xfs filesystem;) )



 Regards,
- Graeme -


 ___
 fpGUI - a cross-platform GUI toolkit using Free Pascal
 http://opensoft.homeip.net/fpgui/


 ___
 Lazarus mailing list
 Lazarus@lazarus.freepascal.org
 http://www.lazarus.freepascal.org/mailman/listinfo/lazarus




___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TMaskEdit: EditMask property error

2008-04-07 Thread zeljko
On Sunday 06 April 2008 17:02, Felipe Monteiro de Carvalho wrote:
 On Sun, Apr 6, 2008 at 4:44 AM, zeljko [EMAIL PROTECTED] wrote:
   What is proper usage of LCL TMaskEdit ?

 I don't know. It was received as a patch, and is undocumented. I just
 certifyed it isn't a copy of delphi code and then I applied it.

 There are 2 ways to know how it should work.

 To know how it actually works, I'd look at the code.

it takes some time ;) .


 To know how it should work, I'd look at Delphi help files.

It's definitelly not compatibile with delphi masks (that's what I've tried)


 In any case it would be great if someone who needs to use this control
 would write a wiki page or documentation for this control, to easy the
 path of those that come later.

Yes, wiki page is a best solution. Who's patch author ?
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Hint about CreateWnd

2008-03-01 Thread zeljko
On Saturday 01 March 2008 15:44, zeljko wrote:
 On Saturday 01 March 2008 14:52, Mattias Gaertner wrote:
  Replace
DoSomeOperationWith(Handle)
  with
DoSomeOperationThatNeedsAHandle;
 
  For example any Canvas operation needs a handle.

 tnx, I've found Loaded() satisfies my needs - for runtime, but Loaded()
 isnt' called during design time ? so ... what to call here ?

error ! it is called during design time, but not first time when I drop new 
control on to form (i can see my control, but without default settings - it's 
empty) - I've fixed this by overriding UpdateShowing, and calling defaults 
when HandleAllocated.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Hint about CreateWnd

2008-03-01 Thread zeljko
On Saturday 01 March 2008 16:07, Mattias Gaertner wrote:
 On Sat, 1 Mar 2008 15:44:55 +0100

 zeljko [EMAIL PROTECTED] wrote:
  On Saturday 01 March 2008 14:52, Mattias Gaertner wrote:
   Replace
 DoSomeOperationWith(Handle)
   with
 DoSomeOperationThatNeedsAHandle;
  
   For example any Canvas operation needs a handle.
 
  tnx, I've found Loaded() satisfies my needs - for runtime, but
  Loaded() isnt' called during design time ? so ... what to call here ?

 I hope, you mean 'override' not to 'call'.

yes , I mean 'overrde' I don't call Loaded() ;)


 Loaded is called during designtime too. Otherwise you found a
 bug.

Not when you drop control on to form for the first time.
Later, when you start that project, then it properly calls Loaded().
So it could be a bug.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Hint about CreateWnd

2008-03-01 Thread zeljko
On Saturday 01 March 2008 18:23, Mattias Gaertner wrote:
 On Sat, 1 Mar 2008 16:37:35 +0100

 zeljko [EMAIL PROTECTED] wrote:
  On Saturday 01 March 2008 16:07, Mattias Gaertner wrote:
   On Sat, 1 Mar 2008 15:44:55 +0100
  
   zeljko [EMAIL PROTECTED] wrote:
On Saturday 01 March 2008 14:52, Mattias Gaertner wrote:
 Replace
   DoSomeOperationWith(Handle)
 with
   DoSomeOperationThatNeedsAHandle;

 For example any Canvas operation needs a handle.
   
tnx, I've found Loaded() satisfies my needs - for runtime, but
Loaded() isnt' called during design time ? so ... what to call
here ?
  
   I hope, you mean 'override' not to 'call'.
 
  yes , I mean 'overrde' I don't call Loaded() ;)
 
   Loaded is called during designtime too. Otherwise you found a
   bug.
 
  Not when you drop control on to form for the first time.
  Later, when you start that project, then it properly calls Loaded().
  So it could be a bug.

 I see.
 No that's, not a bug. Loaded is called after the lfm data has been
 transmitted. No lfm data - no Loaded.
 If you tell, what you are trying to do, I can tell you what method to
 override.

I'm creating new component on component palette :) (qt only component),
everything works fine, bug when I drop it for the first time on the form it 
doesn't load it's properties (it is QTableWidget), so it have to load 
rowcount, colcount etc  it looks empty - no rows, no cols, white colored 
etc ...(OI is filled OK with props).
After saving project, and restating laz ide (yes, now Loaded() is called) , I 
can see all clearly.
No problems during runtime, designtime only.


___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TCheckbox and +/- keys

2008-02-17 Thread zeljko
On Monday 18 February 2008 07:49, Graeme Geldenhuys wrote:
 Hi,

 This is regarding Mantis bug report:
   http://bugs.freepascal.org/view.php?id=10841

 I have tried applications in Windows, GTK1, GTK2 and Qt (native, not
 KDE) and none of the programs I tried changes the checkbox state with
 the +/- keys (keypad keys or otherwise).  Spacebar toggles the
 checkbox, but +/- does nothing!

 So as far as I can conclude, that is not native behaviour and should
 not be supported in LCL.

Only SpaceBar should toggle checkbox. I've never seen +- toggles anything 
except (collapsing  expanding) nodes in treeviews. 
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus