Re: [Lazarus] TBitmap.Canvas.Pixel

2009-05-10 Thread Felipe Monteiro de Carvalho
Hello,

Did you have time to check this?

thanks,
-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] LCL online docs

2009-05-10 Thread Felipe Monteiro de Carvalho
Hello,

There is something wrong with the online LCL docs:

http://lazarus-ccr.sourceforge.net/docs/lcl/graphics/index.html

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] DisableWindowsUnicodeSupport

2009-05-08 Thread Felipe Monteiro de Carvalho
If I were you, I would give it a go at converting the applications to
Unicode. Only places which connect with the LCL, such as putting text
in a TMemo need change, and even those don't need change if you only
use ASCII characters. All non-textual and non-LCL code remains
unaffected.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] TBitmap.Canvas.Pixel

2009-05-07 Thread Felipe Monteiro de Carvalho
Hello,

In the past it was said that setting each pixel individually with
TBitmap.Canvas.Pixel (for an offscreen bitmap) is slow, because the
image data is stored by the windowing library, and you need a lot of
calls to this library to set the pixels.

After the TBitmap remodeling where is the image data stored? It seams
to me that it is stored locally now, althought the code is quite
complex, so I may be wrong. In this case, there would be no reason it
being so much slower then TLazIntfImage, but it still is in my tests
with Carbon! Any ideas what is the cause of slowness now? Also
remembering that Carbon doesn't have the problems of X11 like Gtk.

thanks,
-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Specification for TWinControl.SetShape

2009-05-02 Thread Felipe Monteiro de Carvalho
Hello,

What is the exact specification for TWinControl.SetShape (bitmap
version) ? (for custom shaped windows)

I certified that black pixels are opaque and white pixels are fully
transparent, but what about other colors? What is defined for them?
Simply a recomendation not to use, as each platform may behave
differently?

Also, I assume that only full transparency or fully opaque is
supported, and the bitmap cannot be used to make an Alpha transparent
window, is that correct?

thanks,
-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] TFont.Orientation

2009-05-01 Thread Felipe Monteiro de Carvalho
Hello,

I added this property. I verifyed that it works in Carbon and I
implemented it for Qt. It should obviously work for win32/wince and
also for gtk2. From the major platforms, only gtk1 should not support
it.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] TFont.size

2009-05-01 Thread Felipe Monteiro de Carvalho
Hello,

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

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

The Delphi docs say:

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

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

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

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

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] TFont.Name best practices

2009-05-01 Thread Felipe Monteiro de Carvalho
Hello,

Which guidelines do you use to choose TFont.Name? Specially because
you either distribute the font with the application or you have no
guarantee it will exists in the system in the chaotic universte of
cross-platform development.

Different libraries have different policies about choosing the correct
font if the desired one isn't present. Qt docs say that it will try to
choose the best font using some kind of the logic on the name. Windows
docs say nothing, so I guess it just falls to default, unless
TFont.Pitch was assigned, when it tryes to find some characteristics.
Any ideas about Carbon? Gtk2 should also try some logic I think ...

The problem is that with this differences it gets very hard to get
guidelines about how to use this property. Maybe suppose the worse
case, if unavailable it will follow to default?

thanks,
-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] New Lazarus IDE/LCL features since ...?

2009-04-21 Thread Felipe Monteiro de Carvalho
2009/4/21 ik ido...@gmail.com
 Actually I made some, but after the story of GTK 2.8 I stopped working on it
 (you - the core team made me very angry about how it was reacted), so now
 someone needs to work on it again, and it will not be me.

I found nothing in the list archives about this, just some patches
which may have been forgotten, as there was no answer. A simple
reminder should be enought if they were really forgotten.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] New Lazarus IDE/LCL features since ...?

2009-04-21 Thread Felipe Monteiro de Carvalho
2009/4/21 ik ido...@gmail.com:
 I was talking about this: http://bugs.freepascal.org/view.php?id=12591
 With many implications on IRC of it.

Very simple to solve this: Just add the gtk 2.8 code around IFDEFs. I
think this is already done for other features

Absolutely unecessary to have hurt fealings and personal disputes
about something so simple.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Dragging documented

2009-04-18 Thread Felipe Monteiro de Carvalho
On Sat, Apr 18, 2009 at 3:41 AM, Hans-Peter Diettrich
drdiettri...@aol.com wrote:
 [ ] You have read section 3: LCL Implementation

I had just assumed you would never write the critics to the wiki. The
Wiki is the wrong place for criticism. It is a documentation and not a
discussion forum or a blog. Could you modify the page to make it more
professional looking? thanks

Please post criticism in the mailling list instead.

thanks,
-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Dragging documented

2009-04-17 Thread Felipe Monteiro de Carvalho
On Fri, Apr 17, 2009 at 8:56 PM, Hans-Peter Diettrich
drdiettri...@aol.com wrote:
 So I couldn't resist to add some criticism about the current LCL
 implementation. Any comments are welcome :-)

I think you should be more specific if you want to do a criticism. In
the way you put it one can have no idea what exactly you are taking
about.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] anouncements about commerical application

2009-04-16 Thread Felipe Monteiro de Carvalho
Yes, it is. They are interresting to show that big projects can be
developed with Lazarus.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Why we chose Object Pascal instead

2009-04-15 Thread Felipe Monteiro de Carvalho
And here is the best comment about it:

Capt. Kirk:
As a customer your choices are:

1. Hire an experienced competent developer who understands the library
functions, knows how to write properly structured code with
appropriate variable scope and data types, or

2. Hire someone who will produce what appears to be exactly the same output.

As a customer who doesn't happen to be a developer himself, the above
two options translate as:

1. Hire an expensive expensive expensive who expensive the expensive
expensive, knows how to write expensive expensive code with expensive
expensive expensive and expensive expensive, or

2. Save a bunch of money and get exactly the same thing.


-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Large program size - 1.8 MB for empty GUI project

2009-04-02 Thread Felipe Monteiro de Carvalho
The application is not empty. If you check the symbols inside the
application you will see that almost all LCL components are added, and
PNG support, XML library, etc, etc, etc, even if not used. The
smartlinking is simply not yet good enought to remove those parts.

This isn't such a big deal because hello world applications are
useless, in real world applications you will need to use multiple
components, have graphics support, use xml, etc, and those are already
there, so your EXE size won't grow when you need them.

And this has been debated 1 million times before, please search in the
mailling list archives.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


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

2009-03-31 Thread Felipe Monteiro de Carvalho
On Mon, Mar 30, 2009 at 2:02 PM, Graeme Geldenhuys
graemeg.li...@gmail.com wrote:
 Thanks. Clearly the wiki search is flawed, because that page never
 appeared in the search results. :-(

Maybe you searched for Qt ?

I think that the search only works for 3 or more letters

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


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

2009-03-24 Thread Felipe Monteiro de Carvalho
On Tue, Mar 24, 2009 at 2:01 PM, Bee bee.ogra...@gmail.com wrote:
 I can provide better screenshot of Lazarus (9.27) running on Mac
 (10.5.6), if you want.

Please do it. The wiki is exactly to provide an easy way for people to
contribute.

 I believe there wouldn't many people like to write code that way.
 People want Cocoa binding to be as good as GDI or GTK, and can be used
 directly by and from the IDE/LCL. It's just a matter of time, I
 suppose. :)

It isn't much different from how objective-c users make their apps. I
think that a good Cocoa interface for Lazarus would actually offer
much more then objective-c users have with Xcode.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


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

2009-03-23 Thread Felipe Monteiro de Carvalho
On Mon, Mar 23, 2009 at 1:52 PM, Graeme Geldenhuys
graemeg.li...@gmail.com wrote:
 I am hearing constant battering that you cannot create native looking
 Mac or iPhone applications with Lazarus.  By the way, these comments
 come from the CodeGear non-technical newsgroup. Is there any truth to
 this?

No, Lazarus now has an excelent support for Carbon, which uses the
native Aqua look from Macs. Here a screenshot of Lazarus running in
Mac OS X:

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

You can note that the menu is integrated in the top bar, it shows
properly in the Dock and I think that even dropping files in it should
work (althought I didn't test). No X11 is required and copy+paste and
all other normal desktop integration works normally.

Of course Lazarus has the same general look in all platforms, but
users are free to tune their applications for Macs if they want. The
native controls from Apple are used, so not much difference to
Objective-C apps should be expected.

And to kill any counter argument, if you want to create applications
by using Cocoa directly you can also do that using PasCocoa, which has
no difference from other applications created with Xcode:
http://wiki.lazarus.freepascal.org/PasCocoa

So there is absolutely no truth in that statement.

-- 
Felipe Monteiro de Carvalho

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


Re: [Lazarus] About try blocks

2009-03-18 Thread Felipe Monteiro de Carvalho
Here:

http://www.freepascal.org/maillist.var

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] About try blocks

2009-03-17 Thread Felipe Monteiro de Carvalho
This thread would be better located at one of the Free Pascal mailling lists.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Where are the manuals?

2009-03-16 Thread Felipe Monteiro de Carvalho
We are writting a book about it, but it's not yet ready ...

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TFloatSpinEdit and DecimalSeparator (GTK)

2009-03-14 Thread Felipe Monteiro de Carvalho
On Sat, Mar 14, 2009 at 7:40 AM, Bart bartjun...@gmail.com wrote:
 Maybe I should ask on the pfc mailinglist?

Indeed.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TFloatSpinEdit and DecimalSeparator (GTK)

2009-03-11 Thread Felipe Monteiro de Carvalho
Here are the docs for the gtk2 control:

http://library.gnome.org/devel/gtk/stable/GtkSpinButton.html

I cant find anything about the separator.

They probably use something from libc for the separator ... one would
need to check the gtk source code and see what they are doing there.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Line Ending FPC/Delphi

2009-03-05 Thread Felipe Monteiro de Carvalho
In my projects I usually have a file with only general constants,
which is added by all others. In this file I add the following
declaration:

{$IFNDEF FPC}
const
  LineEnding = #10#13;
{#endif}

The Virtual Magnifying Glass is a medium sized project which is
compilable with Lazarus and Delphi. It may be useful for you to take a
look at it's source code:

http://sourceforge.net/projects/magnifier

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Lazarus 0.9.26, 0.9.26.1, 0.9.26.2, 0.9.27 ou 0.9.28? (Si lvio Clécio)

2009-02-16 Thread Felipe Monteiro de Carvalho
2009/2/16 Vincent Snijders vincent.snijd...@gmail.com:
 I have a feeling something got lost in the translation from Portuguese
 to English or from English to Dutch in the next paragraph, because I
 don't understand your point.

Basically he said he was very disappointed by the Linux Lazarus 0.9.26

He probably installed the Gtk 1. Yes, gtk 1 does look like crap. But
it's very near it's grave now.

Gtk 2 is already the standard, so 0.9.28 should have a much better default look.

And the possibility of using Lazarus in Linux with LGPL-Qt 4.5 will
give a huge jump in quality.

--
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazarus 0.9.26, 0.9.26.1, 0.9.26.2, 0.9.27 ou 0.9.28? (Si lvio Clécio)

2009-02-16 Thread Felipe Monteiro de Carvalho
On Mon, Feb 16, 2009 at 11:32 AM, Graeme Geldenhuys
graemeg.li...@gmail.com wrote:
 Why jump in quality?  Isn't the current LCL-Qt based on Qt 4.x The
 Qt 4.5 release will only make it more usable in a open-source /
 closed-source (licensing) term - that has nothing to do with quality.

I meant that today you cannot use it for closed-source projects, so
for many people it simply does not exist as an option.

When it comes as an option, comes the fact that the qt interface has a
high quality IMHO, so people who could only use gtk1 or gtk2 can
suddenly use the qt interface, which has a high quality.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazarus 0.9.26, 0.9.26.1, 0.9.26.2, 0.9.27 ou 0.9.28? (Si lvio Clécio)

2009-02-16 Thread Felipe Monteiro de Carvalho
On Mon, Feb 16, 2009 at 2:02 PM, Paul Ishenin webpi...@mail.ru wrote:
 What are you comparing? LCL interfaces to qt and gtk or qt and gtk themself?

 I suppose the first.

I am comparing qt and gtk themselves. The example goes around lazarus,
but only because the only qt or gtk software that I develop is the
LCL.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Voting for the new Lazarus icon

2009-02-15 Thread Felipe Monteiro de Carvalho
Hello,

I just started a voting for the new Lazarus icon:

http://forum.lazarus.freepascal.org/index.php/topic,6301.0.html

If you have any comments, please do so in the respective forum post,
to keep discussion in 1 place.

thanks,
-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Zipfiles using Paszlib...

2009-02-14 Thread Felipe Monteiro de Carvalho
On Sat, Feb 14, 2009 at 2:43 PM, Lee Jenkins l...@datatrakpos.com wrote:
 I'm confused.  Does TZipper produce pkZIP compatible files or is it zlib based
 and only called TZipper?

I don't understand your question.

The files produced work correctly if given the .zip extension. They
are recognized by the internal unzipper of OpenOffice.org

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Zipfiles using Paszlib...

2009-02-14 Thread Felipe Monteiro de Carvalho
On Sat, Feb 14, 2009 at 4:57 PM, Hans-Peter Diettrich
drdiettri...@aol.com wrote:
 I'm confused.  Does TZipper produce pkZIP compatible files or is it zlib 
 based
 and only called TZipper?

What is pkZIP?

 You assume that OO only looks at the file extension, not at the actual
 file contents?

I assume it can only uncompress 1 format, unless zip files can be
compressed in multiple ways and I don't know it.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Zipfiles using Paszlib...

2009-02-11 Thread Felipe Monteiro de Carvalho
On Wed, Feb 11, 2009 at 9:23 AM, Graeme Geldenhuys
graemeg.li...@gmail.com wrote:
 Thanks Felipe. I'll take a closer look at both and try to merge any
 feature between the two. I would prefer something that is standard in
 FPC as well.

I added step-by-step instructions on how to get the latest TZipper and
use it to the wiki:

http://wiki.lazarus.freepascal.org/paszlib

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] repaint method on Darwin/Carbon

2009-02-11 Thread Felipe Monteiro de Carvalho
On Tue, Feb 10, 2009 at 11:13 PM, Brad Campbell b...@wasp.net.au wrote:
 I was trying not to call Application.ProcessMessages as that is *very* 
 expensive (I'm seeing delays
 of up to 100msec on a G4 400) but it looks like I have no choice.

You can use a high resolution timer like EpikTimer (
http://wiki.lazarus.freepascal.org/EpikTimer ) to check if the delay
caused by calling Application.ProcessMessages will disturb your
communication. Like this:

Fetch current time;
Application.ProcessMessages
if TimeDelay  x ms then do something;

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Zipfiles using Paszlib...

2009-02-10 Thread Felipe Monteiro de Carvalho
On Tue, Feb 10, 2009 at 7:46 AM, Graeme Geldenhuys
graemeg.li...@gmail.com wrote:
 You could also try TZipFile located in the following SVN repository.
 It doesn't contain compression yet, but does place files and folders
 inside a .zip archive. It has file handling routines, so it feels like
 you are working with normal files in a directory, but they are
 actually inside a zip archive.

The TZipper from FPC subversion can add files to a zip archive in any
directory structure desired and also compress them. It worked very
well for me to generate OOXML and OpenDocument files. But you have to
use the latest subversion zipper.pp files, the current one doesn't
have the needed fixes

USage:

  FZipper.FileName:=ParamStr(1);
  For I:=2 to ParamCount do
begin
F:=TFileStream.Create(ParamStr(i),fmOpenRead);
FZipper.Entries.AddFileEntry(F,ParamStr(i));
end;
  FZipper.ZipAllFiles;
  For I:=0 to FZipper.Entries.Count-1 do
FZipper.Entries[I].Stream.Free;

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Zipfiles using Paszlib...

2009-02-10 Thread Felipe Monteiro de Carvalho
On Tue, Feb 10, 2009 at 1:13 PM, Graeme Geldenhuys
graemeg.li...@gmail.com wrote:
 I have never looked at TZipper.  Do you have any idea how that differs
 from TZipFile?  Is it worth picking one over the other?

I've never used TZipFile, but well, you wrote that TZipFile doesn't
compress. TZipper does compress, and TZipper is a standard component
of Free Pascal. Althougth at the moment you need a local copy of the
latest svn zipper.pp to use it.

Another nice feature of TZipper is adding files with a stream as
source, so you can load data from any where you want, doesn't need to
be existing files. Don't know if TZipFiles also allows that.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Mac OS X : 10.3 undefined references

2009-02-10 Thread Felipe Monteiro de Carvalho
On Tue, Feb 10, 2009 at 2:38 PM,  domini...@savagesoftware.com.au wrote:
 Will linking directly to the 10.3 SDK get around this problem, or will that
 break other LCL references?

No, won't work. LCL-Carbon uses routines available only in 10.4

 I am aware that 10.4 is the preferred OS version but is there a way around
 this issue?

You can provide a patch for LCL-Carbon which ifdefs out the use of all
routines which require Mac OS X 10.4 if a define is active, and then
rebuild your LCL with the define. Something like
CarbonSupportMacOSX_10_3

It will work much better if you provide adequate substitutes for those
calls that work in Mac OS X 10.3

You can see which calls cause trouble and use Find in Files in the IDE
in the directory lcl/interfaces/carbon to find them.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Loading icon from Application.Icon

2009-02-01 Thread Felipe Monteiro de Carvalho
Can you post a very simple, but complete, example which fails?

The code you showed on the first e-mail was too short to check if your
code is wrong or if it's a bug in TIcon.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Loading icon from Application.Icon

2009-01-31 Thread Felipe Monteiro de Carvalho
Which operating system, fpc and lazarus versions?

Does the example application work for you? It's in examples/trayicon
and it loads the icon from the LFM (inside the executable)

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Interact with M$ Word

2009-01-30 Thread Felipe Monteiro de Carvalho
If your only contents in the word document is the table you can create
an excel document using FPSpreadsheet:

http://wiki.lazarus.freepascal.org/FPSpreadsheet

If the format needs to be Word then you would need to paste it to word.

Ideally I imagined a full library to generate office documents could
be created. But right now I only have spreadsheet support working =)
And that needs polishing.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Drawing text in WinCE

2009-01-29 Thread Felipe Monteiro de Carvalho
It works for me ... it's a rather wierd problem ... TLabel not working?

What Lazarus version are you using? How did you install support for wince?

Do you have a screenshot of the problem?

Also, are your source files UTF-8 encoded?

If you start a new project, put only a label in the form and run that
does it work?

Are you using a device or the emulator? Can you test with the
emulator? (instructions to install it in the wiki)

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


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

2009-01-15 Thread Felipe Monteiro de Carvalho
On Thu, Jan 15, 2009 at 12:38 AM, Den Jean den.j...@telenet.be wrote:
 http://en.wikipedia.org/wiki/WebKit

I see. I for one think it would be an excelent addition!

One problem, however, is that all apps would require WebKit, even
those that don't use it...

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


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

2009-01-14 Thread Felipe Monteiro de Carvalho
This is just fantastic. It really adds a lot of value to the
lazarus-qt interface.

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

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


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

2009-01-14 Thread Felipe Monteiro de Carvalho
On Wed, Jan 14, 2009 at 10:45 PM, Den Jean den.j...@telenet.be wrote:
 Is someone interested in webkit ?

What does it do? Shows html pages?

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] ARM-WinCE does not complie from the IDE (+ a few question)

2009-01-11 Thread Felipe Monteiro de Carvalho
 1. Am I supposed to build the ARM-WinCE units from the IDE? (This did not
 work before)

This always worked.

 2. If yes, I guess not everything needs to compiled  or WinCE. Which options
 should be included?

It's documented in the wiki:
http://wiki.lazarus.freepascal.org/Windows_CE_Interface#Using_the_snapshot_add-on_installer

If you want to rebuild LCL yourself then you need to add the operating
system wince and architecture arm in the Build Lazarus dialog. You
need to use the advanced tab for that.

 3. Currently I am using FPC 2.2.2. Is this the currently recommended FPC
 version for WinCE. If not, I would a appreciate a link to the proper SVN FPC
 repository.

Yes, 2.2.2 is the recommend version.

 4. Are the suggestions for preparing Lazarus for WinCE manually still valid
 on the Lazarus website? I remember there was some confusion between two
 senior developers of Lazarus (or maybe FPC ) about where the compiled units
 should be  placed. Has this been settled by now?

That was only for manually setting up the interface. Use should use
the add-on installer, unless there is a very good reasion to avoid it.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Does Lazarus have sizer or layout objects?

2009-01-11 Thread Felipe Monteiro de Carvalho
On Sun, Jan 11, 2009 at 9:57 AM, Hans-Peter Diettrich
drdiettri...@aol.com wrote:
 What's the base class for an layout manager?

There is none specific. I would suggest trying TCustomControl if you
also want to draw borders or TControl if you just want to position
childs.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Does Lazarus have sizer or layout objects?

2009-01-10 Thread Felipe Monteiro de Carvalho
My suggestion would be to create a layout class yourself. It should be easy.

If it is good enougth it may be added to Lazarus later.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] reading a little endian long.

2008-12-21 Thread Felipe Monteiro de Carvalho
On Sun, Dec 21, 2008 at 6:26 AM, Dave Coventry dgcoven...@gmail.com wrote:
 Is there any documentation on this?

http://www.freepascal.org/docs-html/rtl/system/index-5.html

 would the following:

 longv:=LEtoN(@buffer[5]);

 be the same as:

No, it's better. It only performs a conversion from Little Endian to
current encoding. So it will just copy the contents if your software
is running in a little endian processor or do the adequate conversion
if your software is running in a big endian processor.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazarus forum

2008-12-19 Thread Felipe Monteiro de Carvalho
I for one am very happy with the change!

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Systray application is started from Session in Gnome but it is invisible

2008-12-18 Thread Felipe Monteiro de Carvalho
On Thu, Dec 18, 2008 at 3:01 PM, Roland Turcan k...@rotursoft.sk wrote:
  - The latest one Lazarus
  - fpc from end of november I think.

What does latest mean? 0.9.26?

If you are using 0.9.26 try updating to subversion.

If you are using subversion, try 0.9.26

There was a recent change that could either fix your problem or cause it

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Systray application is started from Session in Gnome but it is invisible

2008-12-18 Thread Felipe Monteiro de Carvalho
What is session in gnome? it is started together with gnome?

I think that what happens is that when it starts the tray area isn't working yet

 but I think, for this problem is TTrayIcon, because it could show me
 any window which is shown using by timer. I will try to get up-to-date
 fpc too from SVN and I will inform you.

No, this will be useless.

Please try an older lazarus revision, for example 17600

svn up -r 17600

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Dynamic Library in Linux

2008-12-16 Thread Felipe Monteiro de Carvalho
To start with, you should ask this in the free pascal mailling list,
as this is more related to free pascal then to Lazarus. The classes
unit is part of Free Pascal.

Second, using the subversion compiler could be the problem. I would
try using FPC 2.2.2 instead.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Using Win32 Lazarus to cross-compile to arm-linux?

2008-12-11 Thread Felipe Monteiro de Carvalho
In the environment options dialog, change the path to the compiler.

