* * *

Recent Posts

Pages: [1] 2 3 ... 10
1
Mac OS X / Re: macOS 32-bit app warning
« Last post by Hansaplast on Today at 11:03:51 am »

I think, the cocoa widgetset should be designed to look similar in sizes and proportions so that you can reuse your Windows or Linux code without modifications - and like it is for carbon today. Other implementations would make no sense.
Totally agree ... or at least: this is how I'd like to see it as well.
However the devs appear to be aiming to match XCode - for example font size = 8 in XCode is much smaller than in Carbon/Windows/Linux.
Right now, in Cocoa's current state, I have to do this to make the font size match:


Code: Pascal  [Select]
  1.   procedure fixCocoaLabels;
  2.     var FontCorrection:Double;
  3.         Counter:integer;
  4.     begin
  5.       FontCorrection := 11/8;
  6.       for Counter:=0 to self.ComponentCount-1 do
  7.         if self.Components[counter] is TLabel then
  8.           TLabel(self.Components[counter]).Font.Size:=trunc(FontCorrection*tmpLabel.Font.Size);
  9.     end;      


Obviously this is not the way to do this ... it makes it for a poor way to design a UI, since you can't see it at design time if the IDE ever runs reliable under Cocoa. But even worse of course when the size rules change at a later time.
Before spending hours on designing things the wrong way ... what does the Lazarus Dev team think of this?
I can't seem to get a clear statement ...
2
TAChart / Re: [Solved] tachart format to display marks
« Last post by wp on Today at 10:58:21 am »
[...] because in my case marks can be only 1, 2, 3, ...
Please remember my previous post... The chart does not take care of that. If the marks get too far apart then it adds intermediate marks. It does not matter if your data allow only integer marks or not.
3
Audio and Video / Re: Lazarus Mediaplayer with SDL2 and FFMPEG
« Last post by somby on Today at 10:48:09 am »
Hi lazarus users,
I have found some small bugs yet. The latest version
is 006. You can found it at download:
https://c.1und1.de/@519844823566385489/Jae-lddLSjquAVnczAPqHg

have fun
your somby
4
Graphics / Inconsistent behaviour of copyrect in Windows and Linux
« Last post by han on Today at 10:47:40 am »
I’m working on an application which should flip images with pixel accuracy. This is possible with copyrect. I can do the following for a horizontal flip:

Code: Pascal  [Select]
  1. src:=rect(w, 0, 0, h);
  2. dest:=bounds(0, 0, w, h); //horizontal flip
  3. ...
  4. ...
  5. image1.Picture.Bitmap.Canvas.CopyRect(dest, bmp.Canvas, src);


However this doesn’t work for Linux (1). To make it work if I have to do the following:
Code: Pascal  [Select]
  1. src:=rect(0, 0, w, h);
  2. dest:=rect(w, 0, 0, h);//horizontal flip

This works fine in Linux and Windows, however in Windows it is shifted one pixel (2)!!!
To prevent the shift in Windows I have to do the following:
Code: Pascal  [Select]
  1. src:=rect(0, 0, w, h);
  2. {$ifdef mswindows}
  3. dest:=rect(w-1, 0, 0-1, h);//horizontal flip
  4. {$else} {unix}
  5. dest:=rect(w, 0, 0, h);//horizontal flip
  6. {$endif}

or

Code: Pascal  [Select]
  1. {$ifdef mswindows}
  2. src:=rect(w, 0, 0, h); {doesn't work in Linux, why?}
  3. dest:=bounds(0, 0, w, h);
  4. {$else} {unix}
  5. src:=rect(0, 0, w, h);
  6. dest:=rect(w, 0, 0, h);//horizontal flip
  7. {$endif}


Any idea why the Linux version and Windows version behave different on these two points (1) and (2)?

See attached test program. Watch the white pixels at the corners. These should be one pixel away from the corners. Note the image is stretched.

5
Editor / Re: prefix change on classname change?
« Last post by YoupMelon on Today at 10:04:49 am »
Oh fantastic. That entire page is crucial info.
Thanks very much!
7
Editor / prefix change on classname change?
« Last post by YoupMelon on Today at 09:56:20 am »
Hi all,

If you change the name of a class, you have to update all prefixes of methods in the implementation section as well. Does the Lazarus IDE provide an easy tool for that?

Regards,
Youp
8
TAChart / Re: [Solved] tachart format to display marks
« Last post by Vittorio on Today at 09:53:30 am »
wp, thanks a lot! That's enough for my puprose, because in my case marks can be only 1, 2, 3, ...
9
Beginners / Re: Find text
« Last post by justnewbie on Today at 09:41:22 am »
@howardpc and @Jurassic Pork: guys, thank you very much!  :)
10
Mac OS X / Re: macOS 32-bit app warning
« Last post by josh on Today at 09:40:54 am »
Just a thought, have you created the application bundle when targeting mac?
Option is under project option.
All Mac GUI should be run from the bundle; not the compiled binary.
the bundle has a link back to the compiled binary which will not be in the bundle, when you want to use this bundle to distribute or create a dmg etc; you will need to replace the link in the bundle with the binary.
if you click the bundle and explore the package; you will see it has folders and files in it, you can for example add libraries, fonts in the bundle and the plist.info file can hold information like app version, package icon etc etc.


Pages: [1] 2 3 ... 10

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus