RE: [lazarus] ColorToRGB in console app

2008-02-11 Thread Hess, Philip J
values or something would make sense. Thanks. -Phil -Original Message- From: Graeme Geldenhuys [mailto:[EMAIL PROTECTED] Sent: Monday, February 11, 2008 2:09 AM To: lazarus@miraclec.com Subject: Re: [lazarus] ColorToRGB in console app On 10/02/2008, Hess, Philip J [EMAIL PROTECTED

RE: [lazarus] ColorToRGB in console app

2008-02-10 Thread Hess, Philip J
in console app Hess, Philip J schreef: Of course, now the app has the same issues as any Mac GUI app compiled with GTK, in that even though it's a console app (sort of), it will only run under X11. And no way to compile for Carbon with lazbuild unless the framework carbon stuff already set

[lazarus] FW: [FPC 0010433]: Can't compile IDE to add package

2008-02-09 Thread Hess, Philip J
. Is there a simple explanation for what's happening here or a way to correct Mantis? Thanks. -Phil -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Sat 2/9/2008 2:10 PM To: Hess, Philip J Subject: [FPC 0010433]: Can't compile IDE to add package

[lazarus] ColorToRGB in console app

2008-02-09 Thread Hess, Philip J
I need to call ColorToRGB in a console app. Adding Graphics to uses allows lazbuild to compile the console app okay, but I get an AV when running it, presumably because the widgetset that actually implements ColorToRGB isn't getting linked into the app, as evidenced by otool -L (on Mac):

RE: [lazarus] ColorToRGB in console app

2008-02-09 Thread Hess, Philip J
:42:22 -0500 Hess, Philip J [EMAIL PROTECTED] wrote: I need to call ColorToRGB in a console app. Adding Graphics to uses allows lazbuild to compile the console app okay, but I get an AV when running it, presumably because the widgetset that actually implements ColorToRGB isn't getting linked

RE: [lazarus] Open URL in a browser

2008-02-07 Thread Hess, Philip J
Orpheus has a TOvcURL component for hyperlinks. http://wiki.lazarus.freepascal.org/OrphPort Thanks. -Phil From: Antonio Sanguigni [mailto:[EMAIL PROTECTED] Sent: Thursday, February 07, 2008 5:19 AM To: lazarus@miraclec.com Subject: [lazarus]

RE: [lazarus] Trouble with postgres

2008-02-06 Thread Hess, Philip J
When I last worked with Postgres 8.2, I had to rename libpq.dll to pq.dll in order for it to work with FPC. The FPC postgres3 unit looks for pq, but on Windows this does not expand to libpq like on Linux and OS X. Postgres3 unit probably needs an $IFDEF for Windows. I copied libpq.dll to the

RE: [lazarus] RecreateWnd

2008-02-03 Thread Hess, Philip J
With my ported Delphi components, I call RecreateWnd(Self) only on Windows, ignoring this call via $IFDEF altogether with other widgetsets. Thanks. -Phil -Original Message- From: Sam Liddicott [mailto:[EMAIL PROTECTED] Sent: Sun 2/3/2008 12:04 PM To: lazarus@miraclec.com Subject: RE:

RE: [lazarus] Determining Crossplatform functions

2008-02-01 Thread Hess, Philip J
GetKeyState is in LclIntf unit, available on all platforms. Look in LclIntf for cross-platform equivalents of Win API functions. Thanks. -Phil -Original Message- From: SteveG [mailto:[EMAIL PROTECTED] Sent: Fri 2/1/2008 7:50 AM To: lazarus@miraclec.com Subject: [lazarus] Determining

RE: [lazarus] Is GetAsyncKeyState exclusive of Windows?

2008-02-01 Thread Hess, Philip J
GetKeyState is available in LclIntf, but not GetAsyncKeyState. Refer to Win API documentation for the difference. Thanks. -Phil -Original Message- From: Marco Alvarado [mailto:[EMAIL PROTECTED] Sent: Fri 2/1/2008 8:28 PM To: lazarus@miraclec.com Subject: [lazarus] Is GetAsyncKeyState

RE: [lazarus] make, MacOSX

2008-01-23 Thread Hess, Philip J
Hi Albert, According to http://wiki.lazarus.freepascal.org/Carbon_interface_FAQ here is the normal way to rebuild the Lazarus IDE on OS X: make all LCL_PLATFORM=carbon OPT=-k-framework -kcarbon You might change your wiki addition to be consistent with this page. Do you have the correct version

RE: [lazarus] make, MacOSX

2008-01-23 Thread Hess, Philip J
23.01.2008 um 22:40 schrieb Hess, Philip J: Hi Albert, According to http://wiki.lazarus.freepascal.org/Carbon_interface_FAQ here is the normal way to rebuild the Lazarus IDE on OS X: make all LCL_PLATFORM=carbon OPT=-k-framework -kcarbon Ah thanks. You might change your wiki addition

RE: [lazarus] make, MacOSX

2008-01-23 Thread Hess, Philip J
Hi Albert, The Lazarus installer creates the lazarus.app bundle and puts the structure inside it that OS X wants. For apps you develop yourself you can use the create_app_mac.sh script to create the app's .app bundle. Open the script in a text editor to see what it's doing. Note that for

RE: [lazarus] Problem with printing

2008-01-18 Thread Hess, Philip J
From cupsdyn.pp: cupsLibs :Array[0..MaxcupsLibs] of string = ('libcups.so', 'libcups.so.2', '/usr/lib/libcups.dylib'); InitializeCups exits after loading one of these libraries, trying each one in

RE: [lazarus] TComboBox blocking selection

2008-01-17 Thread Hess, Philip J
Don't put it in the combo's list. The point of a combo is to provide a way for users to select from a list. Disabling some items is non-standard behavior for a combo. Thanks. -Phil From: el stamatakos [mailto:[EMAIL PROTECTED] Sent: Thursday, January

RE: [lazarus] TComboBox blocking selection

2008-01-17 Thread Hess, Philip J
More seriously, if you absolutely have to do this, you can intercept the choice in the combo's OnChange event. This is called whenever the combo's ItemIndex changes. You can then restore ItemIndex to its previous value. But you might want to think about this. Will this behavior be intelligible

RE: [lazarus] Cannot reach lazarus.freepascal.org

2008-01-16 Thread Hess, Philip J
http://www.lazarus.freepascal.org/ has been unreachable for 2 days. Does anyone know who controls the switch for this? Thanks. -Phil -Original Message- From: Giuliano Colla [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 16, 2008 1:21 PM To: lazarus@miraclec.com Subject: Re:

RE: [lazarus] Unable to build lazarus

2008-01-07 Thread Hess, Philip J
Hi Roland, This has been broken for a while. A workaround for now is to use Tools | Configure to rebuild IDE Interface first, then install the component. In the Configure dialog, on the Advanced Build Options tab, you can set everything to None except IDE Interface, then click Build at the

RE: [lazarus] IDE packages

2008-01-03 Thread Hess, Philip J
Hi Mattias, Wouldn't packages also need access to packager\registration\lazaruspackageintf in order to call RegisterUnit and RegisterPackage? Other units like PropEdits and ComponentEditors are in ideintf so that would be okay. Sounds like a great idea! Thanks. -Phil -Original

RE: [lazarus] DBGrid - what do you use?

2007-12-16 Thread Hess, Philip J
Lukas, Have you looked at the Orpheus port for Lazarus? http://wiki.lazarus.freepascal.org/OrphPort The data-aware table (grid) has not been ported, but the TOvcTable has been. Thanks. -Phil -Original Message- From: Lukas Gradl [mailto:[EMAIL PROTECTED] Sent: Sun 12/16/2007 4:14 AM

RE: [lazarus] What do you use for Reporting?

2007-12-12 Thread Hess, Philip J
What I do: Output all reports to RTF and view with external viewer (any word processor on computer). See this tool for more information: http://wiki.lazarus.freepascal.org/XDev_Toolkit With RTF you can have almost unlimited control over the formatting. Note that on OS X with the latest Carbon

[lazarus] lazarus.app

2007-12-10 Thread Hess, Philip J
It seems odd that the Lazarus Windows installer creates the lazarus.app bundle folder used on OS X. Maybe changing the first lines of the [Files] section of lazarus.iss would exclude this folder from the Windows installation: Source: {#BuildDir}\*.*; Excludes: lazarus.app; DestDir: {app};

RE: [lazarus] Helpfiles for Lazarus apps

2007-12-10 Thread Hess, Philip J
You can launch a program via file extension with both Windows and Mac, but I'm not aware of any standardized way to do this on Linux. You can see how the HelpUtil.pas in this toolkit does it with OS X and Linux: http://wiki.lazarus.freepascal.org/XDev_Toolkit Thanks. -Phil -Original

RE: [lazarus] Helpfiles for Lazarus apps

2007-12-10 Thread Hess, Philip J
] Helpfiles for Lazarus apps Hess, Philip J wrote: You can launch a program via file extension with both Windows and Mac, but I'm not aware of any standardized way to do this on Linux. You can see how the HelpUtil.pas in this toolkit does it with OS X and Linux: http://wiki.lazarus.freepascal.org

RE: [lazarus] Launch Lazarus under Windows

2007-12-07 Thread Hess, Philip J
From what I understand, this is because FPC 2.2.1 is broken for now on Windows. Perhaps you could try the 2.2.0 snapshot. Thanks. -Phil -Original Message- From: Damien Gerard [mailto:[EMAIL PROTECTED] Sent: Friday, December 07, 2007 4:22 PM To: lazarus@miraclec.com Subject: [lazarus]

RE: [lazarus] Building Lazarus (first time ever) on Mac OS X 10.5 (Leopard) fails - fink's apt-get sources has no glib or other packages.

2007-11-30 Thread Hess, Philip J
Hi Warren, The Lazarus snapshots for OS X include an app bundle (lazarus.app) but the Lazarus executable is still compiled for and dependent on GTK so you can't launch from it the bundle until you've recompiled the IDE for the Carbon widgetset. See this link for more information, including an

RE: [lazarus] anchors to a hidden component

2007-11-20 Thread Hess, Philip J
Hi Mattias, Will any of this result one day in a fix for this anchor bug? http://www.freepascal.org/mantis/view.php?id=8056 Thanks. -Phil -Original Message- From: Mattias Gaertner [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 20, 2007 2:39 PM To: lazarus@miraclec.com Subject:

RE: [lazarus] Using SDL.framework within Lazarus project on Mac OS X

2007-11-09 Thread Hess, Philip J
or directory, errno = 2) Error:Error while linking This is definitely the location of the framework because I can create an XCode FreePascal project and that correctly links to SDL.framework in that directory and I can see a 3D OpenGL spinning cube when it runs. Thanks, Dominique. Hess, Philip J

RE: [lazarus] Using SDL.framework within Lazarus project on Mac OS X

2007-11-09 Thread Hess, Philip J
Dominique, I think you can enter -XM under Custom options on the Compiler Options' Other tab. Glad to hear that you got it to compile. Maybe you could write up something in the wiki about how to use SDL with Lazarus. Perhaps a small test app to help get folks started. Thanks. -Phil

RE: [lazarus] compiled file size on OS X

2007-11-06 Thread Hess, Philip J
Tobias, When I compile the IDE with Carbon I get an executable of 84.5MB. If I run strip on it, this shrinks it to 13.2MB. You can achieve similar reduction without using strip simply by unchecking the -gl switch on the Linker tab. In both cases, the shrunken executable won't have the useful

RE: [lazarus] Adding AllowFractionalPositioning to TCarbonDeviceContext

2007-11-05 Thread Hess, Philip J
Tobias, I suspect that my e-mail was blocked because of the screenshots I attached. I won't try to resend them with this e-mail for fear of losing another posting. I'll post them shortly in separate e-mails. Are there any other controls affected besides TLabel? Most controls are Carbon native

RE: [lazarus] Adding AllowFractionalPositioning to TCarbonDeviceContext

2007-11-05 Thread Hess, Philip J
Tobias, Please load the attached .rtf file into OS X's TextEdit. On my Mac, the t and o in to are jammed together in the first line but not in the second line. The first line is Helvetica, the second line is Arial. This is exactly the kind of rendering problem I see with my ported control when

RE: [lazarus] Adding AllowFractionalPositioning to TCarbonDeviceContext

2007-11-05 Thread Hess, Philip J
Tobias, Here are 2 screenshots from my Mac. I don't see quite the same spacing issues that see. As you can see, in the prepatch screenshot, the TLabel text is wider than the TButton text. The screenshot with the patch shows that the TLabel's text has now been rendered with some of the

RE: [lazarus] Adding AllowFractionalPositioning to TCarbonDeviceContext

2007-11-04 Thread Hess, Philip J
I agree with Giuliano, so add me to the ranks of the horrified. TFont.Pitch doesn't appear to be used in any LCL or Carbon widgetset logic, so that might work. Please be sure to document in the patch that this is used only as a switch and has nothing to do with mono vs proportional spaced

RE: [lazarus] Carbon Widgetset: character spacing problems

2007-11-03 Thread Hess, Philip J
SynEdit is not the only custom control that was fixed by the change to BeginTextRender that disabled the fractional positioning of characters. This was an important fix since proportional font characters do not have whole number widths, yet they can only be displayed on a device using whole

RE: [lazarus] Carbon Widgetset: character spacing problems

2007-11-03 Thread Hess, Philip J
-0400 Hess, Philip J [EMAIL PROTECTED] wrote: SynEdit is not the only custom control that was fixed by the change to BeginTextRender that disabled the fractional positioning of characters. This was an important fix since proportional font characters do not have whole number widths, yet they can

RE: [lazarus] Carbon Widgetset: character spacing problems

2007-11-03 Thread Hess, Philip J
Tobias, I believe I can live with the patch by doing some conditional compiling on my end (note this is not needed with other widgetsets but will with Carbon if the patch is made). However, I'll need two additional changes. In TCarbonDeviceContext.GetTextExtentPoint and

RE: [lazarus] Carbon Widgetset: character spacing problems

2007-11-03 Thread Hess, Philip J
, 3 Nov 2007 16:40:38 -0400 Hess, Philip J [EMAIL PROTECTED] wrote: As I feared, your fix busted my custom control. Please revert the change until a better solution is arrived at. Please don't assume that the LCL is the entire universe. SynEdit is not part of the LCL and Canvas.TextOut

RE: [lazarus] Carbon Widgetset: character spacing problems

2007-11-03 Thread Hess, Philip J
Widgetset: character spacing problems On Sat, 3 Nov 2007 18:21:49 -0400 Hess, Philip J [EMAIL PROTECTED] wrote: Tobias, I believe I can live with the patch by doing some conditional compiling on my end (note this is not needed with other widgetsets but will with Carbon if the patch is made

RE: [lazarus] DOM bug with 64 bit installation

2007-11-02 Thread Hess, Philip J
Michael, Thanks for pointing that out about ReadXMLFile. I see that my code has the same memory leak. I think the confusion lies in that with Delphi once TXMLDocument has been used to create the object, the file is loaded by setting the object's FileName property, so it would appear logical to

RE: [lazarus] Using SDL.framework within Lazarus project on Mac OS X

2007-11-01 Thread Hess, Philip J
the compiler recognises that I'm passing a framework via the command line, but it just can't find it. Is there something else I need to do to use 3rd Party frameworks? Dominique. Hess, Philip J wrote: Dominique, Did you put the sdl.framework bundle (folder) somewhere that the linker can find

RE: [lazarus] Using SDL.framework within Lazaru project

2007-10-30 Thread Hess, Philip J
-1.2.0 . If it finds the framework, does it still need to link to it via -l? Thanks, Dominique. Quoting Hess, Philip J [EMAIL PROTECTED]: Dominique, On the Compiler Options tab, check the Pass Options To The Linker box and enter this in text box: -framework sdl This will be passed to FPC

RE: [lazarus] Lazarus won' t Run!

2007-10-23 Thread Hess, Philip J
Chris, Make sure that /sw/lib/libglib-1.2.0.dylib exists. To see what other files are references by the GTK-based Lazarus: cd /usr/local/share/lazarus otool -L lazarus The /sw files are installed by fink. See these notes: http://wiki.lazarus.freepascal.org/OS_X_Programming_Tips Thanks.

RE: [lazarus] Error when Updgrading to lastest ( 20/10 ) snapshot...

2007-10-20 Thread Hess, Philip J
Are you trying to use the osprinters unit? Don't do that. Use the Printers and/or PrintersDlgs units or else Lazarus will try to compile osprinters with the non-implemented Carbon printer files. You'll also probably have to put something like this in Other Unit Files path:

[lazarus] Carbon IDE

2007-10-20 Thread Hess, Philip J
PaulIsh added a list of issues with the Carbon-based Lazarus IDE and I've added to it. Please add any other issues you discover so we can have a complete list of everything that needs to be addressed for a working and Mac-ready IDE:

RE: [lazarus] ListView Crashes on Mac OS X...

2007-10-14 Thread Hess, Philip J
Tom is right. Almost everything is implemented and working with the Carbon widgetset. Even printing works. For now, you can use the Unix CUPS-based printer dialogs and TPrinter implementation. The dialogs aren't native like the Open, Save, etc. dialogs, but they do work fine now. The TPrinter

RE: [lazarus] ListView Crashes on Mac OS X...

2007-10-14 Thread Hess, Philip J
Whoops, in my previous e-mail, I meant that the Unix TPrinter implementation does _not_ use the Carbon API. However, it does use the CUPS library, which underlies Carbon. Thanks. -Phil -Original Message- From: Tom Gregorovic [mailto:[EMAIL PROTECTED] Sent: Sun 10/14/2007 8:51 AM To:

RE: [lazarus] Enumerating Fonts on Mac OS X...

2007-10-14 Thread Hess, Philip J
Something like this should work with all widgetsets: for i := 0 to Pred(Screen.Fonts.Count) do ComboBox1.Items.Add(Screen.Fonts[i]); Because of the large number of fonts available on OS X, you might want to use a TListBox instead of a TComboBox. Thanks. -Phil -Original

RE: [lazarus] Philip Hess' Carbon IDE WIKI idea

2007-10-14 Thread Hess, Philip J
, that it seems that the code ought to be pretty close to 'prime time' to run the IDE pretty fully (albeit with perhaps some initially missing features and bugs to clean up)? Its looking great. Congrats to all the folks who programmed this. jcjr On Oct 14, 2007, at 12:48 PM, Hess, Philip J wrote: Tom

RE: [lazarus] Lazarus and Gtk2 under Mac OS X

2007-10-12 Thread Hess, Philip J
Felipe, Instead of adding the wiki lines to your fpc.cfg, just specify them in an additional .cfg file on the Compiler Options Other tab for use when compiling with gtk2. If these lines interfere with gtk, then just uncheck the Use additional Compiler Config File box. I've attached my original

RE: [lazarus] Is lazreport supposed to work? (gtk2/linux)

2007-09-18 Thread Hess, Philip J
Luca, The DC is invalid. Maybe you need to include the interfaces unit to initialize the widgetset? Thanks. -Phil -Original Message- From: Luca Olivetti [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 18, 2007 5:12 AM To: lazarus@miraclec.com Subject: Re: [lazarus] Is lazreport

RE: [lazarus] Crash when running compiled Carbon app as different user on i386 Mac

2007-09-15 Thread Hess, Philip J
Tobias, I just tried logging in as a different users here and running a Carbon app and it worked fine. It looks like you're getting an exception in the FPC System unit. What version of FPC are you using? Thanks. -Phil -Original Message- From: Tobias Giesen [mailto:[EMAIL PROTECTED]

RE: [lazarus] Howto draw vertically oriented text in Canvas?

2007-09-13 Thread Hess, Philip J
The ported Orpheus TOvcRotatedLabel control works on Win32, Qt and Carbon: http://wiki.lazarus.freepascal.org/OrphPort I haven't tested it yet with the recent GTK2 patch. Thanks. -Phil -Original Message- From: Felipe Monteiro de Carvalho [mailto:[EMAIL PROTECTED] Sent: Thursday,

RE: [lazarus] GTK Rotated text

2007-09-11 Thread Hess, Philip J
Luis, Great work! A good test of a widgetset's rotated text is the ported Orpheus rotated label control, TOvcRLbl. It works with Win32, Carbon and Qt, so having GTK2 would be wonderful! There's a link on the Lazarus CCR wiki, but it appears to be down at the moment. You can also get the source

RE: [lazarus] Lazarus IDE crashes while loading form

2007-08-31 Thread Hess, Philip J
Andrea, See file DfmToLfm.ini that comes with this conversion tool: http://wiki.lazarus.freepascal.org/XDev_Toolkit Thanks. -Phil -Original Message- From: Andreas Berger [mailto:[EMAIL PROTECTED] Sent: Friday, August 31, 2007 7:00 AM To: lazarus@miraclec.com Subject: Re: [lazarus]

RE: [lazarus] fpc dosend find wrong cased units in macosx ??

2007-08-28 Thread Hess, Philip J
Vincent, Would it be possible to start posting the OS X PowerPC snapshots using FPC 2.1.5 instead of 2.0.4? I've been using the 2.1.5 snapshot you built for me in July extensively and it works very well. In fact, lots of things that didn't work right before with the FPC 2.0.4 now work properly,

RE: [lazarus] DELPHI 1 TO LAZARUS

2007-08-16 Thread Hess, Philip J
Have you used Delphi 1 to save your .dfm file as a text file? I believe it was stored in a binary format by default. Thanks. -Phil From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, August 16, 2007 10:16 AM To: lazarus@miraclec.com

RE: [lazarus] Web Service Toolkit release 0.5

2007-08-15 Thread Hess, Philip J
I second this. I've been using WST extensively on Windows with Delphi and FPC and on OS X with FPC: WST works great. If you're not exploring the use of Web services you're potentially missing out on a really useful new technology. Thanks. -Phil -Original Message- From: [EMAIL

RE: [lazarus] Roadmap Status of features

2007-08-04 Thread Hess, Philip J
or ExtTextOut since SetTextAlign is not implemented. Thanks. -Original Message- From: Mattias Gaertner [mailto:[EMAIL PROTECTED] Sent: Tue 7/31/2007 9:07 AM To: lazarus@miraclec.com Subject: Re: [lazarus] Roadmap Status of features On Tue, 31 Jul 2007 09:39:04 -0400 Hess, Philip J [EMAIL

RE: [lazarus] Roadmap Status of features

2007-07-31 Thread Hess, Philip J
[EMAIL PROTECTED] wrote: On Friday 20 July 2007 22:06, Hess, Philip J wrote: please, back SetMapMode() into api, it's needed by virtualtree ... Why? It didn't do anything. not at that time, but it was written, by my mistake commented, because I haven't seen any call to this routine

RE: [lazarus] Roadmap Status of features

2007-07-28 Thread Hess, Philip J
(1) General status of widgetset's Win API support. There are lots of TODO's and implement this in gtkwinapi.inc and even win32winapi.inc doesn't appear to be complete. Win API support is one gauge of how well many 3rd-party Delphi components would be supported on Lazarus. What do you mean

RE: [lazarus] Component or library for HTTP and/or WebDAV protocol on Mac OS X

2007-07-23 Thread Hess, Philip J
Synapse compiles okay on OS X, but it crashes at startup. I'm still investigating why as it works fine on Windows. I'm using Synapse with the Web Service Toolkit. http://www.ararat.cz/synapse/ http://wiki.lazarus.freepascal.org/Web_Service_Toolkit Thanks. -Phil -Original Message-

[lazarus] Roadmap Status of features

2007-07-20 Thread Hess, Philip J
Felipe, Good idea adding the Status of features table to the Roadmap page: http://wiki.lazarus.freepascal.org/Roadmap#Status_of_features_on_each_wi dgetset I wonder if it would be useful to list a few other things here too: (1) General status of widgetset's Win API support. There

RE: [lazarus] Carbon native IDE

2007-07-12 Thread Hess, Philip J
Felipe, I believe that SynEdit is a TCustomControl descendent. TCustomControl's can't yet receive focus or keyboard input, as indicated as a bug on this page: http://wiki.lazarus.freepascal.org/Carbon_interface_internals#Bugs Thanks. -Phil -Original Message- From: Felipe Monteiro de

RE: [lazarus] Carbon native IDE

2007-07-12 Thread Hess, Philip J
Same thing further down in TCarbonDeviceContext.GetTextExtentPoint. If BeginTextRender fails due to a blank string, it should probably set Size.cx and Size.cy to 0, which would probably make sense to calling code (that is, the width of the string is 0). I notified Tomas of the issue with

RE: [lazarus] Libraries (DLLs) with debug information

2007-06-26 Thread Hess, Philip J
Christian, That's the way it's been for at least a year or more: Don't use -Ct and don't use -gl when compiling DLL's on Windows. I just tested 2.1.5 from 20070622. It was broken completely for a while but now the DLL's work but only if you omit stack checking and line numbers, as before. I

RE: [lazarus] LCL in DLL

2007-06-26 Thread Hess, Philip J
This has never worked. There was a time when you could put a form in a DLL and it would start okay (on Windows), but it wouldn't respond to keyboard inputs, as I recall. Now I can't even get a DLL containing a form to start without crashing the host app. On Delphi this works fine and you just

RE: [lazarus] Graphics32 Carbon beta-testing

2007-06-19 Thread Hess, Philip J
Felipe, Your images look spectacular on OS X. If you can track down what's needed, it might be useful to put together a list of Win API functions you need in Carbon. All widgetsets (except win32, of course) could use additional Win API functionality, particularly for porting 3rd party

RE: [lazarus] Carbon may become deprecated soon

2007-06-19 Thread Hess, Philip J
Run otool -L on various OS X executables and libraries (.dylib). You'll see that a lot of programs use the Carbon framework, either exclusively or in tandem with the Cocoa framework. All of these programs would be affected by a move away from Carbon. This includes things like the Qt libraries.

[lazarus] Open-doc event handler for OS X Carbon

2007-06-19 Thread Hess, Philip J
On Windows, if your app is associated with a specific file extension, if a user double-clicks a file of that type Windows starts another instance of your app, which can then determine the file that launched it by inspecting ParamStr(1). On OS X, if your app is associated with a specific file

RE: [lazarus] TNoteBook vs TPageControl

2007-06-18 Thread Hess, Philip J
Graeme, You might want to check and see if TNotebook has this same problem: http://www.freepascal.org/mantis/view.php?id=8056 What this means is that anchored controls on a TTabSheet don't resize when the sheet does following a resize of form at runtime. That is, the controls on the TTabSheet

RE: [lazarus] TNoteBook vs TPageControl

2007-06-18 Thread Hess, Philip J
with alClient or with alNone and anchors set. ??? Regards, George Hess, Philip J wrote: Graeme, You might want to check and see if TNotebook has this same problem: http://www.freepascal.org/mantis/view.php?id=8056 What this means is that anchored controls on a TTabSheet don't resize when the sheet

RE: [lazarus] TNoteBook vs TPageControl

2007-06-18 Thread Hess, Philip J
checked TPageControl/TTabSheet under GTK, with TButton, TEdit, TListview and TStringGrid, and the controls resize correctly, either with alClient or with alNone and anchors set. ??? Regards, George Hess, Philip J wrote: Graeme, You might want to check and see if TNotebook has this same

RE: [lazarus] TNoteBook vs TPageControl

2007-06-18 Thread Hess, Philip J
be the alNone with anchors set mode, which does limit what you can do with the look of an app. Regards, George Hess, Philip J wrote: I don't see that on Windows. Setting the TEdit's Align to alCustom has the same problem as clNone. The other settings expand the TEdit to take up the entire sheet

RE: [lazarus] Report Tools for Lazarus

2007-06-08 Thread Hess, Philip J
It's not a report tool, per se, but you can use FPC's RtfPars unit to create an RTF document, then display it in the user's word processor. Two units that simpify this are included in the XDev Toolkit: http://wiki.lazarus.freepascal.org/XDev_Toolkit The advantage to generating the report as

RE: [lazarus] viewsvn to see changes

2007-06-05 Thread Hess, Philip J
On Windows, install TortoiseSVN, which integrates with Explorer. Then just right-click your local SVN folder and choose Show log to see log entries or Repo-browser to browser repository. Thanks. -Original Message- From: Graeme Geldenhuys [mailto:[EMAIL PROTECTED] Sent: Tuesday, June

RE: [lazarus] OutKafe 5.1.0 Released !

2007-06-03 Thread Hess, Philip J
and manually generate one user to test with. A.J. PS. If you're really interested, I suggest we take it offlist at this point as it's becoming less and less lazarus related :) On 6/3/07, Hess, Philip J [EMAIL PROTECTED] wrote: A.J., Still sounds interesting. Could you write a few sentences

RE: [lazarus] OutKafe 5.1.0 Released !

2007-06-03 Thread Hess, Philip J
to a Linux machine. Thanks. -Phil -Original Message- From: A.J. Venter [mailto:[EMAIL PROTECTED] Sent: Sat 6/2/2007 7:40 PM To: lazarus@miraclec.com Subject: Re: [lazarus] OutKafe 5.1.0 Released ! On 6/3/07, Hess, Philip J [EMAIL PROTECTED] wrote: That sound interesting

RE: [lazarus] OutKafe 5.1.0 Released !

2007-06-03 Thread Hess, Philip J
Hi A.J., Googling around it appears as though I need libpq.a to link a client app against and then libpq.dll is only used at runtime. I'll download the full postgres installer this week and see if the liqpq.a file is included. Any reason why you're using postgres and not postgres3?

RE: [lazarus] Debugger on Mac OS X

2007-06-03 Thread Hess, Philip J
), this prevents Laz from compiling and doesn't give any error. Apparently windres chokes on anything else but doesn't communicate this to the IDE. What about having the IDE proof Product Version? Thanks. -Phil -Original Message- From: Hess, Philip J [mailto:[EMAIL PROTECTED] Sent: Wed 5/30/2007

RE: [lazarus] Debugger on Mac OS X

2007-06-03 Thread Hess, Philip J
? Thanks. -Phil -Original Message- From: Mattias Gaertner [mailto:[EMAIL PROTECTED] Sent: Sun 6/3/2007 4:29 PM To: lazarus@miraclec.com Subject: Re: [lazarus] Debugger on Mac OS X On Sun, 3 Jun 2007 16:39:29 -0400 Hess, Philip J [EMAIL PROTECTED] wrote: Today I started looking

RE: [lazarus] Debugger on Mac OS X

2007-06-03 Thread Hess, Philip J
:24 -0400 Hess, Philip J [EMAIL PROTECTED] wrote: Mattias, I've used the FPC DOM unit to add to and delete from XML files without destroying everything else in the file. Use TDOMNode.RemoveChild to delete a node (for example, VersionInfo). Use TDOMNode.OwnerDocument.CreateElement

RE: Cannot compile GTK2 lcl anymore

2007-06-02 Thread Hess, Philip J
Felipe, I can still compile, link and run apps against Gimp's gtk2 2.6.10 libaries on my PowerPC Mac with FPC 2.0.4. Are you sure gtk2 widgetset has a dependency on 2.8? Thanks. -Phil -Original Message- From: Felipe Monteiro de Carvalho [mailto:[EMAIL PROTECTED] Sent: Sat 6/2/2007

RE: [lazarus] OutKafe 5.1.0 Released !

2007-06-02 Thread Hess, Philip J
What does OutKafe do? I looked at your Web site and honestly I'm still not sure what it is. Thanks. -Phil -Original Message- From: A.J. Venter [mailto:[EMAIL PROTECTED] Sent: Sat 6/2/2007 3:07 PM To: lazarus@miraclec.com Subject: [lazarus] OutKafe 5.1.0 Released ! Hi All, I'm happy

RE: [lazarus] OutKafe 5.1.0 Released !

2007-06-02 Thread Hess, Philip J
cafe's, customers get user-accounts and buy time, outkafe lets them log on, and logs them off again when their time is up - there are other features but that's the heart of it all. AJ. On 6/2/07, Hess, Philip J [EMAIL PROTECTED] wrote: What does OutKafe do? I looked at your Web site and honestly

RE: [lazarus] OutKafe 5.1.0 Released !

2007-06-02 Thread Hess, Philip J
. -Phil -Original Message- From: A.J. Venter [mailto:[EMAIL PROTECTED] Sent: Sat 6/2/2007 7:40 PM To: lazarus@miraclec.com Subject: Re: [lazarus] OutKafe 5.1.0 Released ! On 6/3/07, Hess, Philip J [EMAIL PROTECTED] wrote: That sound interesting. Maybe you could include that description

RE: [lazarus] Using gtk2 interface on Macs

2007-06-01 Thread Hess, Philip J
Felipe, When I tested gtk2 on OS X last winter, I installed Gimp and then just linked against its gtk2 libraries. http://www.apple.com/downloads/macosx/unix_open_source/ Gimp is a universal binary and includes both PowerPC and Intel gtk2 libraries (version 2.6.10). Use the attached custom .cfg

RE: [lazarus] App bundle and icons for x11 apps on macintosh

2007-05-31 Thread Hess, Philip J
Felipe, Have you tried NeoOffice? It's a native OO port for OS X. I don't think many Mac users would be happy with an X11 version of OO. http://www.neooffice.org/neojava/en/index.php Thanks. -Phil -Original Message- From: Felipe Monteiro de Carvalho [mailto:[EMAIL PROTECTED] Sent:

RE: [lazarus] Debugger on Mac OS X

2007-05-31 Thread Hess, Philip J
On 5/31/07, Hess, Philip J [EMAIL PROTECTED] wrote: -framework carbon -framework Qt4Intf -lobjc What does -lobjc do? -- Felipe Monteiro de Carvalho _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe

RE: [lazarus] App bundle and icons for x11 apps on macintosh

2007-05-31 Thread Hess, Philip J
applications are shareware/commercial, you have the choice between Linux application under X or a pirated copy of some native application). Greetings, Albert Am Donnerstag, den 31.05.2007, 09:16 -0400 schrieb Hess, Philip J: Felipe, Have you tried NeoOffice? It's a native OO port for OS X. I don't

RE: [lazarus] Debugger on Mac OS X

2007-05-31 Thread Hess, Philip J
To: lazarus@miraclec.com Subject: Re: [lazarus] Debugger on Mac OS X On 5/31/07, Hess, Philip J [EMAIL PROTECTED] wrote: I think you can set Pass Options To The Linker to this: -framework carbon -framework Qt4Intf -lobjc for each new project and then just forget about it. You can then change

RE: [lazarus] App bundle and icons for x11 apps on macintosh

2007-05-31 Thread Hess, Philip J
Felipe, You should be able to create an app bundle for Lazarus, even with its dependence on needing X11 already running. See http://wiki.lazarus.freepascal.org/OS_X_Programming_Tips. I had this working at one time. Note that you'll probably want to go a step further and try putting all of the

RE: [lazarus] Debugger on Mac OS X

2007-05-30 Thread Hess, Philip J
, not just the limited version strings that it allows now. Thanks. -Phil -Original Message- From: Mattias Gaertner [mailto:[EMAIL PROTECTED] Sent: Wed 5/30/2007 6:44 PM To: lazarus@miraclec.com Subject: Re: [lazarus] Debugger on Mac OS X On Wed, 30 May 2007 19:00:23 -0400 Hess, Philip

RE: Compiling software on Mac OS X

2007-05-29 Thread Hess, Philip J
Felipe, I usually just copy the lazarus folder into my user folder, then delete /usr/local/share/lazarus. That way I don't have to be root to recompile the LCL. Someday when we have a Carbon-based Lazarus IDE I would hope we could just install it wherever we want. Don't the Intel snapshots

RE: Compiling software on Mac OS X

2007-05-29 Thread Hess, Philip J
, 2007 5:30 PM To: lazarus@miraclec.com Subject: Re: Compiling software on Mac OS X On 5/29/07, Hess, Philip J [EMAIL PROTECTED] wrote: Don't the Intel snapshots include compiled units for gtk and carbon? don't know, but what I really needed was the subversion version, because I will be making

RE: [lazarus] Locking controls

2007-04-27 Thread Hess, Philip J
Perhaps you're thinking of the Delphi Edit | Lock Controls command. I'm not aware of any right-click command that locks the form in Delphi. -Original Message- From: Graeme Geldenhuys [mailto:[EMAIL PROTECTED] Sent: Friday, April 27, 2007 12:46 PM To: lazarus@miraclec.com Subject: Re:

RE: [lazarus] [patch] - grids.pas (GridLineWidth)

2007-04-18 Thread Hess, Philip J
ACEBASCAAwAO1wcEABEAFwAIAB4AAgAyAQEJgAEAIQAAADk2MzhCQzdDQTc3NjNFNDM4QUM0 OUZBRThDRkVCM0Q4AIkHAQOQBgB4DAAAOQMAJgAAAwA2AABAADkAWokYqmaBxwEe Regards, - Graeme - On 4/18/07, Hess, Philip J [EMAIL PROTECTED] wrote: Yes, that makes sense now. I had looked at one of my .lfm's that had been

RE: [lazarus] [patch] - grids.pas (GridLineWidth)

2007-04-17 Thread Hess, Philip J
Wouldn't it make more sense to have the GridLineWidth property default to 1 and show 1 in Object Inspector so it's Delphi compatible? I.e., GridLineWidth is not saved to form file unless a value other than 1 is entered. -Original Message- From: Jesus Reyes [mailto:[EMAIL PROTECTED]

RE: [lazarus] [patch] - grids.pas (GridLineWidth)

2007-04-17 Thread Hess, Philip J
: Tue 4/17/2007 4:29 PM To: lazarus@miraclec.com Subject: RE: [lazarus] [patch] - grids.pas (GridLineWidth) --- Hess, Philip J [EMAIL PROTECTED] escribió: Wouldn't it make more sense to have the GridLineWidth property default to 1 and show 1 in Object Inspector so it's Delphi compatible? I.e

RE: [lazarus] Doing the Delphi 6 Text Editor Tutorial in Lazarus?

2007-04-05 Thread Hess, Philip J
Do you want to (a) create RTF files programmatically and/or display RTF files from your program or do you want to (b) allow your users to have a simple rich-text editor in your program. You can do (a) now in a cross-platform way with the FPC rtfpars unit and an external word processor.

  1   2   >