Re: [Lazarus] Mac OS X : IDE Messages window hides vertical down arrow...

2008-09-12 Thread Dominique Louis
Mattias Gaertner wrote:
 Please create bug reports in the tracker. 
 You can help/accelerate fixing the bugs by providing small
 example applications.
 Don't forget to add the lazarus revision number.

This has now been logged as
   http://bugs.freepascal.org/view.php?id=12135

but item 1 seems to be fixed in the latest revision of 16575, but item 2 
is still outstanding.


Dominique.

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


Re: [Lazarus] Mac OS X : Drag and Drop no longer works with TDragObject....

2008-09-11 Thread Dominique Louis
Thanks for the quick response Paul, greatly appreciated, and I think the 
change to make it more Delphi compatible is the right way to go.

Regards,

Dominique.

Paul Ishenin wrote:
 Dominique Louis wrote:
 I notice that in the OnDragOver event Source no longer contains a 
 TDragObject, but instead contains the actual TObject instance being dragged.

 1. When was this changed and why?
   
 during 0.9.25 becuase of bug report and because it is now delphi compatible
 2. Will this now remain the way it is for the forseeable future or is it 
 likely to change back to TDragObject?
   
 it will stay so if we want delphi compatibility
 The reason why I ask is that, drag and drop code that was working fine 6 
 months ago, no longer works, so I'm just trying to get an idea of how 
 much this code is likely to change in the next 2 months.
   
 To be sure what you get you can check:
 if Source is TDragObject
 then ..
 else ...
 
 Best regards,
 Paul Ishenin.


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


[Lazarus] Mac OS X : IDE Messages window hides vertical down arrow...

2008-09-11 Thread Dominique Louis
When you first load up a project in the Carbon IDE and compile a 
project, 2 things happen.

1. The vertical down arrow on the right hand side of the Message Window 
is obscured behind the resizing anchor, so you can't actuall scroll down 
using it.

2. If you have loads of Hints and Warnings, the Project YourProject 
successfully built. :) message cannot be scrolled to at the bottom of 
the Window. So there seems to be a message/line count issue, If you 
resize the Message window, you are then able to scroll to the bottom.

Thanks,


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


[Lazarus] Mac OS X : Drag and Drop no longer works with TDragObject....

2008-09-10 Thread Dominique Louis
I notice that in the OnDragOver event Source no longer contains a 
TDragObject, but instead contains the actual TObject instance being dragged.

1. When was this changed and why?
2. Will this now remain the way it is for the forseeable future or is it 
likely to change back to TDragObject?

The reason why I ask is that, drag and drop code that was working fine 6 
months ago, no longer works, so I'm just trying to get an idea of how 
much this code is likely to change in the next 2 months.

Thanks,


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


Re: [Lazarus] Dear developers, we need your help before releasing 0.9.26

2008-09-05 Thread Dominique Louis
Hi Paul,
   May I suggest
http://bugs.freepascal.org/view.php?id=12041
Is added to the list of failed regressions. as this was working earlier 
0.9.25 builds.

Thanks,

Dominique.

Paul Ishenin wrote:
 Hello, General mailing list.
 
 Lazarus 0.9.26 is coming. We have made all the main changes we wanted to
 make. We spent the last couple of days on bug fixing. We have fixed many
 issues, but we are not sure we have fixed all regressions. It would be 
 sad to release a version, that you cannot use.
 
 Thus we kindly ask you to test our latest snapshots at
 http://www.hu.freepascal.org/lazarus/ or (better) the svn version.
 Please, check your work projects, run tests, play with the IDE, do crazy
 things. And if you find a regression, let us know through the bug
 tracker at http://bugs.freepascal.org/ .
 
 Lazarus 0.9.26 will not be released with regressions (new errors, things
 that worked in 0.9.24), *if* we know about them. If there are no more
 regressions, we will release in one or two weeks. After the release it
 will be too late to bash us for regressions. So grab this opportunity.
 
 The Lazarus team.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Dear developers, we need your help before releasing 0.9.26

2008-09-05 Thread Dominique Louis
Vincent Snijders wrote:
 I think you are mistaken, I try to build them as Carbon. If they are 
 not, then there is a critical bug in the building system.

One other question, does the snapshot ship with cross-compilation as 
well ( at least on i386 )?

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


Re: [Lazarus] Mac OS X : LoadCursorFromLazarusResource throws Division by Zero Exception

2008-09-02 Thread Dominique Louis
Felipe Monteiro de Carvalho wrote:
 If you don't like the current revision you can choose which revision
 to use with:
 
 cd lazarus
 svn update -r revision number

Hi Felipe,
   I have used the revert in the past, but I'm quite dependent on fixes 
in the latest builds, hence why I use SVN. I'm aware of the risks, I was 
just a little frustrated yesterday as the Big Boss will be looking at 
the latest build tomorrow.

They are aware I am using Open Source tools, so I'm hoping they will 
understand that with that comes the occasional hiccup with using the 
latest cutting edge code.

Dominique.


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


[Lazarus] Mac OS X : Bitmap.CreateIntfImage failing...

2008-08-31 Thread Dominique Louis
When I load the attached image via Bitmap.LoadFromFile, everything seems 
fine. When I try the following


var
  ScanLineImage : TLazIntfImage;
begin
  ScanLineImage := Bitmap.CreateIntfImage; // Access Violation caused here.
end;

 I get an AV.


This has only been tested on Mac OS X 10.4.11 carbon, so no idea if it 
works under other OSes.


I've submitted a bug report here -
http://bugs.freepascal.org/view.php?id=12018


Dominique.
inline: 14.bmp___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Listing out a call stack...