Then in the Compiler Options dialog, change the Target operating
system and target architecture.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Terminal window, workaround

2008-12-11 Thread Felipe Monteiro de Carvalho
The IDE shows the values. Set a breakpoint and then move the mouse
over the variable names in the code. It will show you their value at
that point as a tooltip.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] What is current status of fpGUI?

2008-12-10 Thread Felipe Monteiro de Carvalho
On Wed, Dec 10, 2008 at 6:54 AM, Graeme Geldenhuys
[EMAIL PROTECTED] wrote:
 Correct. I can supply a quick patch to resolve this, but fpGUI via LCL
 is still totally unusable. That's until my clone gets into gear and
 starts working on it.

Do you have commit rights in Lazarus? I think it would be nice if this
is commited. I have a patch waiting to be applyed which was to improve
things for fpgui (tstrings are freed by the interface so we can pass
the tstrings from fpgui directly)

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TProcess oddity?

2008-12-10 Thread Felipe Monteiro de Carvalho
I think you should ask in one of the Free Pascal mailling lists,
because this is a problem with the Free Pascal RTL which only FPC
developers could fix.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TBitmapCanvas public

2008-12-10 Thread Felipe Monteiro de Carvalho
I don't know anything about that class, but if you describe better
what you are trying to do I may suggest an alternative.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Stretching Antialiasing in win32

2008-12-10 Thread Felipe Monteiro de Carvalho
Hello,

When I execute the StretchBlt windows API in the magnifier I get
different results in Delphi and in Lazarus:

  Windows.StretchBlt(DestCanvas.Handle, drawGlassRect.Left, drawGlassRect.Top,
   drawGlassWidth, drawGlassHeight,
   bmpDisplay.Canvas.Handle, viewRect.Left, viewRect.Top,
   viewRectWidth, viewRectHeight, dwROP);

In Lazarus there is notice some anti-aliasing. When magnifying the
same synedit text in delphi and lazarus, after 14x or so I start to
see grey dots near the text and in Delphi I don't. Actually the grey
dots are also square, so they actually look like as if they were part
of the text, but they cannot be, because I saw the same text with
delphi.

Setting the canvas Antialiasingmode property has no effect.

Any ideas why this happens? It's not necessarely bad, but I would like
to control this via the antialiasing property.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Stretching Antialiasing in win32

2008-12-10 Thread Felipe Monteiro de Carvalho
On Wed, Dec 10, 2008 at 9:45 PM, Martin Friebe [EMAIL PROTECTED] wrote:
 If it is synedit, check either the font antialiasing/quality property in
 object inspector (if you use synedit as component).
 Or Environment=options=Editor=Display  there is a checkbox Disable
 anti aliasing

Anti aliasing is disabled.

And also, this wouldn't explain the difference to delphi

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] WinCE 2.2.3 Snapshot Problem

2008-12-09 Thread Felipe Monteiro de Carvalho
Go to the environment options dialog and check if the compiler is the right one.

I think that Lazarus comes preconfigured to use ppcx86.exe but it
should actually use fpc.exe which will choose the correct compiler.

Don't change anything in your fpc.cfg file.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Cross platform development (not compiling)

2008-12-09 Thread Felipe Monteiro de Carvalho
I think the solution would be having build modes, as already discussed
and planned for 0.9.28. I also need this feature.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Cross platform development (not compiling)

2008-12-09 Thread Felipe Monteiro de Carvalho
On Tue, Dec 9, 2008 at 3:19 PM, Mattias Gärtner
[EMAIL PROTECTED] wrote:
 build modes are only for compilation. Not for debugging.
 Maybe you want debug modes?

Ummm, now I see ... but they could be the same thing. Some kind of
mode where certain compiler options or debugger options are overriden.

-- 
Felipe Monteiro de Carvalho

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


Re: [Lazarus] Trayicon troubles

2008-12-09 Thread Felipe Monteiro de Carvalho
On Tue, Dec 9, 2008 at 6:07 PM, Sebastian Kraft [EMAIL PROTECTED] wrote:
 1. is it possible to have a trayicon with transparent background?
 I created the icon from a png where the background was transparent but
 the icon in the panel shows a grey back.

Which fpc, laz and os version?

 2. How can I show this balloon thing?

Use the following properties:

ShowBalloonHint, GetPosition, BalloonFlags, BalloonHint,
BalloonTimeout, BalloonTitle

I think that GetPosition isn't implemented in all platforms. Test it.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Trayicon troubles

2008-12-09 Thread Felipe Monteiro de Carvalho
On Tue, Dec 9, 2008 at 7:03 PM, Felipe Monteiro de Carvalho
 I think that GetPosition isn't implemented in all platforms. Test it.

Actually it is implemented for gtk2 and win32, so it should work.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Terminal window

2008-12-09 Thread Felipe Monteiro de Carvalho
On Tue, Dec 9, 2008 at 7:07 PM, Tom Verhoeff [EMAIL PROTECTED] wrote:
 And for Mac OS, in my experience.  (Hence, I find the option name misleading.)

What does it do in Mac OS?

AFAIK you are wrong. This option sets a flag in the Windows executable
to indicate that a standard I/O terminal should be created. It is
something about the internal working of a windows executable and does
nothing in other platforms.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Trayicon troubles

2008-12-09 Thread Felipe Monteiro de Carvalho
Well, your implementation doesn't work in my system (KDE 3.5), while
the previous one does.

Unless there is a compeling argument to use the new implementation I
propose to revert to the previous one.

I appreciate your effort to quick implement the feature, but it was
somewhat missguided. To improve things I propose improving GetPosition
for gtk2, I don't use strange bar positions, so testing is always
welcome, and also improving the looks of the notifier component.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Trayicon troubles

2008-12-09 Thread Felipe Monteiro de Carvalho
On Tue, Dec 9, 2008 at 9:02 PM, Andrew Haines [EMAIL PROTECTED] wrote:
 Any objections to my improving the current balloon a bit? I see some
 issues with text that is too long. Also an indicator of the time left
 before it closes might be nice.

