[Lazarus] New version of Excel Interface unit available

2009-08-26 Thread Thierry Coq
A new version of ExcelInterface is now available (version 0.4) here: http://tcoq.free.fr/composants.html It's provided as is, under the MPL 1.1 license. This is unfinished work, but the version 0.4 has the minimum necessary to do useful stuff with the interface, and more: - creating and

Re: [Lazarus] Groupboxes in the IDE

2009-08-26 Thread Graeme Geldenhuys
theo wrote: While real TGroupBox - Captions (at least on GTK2) are theme aware (bold, not bold), the labels on the bevels aren't. Correct. In Gnome I have my text set to dark-blue color. The TLabel components in Lazarus do not seem to adhere to that theme color. See the attached screenshot I

Re: [Lazarus] New version of Excel Interface unit available

2009-08-26 Thread Leslie Kaye
Thierry Coq wrote: div class=moz-text-flowed style=font-family: -moz-fixedA new version of ExcelInterface is now available (version 0.4) here: Tip for a basic and simple solution (Windows but presumably similar on other platforms?) you can just write your data to a Comma Separated Variable

Re: [Lazarus] Groupboxes in the IDE

2009-08-26 Thread Graeme Geldenhuys
theo wrote: By introducing custom groupbox-alikes, Lazarus is giving up a part of the system look. Well, it's doing that already by using the Label 2xBevel isn't it?? That's my point I was trying to make before. Custom components should be allowed, that are _only_ used in the IDE -- NOT in

Re: [Lazarus] Groupboxes in the IDE

2009-08-26 Thread theo
Well, it's doing that already by using the Label 2xBevel isn't it?? Yes, I counted these as //groupbox-alikes too in my prev. message. I don't mind if you use custom components for the IDE if there is a good reason to do so. But you should be aware of the fact that they do not follow themes

Re: [Lazarus] New version of Excel Interface unit available

2009-08-26 Thread Žilvinas Ledas
other platforms?) you can just write your data to a Comma Separated Variable (csv) text file and do a ShellExecute 'open' on it. This will Maybe it will help someone: one can write xml file and rename it to .xls and excel will open it without any difference ;) To know the right xml format one

Re: [Lazarus] New version of Excel Interface unit available

2009-08-26 Thread Felipe Monteiro de Carvalho
On Wed, Aug 26, 2009 at 6:55 AM, Leslie Kayeles.k...@couchmansfarm.plus.com wrote: Tip for a basic and simple solution (Windows but presumably similar on other platforms?) you can just write your data to a Comma Separated Variable (csv) text file and do a ShellExecute 'open' on it. Or you can

Re: [Lazarus] TTrayIcon on Cocoa

2009-08-26 Thread Tobias Giesen
NSLoadApplication must be called from Carbon application using Cocoa, no matter what stuff is placed in Bundle. Great. Still the icon does not respond to clicks. I tried my own adaptation of the StatusItem, bypassing the LCL. This works fine as long as I use NSApp.run instead of

Re: [Lazarus] TTrayIcon on Cocoa

2009-08-26 Thread dmitry boyarintsev
Great. Still the icon does not respond to clicks. Are using some kind of mix of Cocoa and Carbon widgetset? thanks, dmitry -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Default uses clause in project unit

2009-08-26 Thread Vincent Snijders
Graeme Geldenhuys schreef: Hi, When you create a new project in Lazarus, the default uses classe in the *.lpr file looks as follows: --- uses {$IFDEF UNIX}{$IFDEF UseCThreads} cthreads, {$ENDIF}{$ENDIF} Classes; --- Is there an alternative implementation of

Re: [Lazarus] TTrayIcon on Cocoa

2009-08-26 Thread Tobias Giesen
Great. Still the icon does not respond to clicks. Are using some kind of mix of Cocoa and Carbon widgetset? No, I made a totally clean installation of the latest snapshot and created a new minimal test application for this purpose. If you like I can send you the test application. Or does

Re: [Lazarus] TTrayIcon on Cocoa

2009-08-26 Thread dmitry boyarintsev
No, I made a totally clean installation of the latest snapshot and created a new minimal test application for this purpose. If you like I can send you the test application. Or does anybody have a working demo of this? I'm wondering what are you trying to achieve. Even if you make

Re: [Lazarus] Default uses clause in project unit

2009-08-26 Thread Mattias Gärtner
Zitat von Graeme Geldenhuys grae...@opensoft.homeip.net: Vincent Snijders wrote: If not, then why do we have the extra IFDEF UseCThreads define in the uses clause? So, it won't be added by default. Don't add it, if you don't need it (or any or you required packages). But why not add it

Re: [Lazarus] TTrayIcon on Carbon

2009-08-26 Thread Tobias Giesen
Hi Dmitry, I am sorry I didn't describe the case properly. I mistyped the subject. I am building a Carbon application and I am trying to get the TrayIcon with menu to work, that's all. It shows up but does not respond to clicks and does not show the menu. I wonder when did anybody use or test

Re: [Lazarus] TTrayIcon on Cocoa

2009-08-26 Thread Felipe Monteiro de Carvalho
On Wed, Aug 26, 2009 at 10:22 AM, Tobias Giesentobias_subscri...@tgtools.com wrote: Felipe, did the menu work for you? Yes, it did work. Maybe something changed in the mean time in the Carbon interface and broke it. to dmitry: Maybe we could add PasCocoa to Lazarus until a stable FPC is

Re: [Lazarus] Lazarus IDE help and Application help formats

2009-08-26 Thread Marco van de Voort
On Tue, Aug 25, 2009 at 10:25:13PM +0200, Marco van de Voort wrote: I'll see if I can spend some time on this the coming days. Done, was easier than I thought. It was .kwd btw. First attempt at www.stack.nl/~marcov/ref.chm Hmm, no such luck. While it showed in *nix ones, it fails on

Re: [Lazarus] TTrayIcon on Cocoa

2009-08-26 Thread dmitry boyarintsev
to dmitry: Maybe we could add PasCocoa to Lazarus until a stable FPC is released with native Cocoa support, what do you think? On the other hand this development may take many years to come in a stable release and when it comes out we can delete PasCocoa from lazarus I'll make an article in

Re: [Lazarus] TTrayIcon on Cocoa

2009-08-26 Thread dmitry boyarintsev
You can't base development on an unstable compiler which isn't even in trunk, but on a separate experimental branch. If you put things in that way, then I can agree with you. Including PasCocoa to Lazarus, would make a lot of things easier. But how should it be added? As part of Cocoa

Re: [Lazarus] TTrayIcon on Cocoa

2009-08-26 Thread Felipe Monteiro de Carvalho
On Wed, Aug 26, 2009 at 3:14 PM, dmitry boyarintsevskalogryz.li...@gmail.com wrote: Currently FPC support is already quite advanced. Lazarus development has always been based in stable compilers and all releases are made with stable compilers. You can't base development on an unstable compiler

Re: [Lazarus] TTrayIcon on Carbon

2009-08-26 Thread dmitry boyarintsev
Hello Tobias please read this article: http://wiki.lazarus.freepascal.org/Carbon_Interface#Cocoa_controls_in_Carbon_applications If you mange to do this steps successfully and you have Carbon LCL recompiled with Cocoa support, then you can use TTrayIcon component. One more note. If you mark

Re: [Lazarus] New version of Excel Interface unit available

2009-08-26 Thread Thierry Coq
Yes, there are several alternatives now to read/write spreadsheets: a) - using CSV files, b) - using XML files, c) - using FPSpreadsheet, d) - now using ExcelInterface. Unlike a) and b) ExcelInterface controls Excel directly using the COM interface, so the interaction with the Excel program is

Re: [Lazarus] New version of Excel Interface unit available

2009-08-26 Thread Felipe Monteiro de Carvalho
Some time ago there were people asking in the forum how to use COM to interface with Excel. I think it would be cool if you could add a link to this component in the Lazarus wiki for easier future reference: http://wiki.lazarus.freepascal.org/Components_and_Code_examples thanks, -- Felipe

Re: [Lazarus] New version of Excel Interface unit available

2009-08-26 Thread Thierry Coq
Good idea, Felipe, ;-) I will do so Thierry Felipe Monteiro de Carvalho wrote: Some time ago there were people asking in the forum how to use COM to interface with Excel. I think it would be cool if you could add a link to this component in the Lazarus wiki for easier future reference:

Re: [Lazarus] TTrayIcon on Cocoa

2009-08-26 Thread dmitry boyarintsev
In a directory above Cocoa directory. Then we would need to alter the Makefiles in both Carbon and Cocoa interfaces to see them ... I always have trouble with these makefiles. needs to be discussed in lazarus-dev Do you think we should keep the define? I mean, is it a problem to have all

Re: [Lazarus] New version of Excel Interface unit available

2009-08-26 Thread Luiz Americo Pereira Camara
Thierry Coq escreveu: Yes, there are several alternatives now to read/write spreadsheets: a) - using CSV files, b) - using XML files, c) - using FPSpreadsheet, d) - now using ExcelInterface. Unlike a) and b) ExcelInterface controls Excel directly using the COM interface, so the interaction

[Lazarus] how to create pdf

2009-08-26 Thread Dians
dear all, i want to create pdf file from text file which the data are dynamic, i have read the sample but the data are static which use powerpdf component, is there any methode or any component...? thank b4 -- ___ Lazarus mailing list