2008-08-26 Thread Dominique Louis
Graeme Geldenhuys wrote:
 
 procedure DumpStack;
 Var
   Message : String;
   i : longint;
 begin
   writeln(' Stack trace:');
 //  Dump_Stack(StdOut, get_frame);
 
   Writeln(stdout,'An unhandled exception occurred at
 $',HexStr(Ptrint(ExceptAddr),sizeof(PtrInt)*2),' :');
   if ExceptObject is exception then
begin
  Message:=Exception(ExceptObject).ClassName+' :
 '+Exception(ExceptObject).Message;
  Writeln(stdout,Message);
end
   else
Writeln(stdout,'Exception object ',ExceptObject.ClassName,' is not
 of class Exception.');
   Writeln(stdout,BackTraceStrFunc(ExceptAddr));
   if (ExceptFrameCount0) then
 begin
   for i:=0 to ExceptFrameCount-1 do
 Writeln(stdout,BackTraceStrFunc(ExceptFrames[i]));
 end;
   Writeln(stdout,'');
 end;
 
 
 Please note that the above needs stdout to be available, so Windows
 applications must be compiler without gui option enabled (-WG must not
 be specified).
 
 I think there is such a function in LCLProc unit as well...

Thanks for the example.

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


Re: [Lazarus] Carbon key mapping

2008-08-26 Thread Dominique Louis
Hi Mattias,
   No matter what I try, setting the IDE to Mac OS X does not work :(. 
As I mentioned, now in the IDE, regardless of which key mapping I use 
the Enter, BackSpace don't work at all! The IDE allows me to type other 
characters, but is next to useless with Enter and BackSpace. The IDE 
correctly show the Mac OS X keys, but keyboard short-cuts just don't work.

Lastly, and I think the worse thing of all, is that when I now build my 
Mac OS X Carbon application, the short-cut keys are the Lazarus Default 
keys, while previously before the update, they correctly compiled as Mac 
OS X shortcut keys. Is there something else I need to pass to the 
compiler so that the Mac OS X Carbon short-cut keys are used instead?
Or a setting in the project file?

Thanks,


Dominique.

Mattias Gaertner wrote:
 On Sun, 10 Aug 2008 11:34:48 +0100
 Dominique Louis [EMAIL PROTECTED] wrote:
 
 Mattias Gaertner wrote:
 This works here too.
 Hi Mattias,
There is something definitately wrong because ever since your
 change and the need to switch to Mac OS X  short-cut scheme, the
 commands do NOT work.
 
 :(
 I tested various keyboard layouts and Cmd+C always worked.
 I will try to test on other macs.
 
 
 I even did a completely clean svn update, so
 there can not be any conflicts at all now.


 Can you try to compile the carbon interface with -dVerboseKeyboard
 (build clean), then compile the rest of the IDE, start IDE and
 press Cmd+C in IDE.
 I did this and no Cmd key combinations work, neither does the Enter
 or Backspace key, but all other letters and numbers work fine.
 
 Sorry for the confusion. I meant:
 Start the IDE in the terminal and see the output. Every key press
 should generate quite a lot when you compiled with -dVerboseKeyboard.
 Please try svn revision 16015.
 If you don't get a lot of output, then you started an old IDE or you
 have not compiled the LCL clean.
 
  
 Where does Lazarus store it's settings on Mac OS X. It can't be in 
 /usr/local/share/lazarus, because I deleted everything before doing
 the last svn update and my IDE settings still persisted. I think that
 may be the only way for me to get the IDE working in it's most basic
 form.
 
 ~/.lazarus
 
 The ~ stands for your home directory. /Users/username
 
 You can load the key mapping in editor options / key mapping /
 choose scheme / Mac OS.

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


Re: [Lazarus] Carbon key mapping

2008-08-26 Thread Dominique Louis
Vincent Snijders wrote:
 Dominique Louis schreef:
 Hi Mattias,
No matter what I try, setting the IDE to Mac OS X does not work :(. 
 As I mentioned, now in the IDE, regardless of which key mapping I use 
 the Enter, BackSpace don't work at all! The IDE allows me to type other 
 characters, but is next to useless with Enter and BackSpace. 
 
 Can you try the patch of http://bugs.freepascal.org/view.php?id=11974

Hi Vincent,
   I tried both patch  key.patch and patch -p0  key.patch, and in both 
cases I'm getting a can't find file to patch at input line 4 error.

Am I doing something wrong?


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


[Lazarus] Listing out a call stack...

2008-08-25 Thread Dominique Louis
Hi all,
   Is there anyway for me to output a call stack at run-time?


Thanks,


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


Re: [Lazarus] Mac OS X L : TPrintDialog missing from Dialogs tab...

2008-08-25 Thread Dominique Louis
Mattias Gaertner wrote:
 If you can share it, I can try it.
 
 Compile with -vut. For example:
 
 cd lazarus
 make LCL_PLATFORM=carbon CPU_TARGET=powerpc PP=ppcppc OPT=-vt clean all
 bigide  log.txt
 
 Take a look at log.txt.

I think I may have spotted why there is a differenc between i386 and 
powerpc, when compiling via the IDE. When compiling units from within 
the IDE using i386, it saves some unit in the 
~/.lazarus/lib/Print4Lazarus/i386-darwin/ folder while when setting the 
target to PowerPC, ~/.lazarus/lib/Print4Lazarus/powerpc-darwin/ does not 
exist. Where it should be looking is 
/usr/local/share/lazarus/components/printers/lib/powerpc-darwin/carbon

When it picks up the units from there, everything compiles the way it 
should. So there definitely seems to me some difference in the way both 
i386 and PowerPc compile things.

I hope this helps.


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


Re: [Lazarus] Mac OS X L : TPrintDialog missing from Dialogs tab...

2008-08-24 Thread Dominique Louis
Hi Mattias,

Mattias Gaertner wrote:
 If you can share it, I can try it.

I'm using the FreePascal scripts found here -
http://www.microbizz.nl/fpc-scripts.zip

In particular the fpc-build.command, but I have modified to so that it 
updates and build directly from /usr/local/share/fpcsrc .

 Compile with -vut. For example:
 
 cd lazarus
 make LCL_PLATFORM=carbon CPU_TARGET=powerpc PP=ppcppc OPT=-vt clean all
 bigide  log.txt
 
 Take a look at log.txt.

The Log.txt file is about 100MB? Should I search for anything in 
particular? I'm not sure what I should be looking for exactly.


Dominique


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


Re: [Lazarus] How can I improve my bitmap font drawing unit (attached) ?

2008-08-24 Thread Dominique Louis
Hi Peter,
   Please check out SDLMonoFonts.pas and of course sdl_ttf.pas both or 
which are included in the JEDI-SDL v1.0 beta release. They also some 
with some demos to get you going.

IHTH,


Dominique.

Peter Williams wrote:
 
 Hi All,
 
 I'd like some advice about the attached unit, named 
 uFixedWidthFonts.pas. It is designed to read 2-colour bitmaps of font 
 character sets of different sizes, from files which are Windowz BMP 
 format. For example, Chars_Lower_8x8.bmp -- this is a 320 x 56 pixels, 
 1 layer BMP file, file size 2.25 KB. E.g. the BMP file is a 2 colour 
 image of a 256 character bitmap, where each character in the BMP file 
 (in this case) is 8x8 pixels.
 
 There are 8 BMP files:
 
 Chars_Lower_8x8.bmp
 Chars_Lower_16x16.bmp
 Chars_Lower_24x24.bmp
 Chars_Lower_32x32.bmp
 Chars_Upper_8x8.bmp
 Chars_Upper_16x16.bmp
 Chars_Upper_24x24.bmp
 Chars_Upper_32x32.bmp
 
 The *Lower* files define the Commodore PET 4032 upper/lower case 
 character set  the *Upper* files define the Graphics/Uppercase 
 character set.
 
 My main question is: would I be better off using a TImageList?!? Can 
 someone please post sample code. Note: I tried to run the TImageList 
 example program for Lazarus... it compiles okay... but when run it does 
 not find some of its files (BMPs) in the Image sub-folder of the example 
 program. e.g. it gets a runtime error.
 
 Note that this unit is based strongly on a unit from the Jedi SDL 
 component, sample unit for drawing bitmap fonts onto a graphic canvas.
 
 At the moment I use statements like this to define the bitmap font (some 
 of the code is pasted below):
 
 Best Regards  Happy Programming ;-)))
 PEW
 
 -
 const
   Rects_low = 0;
   Rects_high = 255;
 
 type
   // these lines borrowed from SDL.pas
   SInt16 = smallint;
   UInt16 = word;
 
 // [ALVAROGP] TSDL_Rect converted to class, to avoid warnings
 {
   PSDL_Rect = ^TSDL_Rect;
   TSDL_Rect = record
 x, y: SInt16;
 w, h: UInt16;
   end;
 }
   TSDL_Rect = class
   public
 x, y: SInt16;
 w, h: UInt16;
   end;
 
   // end lines from SDL
 
   PFixedFont = ^TFixedFont;
   TFixedFont = object
   private
 Image: TBitmap;
 // [ALVAROGP] Rects redefined as array of class TSDL_Rect
 {
 Rects: array[Rects_low..Rects_high] of PSDL_Rect;
 }
 Rects: array[Rects_low..Rects_high] of TSDL_Rect;
   public
 LastCharacterDefined: byte;
 TransparentColor,
   TextColor,
   BackgroundColor: Tcolor;
 // this is used only when UseTransparentBackground is false
 Char_width,
   Char_height: byte; // default is 8x8
 ReverseVideo: Boolean; // default =false
 HorizontalGap: byte;
 // Horizontal Gap between characters in Pixels -- default =1
 UseTransparentBackground: Boolean;
 
 constructor Initialize;
 procedure LoadFont(const Fontfile: string);
 procedure FreeUpAll;
 destructor Finalize;
 procedure WriteText2(x, y: integer; Txt: string; TextLength: cardinal;
   var PaintBox1: TPaintBox);
   end;
 
 var
   Font1: PFixedFont;
 -
 
 [...snip...]
 
 function PSDLRect(aLeft, aTop, aWidth, aHeight: integer): TSDL_Rect;
 var
   Rect: TSDL_Rect;
 begin
   Rect := TSDL_Rect.Create;
   with Rect do
   begin
 x := aLeft;
 y := aTop;
 w := aWidth;
 h := aHeight;
   end;
   Result := Rect;
 end;
 
 {-}
 
 constructor TFixedFont.Initialize;
 begin
   // defaults
   LastCharacterDefined := 0; // PEW
   Char_width := 8;
   Char_height := 8;
   HorizontalGap := 1; // 1 pixel by default
   ReverseVideo := False; // off by default
 end;
 {-}
 
 procedure TFixedFont.LoadFont(const Fontfile: string);
 var
   i, x, y: integer;
 begin
   FreeUpAll;
   if not fileexists(Fontfile) then
   begin
 showmessage('Error: font file does not exist: ' + fontfile + '');
 exit;
   end;
 
   Image := TBitmap.Create;
   try
 Image.LoadFromFile(Fontfile);
   except
 showmessage('Error: Exception occurred trying to load font file.');
 exit;
   end;
 
   if Image = nil then
 exit;
   x := 0;
   y := 0;
   i := Rects_low;
   repeat
 if x = Image.width then
   break;
 
 Rects[i] := PSDLRect(x, y, Char_width, Char_height);
 
 LastCharacterDefined := i; // PEW
 inc(i);
 inc(x, Char_width);
 if x = Image.width then
 begin
   // font bitmap is a block of characters, so if we go past
   // the end of bitmap, then go down to next row of characters.
   x := 0;
   inc(y, Char_height);
 end;
 
   until (y = Image.height) or (i  Rects_High);
   // Determine the transparent color
   TransparentColor := Image.Canvas.Pixels[Rects[Rects_low].x +
 Rects[Rects_low].w, 0];
 
   UseTransparentBackground := true; // default
 end;
 {-}
___
Lazarus mailing list

Re: [Lazarus] Mac OS X L : TPrintDialog missing from Dialogs tab...

2008-08-20 Thread Dominique Louis
Vincent Snijders wrote:
 Turn off rangechecking.

I wasn't sure if that would be a good idea, but it certainly allows it 
to compile. So thanks for that.

Now when compiling my app, targetting PowerPC, I get a Fatal error in 
PrintersDlgs.pp saying Can't find unit LResources used in PrintersDlgs

While if I compile targetting i386, everything compiles and runs fine.

Any ideas?


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


Re: [Lazarus] Mac OS X L : TPrintDialog missing from Dialogs tab...

2008-08-20 Thread Dominique Louis
Mattias Gärtner wrote:
 Have you compiled the LCL for target powerpc?

I thought that putting LCL_PLATFORM=carbon with CPU_TARGET=powerpc was 
enough to do that? That does not seem to work. Am I missing something else?


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


Re: [Lazarus] Mac OS X L : TPrintDialog missing from Dialogs tab...

2008-08-20 Thread Dominique Louis
Mattias Gaertner wrote:
 Do you mean
 cd lazarus/lcl 
 make LCL_PLATFORM=carbon CPU_TARGET=powerpc PP=fpc
 ?
 Was there any error?

Ok I added LCL_PLATFORM etc to the make bigide command thinking that it 
would build the LCL as well if I specified CPU_TARGET=powerpc.

This also does not explain why this works for i386 and not powerpc, 
unless there is something slightly different about the powerpc build 
process.

 How did you build the cross compiler for powerpc?

Using an automated script I downloaded from Adriaan van Os.
It seems to have worked very well in the past.


Dominique.

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


Re: [Lazarus] Mac OS X L : TPrintDialog missing from Dialogs tab...

2008-08-18 Thread Dominique Louis
Felipe Monteiro de Carvalho wrote:
 build it from the command line:
 
 sude make bigide
 
 or something similar. I work with subversion Lazarus, so the code is
 in my user directory and sudo isn't necessary.
 
Hi Felipe,
   will bigide build it as a Carbon application? Also when building 
via the command line, how can I ensure that Printer4Lazarus is installed 
without bigide?

Thanks,


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


Re: [Lazarus] Mac OS X L : TPrintDialog missing from Dialogs tab...

2008-08-18 Thread Dominique Louis
I tried building from the command line using bigide, but I'm getting a 
range check error in guitestrunner.pas so the compilation aborts.

I'm using svn code and 2.3.1 fpc compiler.

Dominique.

Mattias Gärtner wrote:
 Zitat von Dominique Louis [EMAIL PROTECTED]:
 
 Felipe Monteiro de Carvalho wrote:
 build it from the command line:

 sude make bigide

 or something similar. I work with subversion Lazarus, so the code is
 in my user directory and sudo isn't necessary.

 Hi Felipe,
will bigide build it as a Carbon application?
 
 Yes if using 0.9.25, no if using 0.9.24.
 
 
 Also when building
 via the command line, how can I ensure that Printer4Lazarus is installed
 without bigide?
 
 'make bigide' _is_ building via command line. It builds an IDE with a set of
 common packages.
 
 With 0.9.25 you can also build the IDE with 'your' set of packages via command
 line:
 
 ./lazbuild --build-ide=
 
 
 Mattias

 

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


Re: [Lazarus] Mac OS X L : TPrintDialog missing from Dialogs tab...

2008-08-17 Thread Dominique Louis
Mattias Gaertner wrote:
 On Sat, 16 Aug 2008 19:25:04 +0100
 Dominique Louis [EMAIL PROTECTED] wrote:
 
 Hi All,
Under Mac OS X, native Carbon IDE, the TPrintDialog is missing
 from the Dialogs tab? Is this intentional? If so why?
 
 Have you installed the printer4lazarus package?

Hmm, it used to be installed by default. Has that changed?

I'll check again.


Dominique.

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


Re: [Lazarus] Mac OS X L : TPrintDialog missing from Dialogs tab...

2008-08-17 Thread Dominique Louis
Mattias Gaertner wrote:
 On Sat, 16 Aug 2008 19:25:04 +0100
 Dominique Louis [EMAIL PROTECTED] wrote:
 
 Hi All,
Under Mac OS X, native Carbon IDE, the TPrintDialog is missing
 from the Dialogs tab? Is this intentional? If so why?
 
 Have you installed the printer4lazarus package?

Ok I cleaned out the settings from ~/.lazarus and attempted to 
re-install printer4lazarus. When it try to rebuild the IDE I get an 
error in Lazarus.pp which says.
Can't create assembler file:../units/i386/lazarus.s

As lazarus is installed in
/usr/local/share/lazarus
do I have to do anything special for it to pick up the sudo settings 
from within the IDE, or can I only do it via the command line?

Thanks,


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


[Lazarus] Mac OS X L : TPrintDialog missing from Dialogs tab...

2008-08-16 Thread Dominique Louis
Hi All,
   Under Mac OS X, native Carbon IDE, the TPrintDialog is missing from 
the Dialogs tab? Is this intentional? If so why?


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


Re: [Lazarus] Carbon key mapping

2008-08-10 Thread Dominique Louis
Mattias Gaertner wrote:
 This works here too.

Hi Mattias,
   There is something definitately wrong because ever since your change 
and the need to switch to Mac OS X  short-cut scheme, the commands do 
NOT work. I even did a completely clean svn update, so there can not be 
any conflicts at all now.


 Can you try to compile the carbon interface with -dVerboseKeyboard
 (build clean), then compile the rest of the IDE, start IDE and
 press Cmd+C in IDE.

I did this and no Cmd key combinations work, neither does the Enter or 
Backspace key, but all other letters and numbers work fine.

Where does Lazarus store it's settings on Mac OS X. It can't be in 
/usr/local/share/lazarus, because I deleted everything before doing the 
last svn update and my IDE settings still persisted. I think that may be 
the only way for me to get the IDE working in it's most basic form.


Dominique.


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


Re: [Lazarus] Recent Graphics changes...

2008-08-10 Thread Dominique Louis
Marc Weustink wrote:
 Before .26 gets released.
 I'm working on it, but have a lot of dificulties with masks

Thanks for the update Marc. I have one app that won't start due to this 
issue, so I am keen to find out how it is going.


The update is greatly appreciated.


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


Re: [Lazarus] Carbon key mapping

2008-08-05 Thread Dominique Louis
Mattias Gaertner wrote:
 On Tue, 05 Aug 2008 02:27:33 +0100
 Dominique Louis [EMAIL PROTECTED] wrote:
 
 Thanks Mattias,
Loading the Mac OS X specific mapping certainly changes the menu 
 items, but actually using those key combinations does not work.
 Pressing Cmd+X does not Cut.
 
 It works here in designer, source editor and all edit fields. Please try
 if you can grab it in the editor options / key mapping / Find Key
 Combination.
 I tested with a Macbook us-international keyboard.
 
  
 Btw, what key is ^ on a Mac OS X MacBook?
 
 The ^ modifier is the options/ctrl key.
 The arrow up is the shift and the cloverleaf is the Cmd key.

Hmm I'm not having much luck here. Using ^+F does not work when I set it 
to Native lazarus neither does Cmd+F when I set it to Mac OS X inside 
the Keymapping screen.

Find Key Combination correctly detects the keys being pressed, but does 
not actually find the the Key combination in the dropdown list. For 
example if I press Cmd+F in the key combination screen the drop down 
list shows Word('232') while the Meta check box is ticked.

Inside the IDE I can't press return anymore to create  new line.
All other keys work. It's very strange.

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


Re: [Lazarus] Carbon key mapping

2008-08-05 Thread Dominique Louis
Mattias Gaertner wrote:
 232 means that the character is not an F, but an unknown character.
 I got the same. I fixed that on sunday. At least on my macbook.

When is this likely to be commited to SVN?

 What keyboard do you use? (system preferences / international /
 input menu / name?)

I'm using the standard MacBook Intel keyboard. Region is set to United 
Kingdom, Input Menu has Character Palette ticked ( it's the way it came 
), British Keyboard is selected with scipt as Roman.

I hope this helps.

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


Re: [Lazarus] Carbon key mapping

2008-08-03 Thread Dominique Louis
I'm not happy about the Key mapping as now it's not the same as Xcode.

It is now impossible of Cut/Copy or Paste or Find etc because the 
shortcut keys appear as ^+Shift+F for Find in Files for example when it 
should be Cmd+Shift+F like it used to be.
Or ^X for Cut does not work neither ^C for copy.

Dominique.

Mattias Gaertner wrote:
 The carbon interface now maps the Ctrl key to ssCtrl (old behavior:
 none) and the Cmd key to ssMeta (old: ssCtrl).
 
 The Mac OS X key scheme was changed to support better the Apple
 Human Interface Guidelines. You can get the scheme under Editor
 Options / Key mapping / Choose Scheme. Beware: This will replace *all*
 shortcuts.
 
 See here for details:
 http://wiki.lazarus.freepascal.org/Lazarus_IDE_Shortcuts
 
 
 Mattias


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


[Lazarus] Sets not implemented??

2008-07-25 Thread Dominique Louis
Hi, I just tried to do the following...

uses
   Graphics;

var
   fs : TFontStyles;
begin
   fs := fs or fsBold;
   fs := fs or fsItalic;
end;

at compilation time I get the error...
Operation not implemented for sets

Will or or + ever be implemented for sets?
Is there another way to easily work with sets?


Thanks,



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


[Lazarus] Mac OS X : LazBuild does not build with latest svn update

2008-07-17 Thread Dominique Louis
The latest svn, revision 15796, does not build lazarus builder for 
either PowerPC or i386. The Error given in both cases is 
lazbuild.lpr(337,62)Error:Wrong number of parameters specified for call 
to FindPackageWithFileName

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


Re: [Lazarus] Recent Graphics changes...

2008-07-13 Thread Dominique Louis
Marc Weustink wrote:
 Dominique Louis wrote:
 Marc Weustink wrote:
 The corrupted stream is that this issue, or something else ?
 Sorry I didn't answer this issue earlier. Yes I believe it is the 
 streaming because the image I posted are all based on file streams being 
 saved and compressed out to a binary file. That binary file is then read 
 and displayed later on. The Colour photo shows when the streaming used 
 to work, while the BW photo is taken from a more recent build which 
 definitely shows it broken.
 
 Can you sent me the png image itself ?
 
 Marc

I've logged the new TIcon problem under
http://bugs.freepascal.org/view.php?id=11650

Dominique.

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


[Lazarus] Mac OS X : Bitmap.Canvas.TextHeight/TextWidth causes AV!!

2008-07-10 Thread Dominique Louis
As the subject says on Mac OS X, Intel, Any calls to 
Bitmap.Canvas.TextHeight or Bitmap.Canvas.TextWidth causes an AV.


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


Re: [Lazarus] Mac OS X : Latest Lazarus Revision : 15598 Does not work :(

2008-07-01 Thread Dominique Louis
Graeme Geldenhuys wrote:
 Thanks, found it. For other that want to revert Lazarus to a more
 stable state, until the image issues are sorted. The revision you want
 is r15471.

The only problem I found with that revision, at least on Mac OS X, is 
that the ide contains a Range Check error, which was fixed after that 
revision.

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


Re: [Lazarus] Mac OS X : Latest Lazarus Revision : 15598 Does not work :(

2008-06-30 Thread Dominique Louis
Does anyone on the team know why this is happening?

Dominique.

Dominique Louis wrote:
 When using the Carbon IDE which was just compiled from SVN source 
 revision 15598, it is impossible to change projects as you get a Range 
 check error.
 
 Similarly, Projects built using the latest Lazaurs code base cannot load 
 Glyph data. For example the error I get is...
 Error reading CanclBtn.Glyph.Data:Range check error
 
 
 Dominique.


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


Re: [Lazarus] Mac OS X : Latest Lazarus Revision : 15598 Does not work :(

2008-06-30 Thread Dominique Louis
Mattias Gärtner wrote:
 If you don't have a backup of the lazarus executable: Use
 svn up -r revisionnumber
 in the lazarus directory to return to a former svn.

This is exactly the info I was looking for so I could regress back to 
the previous revision.

Thanks again Mattias.

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


Re: [Lazarus] Is there anyone who use lazarus to develop the commercial products targeted on multiple platform?

2008-06-30 Thread Dominique Louis
GameMaker ( http://www.yoyogames.com/make ) is currently being ported to 
Mac OS X, from Delphi using Lazarus. It currently works on Win32, Linux 
and Mac OS X from the same codebase with minimal IFDEFs. It's not 100% 
finished yet, but it's getting there.

Dominique.

davy zhang wrote:
 Especially on mac.
 
 Recently I plan to port some of my products from windows to mac, if it
 is possible :)
 
 So I doubted if someone did this before~
 
 thanx for all the people work on lazarus project! You make a better
 world for all!


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


Re: [Lazarus] Mac OS X : Cross compiling from i386 - PowerPC

2008-06-28 Thread Dominique Louis
Dominique Louis wrote:
 Hi gurus,
I'm trying to compile a Carbon application for PowerPC from an i386 
 Mac OS X box. The i386 code compiles fine, but when I try and target 
 PowerPC I get an Can't find unit Printer4Lazarus used by MyApp error.
 
 Any ideas?

I don't know what you guys did, but downloading the latest SVN, 15600, 
allows me to cross-compile from on both i386 and PowerPC. But as 
mentioned in another post, there is now a range check error appearing in 
the IDE and when changing projects and reading Glyph.data.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Mac OS X : Latest Lazarus Revision : 15598 Does not work :(

2008-06-27 Thread Dominique Louis
When using the Carbon IDE which was just compiled from SVN source 
revision 15598, it is impossible to change projects as you get a Range 
check error.

Similarly, Projects built using the latest Lazaurs code base cannot load 
Glyph data. For example the error I get is...
Error reading CanclBtn.Glyph.Data:Range check error


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


Re: [Lazarus] Recent Graphics changes...

2008-06-26 Thread Dominique Louis
Marc Weustink wrote:
 The corrupted stream is that this issue, or something else ?

Sorry I didn't answer this issue earlier. Yes I believe it is the 
streaming because the image I posted are all based on file streams being 
saved and compressed out to a binary file. That binary file is then read 
and displayed later on. The Colour photo shows when the streaming used 
to work, while the BW photo is taken from a more recent build which 
definitely shows it broken.

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


Re: [Lazarus] Mac OS X : Cross compiling from i386 - PowerPC

2008-06-25 Thread Dominique Louis
Hi Felipe,
   I downloaded the latest SVN and attemped to build a new PowerPC 
compiler using the 2.2.2r1 compiler. These are the commands I typed...
sudo /usr/local/bin/fpcmake -w -Tall
sudo make clean CPU_TARGET=powerpc FPC=/usr/local/bin/fpc
sudo make all CPU_TARGET=powerpc FPC=/usr/local/bin/fpc

After the 3rd command I get the following error...
Fatal: Can't find unit fpintres used by pp

It doesn't matter if I target powerpc or i386 I get the same error 
for both. Am I doing something wrong?

Thanks,


Dominique.

Felipe Monteiro de Carvalho wrote:
 On Sun, Jun 22, 2008 at 4:34 PM, Dominique Louis
 [EMAIL PROTECTED] wrote:
   All the code is from the SVN or does SVN head of a development
 version mean something else?
 
 The problem is that in Free Pascal 2.2.1 the FPCMacOSAll unit was
 renamed to MacOSAll.
 
 2.2.1 is a development version, and thus changing over time. You got
 this error because you are using an old FPC 2.2.1


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


Re: [Lazarus] Mac OS X : Cross compiling from i386 - PowerPC

2008-06-25 Thread Dominique Louis
Hi Adriaan, I have used your scripts before, but it looks like this 
version has been updated. I'll give them a try and see what happens.

Adriaan van Os wrote:
 Dominique Louis wrote:
 Hi Felipe,
I downloaded the latest SVN and attemped to build a new PowerPC 
 compiler using the 2.2.2r1 compiler. These are the commands I typed...
 sudo /usr/local/bin/fpcmake -w -Tall
 sudo make clean CPU_TARGET=powerpc FPC=/usr/local/bin/fpc
 sudo make all CPU_TARGET=powerpc FPC=/usr/local/bin/fpc

 After the 3rd command I get the following error...
 Fatal: Can't find unit fpintres used by pp

 It doesn't matter if I target powerpc or i386 I get the same error 
 for both. Am I doing something wrong?
 
 You may find http://www.microbizz.nl/fpc-scripts.zip useful. I use them to 
 build fpc and Lazarus 
 from svn.
 
 Regards,
 
 Adriaan van Os

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


Re: [Lazarus] Recent Graphics changes...

2008-06-25 Thread Dominique Louis
Marc Weustink wrote:
 No needed, there are some known issues on OSX (x86).

Hmm, it all used to work fine, so I assume the new changes are not yet 
backwards compatible.

Great to hear that you are aware of it and have it under control.


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


Re: [Lazarus] Mac OS X : Cross compiling from i386 - PowerPC

2008-06-25 Thread Dominique Louis
Felipe Monteiro de Carvalho wrote:
 make all won't compile the printers package AFAIK. And it will compile
 the Lazarus IDE. Doesn't look like a good idea.
 
 make bigide will build both the IDE and printers.
 
 anyway, if you really want to build in the command line I would try
 setting TARGET_CPU=powerpc

Hi Felipe,
   Afer using Adriaan van Os' excellent scripts I now have a ppc386 and 
a ppcppc that were both built today v2.3.1. The lcl compiles under both 
i386 and powerpc, but I'm still having problems with printer4lazarus 
package.
Using bigide and TARGET_CPU=powerpc compiles, but does not seem to 
correctly compile the printer4lazarus package.

If I compile my project via the IDE, the first time it complains that it 
can't fine Printer4Lazarus. I ignore the errors and it eventually 
compiles and appears to be building Printer4Lazarus in the back 
background. If I now try to build my project as a powerpc target, 
printerdlgs.pp is immediately displayed and I get the error message...
Fatal: Can't find unit LResources used by PrintersDlgs.

 From looking at the compiler options command line parameters screen it 
seems to be looking for it in
-Fu../../../../../.lazarus/lib/Printer4Lazarus/powerpc-darwin/

It this correct?

This seems to be my last hurdle in creating a Universal binary for this 
project.


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


Re: [Lazarus] Mac OS X : Cross compiling from i386 - PowerPC

2008-06-25 Thread Dominique Louis
Felipe Monteiro de Carvalho wrote:
 On Wed, Jun 25, 2008 at 7:50 PM, Dominique Louis
 [EMAIL PROTECTED] wrote:
  From looking at the compiler options command line parameters screen it
 seems to be looking for it in
 -Fu../../../../../.lazarus/lib/Printer4Lazarus/powerpc-darwin/
 
 No. It should probably be something like:
 lazarus/components/Printer4Lazarus/lib/powerpc-darwin
 
 Try compiling the package yourself in the IDE, and set the
 architecture in the compiler options.
 
 And then check where are the .PPU files going to.

Compiling the package itself, from within the IDE, while targetting 
powerpc, throws up the same error as before.
While targetting i386 seems to compile fine.

Dominique.

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


Re: [Lazarus] Recent Graphics changes...

2008-06-24 Thread Dominique Louis
Vincent Snijders wrote:
 What lazarus svn revision did you use?

I'm using svn revision 15563.


Dominique.

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


Re: [Lazarus] Recent Graphics changes...

2008-06-24 Thread Dominique Louis
Vincent Snijders wrote:
 What lazarus svn revision did you use?

I even tried it under svn revision 15566, but with the same results.


Dominique.

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


Re: [Lazarus] Mac OS X : Cross compiling from i386 - PowerPC

2008-06-22 Thread Dominique Louis
Hi Felipe,
   I could not find the specific packages so I did a make all using the 
ppcppc compiler and when I do that I get the following compilation error
Fatal: Can't find unit MacOSAll used by CarbonInt

Am I not supposed to be able to do a
make all LCL_PLATFORM=carbon
and target the ppcppc compiler?

Dominique.

Felipe Monteiro de Carvalho wrote:
 On Sat, Jun 21, 2008 at 9:51 PM, Dominique Louis
 [EMAIL PROTECTED] wrote:
 Hi gurus,
   I'm trying to compile a Carbon application for PowerPC from an i386
 Mac OS X box. The i386 code compiles fine, but when I try and target
 PowerPC I get an Can't find unit Printer4Lazarus used by MyApp error.

 Any ideas?
 
 Open the Printer4Lazarus package. Go to Compiler Options. Set target
 processor and build.
 
 The same for LCL


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


[Lazarus] Mac OS X : Carbon IDE unable to create events..

2008-06-21 Thread Dominique Louis
Within Mac OS X Carbon IDE, any time I try to create an event it send me 
to the osutilsh.inc file, to line 40 where it says
 .mine

Any ideas?


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


Re: [Lazarus] Mac OS X : Using TProcess to launch Unix command to Copy a Directory

2008-06-21 Thread Dominique Louis
Mattias Gaertner wrote:
 On Mon, 19 May 2008 20:26:43 +0100
 Dominique Louis [EMAIL PROTECTED] wrote:
 
 Hi all,
I'm passing the following command to a TProcess instance...

 cp -R /SomePath/MyGame.app /SomePath/MyNewGame.app

 via it's command line property, but it did not work.
 
 Did you try the full filename?
 
 FindDefaultExecutablePath('cp')+
 ' -R /SomePath/MyGame.app /SomePath/MyNewGame.app'


That did the trick actually.


Dominique.


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


Re: [Lazarus] Mac OS X : Carbon IDE unable to create events..

2008-06-21 Thread Dominique Louis
Thanks Felipe and Vincent, it working again now after the svn update.


Dominique Louis wrote:
 Within Mac OS X Carbon IDE, any time I try to create an event it send me 
 to the osutilsh.inc file, to line 40 where it says
  .mine
 
 Any ideas?
 
 
 Dominique.

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


Re: [Lazarus] [lazarus] Win32 compilation error : Import library not found for libz

2008-06-17 Thread Dominique Louis
I've just found out that there is a bug in PasZlib and I don't have time 
to put together a bug report just yet, so I need to get the Zlib version 
working.

Vincent Snijders wrote:
 Dominique Louis schreef:
 Hi all,
   Anyone have any ideas?

 
 Yes, drop zlib and use paszlib.
 
 Vincent


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


Re: [Lazarus] [lazarus] Win32 compilation error : Import library not found for libz

2008-06-17 Thread Dominique Louis
Where can I get one of those?

Dominique.

Vincent Snijders wrote:
 Dominique Louis schreef:
 Ok, but shouldn't it work with both?


 
 If you have a compatible zlib dll.
 
 Vincent


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


[Lazarus] Job : Win32 to Mac OS X port - Game related....

2008-05-21 Thread Dominique Louis
Hi all,
   I've reached the point in my project where I don't think I can get 
any  further with my limited knowledge of both Lazarus and Mac OS X. I 
believe the project to be about 85-90% done.

So I need help, more from a consultant than a developer, with the final 
push.
What I require :
* Information on how much experience you have with FreePascal, Lazarus, 
Mac OS X and SDL.

* Ideally you will be located in the UK, preferably London, but if not 
we can talk about that.

* What your daily/weekly contract rates are.

* When ( both date and time ) you are available to work. I tend to work 
in the evenings ( GMT ) and on the week-ends, so would need someone 
available around then.

Make no mistake, this is a port of commercial product, please only apply 
if you are serious about the job and have time and expertise to offer, 
for your paid services.

Please email me directly to discuss things further, as it would be 
unfair to spam the mailing list.


Thanks,


Dominique.

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


[Lazarus] Mac OS X : Using TProcess to launch Unix command to Copy a Directory

2008-05-19 Thread Dominique Louis
Hi all,
   I'm passing the following command to a TProcess instance...

cp -R /SomePath/MyGame.app /SomePath/MyNewGame.app

via it's command line property, but it did not work.

I then tried fpsystem, passing it the same string and it also fails with 
a 16384 error, which I've spent the last half hour searching for on 
Google, but it does not appear anywhere.

So any help would be greatly appreciated.


Dominique.

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


Re: [Lazarus] Mac OS X : Overnight build not compiling correctly with printing in project....

2008-05-13 Thread Dominique Louis
I'm still seeing this in 13/5 overnight build.



Bee wrote:
 On Mac OS X, if Printer4Lazarus is added to the project, it fails to 
 compile and throws an error at the top of cupsprinters.inc. The error is 
 Illegal Expression. I'm using the 11/05 over night build.
 
 I can confirm this with today svn update. This command
 
 simba:laz-9.25 bee$ make all LCL_PLATFORM=carbon OPT=-k-framework 
 -kcarbon -k-framework -kOpenGL -k'-dylib_file' 
 -k'/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
  
 -k/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib'
  
 bigide
 
 gave me
 
 Free Pascal Compiler version 2.3.1 [2008/05/13] for i386
 Copyright (c) 1993-2008 by Florian Klaempfl
 Target OS: Darwin for i386
 Compiling runtimetypeinfocontrols.pas
 Assembling runtimetypeinfocontrols
 22 lines compiled, 0.4 sec
 make -C printers
 /bin/rm -f lib/i386-darwin/carbon/printer4lazarus.ppu
 /usr/local/bin/ppc386 -dUseCache -dNativePrint -dLCL -dLCLcarbon -S2 -gl 
 -Fuunix/ -Fuwin32/ -Fucarbon/ -Fuqt/ 
 -Fu/usr/local/share/lazarus/lcl/units/i386-darwin/ 
 -Fu/usr/local/share/lazarus/lcl/units/i386-darwin/carbon/ 
 -Fu/usr/local/share/lazarus/packager/units/i386-darwin/ -Fu./ 
 -Fu/usr/local/lib/fpc/2.3.1/units/i386-darwin/rtl -Fiunix/ -Fiwin32/ 
 -Ficarbon/ -Fiqt/ -Fi./ -FE. -FUlib/i386-darwin/carbon -k-framework 
 -kcarbon -k-framework -kOpenGL -k'-dylib_file' 
 -k'/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
  
 -k/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib'
  
 -di386 printer4lazarus.pas
 Free Pascal Compiler version 2.3.1 [2008/05/13] for i386
 Copyright (c) 1993-2008 by Florian Klaempfl
 Target OS: Darwin for i386
 Compiling printer4lazarus.pas
 Compiling printersdlgs.pp
 Compiling osprinters.pas
 cupsprinters.inc(4,1) Error: Illegal expression
 cupsprinters.inc(4,6) Fatal: Syntax error, ; expected but identifier 
 UDLGSELECTPRINTER found
 Fatal: Compilation aborted
 make[2]: *** [printer4lazarus.ppu] Error 1
 make[1]: *** [bigidecomponents] Error 2
 make: *** [bigidecomponents] Error 2
 
 I couldn't resolve the errors since the line number info seems to be 
 inaccurate. Line 4,1 of cupsprinters.inc is a comment block and there's 
 no UDLGSELECTPRINTER on line 4,6.
 
 Removing 'bigide' param gave me a working Lazarus with minimum component 
 set. I'm using FPC 2.3.1 and Laz 9.25 from svn.
 
 -Bee-

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


Re: [Lazarus] Mac OS X : Overnight build not compiling correctly with printing in project....

2008-05-13 Thread Dominique Louis
Sorry I mean the overnight snapshot build on over @
http://www.hu.freepascal.org/lazarus/

I will try and compile my projec with -dNativePrint to see if that makes 
any difference.

Dominique.

Mattias Gaertner wrote:
 On Tue, 13 May 2008 23:02:54 +0100
 Dominique Louis [EMAIL PROTECTED] wrote:
 
 I'm still seeing this in 13/5 overnight build.
 
 Are you sure, that your lazarus svn is up2date?
 
 1. Line 4,1 of cupsprinters.inc is *not* a comment block and
 there *is* a UDLGSELECTPRINTER on line 4,6.
 
 2. Because of -dNativePrint -dLCL -dLCLcarbon, it should not use
 cupsprinters.inc, but carbonprinters.inc.
 
 Please compile with -vut or even with -va and check what the compiler
 is doing.
 
 Mattias
 
 
 Bee wrote:
 On Mac OS X, if Printer4Lazarus is added to the project, it fails
 to compile and throws an error at the top of cupsprinters.inc. The
 error is Illegal Expression. I'm using the 11/05 over night
 build.
 I can confirm this with today svn update. This command

 simba:laz-9.25 bee$ make all LCL_PLATFORM=carbon OPT=-k-framework 
 -kcarbon -k-framework -kOpenGL -k'-dylib_file' 
 -k'/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
  
 -k/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib'
  
 bigide

 gave me

 Free Pascal Compiler version 2.3.1 [2008/05/13] for i386
 Copyright (c) 1993-2008 by Florian Klaempfl
 Target OS: Darwin for i386
 Compiling runtimetypeinfocontrols.pas
 Assembling runtimetypeinfocontrols
 22 lines compiled, 0.4 sec
 make -C printers
 /bin/rm -f lib/i386-darwin/carbon/printer4lazarus.ppu
 /usr/local/bin/ppc386 -dUseCache -dNativePrint -dLCL -dLCLcarbon
 -S2 -gl -Fuunix/ -Fuwin32/ -Fucarbon/ -Fuqt/ 
 -Fu/usr/local/share/lazarus/lcl/units/i386-darwin/ 
 -Fu/usr/local/share/lazarus/lcl/units/i386-darwin/carbon/ 
 -Fu/usr/local/share/lazarus/packager/units/i386-darwin/ -Fu./ 
 -Fu/usr/local/lib/fpc/2.3.1/units/i386-darwin/rtl -Fiunix/
 -Fiwin32/ -Ficarbon/ -Fiqt/ -Fi./ -FE. -FUlib/i386-darwin/carbon
 -k-framework -kcarbon -k-framework -kOpenGL -k'-dylib_file' 
 -k'/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
  
 -k/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib'
  
 -di386 printer4lazarus.pas
 Free Pascal Compiler version 2.3.1 [2008/05/13] for i386
 Copyright (c) 1993-2008 by Florian Klaempfl
 Target OS: Darwin for i386
 Compiling printer4lazarus.pas
 Compiling printersdlgs.pp
 Compiling osprinters.pas
 cupsprinters.inc(4,1) Error: Illegal expression
 cupsprinters.inc(4,6) Fatal: Syntax error, ; expected but
 identifier UDLGSELECTPRINTER found
 Fatal: Compilation aborted
 make[2]: *** [printer4lazarus.ppu] Error 1
 make[1]: *** [bigidecomponents] Error 2
 make: *** [bigidecomponents] Error 2

 I couldn't resolve the errors since the line number info seems to
 be inaccurate. Line 4,1 of cupsprinters.inc is a comment block and
 there's no UDLGSELECTPRINTER on line 4,6.

 Removing 'bigide' param gave me a working Lazarus with minimum
 component set. I'm using FPC 2.3.1 and Laz 9.25 from svn.

 -Bee-


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


Re: [Lazarus] Visually assigning Properties from another form/datmodule...

2008-05-11 Thread Dominique Louis
Lee Jenkins wrote:
 Dominique,
 
 Can you provide a pointer to this functionality in Delphi?  It may be that I 
 already know what this is but under another name, but I don't think so.
 
 I'm curious as to what it actually does.

Hi Lee,
   It basically just allows you to ( for example ) assign a property in 
say form1 to something in form2 or a datamodule from within the object 
inspector. Say you have loads of non-visual components centralised in a 
datamodule. Well from your main form you can hook up to events, 
properties etc in the datamodule from the main form's object inspector, 
hence visually assigning them.

IHTH


Dominique.

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


[Lazarus] Mac OS X : Double Click when Showing forms does not work correctly...

2008-05-11 Thread Dominique Louis
I have 2 forms in a project and from within form1 I want to show form2 
via a component's double click event. Let just say by double clicking on 
a panel. So from the panel's double click event I do the following...
form2.Show;

When the event is fired, form2 will actually appear behind form1, which 
is incorrect. This does not happen if the Show() is done from within a 
single click event and in that case, form2 correctly appears in front of 
form1.

Reported as Bug : 11287
http://bugs.freepascal.org/view.php?id=11287



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


Re: [Lazarus] Mac OS X : Double Click when Showing forms does not work correctly...

2008-05-11 Thread Dominique Louis
Dominique Louis wrote:
 I have 2 forms in a project and from within form1 I want to show form2 
 via a component's double click event. Let just say by double clicking on 
 a panel. So from the panel's double click event I do the following...
 form2.Show;
 
 When the event is fired, form2 will actually appear behind form1, which 
 is incorrect. This does not happen if the Show() is done from within a 
 single click event and in that case, form2 correctly appears in front of 
 form1.
 
 Reported as Bug : 11287
 http://bugs.freepascal.org/view.php?id=11287

Btw, I think this behaviour occurs to everything that inherits from 
TControl as I tried it with a TPanel and also a TTreeview on Mac OS X 
and the same incorrect behaviour occurs.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Mac OS X : Overnight build not compiling correctly with printing in project....

2008-05-11 Thread Dominique Louis
On Mac OS X, if Printer4Lazarus is added to the project, it fails to 
compile and throws an error at the top of cupsprinters.inc. The error is 
Illegal Expression. I'm using the 11/05 over night build.

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


[Lazarus] Visually assigning Properties from another form/datmodule...

2008-05-10 Thread Dominique Louis
Hi all,
   Is there an ETA as to when the ability to visually assign properties 
from another form/datmodule will be operational? At the moment I'm 
having to do it code, which is a viable work-around, but it would be 
nice for it to work the way Delphi does.


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


Re: [Lazarus] Visually assigning Properties from another form/datamodule...

2008-05-10 Thread Dominique Louis
Thanks for that, totally missed that thread. Great to hear that it's 
already partly operational.

Dominique.

Paul Ishenin wrote:
 Dominique Louis wrote:
 Hi all,
Is there an ETA as to when the ability to visually assign properties 
 from another form/datmodule will be operational? At the moment I'm 
 having to do it code, which is a viable work-around, but it would be 
 nice for it to work the way Delphi does.
   
 Not long ago Mattias started a thread about this feature. He implemented 
 it and asked to test. First of all you should use lazarus from svn 
 repositore (iow latest 0.9.25). Next, you should recompile an ide with 
 special switch: -dEnableMultiFormProperties. Look at this mail list 
 thread called Need testers from 29.04.2008
 
 Best regards,
 Paul Ishenin.


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


Re: [Lazarus] TIcon SaveToStream and SaveToFile not working...

2008-05-06 Thread Dominique Louis
Marc Weustink wrote:
   Paul is bugging me about it for at least half a year :) It took some
 time to start. Classes are reorganized and basic design of TIcon is done 
 in a few days I hope to finish the loader and the displaying part.
 After that the missing Delphi compat fuctions need to be added (if any) 
 and the widgetset dependant creation if an handle is needed needs to be 
 done. Finally saving of new and modified icons needs to be implemented.

Sounds like it will be worth the wait. From what you say though, this 
looks like it will take longer than this month to polish off.

Any suggestions/insight on how I might get the current implementation of 
TIcon working until then?


Dominique.

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


[Lazarus] TIcon SaveToStream and SaveToFile not working...

2008-05-05 Thread Dominique Louis
Hi all,
   After doing a...
option_icon.Assign(OptionForm.DefaultGameIcon.Picture.Icon);

Where option_icon = TIcon and DefaultGameIcon = TImage, if I try and do 
either a SaveToStream and SaveToFile via option_icon, the icon image is 
corrupted/non-existent.

Has anyone else seen this, know a fix for it?


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


[Lazarus] IDE : Name of unit that contains the Main menu...

2008-04-22 Thread Dominique Louis
I'd like to tweak the IDE so that Ctrl+Shift+F brings up the Find in 
Files dialog. I'm happy to do the work if someone can point me to the 
right unit are the menus are defined and I will implement it and submit 
a patch.

Anyone have any objections to using that short-cut? It seems to be used 
in Delphi, Visual Studio and I suspect a few other applications.

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


[Lazarus] Mac OS X : RTF Memo component??

2008-04-08 Thread Dominique Louis
Hi all,
   Is anyone, who is using Lazarus for Mac OS X development, working on 
an RichTextFormatMemo type component?

Is there any standard Mac OS X widget that could be wrapped up?

I may be willing to help or could provide a bounty for such a component.


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


Re: [Lazarus] Mac OS X : Hints do not display when control Enabled := false..

2008-04-07 Thread Dominique Louis
Hi Tom,
   Pardon my stupidity, but I don't quite understand what you mean. Do 
you mean you have fixed this so that hints appear if the control is 
disabled or that you have left it the way it is, which in my book mean 
broken? Please clarify.

Dominique.

Tom Gregorovic wrote:
 I think showing hints also for disabled controls is common feature, 
 therefore I have allowed this.

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


[Lazarus] Mac OS X : TThread support

2008-04-07 Thread Dominique Louis
Hi Tom et all,
   When I try a very simple TThread test under Mac OS X ( Intel ) I get 
the error RunError(232), followed by a execution paused dialog that says
Procedure: SYSTEM_NOTHREADERROR

All I'm doing is...
th := TMyThread.Create( true );

Where TMyThread inherits from TThread.

Is it safe to say that TThreading it NOT currently supported on Mac OS X?

Dominique.

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


[Lazarus] Mac OS X : Top level menu not firing click events...

2008-03-24 Thread Dominique Louis
Hi Tom and other Mac OS X gurus,
   If you add a MainMenu component to your form, then add a File menu 
item to it, then to this File menu item, add an OnClick event with a 
simple ShowMessage, that event is never fired. This works as expected 
under Win32 of Lazarus, but I could not test it on other OSes.

Sub-menu item events do respond to OnClick events, so behave as expected.


Added to bug tracker under bug no. 0011043.


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


[Lazarus] ZLIB_VERSION inconsistency in PasZlib....

2008-03-21 Thread Dominique Louis
Hi,
  I noticed that in
   zbase ZLIB_VERSION is defined as

const
   ZLIB_VERSION : string[10] = '1.1.2';

While in PasZlib it's defined as...

const
   ZLIB_VERSION = '1.2';

My suggestions is that the zbase.pas one is deleted and the PasZlib 
version is updated to
   ZLIB_VERSION : string[10] = '1.1.2';
As most people only want to include PasZlib in their units.

Also is anyone working on updating PasZlib to version 1.2.3? More a 
query, than a request.


Dominique.



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


Re: [Lazarus] Can anyone else read the attached bitmap using TImage?

2008-03-20 Thread Dominique Louis
Dominique Louis wrote:
 Hi all,
   I'm not able to display the attached bitmap using TImage or TImageList 
 under Mac OS X?
 
 Can anyone else display it on another Operating system?

I managed to get Win32 Lazarus up and running and it works fine with 
both TImage or TImageList on there, I'll see if it works with Linux 
later today.

I've submitted a bug report at least identifying as a Mac OS X problem.

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


Re: [Lazarus] Can anyone else read the attached bitmap using TImage?

2008-03-20 Thread Dominique Louis
Dominique Louis wrote:
 Can anyone else display it on another Operating system?

I just tested this under Ubuntu Linux ( intel ) with gtk and it 
definitely does not work on there either.


Dominique.


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


Re: [Lazarus] Can anyone else read the attached bitmap using TImage?

2008-03-20 Thread Dominique Louis
I'm hardly a Lazarus expert, but from trawling through the Carbon code 
it appears the things are getting messed up in 
TCarbonWidgetSet.RawImage_CreateBitmaps or TCarbonBitmap.Create. I'm not 
sure which and would need the guidance of someone with more experience 
in this area than myself.

Thing is I need to get it fixed, at least on my local version, by next 
week as I have a Beta release shortly after that. So any help would be 
greatly appreciated.


Dominique.

Graeme Geldenhuys wrote:
 On 20/03/2008, Dominique Louis [EMAIL PROTECTED] wrote:
 Hi all,
I'm not able to display the attached bitmap using TImage or
  TImageList under Mac OS X?

  Can anyone else display it on another Operating system?
 
 
 I couldn't under fpGUI. :-(
 I had a look with GIMP and it seems to be a 32bit ARGB image. After
 using GIMP to save it as a 24bit RGB image, I could display it fine in
 fpGUI.
 
 I guess this doesn't say much though, because fpGUI's BMP image
 support is not based on fpimage.pp or Lazarus LCL.
 
 
 Regards,
   - Graeme -


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


[Lazarus] Mac OS X : Trying to build Lazarus from source...

2008-03-17 Thread Dominique Louis
When trying to build Lazarus from source on Mac OS X I'm running into 
some problems...

When I do try
sudo make LCL_PLATFORM=carbon OPT=-kframework -kCarbon CPU_TARGET=i386

I get the following error message...
Fatal: Syntax error, IMPLEMENTATION expected but shl found
on the file ccodeparsetool.pas(62,1)

Doe anyone know how I can fix this error and proceed?

I'm using FPC version 2.3.1, if that makes any difference and the 
lazarus code is straight from SVN.

Thanks,



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


[Lazarus] Cross compiling : PPU Invalid Version 78...

2008-03-17 Thread Dominique Louis
Hi all,
   I've created the ppcppc PowerPC compiler. But when I try to compile 
my project via the command line I get an
PPU Invalid Version 78
on the file...
.../units/powerpc-darwin/graphics.ppu

How can I fix get this PPU so that it is a valid version?


Thanks,



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


[Lazarus] Mac OS X : TToolButton Style tbsDropDown...

2008-03-15 Thread Dominique Louis
Hi all,
   Can I confirm that the tbsDropDown Style for TToolButtons does not 
draw correctly under Mac OS X? At the moment the button appears, but 
does not have the split and drop down icon.
It works like one, but just does not look like one.

Thanks,


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


Re: [Lazarus] Mac OS X : Loading custom cursors at runtime....

2008-03-14 Thread Dominique Louis
Please ignore this message, I've found the answer and it works well.

Dominique Louis wrote:
 Firstly, is it possible to use custom cursors in a Mac OS application as 
 a resource.
 
 Secondly, if so, I gather I need to use LoadCursorFromLazarusResource, 
 but how do I get the cursor into a .lrs file in the first place and then 
 add it to the project so I can read it in at run-time.

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


[Lazarus] ListBox manual dragging...

2008-03-13 Thread Dominique Louis
Hi all,
   Under Win32 if I wanted to stop a dragging operation that began with 
a call to the BeginDrag method I would call EndDrag(false) or similar.

I cannot find a Lazarus equivalent. Is this as expected or a bug?


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


Re: [Lazarus] ANN : Game Maker on Mac OS X

2008-03-02 Thread Dominique Louis
Mattias Gaertner wrote:
 Wow.
 Can you add an entry to
 http://wiki.lazarus.freepascal.org/Projects_using_Lazarus?

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


[Lazarus] Gif support in OpenPicture Dialog

2008-02-23 Thread Dominique Louis
Hi all,
   Does the OpenPicture dialog use TGraphic to build up the list of 
supported image files in the filter property like in Delphi?


thanks,


Dominique,

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


Re: [Lazarus] ANN : Game Maker on Mac OS X

2008-02-20 Thread Dominique Louis
Mattias Gaertner wrote:
 Wow.
 Can you add an entry to
 http://wiki.lazarus.freepascal.org/Projects_using_Lazarus?


Yes I will do.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Universal Binaries on Mac OS X...

2008-02-18 Thread Dominique Louis
Hi all,
   I'm looking for some information about creating Universal Binaries 
for Mac OS X. I did a search on lazarus.freepascal.org, but did not find 
anything. Yet I remember seeing something on the net, but can't find it 
right now.


Dominique.

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


[Lazarus] Lazarus IDE on Mac OS X...

2008-02-16 Thread Dominique Louis
What can I say but WOW! It looked fantastic as a native Carbon app. It's 
  how I always envisioned Delphi would look if it were ever ported to 
Mac OS.

I realise it's still very alpha, but will it eventually pick up the 
editor's font rather than the system font?

To all those who worked on getting a native IDE working in Mac OS X, 
keep up the most excellent work!

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