Not at all, fell free to improve it =)

I beliave it is in the unit lcl/popupnotifier.pas

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] unusable/endlessly reloading mainIDE

2008-12-08 Thread Felipe Monteiro de Carvalho
Try again with:

sudo make clean all LCL_PLATFORM=gtk2 OPT=-va

This should say exactly why compilation fails

PS: Don't answer only to me, but to the whole list
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] TShellTreeView and TTreeView

2008-12-08 Thread Felipe Monteiro de Carvalho
Hello,

I am trying to implement TShellTreeView. It is a treeview which shows
the directory structure in the prefered way of the operating system.
In Windows that would start with My Computer, etc...

One problem now is with the design. Should it read all existing
directories (which will cause a delay) or only those visible, or one
or two levels at once... what do you think? Reading everything may be
problematic with removable media.

Another problem is using TTreeView. I searched by I can't find how I
would implement this behavior, for example, having the root and 1
level visible and then when the user clicks the + symbol the subitems
for this item are loaded. Should I use the OnExpanding event? In the
event handler I would create the subitems? A tutorial would be
great...

thanks,
-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TShellTreeView and TTreeView

2008-12-08 Thread Felipe Monteiro de Carvalho
Another problem is that this control is only dependent on the
operating system, not the widgetset. And I need it in the LCL to
implement standard dialogs for Windows CE.

My first solution is having one include file per platform. Good
enougth? Where to put those include files?

My initial idea is simply naming then differently: treeviewwin32.inc
treeviewunix.inc etc

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazarus on Mac OS 10.5, 10.4

2008-12-06 Thread Felipe Monteiro de Carvalho
On Fri, Dec 5, 2008 at 6:59 AM, Geoffrey Barton [EMAIL PROTECTED] wrote:
 If I had installed Lazarus (0.9.26) on a machine running OS 10.4,
 presumably it would compile and run programs ok?

Lazarus works normally in Mac OS X 10.4

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] unusable/endlessly reloading mainIDE

2008-12-06 Thread Felipe Monteiro de Carvalho
Try rebuilding your IDE with Gtk 2. Navigate the where Lazarus was
installed and type:

sudo make clean all LCL_PLATFORM=gtk2

The directory should be called /usr/share/lazarus or something similar

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Cocoa bindings

2008-12-05 Thread Felipe Monteiro de Carvalho
On Fri, Dec 5, 2008 at 5:23 AM, dmitry boyarintsev
[EMAIL PROTECTED] wrote:
 Felipe have you updated the objcparser to support ObjC 2.0?

No, but this is very easy to do. Only a couple of routines changed
from the ones I use.

I didn't do it because I only have a 10.4 system which uses Objective-C 1.0

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] KOL-CE How was overlapping menu fixed?

2008-12-05 Thread Felipe Monteiro de Carvalho
Thanks, I managed to get it working.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazarus on Mac OS 10.5, 10.4

2008-12-04 Thread Felipe Monteiro de Carvalho
Oh, there is a lot more to it then that! To start with you need to
link to the 10.4 framework and you need to have it installed in your
computer (I think you probably have if you did a full XCode install).

I would ask in Mac-Pascal mailling list if I were you (google).

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] KOL-CE How was overlapping menu fixed?

2008-12-04 Thread Felipe Monteiro de Carvalho
Hello Yuri,

How did you implement maximizing a form in KOL-CE?

Take a look here:

http://wiki.lazarus.freepascal.org/Windows_CE_Development_Notes#Overlapping_menu_bottom

I have looked a lot, but it seams impossible to maximize a form
perfectly in Windows CE, because sometimes the menu will not be
considered part of the work area so you need an extra factor, but I
have found no way to find when the factor is needed.

thanks,
-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazarus on Mac OS 10.5, 10.4

2008-12-04 Thread Felipe Monteiro de Carvalho
wow! astonishing  the last time I read there were all kinds of
complicated linking problems to be taken care of.

On Thu, Dec 4, 2008 at 1:07 PM, Mattias Gärtner
[EMAIL PROTECTED] wrote:
 Maybe some special controls need some special libs?

No, as I understood, this should be a general problem of any software
linking to Carbon or Cocoa

-- 
Felipe Monteiro de Carvalho

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


Re: [Lazarus] Cocoa bindings

2008-12-04 Thread Felipe Monteiro de Carvalho
2008/12/4 Mac Programmer [EMAIL PROTECTED]:
 It appears as though Felipe has provided a complete set of bindings for
 doing Cocoa development.

Yes, that is correct, althougth I would call it complete at the
moment. It has the potential to be complete. If you need any specific
classes added to the bindings just ask.

Is it possible to cross-compile against these to
 create an app for the iPhone and iPod Touch?

No, because the compiler doesn't support this target. Support for a
target includes knowing how to operate the (cross)assembler, linker,
having a RTL, etc. I beliave that Jonas was working on it, you can
contact him in the mac-pascal or free pascal mailling lists.

 I don't believe the version of
 OS X on those devices includes the Carbon framework, so it'll have to be
 Cocoa.

Indeed it doesn't it.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Resources and Version info

2008-12-04 Thread Felipe Monteiro de Carvalho
Make the entire .rc file yourself. Possibly disable the version info
taken care by the IDE or create a file with a different name from the
one the IDE maintains. Link it to your project with {$R myrcfile.rc}

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Disabling scrollbars

2008-12-02 Thread Felipe Monteiro de Carvalho
I think I found a bug report about this:

http://bugs.freepascal.org/view.php?id=11991

Anyone has hints about the cause? I will investigate this today

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Disabling scrollbars

2008-12-02 Thread Felipe Monteiro de Carvalho
On Tue, Dec 2, 2008 at 5:17 AM, Vincent Snijders
[EMAIL PROTECTED] wrote:
 Maybe AutoScroll := false; ?

