Re: [lazarus] Who Discussed Linker Slowness?

2006-02-13 Thread Felipe Monteiro de Carvalho
tlinking the executable is smaller, without, the linker is faster. There is a study about this here: http://wiki.lazarus.freepascal.org/index.php/File_size_and_smartlinking -- Felipe Monteiro de Carvalho _ To unsubscribe: mail [EMAIL PRO

Re: [lazarus] Who Discussed Linker Slowness?

2006-02-12 Thread Felipe Monteiro de Carvalho
On 2/12/06, Johannes Nohl <[EMAIL PROTECTED]> wrote: > Isn't it possible to run a compiled application without linking it > together before? Linking is the process of putting the compiler pieces together unit a executable file. So no, you cannot run unless you link. -- F

[lazarus] New Qt4 Patch

2006-02-11 Thread Felipe Monteiro de Carvalho
Hello, Please ignore the Qt4 patch I sent about 2 weeks ago and apply this one instead. Attached is a patch that changes the current Qt interface into a Qt4 interface. Also a new file qtprivate.pp must be included on lcl/interfaces/qt/ The following widgets work: TApplication, TCustomForm, T

[lazarus] Re: Gtk2 TrayIcon Patch

2006-02-06 Thread Felipe Monteiro de Carvalho
trabalho) @@ -14,6 +14,8 @@ Authors: Felipe Monteiro de Carvalho and Andrew Haines + Special thanks for: Danny Milosavljevic and the Lazarus Team + This unit calls the appropriate widgetset code. } unit wstrayicon; @@ -28,23 +30,33 @@ * Compatibility code for Delphi for Windows

[lazarus] Gtk2 TrayIcon Patch

2006-02-06 Thread Felipe Monteiro de Carvalho
(revisão 8667) +++ components/trayicon/wstrayicon.pas (cópia de trabalho) @@ -14,6 +14,8 @@ Authors: Felipe Monteiro de Carvalho and Andrew Haines + Special thanks for: Danny Milosavljevic and the Lazarus Team + This unit calls the appropriate widgetset code. } unit wstrayicon; @@ -28,23

[lazarus] Re: SVN does not compile

2006-02-06 Thread Felipe Monteiro de Carvalho
Hello, Did you download the Subversion Lazarus on top of the old one? You should create an empty directory to place the svn lazarus. Then you can compile lazarus using 'make clean all' with the DOS prompt on lazarus directory. Make sure that the make.exe executable distributed with the old l

[lazarus] Re: TrayIcon preview

2006-02-06 Thread Felipe Monteiro de Carvalho
a GtkPlug): http://wiki.lazarus.freepascal.org/index.php/Accessing_the_Interfaces_directly#TBitmap Now I only need to conect the mouse events and the PopUp Menu. thanks -- Felipe Monteiro de Carvalho _ To unsubscribe: mail

[lazarus] Re: TrayIcon preview

2006-02-06 Thread Felipe Monteiro de Carvalho
Danny Milosavljevic wrote: Can you use a GtkPlug instead of a normal window? I get the feeling that normal forms do strange extra stuff... no, scratch that, I'm _pretty sure_ that normal forms do strange extra stuff that system trays don't particularily like. for testing do something like that

[lazarus] Re: TrayIcon preview

2006-02-03 Thread Felipe Monteiro de Carvalho
A.J. Venter wrote: This may or may not be related but do an ldd on your icewm executable, icewm by default has ONLY support for xpm image formats (though there is a configure option to enable png as well). If you don´t see libpng in the libraries list, try doing a test program using only xpm

[lazarus] Re: TrayIcon preview

2006-02-02 Thread Felipe Monteiro de Carvalho
RPOSE. * * * * Authors: Felipe Monteiro de Carvalho and Andrew Haines Gtk2 specific code. } unit wsgtk2trayicon; {$ifdef FPC} {$mode delphi}{$H+} {$endif} {$PACKRECORDS C} interface uses Graphics, Classes, ExtCtrls, SysUtils, Forms, Controls, Dialogs,

[lazarus] Re: Scaling an image

2006-02-02 Thread Felipe Monteiro de Carvalho
Patrick Chevalley wrote: I think your output image miss some header or color table from the input one. The solution I use is to load the destinterface using the input bitmap. I tryed doing those modifications, but nothing changed. On the other hand if it is really something about header or col

Re: [lazarus] Re: TrayIcon preview

2006-02-02 Thread Felipe Monteiro de Carvalho
On 2/1/06, Danny Milosavljevic <[EMAIL PROTECTED]> wrote: > Don't do the Sleep(80) either (what the heck ... If that causes any > problems without, fix the root problem instead ;)) I see no difference with Sleep(80) and without. -- Felipe Mon

[lazarus] Re: TrayIcon preview