That was the first thing I tryed. It doesn't work for wince and
doesn't work for carbon.

But it works in Delphi 7, so I have found a bug.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Disabling scrollbars

2008-12-02 Thread Felipe Monteiro de Carvalho
I think I have found a fix. In TScrollingWinControl.AlignControls

Index: lcl/include/scrollingwincontrol.inc
===
--- lcl/include/scrollingwincontrol.inc (revision 17661)
+++ lcl/include/scrollingwincontrol.inc (working copy)
@@ -62,7 +62,7 @@
   inherited AlignControls(AControl, ARect);
   HorzScrollBar.AutoCalcRange;
   VertScrollBar.AutoCalcRange;
-  if not AutoScroll then
+  if AutoScroll then
 UpdateScrollBars;
 end;

What do you think about the solution? It seams to work in carbon.

From my point of view the older code is wrong because updating the
scrollbars upon control realignment is a behavior of autoscroll.

It would be great if someone with greater knowledge about scrolling
could take a look at this.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Where does Lazarus store/look for global settings/options?

2008-12-02 Thread Felipe Monteiro de Carvalho
On Tue, Dec 2, 2008 at 1:29 PM, Hans-Peter Diettrich
[EMAIL PROTECTED] wrote:
 - When I want to have multiple Lazarus installations on the same
 machine

Read this:

http://wiki.lazarus.freepascal.org/Multiple_Lazarus

 - Why is a Lazarus installation so different from the installation of
 Windows applications, conforming to the Windows guidelines?

Why do you think that Lazarus doesn't conform to Windows guidelines?
Can you show a concrete guideline it is breaking?

The only thing I see is that multiple versions share the same
configuration file, but I don't know if this is against any guideline.

Maybe the default configuration directory should contain the lazarus
version in it.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Lazarus-wince screenshots

2008-12-01 Thread Felipe Monteiro de Carvalho
Hello,

I think it would be nice to build a small gallery with applications
written with lazarus-wince.

Does anyone have screenshots?

thanks,
-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Disabling scrollbars

2008-12-01 Thread Felipe Monteiro de Carvalho
Hello,

How can I disable scrollbars in a form? I have found no property to do
that. Just checking the size of the form and that it doesn't have them
at design time doesn't help, because the form has it's size altered to
fit the Windows CE device. And it also places them in Windows CE even
if the things fit the area 

thanks.
-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Where does Lazarus store/look for global settings/options?

2008-11-25 Thread Felipe Monteiro de Carvalho
On Mon, Nov 24, 2008 at 5:03 PM, Mattias Gaertner
[EMAIL PROTECTED] wrote:
 Linux, BSD, Solaris: $HOME/.lazarus

 Windows: depends on the installation. I'm not sure if GetAppConfigDir
 depends on windows version. Maybe Vincent can tell.

It depends on the Windows version and also on the Free Pascal version =)

Some time ago I published my tests here:

http://wiki.lazarus.freepascal.org/Multiplatform_Programming_Guide#Configuration_files

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] How to unset bookmarks in the editor?

2008-11-25 Thread Felipe Monteiro de Carvalho
I have also noticed this years ago and and untoggling bookmarks a good
idea, but my priority to it is as close to zero as it gets, so I never
did anything about it.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LCL with DirectFB possible ?

2008-11-20 Thread Felipe Monteiro de Carvalho
On Thu, Nov 20, 2008 at 3:25 PM, Dimitrios Chr. Ioannidis
[EMAIL PROTECTED] wrote:
   Instead of using qt4 I wanted to ask if the LCL can use DirectFB
 directly ( LCL bindings for directfb ? ).

No, there is currently no way to use LCL directly for directfb. You
need to use it with either Gtk or Qt in their versions for
framebuffer.

If you really need directfb support without any external libs, you
could implement either directly a DirectFB interface in Lazarus, or
add support for DirectFB in fpGUI and then work in the fpGUI interface
for Lazarus.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TrayIcon programs

2008-11-14 Thread Felipe Monteiro de Carvalho
2008/11/14 User [EMAIL PROTECTED]:
 It is necessary to use a form to create a program of this type? I do not
 need a form.

No, you don't need a form. Just create your TTrayIcon descendent from code:

MyTrayIcon := TTrayIcon.Create(nil);

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Performance of GTK 2 and CE

2008-11-10 Thread Felipe Monteiro de Carvalho
On Mon, Nov 10, 2008 at 6:44 PM, Graeme Geldenhuys
[EMAIL PROTECTED] wrote:
 Wow, even local GTK2 is *way* slower than GTK1.  So I really wasn't
 imagining it when I switch Lazarus IDE to GTK2.

We are aware of that. But gtk1 has a lot of other problems too, so it
isn't exactly a good choice. Just comparing speed may give a false
impression that gtk1 is a good choice.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] malformed ifdef in gtkdefines.inc

2008-11-08 Thread Felipe Monteiro de Carvalho
On Fri, Nov 7, 2008 at 9:42 PM, ik [EMAIL PROTECTED] wrote:
 Can I change the location of the define statements ?

I assume that by activating the ifdef our minimum Gtk version will go
up, and in that case no, don't change the ifdef.

On Linux you will usually have the gtk library which comes with the
system, and installing a newer pre-compiled one will usually be
impossible because that would also require updating glibc, which would
require a complex update of the entire system (to the point of being
less work formatting the / partition and installing a newer version of
your distro).

So, it's a very big hassle for linux users requiring newer versions of
anything. The constant upgrade in Qt versions is already a big problem
for me, and I wouldn't like gtk to join in.

On Windows you just distribute the .dll with your program, so it's
easy to guarantee that the correct gtk will be in place.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] malformed ifdef in gtkdefines.inc

2008-11-08 Thread Felipe Monteiro de Carvalho
On Sat, Nov 8, 2008 at 2:55 PM, ik [EMAIL PROTECTED] wrote:
 I guess, but I can't find it.
 So what can we do in order to make it work with GTK_2_8 symbol other
 then adding the -dGTK_2_8 ?

Isn't that enougth?

The default is 2.6+

If you wish to use 2.8 specific features then compile LCL with the define

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] malformed ifdef in gtkdefines.inc

2008-11-08 Thread Felipe Monteiro de Carvalho
On Sat, Nov 8, 2008 at 5:05 PM, ik [EMAIL PROTECTED] wrote:
 You are missing the point (And 2.6 is very old version of GTK. GTK
 2.14 is the latest).

So you want to increase the minimum default requirement?

I agree with 2.8 (let's wait to see if Mattias and Marc also agree),
but certainly not with the latest 2.14.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Performance of GTK 2 and CE

2008-11-07 Thread Felipe Monteiro de Carvalho
On Fri, Nov 7, 2008 at 7:00 AM, Mark Morgan Lloyd
[EMAIL PROTECTED] wrote:
 Most development was using the emulator, but when I copied it over to
 the PDA for the first time I was shocked by the performance.

So the performance was good using the emulator?

 All it is doing is drawing some standard edit boxes and buttons on the
 screen. The PDA I tried it on is an XDA Stellar.

Well, I can't think of why this kinds of things would be slow. They
shouldn't, just simple as that.

Maybe your device has very little memory, and the executable fills it.
Did you strip before moving the executable to the PDA?

The typical executable size without debug information is 1.5 MB

 Is it possible I have just got some settings wrong somewhere, or is this
 speed to be expected?

No, it's not expected for such simple applications. Also considering
this is the first report of such kind.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Performance of GTK 2 and CE

2008-11-07 Thread Felipe Monteiro de Carvalho
On Fri, Nov 7, 2008 at 12:33 PM, Henry Vermaak [EMAIL PROTECTED] wrote:
 compile with -Xs or manually run arm-wince-strip --strip-unneeded on the exe.

I don't know if it's any different, but I usually do: arm-wince-strip
--strip-all myfile.exe

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] [OT] New free IDE from Trolltech

2008-11-02 Thread Felipe Monteiro de Carvalho
On Sun, Nov 2, 2008 at 12:15 AM, Kostas Michalopoulos
[EMAIL PROTECTED] wrote:
 I think Qt's dual license says that you have to give copyrights to
 Trolltech if you want your modifications to be merged back to the Qt
 codebase. So basically anyone who worked on Qt to improve KDE or his own
 application also helped Trolltech.

Yes, otherwise they wouldn't be able to sell it. They pay most KDE
developers, so it's not really like they are improving Qt for free.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Getting started with WinCE/Windows Mobile

2008-11-01 Thread Felipe Monteiro de Carvalho
Hello,

Just follow carefully the step-by-step the instructions in the wiki:

http://wiki.lazarus.freepascal.org/Windows_CE_Interface#Using_the_stable_add-on_installer

Since 0.9.26 we have a stable wince release with good quality, so I
recommend that you use the stable add on installer.

And here are the instructions to install the emulator:

http://wiki.lazarus.freepascal.org/Windows_CE_Interface#Installing_and_Using_the_Pocket_PC_Emulator

What link didn't work from those instructions?

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] [OT] New free IDE from Trolltech

2008-11-01 Thread Felipe Monteiro de Carvalho
I think it's very interresting how things turned out. Trolltech
started as a very small company, like 2 guys in a garage, and they
started developing their UNIX GUI library, a very small niche market.
At this time, Borland was huge, with their Windows GUI library + IDE +
Toolchain, and hat a large market, was one of the most important
player in the software development area.

A lot of people said in the borland newsgroups: support Mac OS X,
support Linux, go Unicode, go 64-bits, etc. But they never listened,
instead they went .NET, feeding the competition and stoping in time.
After a huge delay they finally went unicode.

Trolltech on the other hand went cross-platform, and walked their way
up with a very good quality product.

So now, the way I see it, things are inverted. Delphi is a small niche
player with little future ahead of it, while Trolltech seams much more
important, and is even active in the smartphone and PDA areas, with
their own frame buffer library and also support for Windows CE coming
soon. I don't have their profits and market value, but I wouldn't be
surprised if Trolltech is much ahead of CodeGear nowadaws.

It seams that the crowd saying that cross-platform is important was correct.

Luckly there is Free Pascal and Lazarus, so people with Object Pascal
code bases don't need to sink with the Delphi boat.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Unit InterfaceBase

2008-10-31 Thread Felipe Monteiro de Carvalho
Anyone has any ideas about this one? I think it should just work.

Which project are you compiling? If it's a new project you need to
save it before running.

Test with a simple project.

What is your architecture? Maybe you are running a computer with
64-bits, and you installed the 32-bits Lazarus, but the compiler tryes
to build for 64-bits  a wild guess, but could be it =)

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Initializing my App

2008-10-28 Thread Felipe Monteiro de Carvalho
On Tue, Oct 28, 2008 at 4:42 PM, Valdas Jankūnas [EMAIL PROTECTED] wrote:
 // when form appears
 procedure TfrMain.FormShow(Sender: TObject);
 const
   SHOWED_FIRST_TIME: Boolean=False;

Does this work? If this was a variable this surely wouldn't work,
because it's scope would be local to the procedure.

-- 
Felipe Monteiro de Carvalho

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


Re: [Lazarus] How to mimic MWSnap's Window Information feature on X11

2008-10-26 Thread Felipe Monteiro de Carvalho
try also:

ret_children[n]^

I'm sure something like that should work in mode objfpc

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Rotated text ?

2008-10-24 Thread Felipe Monteiro de Carvalho
On Fri, Oct 24, 2008 at 9:10 AM, Michael Van Canneyt
[EMAIL PROTECTED] wrote:
 But what I meant:
 There is no property in the LCL that can be checked ?

But you asked in a binary

Did you mean at run-time?

The usual way is with ifdefs, but that would be compile time.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


  1   2   3   >