2006-02-02 Thread Felipe Monteiro de Carvalho
Felipe Monteiro de Carvalho wrote: > Removing those 2 lines and adding GtkForm.Show; on the end of the procedure makes it work YEII Well . it almost works. This is very strange, but using the basic example on Lazarus Subversion with my new gtk2 file. When I click the &q

[lazarus] Re: Interfacing between Handle property and Gtk functions

2006-02-02 Thread Felipe Monteiro de Carvalho
Vincent Snijders wrote: Maybe in the future the Form.Handle on windows will contain a pointer to a pascal windowinfo object. Maybe that is the most natural way for us to implement the win32 widget interface. It will break some code, but only for people who haven't listened to Marc ... Ok, so

[lazarus] Re: TrayIcon preview

2006-02-02 Thread Felipe Monteiro de Carvalho
Danny Milosavljevic wrote: (btw: is your version more up-to-date than what is currently in svn? - i.e. do I review old code? :)) No, not at all. thanks, Felipe _ To unsubscribe: mail [EMAIL PROTECTED] with "un

[lazarus] Re: TrayIcon preview

2006-02-02 Thread Felipe Monteiro de Carvalho
Danny Milosavljevic wrote: Hi, I just checked what is currently in lazarus svn, and there you do: GTK_WIDGET_SET_FLAGS(PGtkWidget(GtkForm.Handle),GTK_VISIBLE); GTK_WIDGET_SET_FLAGS(PGtkWidget(GtkForm.Handle),GTK_MAPPED); in TWidgetTrayIcon.Show. (wsgtk2trayicon). Don't do that! SET_FLA

[lazarus] Re: TrayIcon preview

2006-02-02 Thread Felipe Monteiro de Carvalho
Danny Milosavljevic wrote: Then it is realized (and probably mapped as well). Try xwininfo and then click on it, or xev and see if it brags about stuff it gets - like mouse clicks, ... (and check that it _is_ your window, not the desktop's :)). If I execute xwininfo and click the systray Icon,

[lazarus] Re: Interfacing between Handle property and Gtk functions

2006-02-02 Thread Felipe Monteiro de Carvalho
Marc Weustink wrote: The Handle is an abstract type and its internal meaning may change at any time. Don't rely on it being a direct map to an underlying object/structure/whatever. I don't agree. This can be very helpful, if well documented. If the internal format changes, then change the doc

[lazarus] Interfacing between Handle property and Gtk functions

2006-02-02 Thread Felipe Monteiro de Carvalho
Hello, On Windows I can use the Handle property of TBitmap and TCanvas in Windows API Function. This is very simple, as they correspond directly to a WinAPI Handle. What does the Handle property of the various objects, or at least TBitmap, TPixmap and TCanvas, represent on Gtk functions???

[lazarus] Scaling an image

2006-02-02 Thread Felipe Monteiro de Carvalho
.savetostream(memstream); memstream.position := 0; bmpEnlargedDisplay.loadfromstream(memstream); finally memstream.free; end; except Exit; end;} bmpEnlargedDisplay.SaveToFile(TempDir + 'enlarge.xpm'); end; So what can I do to fix the problem and have a resulting ima

[lazarus] Re: "tooltip expression evaluation" feature?

2006-01-31 Thread Felipe Monteiro de Carvalho
Mattias Gaertner wrote: I enabled the option (Auto Tool Tip Symbol) and fixed showing the hint when the Expression hint is on, but the tool tips are off. Now (Since last revision?), it works =) thanks, Felipe _ To unsubscrib

[lazarus] Re: "tooltip expression evaluation" feature?

2006-01-31 Thread Felipe Monteiro de Carvalho
Graeme Geldenhuys wrote: My Lazarus works exactly like yours! Both on a Win2000 and WinXP OS. Now at least I don't feel alone... ;-) No tooltip here also. Windows XP and Mandriva Linux. Latest subversion on both. The debugger stops at the breakpoint, but the hint doesn´t appear. On View >>

[lazarus] Re: TrayIcon preview

2006-01-31 Thread Felipe Monteiro de Carvalho
I added gdk2x unit to wsgtk2trayicon file, so now the Gtk2 file is exactly like Gtk1 file, except for the uses clause. Specifically the following lines are now just like Gtk1 file: procedure TWidgetTrayIcon.CreateForm(id: Integer); begin . fDisplay := GDK_WINDOW_XDISPLAY(Pointer(PGtkWi

[lazarus] Crash installing package gdk2x11.lpk

2006-01-31 Thread Felipe Monteiro de Carvalho
1 - Did an "svn update" on my working copy of Lazarus under Mandriva Linux 2006 2 - Opened the package: lazarus/components/opengl/gtk2x11/gdk2x11.lpk 3 - Compiled the Package 4 - Installed the package (Gtk 1) 5 - Crash, and now Lazarus crashes on startup Should I submit a bug report? Here a

Re: [lazarus] Debugger causing problem in Windows

2006-01-29 Thread Felipe Monteiro de Carvalho
version, but rather with GDB version. -- Felipe Monteiro de Carvalho _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

[lazarus] Re: Qt4 Interface

2006-01-26 Thread Felipe Monteiro de Carvalho
Mattias Gaertner wrote: Where are those files available? I have them both here, but they do not fit into the attachment restrictions of this mailling list, so how can I send them? Felipe _ To unsubscribe: mail [EMAIL PROTEC

[lazarus] What must I implement to add TBitmap support on Qt?

2006-01-26 Thread Felipe Monteiro de Carvalho
This is a question for those that understand very well how lcl interfaces work. Trying to compile an application that uses TBitmap with the Qt widget I get this message: TApplication.HandleException Failed to get raw image description from device What must I implement (and where) to add T

[lazarus] Qt4 Interface

2006-01-26 Thread Felipe Monteiro de Carvalho
Hello, Attached is a patch that changes the current Qt interface into a Qt4 interface. The following widgets work: TApplication, TCustomForm, TCustomButton, TCustomMemo It uses Jen Dean qt4 wrapper, which is basically a 800kb .so file that needs to be on the library path for lcl-qt4 progra

Re: [lazarus] Re: Re-add Qt on the widgetset list

2006-01-24 Thread Felipe Monteiro de Carvalho
I would like to compare the various existing bindings. Also, what do you people think about using Qt3 or Qt4? Which one should be preferred? -- Felipe Monteiro de Carvalho _ To unsubscribe: mail [EMAIL PROTECTED] with

[lazarus] Re: TrayIcon preview

2006-01-24 Thread Felipe Monteiro de Carvalho
s/trayicon/trayicon.pas(revision 8612) +++ components/trayicon/trayicon.pas(working copy) @@ -14,7 +14,7 @@ Authors: Felipe Monteiro de Carvalho and Andrew Haines - This unit contains the SystrayIcon object. + This unit contains the SystrayIcon object and the TTrayIcon visual

Re: [lazarus] TrayIcon preview

2006-01-24 Thread Felipe Monteiro de Carvalho
n(fScreen); // and it's number But the Icon doesn´t show (I have no idea why). Any help is appreciated =) thanks, -- Felipe Monteiro de Carvalho _ To unsubscribe: mail [EMAIL PROTECTED] with &quo

Re: [lazarus] TrayIcon preview

2006-01-19 Thread Felipe Monteiro de Carvalho
/TrayIcon thanks, -- Felipe Monteiro de Carvalho TrayIcon.winzip Description: Binary data

Re: [lazarus] win32 program icon

2006-01-19 Thread Felipe Monteiro de Carvalho
} directive on linux was added to the compiler. I don´t know how this helps, however. -- Felipe Monteiro de Carvalho _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as

Re: [lazarus] Lazarus and MySQL

2006-01-19 Thread Felipe Monteiro de Carvalho
On 1/19/06, John Meyer <[EMAIL PROTECTED]> wrote: > Thanks guys, figured it out finally. > BTW, is there an easy way to make a connection to a MySQL server? There is some information on the Wiki: http://wiki.lazarus.freepascal.org/index.php/Lazarus_Database_Tutorial -- Felipe

Re: [lazarus] gtk+-develop problems

2006-01-19 Thread Felipe Monteiro de Carvalho
This website is a really good tool for finding packages: http://rpm.pbone.net/ You can go into the advanced mode, and choose for it to only show SuSE packages. Then type the dependencies that you need. -- Felipe Monteiro de Carvalho

[lazarus] Re: TrayIcon preview

2006-01-18 Thread Felipe Monteiro de Carvalho
Christian Ulrich wrote: 1. tooltips are mostly known as hints in lazarus/delphi so maybe you should rename the 2 properties Renamed, will be available when I send the new files 2. i think this component is visual better useable so its easyer to generate the events ... We can have both a vis

Re: [lazarus] TrayIcon preview

2006-01-18 Thread Felipe Monteiro de Carvalho
con class name on trayicon.pas to give room for a TTrayIcon class on the package, and avoid confusion. For now you can use the SystrayIcon object. -- Felipe Monteiro de Carvalho _ To unsubscribe: mail [EMAIL PROTECTED] with

Re: [lazarus] TrayIcon preview

2006-01-17 Thread Felipe Monteiro de Carvalho
On 1/17/06, A.J. Venter <[EMAIL PROTECTED]> wrote: > 2) Is there a README or a short howto available ? Documentation is being constructed here: http://wiki.lazarus.freepascal.org/index.php/TrayIcon -- Felipe Monteiro de

[lazarus] Re: TrayIcon preview

2006-01-17 Thread Felipe Monteiro de Carvalho
Hello, New version attached. Please apply that. Adds copyright notices + many corrections + more coments + various improvements. Works as I would like on Win32 and Gtk1 and gnome. The only thing that does not work is the gtk2 interface. It would be very nice if someone can get the Gtk2 ver

[lazarus] Re: TrayIcon preview

2006-01-17 Thread Felipe Monteiro de Carvalho
Mattias Gaertner wrote: I don't see, what registering a class has to do with. Maybe your initialization section is too automatic? Systray Icons don't really exist on Mac OS X. What exists is a Taskbar Icon witch behaves somewhat like a System Tray Icon. i.e. he can be drawn at will, and respo

[lazarus] Re: TrayIcon preview

2006-01-17 Thread Felipe Monteiro de Carvalho
of. You can't just register TTrayIcon because of Mac OS X future support. The visual component must be a wrapper around the SystrayIcon object. -- Felipe Monteiro de Carvalho _ To unsubscribe: mail [EMAIL PROTECTED] with

[lazarus] TrayIcon preview

2006-01-16 Thread Felipe Monteiro de Carvalho
The test program works on Linux (tested on Gnome, KDE, IceWM) and Windows (tested on XP). -- Felipe Monteiro de Carvalho TrayIcon.winzip Description: Binary data

[lazarus] Re: Canvas handling obscurity

2006-01-16 Thread Felipe Monteiro de Carvalho
Martin Smat wrote: And what about methods: TCanvas.RadialPie and TCanvas.Chord? Can anybody verify what are the parameters in Delphi? procedure Chord(X1, Y1, X2, Y2, X3, Y3, X4, Y4: Integer); I could not find RadialPie method on Delphi help files. There is Pie however: procedure Pie(X1, Y1,

[lazarus] Re: compare

2006-01-16 Thread Felipe Monteiro de Carvalho
Michael Van Canneyt wrote: I beg to differ. I wouldn't install a linux which doesn't have KDE, unless it's a server without X or GUI at all. Well, you wouldn't, but this doesn't change the fact that Gtk is more necessary for a desktop distro to work. KDE has about 55% of the desktops, but wh

[lazarus] Re: compare

2006-01-16 Thread Felipe Monteiro de Carvalho
Simeon Mitev wrote: What do you mean *native* when you are talking about Linux? On Linux you can compile for: Gtk, Gtk2 or Gnome. All work without any code change for my magnifying tool. I would consider Gtk and Gtk2 the most "native" widgets for Linux, as they are present on any distro that

[lazarus] Re: compare

2006-01-16 Thread Felipe Monteiro de Carvalho
SIX-S wrote: I have just found your product Lazarus. I have used Delphi several years ago, but stopped using it. The cost of the advanced features such as client server was the reason. Is Lazarus something that can be used or will it have limitations? Jim Well, I use it and like it very muc

[lazarus] Re: Lazarus on MacOSX

2006-01-16 Thread Felipe Monteiro de Carvalho
hello, What about Application, Screen and Mouse? Are those objects supported? And what if my application contains code to create a TPopUpMenu, but it never shows it on screen (it is only used on other platforms for now)? Will this work or I must remove all TPopUpMenu references to compile for

[lazarus] Re: Error: Failed to create bitmap

2006-01-12 Thread Felipe Monteiro de Carvalho
John Jewitt wrote: Build All on the example\imageviewer\imgview. When I double click the imgview.exe in win explorer I get the app. but also a dos box. I can confirm that the executable created by the example\imageviewer\imgview project does have a console window attached on windows 98 using

[lazarus] Re: Error: Failed to create bitmap

2006-01-12 Thread Felipe Monteiro de Carvalho
John Jewitt wrote: I've just installed Lazarus on a Win98 box. Witch Lazarus version? afaik, doesn't the {$APPTYPE Console} directive make an app. a non-gui app.? I'm not sure if APPTYPE Console prohibits GUI, but I do know that it shows a dos box for the application. I means that you shou

[lazarus] Re: Error: Failed to create bitmap

2006-01-12 Thread Felipe Monteiro de Carvalho
John Jewitt wrote: Quick question, why do I see a 'dos-box' when running a lazarus built app. on win98? Did you include {$APPTYPE Console} ? I don't experience this on Windows 98. Felipe _ To unsubscribe: mail [EMAIL PROTECT

[lazarus] Re: -dPassWin32MessagesToLCL and WndProc

2006-01-11 Thread Felipe Monteiro de Carvalho
Mattias Gaertner wrote: Then there should be a win32 widgetset function: TWin32Widgetset.AddCustomMessage or something like that. This way it is clear, that the code is not portable. Sounds a good solution. Much better then recompiling the LCL! I hope eventually someone volunteers to start

[lazarus] Re: -dPassWin32MessagesToLCL and WndProc

2006-01-11 Thread Felipe Monteiro de Carvalho
Mattias Gaertner wrote: What are other ways of sending custom messages? To whom? To a Window. If I understand it right, the WM_USER messages are not understood by the winapi. So, the only purpose of WM_USER messages is interprocess communication, isn't it? Michael VC has implement some plat

[lazarus] Re: -dPassWin32MessagesToLCL and WndProc

2006-01-11 Thread Felipe Monteiro de Carvalho
Vincent Snijders escreveu: > I don't I am very rational now, but maybe I just don't want this code in > my LCL (or win32 interface), because I fear it will open a can of worms. > I cannot really explain it, it is just a feeling. Therefore I will be > happy with a define, at least a define to tur

[lazarus] Re: -dPassWin32MessagesToLCL and WndProc

2006-01-11 Thread Felipe Monteiro de Carvalho
Vincent Snijders wrote: * Does not affect multiplatform capabilities because windows will never send a message >= WM_USER unless the programmer has created code witch tells windows to send such messages. Even if Windows starts sending messages for no reason, I still don't see how this would af

[lazarus] -dPassWin32MessagesToLCL and WndProc

2006-01-11 Thread Felipe Monteiro de Carvalho
Hello, This has being discussed before, but was non-conclusive. A conditional compile was added around code witch forwards all messages >= WM_USER to the LCL (and thus WndProc) on Win32 Widgetset. I see many advantages on not having the conditional compile, but I can't see any advantages of

[lazarus] Re: Re-add Qt on the widgetset list

2006-01-10 Thread Felipe Monteiro de Carvalho
Den Jean wrote: Qtopia LCL: alot of work for little benefit. A form designer for a small screen ? But LCL Gtk can be used for the X-ROMS (if you get gtk-arm compiled) The LCL is much more then a form designer. I am really interrested in using the most basic classes such as TApplication, TForm,

[lazarus] Re: Cannot Draw Transparent Bitmap

2006-01-10 Thread Felipe Monteiro de Carvalho
Mattias Gaertner wrote: First I load a bitmap, witch has everything on Fuchsia color as transparent. if (not LoadBitmap(bmpTopLeft, 0, MAKEINTRESOURCE(IDB_TOPLEFT), hInstance)) then Exit; Looks very windows specific. What does it do? Loads a bitmap from a internal resource =) It is arou

[lazarus] Re: Re-add Qt on the widgetset list

2006-01-10 Thread Felipe Monteiro de Carvalho
Andrew Haines wrote: As far as I know the original approach for the qt widgetset was to write a supporting .so in c++ that exported the functions in a plain c compatible way so that pascal could use qt through this. I think in the lcl/interfaces/qt there is the source for the lzqt. (which I as

[lazarus] Re: Re-add Qt on the widgetset list

2006-01-09 Thread Felipe Monteiro de Carvalho
Den Jean wrote: If despite the license issue someone would be interested in a Qt LCL, I would like to help with the Qt part. Here are the results of some FPC Qt4 tests: http://users.pandora.be/Jan.Van.hijfte/qt4.html kind regards, I am interrested in a Qt LCL, and even more on a Qtop

[lazarus] Re: Help with DLL (using pchar, etc.)

2005-12-30 Thread Felipe Monteiro de Carvalho
Tony Pelton wrote: not to stick my nose in, but what convention makes this a "usually" ? i'm not a 'C' programmer by any stretch, but i don't _think_ functions that have a return type of "char*" are that unusual are they ? No. ImageMagick, a c library, makes extensive use of functions returnin

[lazarus] Re: Look and feel of Lazarus

2005-12-30 Thread Felipe Monteiro de Carvalho
[EMAIL PROTECTED] wrote: Feel free to comment, but please accept that this is just a concept. So It has no use to discuss the details of the displayd forms themselves unless it would impact the general look and feel. Ultimately each form in itself will be subject to discussion to fit the purpose.

[lazarus] Re: Compiling Lazarus for Gnome

2005-12-29 Thread Felipe Monteiro de Carvalho
Graeme Geldenhuys wrote: Does Gtk1 support themes and TrueType fonts? I just tested on my GNOME. I changed the gnome theme, and the lazarus IDE built against Gtk1 changed it's appearance acording to the theme, so I guess it does support themes. It would be nice if you could take some screen

[lazarus] Re: Re-add Qt on the widgetset list

2005-12-29 Thread Felipe Monteiro de Carvalho
Hello, First I thought about readding qt to the widgetset list ... but then I changed my mind I thought about just compiling the LCL for Qt and take a look. But I forgot to change the subject ^^ _ To unsubscribe: mail [EMAIL

[lazarus] Re-add Qt on the widgetset list

2005-12-29 Thread Felipe Monteiro de Carvalho
Hello, How can I recompile the LCL for Qt? I was curious about the development stage of this interface. thanks, Felipe _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at h

[lazarus] Re: Compiling Lazarus for Gnome

2005-12-29 Thread Felipe Monteiro de Carvalho
Graeme Geldenhuys wrote: Sorry, but I don't seem to understand. What will this do if I only compile the LCL? Does your Lazarus still run and look like a Gtk1 app? At the moment my Lazarus is compiled with Gtk1 look. It doesn't blend in very nicely with my Gnome desktop, but at least it is sta

[lazarus] Re: Compiling Lazarus for Gnome

2005-12-28 Thread Felipe Monteiro de Carvalho
Graeme Geldenhuys wrote: I keep getting this error while linking: /usr/bin/ld: cannot find -ldb1 My bad! I do have db1-devel installed ^^ It must be this package that you need. _ To unsubscribe: mail [EMAIL PROTECTED] with

[lazarus] Re: Compiling Lazarus for Gnome

2005-12-28 Thread Felipe Monteiro de Carvalho
Graeme Geldenhuys wrote: I keep getting this error while linking: /usr/bin/ld: cannot find -ldb1 I have the package db1-1.85-10mdk in my computer if it helps. I don't have the corresponding devel package, but I got gnome to work anyway. Felipe

[lazarus] Re: Compiling Lazarus for Gnome

2005-12-28 Thread Felipe Monteiro de Carvalho
Graeme Geldenhuys wrote: I can compile for Gtk and Gtk2 (this one is very buggy and keeps crashing) just fine, but no luck with Gnome. You don't need to compile Lazarus itself. Compile only the LCL. Go on "Tools" --> "Configure Build Lazarus", set the LCL to clean+build and everything else to

[lazarus] Re: AW: Windows CE interface

2005-12-23 Thread Felipe Monteiro de Carvalho
Christian U. wrote: Iam working on it, but havend some time lately The Widgetset in svn is clean at time I have a little bit but nothing workable at time Can you give me some hints about what is working what isn´t? Can´t we copy a lot of things from the Windows widgetset? Many things should

[lazarus] Windows CE interface

2005-12-22 Thread Felipe Monteiro de Carvalho
Hello, Who is working on the Windows CE widgetset? Sounds very interesting. If I recompile my LCL for Windows CE will the resulting executable work on Windows CE for i386?? I tryed to recompile the LCL for wince, but I got some error messages: C:\Programas\lazarus\lcl\interfaces\wince\wince

Re: [lazarus] Re: How to copy/move files

2005-12-21 Thread Felipe Monteiro de Carvalho
unction somewhere in the RTL, but I couldn't remember it was in the unit fileutil. -- Felipe Monteiro de Carvalho _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"

Re: [lazarus] Re: How to copy/move files

2005-12-21 Thread Felipe Monteiro de Carvalho
> File names are from StringGrid.Cells[x,y], thus, 'normal' strings. > I'll try ForceDirectories, and I'll report back. > Thanks You cannot use ansistrings with Windows API functions. You need to cast them to a PChar. Try PChar( ) -

Re: [lazarus] Re: How to copy/move files

2005-12-21 Thread Felipe Monteiro de Carvalho
in Dir exists. It returns True if Dir already existed or was created succesfully. If it failed to create any of the parts, False is returned. -- Felipe Monteiro de Carvalho _ To unsubscribe: mail [EMAIL P

[lazarus] Re: How to copy/move files

2005-12-21 Thread Felipe Monteiro de Carvalho
bobby wrote: hi to all, I'm making a program to sort a collection of specific files. Now, is there a crossplatform function to move/copy/rename files? If not, how can I do it for Win32? For a non-multiplatform app you can use the Windows API call CopyFile. From MSDN: The CopyFile function co

[lazarus] Re: Installing lazarus on FC4

2005-12-20 Thread Felipe Monteiro de Carvalho
You can get RPM packages here: http://rpm.pbone.net/ Or type "rpm search" on google to see other links Felipe _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.la

[lazarus] OnKeyDown not working

2005-12-18 Thread Felipe Monteiro de Carvalho
Hello, I´m trying to have my app respond to key pressing, so I set an event for the OnKeyDown event of the form. The code works very well on Delphi. Does not work on Lazarus. Something else, possibly related, is that on the latest snapshot 18 dezember, the Code Explorer does not respond to k

[lazarus] Re: Snapshot and latest subversion very unstable

2005-12-18 Thread Felipe Monteiro de Carvalho
Mattias Gaertner wrote: Micha disabled the code. It is still available if you compile with -dUseAsyncProcess. but why would this interfere with win32? Wasn´t that gtk only? Felipe _ To unsubscribe: mail [EMAIL PROTECTED] with

[lazarus] Re: Snapshot and latest subversion very unstable

2005-12-18 Thread Felipe Monteiro de Carvalho
Mattias Gaertner wrote: The problem is introduced in the revisions 8256 and 8257. Thanks. Do you mean 8255 works and 8257 not? Then it is the addition of synchronize support for the gtk interface. The 18 december snapshot no longer presents the crashes on win32 (at least on very basic tests

[lazarus] Re: How c++ bindings work

2005-12-17 Thread Felipe Monteiro de Carvalho
dannym wrote: The systray icon stuff is standardized, but (older?) kde deviates from it horribly. Just the amount of workarounds that we had to put in xfce to make kde systray icons work scares me. Do not do that. I think the current KDE must be even worse. On older versions there still was a

[lazarus] Re: How c++ bindings work

2005-12-17 Thread Felipe Monteiro de Carvalho
Here is how I solved the problem: 1 - added @ 2 - Changed the procedure to: // Temp ErrorHandler function TempX11ErrorHandler(Display: XLib.PDisplay; ErrorEv:PXErrorEvent): longint;cdecl; begin //WriteLn('Error: ' + IntToStr(ErrorEv^.error_code)); end; notice the XLib.PDisplay I think I wil

[lazarus] Re: How c++ bindings work

2005-12-17 Thread Felipe Monteiro de Carvalho
Mattias Gaertner wrote: Where are the two? XLib and gdkprivate. on XLib: PDisplay = ^TDisplay; on gdkprivate: PDisplay = pointer; conflicting declaration. Felipe _ To unsubscribe: mail [EMAIL PROTECTED] with

[lazarus] Re: How c++ bindings work

2005-12-17 Thread Felipe Monteiro de Carvalho
The older issue is fixed ... now lot's of access violations and IDE crashing when executing this code: procedure TForm1.Button2Click(Sender: TObject); var trayicon: TGtkTrayIcon; begin trayicon := TGtkTrayIcon.Create(Self); try finally trayicon.Free; end; end; Looks like I will ha

[lazarus] Re: How c++ bindings work

2005-12-17 Thread Felipe Monteiro de Carvalho
Michalis Kamburelis wrote: Try old_error := XSetErrorHandler(@TempX11ErrorHandler); (i.e. add "@" there). AFAIK during 2.0.1 some changes were made to require "@" in more situations when passing pointer to procedure. This is how it was originaly, I edited to remove the @. Here is the error

[lazarus] Re: How c++ bindings work

2005-12-17 Thread Felipe Monteiro de Carvalho
Andrew Haines wrote: This link might be helpful as well ;) http://cvs.sourceforge.net/viewcvs.py/lazarus-ccr/gtktrayicon/ I added gtktrayicon.pas to my project and tryed to compile it. I get an error message (actually I get many errors, but this I could not fix): procedure TGtkTrayIcon.Se

[lazarus] Re: How c++ bindings work

2005-12-16 Thread Felipe Monteiro de Carvalho
Andrew Haines wrote: This link might be helpful as well ;) http://cvs.sourceforge.net/viewcvs.py/lazarus-ccr/gtktrayicon/ Uau! This could have saved me many hours... I cannot see this package on lazarus-crr for download. http://sourceforge.net/project/showfiles.php?group_id=92177 The only

[lazarus] How c++ bindings work

2005-12-16 Thread Felipe Monteiro de Carvalho
Hi, I'm trying to understand the c++ bindings for KDE API to create a systray icon on KDE. I find some .h files defining some classes, but no information about where the classes are implemented, and worse, no information about how they connect to KDE. I mean, I know no other method for a bin

[lazarus] Re: Snapshot and latest subversion very unstable

2005-12-16 Thread Felipe Monteiro de Carvalho
> Do you mean 8255 works and 8257 not? Then it is the addition of synchronize support for the gtk interface. The errors also appear on gtk, but are much, much worse on Windows. start Lazarus and then close without clicking anything it is enougth on the latest snapshot to raise 2 exception win

[lazarus] Re: Snapshot and latest subversion very unstable

2005-12-16 Thread Felipe Monteiro de Carvalho
Mattias Gaertner wrote: No. The current 2.0.3 does not work. For example: The unit 'gl' calls FreeLibrary(0). Formerly this worked, now it crashes. Ok, to clear where the problem is, either FPC or the IDE. Does it work with 2.0.0??? If it does not work with 2.0.0 it is clearly a problem on t

[lazarus] Re: Can't rebuild lazarus

2005-12-16 Thread Felipe Monteiro de Carvalho
Andrea Mauri wrote: I also tried to rebuild lazarus but it gives me 1511 errors during make. I tried /make clean all /and it gives me 1511 error. A lot of command syntax error. Do you have Delphi installed? Looks like you are using Borland Make to compile Lazarus. Type just "make" on the comm

[lazarus] Snapshot and latest subversion very unstable

2005-12-15 Thread Felipe Monteiro de Carvalho
Hello, The latest snapshot for win32 and the latest subversion for Linux seam to be the definition of what I would call unstable. I installed the latest snapshot on windows on a clean directory. Clicked the desktop icon. tryed to load a project. crash! and without any message boxes indicatin

Re: [lazarus] Is the Synchronize threads broken at the moment?

2005-12-15 Thread Felipe Monteiro de Carvalho
Hi, I think you may want to use {$MODE Delphi} in the beginning of your program. It activates delphi compatibility mode and ensures delphi sintax compiles. To keep compatible with Delphi I usually write: unit myunit; {$IFDEF FPC} {$MODE Delphi} {$ENDIF} . -- Felipe Monteiro de Carvalho

[lazarus] Re: Code Explorer enhancement

2005-12-14 Thread Felipe Monteiro de Carvalho
Arí Ricardo Ody wrote: You(eu quero dizer voces, Felipe, não tu especificamente, tá?) may corrupt the language as you want, but please allow me use the environment as it is known till today. I suggest you adopt abbreviations for the words you pretend corrupt(f for function, p for procedure and

[lazarus] Re: Does WndProc work?

2005-12-14 Thread Felipe Monteiro de Carvalho
Vincent Snijders wrote: If the $IFDEF is already in place, then you could subclass the window proc yourself too using Windows.SetWindow(Self.Handle, GWL_WNDPROC, @MyWindowProc) The use of SetWindowLong caused lot´s of crashes on my app, so I went back to TForm.WndProc. I speak once more for

[lazarus] Re: Code Explorer enhancement

2005-12-14 Thread Felipe Monteiro de Carvalho
> I don't know if I understand in a correctr form, but I would like to > ask if FPC/Lazarus haven't any commitment with the language pascal > syntax. You do realise they are talking only about the **code explorer**? That little window to easely reach for procecures / functions in implementation

[lazarus] Re: Trying to use LCLIntf.StretchBlt on gtk and possible patch for gtk interface

2005-12-14 Thread Felipe Monteiro de Carvalho
Now with backtrace (sorry, never used gdb on the command line before ^^ good to learn): (gdb) break fpc_raiseexception Breakpoint 1 at 0x805d8ee (gdb) run --g-fatal-warnings Starting program: /home/felipe/Programação/Lente/magnifier --g-fatal-warnings Reading symbols from shared object read fro

[lazarus] Re: Trying to use LCLIntf.StretchBlt on gtk and possible patch for gtk interface

2005-12-14 Thread Felipe Monteiro de Carvalho
Michael Van Canneyt wrote: br FPC_RAISEEXCEPTION Didn't change much the output: (gdb) break fpc_raiseexception Breakpoint 1 at 0x805d8ee (gdb) run --g-fatal-warnings Starting program: /home/felipe/Programação/Lente/magnifier --g-fatal-warnings Reading symbols from shared object read from targ

Re: [lazarus] Trying to use LCLIntf.StretchBlt on gtk and possible patch for gtk interface

2005-12-13 Thread Felipe Monteiro de Carvalho
Hello, > Run with --g-fatal-warnings in gdb. Then you will get the exact point, where > the gtk gets the wrong parameters. > This can help us to track down the bug. Where do I put this parameter? I tryed "gdb --g-fatal-warnings project_name", but this doesn't work. I also could not find --g or si

[lazarus] Re: Trying to use LCLIntf.StretchBlt on gtk and possible patch for gtk interface

2005-12-13 Thread Felipe Monteiro de Carvalho
(second post) Andrew Haines wrote: use: gdb project_name and then at the (gdb) prompt: run --g-fatal-warnings (gdb) run --g-fatal-warnings Starting program: /home/felipe/Programação/Lente/magnifier --g-fatal-warnings Reading symbols from shared object read from target memory...done. Loaded

[lazarus] Re: Trying to use LCLIntf.StretchBlt on gtk and possible patch for gtk interface

2005-12-13 Thread Felipe Monteiro de Carvalho
Andrew Haines wrote: and then at the (gdb) prompt: run --g-fatal-warnings (gdb) run --g-fatal-warnings Starting program: /home/felipe/Programação/Lente/magnifier --g-fatal-warnings Reading symbols from shared object read from target memory...done. Loaded system supplied DSO at 0xe000 Deta

[lazarus] Re: behavior of project dialog forms

2005-12-13 Thread Felipe Monteiro de Carvalho
barko wrote: The project dialog forms are resizable (lazarus on linux, gtk, latest from svn). This is not a good behavior, i think :) Remember that Linux is a system with many differences from distribution to distribution. Many fonts are not present at some distros, so the displayed text migh

<    5   6   7   8   9   10   11   12   >