Re: [Lazarus] More testing please
Nice. Am 09.11.2015 um 13:42 schrieb Anthony Walter: > Suggestions are welcomed. Show/hide the window by single left click on the trayicon. This is easier than using the popup menu. g Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Only VCL-compatible components in LCL
Am 11.12.2014 08:54, schrieb Juha Manninen: > Michael Fuchs, can you promise to maintain your component, where ever it > is placed? Of course. Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Only VCL-compatible components in LCL
Hello, some months ago, I wrote a a time-input component, which is oriented on the TDateEdit. Another programmer gave me the idea to integrate it to the LCL. So I add a entry to the bugtracker and attach a patch. http://bugs.freepascal.org/view.php?id=27147 In the bugtracker discussion, Juha Manninen wrotes: "This proposed component from Michael Fuchs competes with TDateTimePicker and is not VCL compatible. As LCL is a VCL compatible library, it logically belongs somewhere else." It is not a problem for me, to publish this component outside the LCL. I was just surprised, that the development of the LCL has such a strong dependency to the VCL. I understand, that the LCL should have at least all the components of the VCL for compatibility reasons. But what is the problem with new components? No offense, just curiosity. Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Small Bug in TChart
Please take a look on this small bug and merge the attached patch: http://bugs.freepascal.org/view.php?id=25437 Thank you Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Alpha transparency on GTK2 widgetset
Am 04.01.2014 19:22, schrieb Kostas Michalopoulos: > I've made a patch that fixes the common cases (drawing an image with > an alpha channel with optional scaling and flipping). Wow, thank you very much for this patch. This bug was a steady annoyance. Will this patch go into the upcoming 1.2 Version? Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Remote application
Am 29.10.2012 13:01, schrieb Michael Fuchs: With the Webservice-Toolkit [1] you can easily implement this communication way. Sorry, forgot the link: http://wiki.freepascal.org/Web_Service_Toolkit Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Remote application
Am 29.10.2012 12:19, schrieb Santiago A.: Well, that would be the ideal solution, but I don't want to implement a full protocol all calls and answers. Isn't there already a protocol defined to communicate in lazaris? With the Webservice-Toolkit [1] you can easily implement this communication way. Just run an application in the server but showing the GUI (Lazarus widgets etc) in the client That is why I thought in xwindows or ExJs. I can use a RAD It is not faster to build a new Web-Application. Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Remote application
Am 29.10.2012 11:54, schrieb Santiago A.: Due people who connect remotely don't need the full application, just a small subset, I was thinking about programing a reduced version in Lazarus as frontend of the data, and show only the GUI remotely. I have a couple of ideas: Using a remote Xwindows server (Are there good Xwindows server for win32?) Making a web application using ExtJs Any hint? New ideas? Experiences? I would split the application in a client and a server part. The client contains the GUI part and communicates via SOAP/XML-RPC/JSON-RPC/BINARY protocol with the server part. The server part includes business logic and data storing. Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] What is aarre?
Am 04.09.2012 02:57, schrieb Bernd: CLAN (Comprehensive Lazarus Archive Network) Better a "Comprehensive Pascal Archive Network" :D SCNR Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Delphi post-XE3 roadmap
Am 28.08.2012 12:13, schrieb Michael Schnell: >>> Ok, but if there are reef-counted objects what is the point in not >>> using them ? >> >> I would not use them, because of my experiences with the garbage >> collector of .NET. After using it, I know that I should decide when a >> object has to be destroyed. >> > > I don't understand. While the visible effect is the same (no Free any > more), I understand that the concept of garbage collecting ("at > certain times, take a look what is not used any more") and fpc's > reference counting (delete unused stuff at once when it is clear that > nobody uses it any more) is completely different. Reference counting is one type of garbage collecting. And every type causes overhead and problems. > I understand that the reference counting works perfectly with strings, > so I don't see why it should not work with Objects (even if additional > issues might need to be taken into account and it might be appropriate > to allow for not reference counted objects, optionally). But how to know, if a reference is unused? Have a look at: http://en.wikipedia.org/wiki/Reference_counting#Dealing_with_reference_cycles It is not a problem that is caused every time. But I prefer objects which I destroy by myself, not by some magic. Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Delphi post-XE3 roadmap
Am 27.08.2012 15:15, schrieb Michael Schnell: On 08/24/2012 10:36 PM, Marco van de Voort wrote: I read that as that there will be ref counted objects, not that all objects will be ref counted per se. -- Ok, but if there are reef-counted objects what is the point in not using them ? I would not use them, because of my experiences with the garbage collector of .NET. After using it, I know that I should decide when a object has to be destroyed. Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] System unit / val-procedure
Am 30.05.2012 14:43, schrieb Engelbert Buxbaum: > Bart wrote: > Please provide code example. Add a "begin" after the "then" in line 58 and the error is gone (don't forget to remove "System" from the uses part). Then you can fix the other bugs in your code. "ReadChar := value;" in Line 82 is the next one. And by the way: the way you format your source code is not the best. hth Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Form in DLL
Am 02.05.2012 14:02, schrieb Felipe Monteiro de Carvalho: No, I think you made it the proper way. There are no objects being passed between the executable and the library and you also utilized ShowModal. I think that this approach has everything for it to work in all desktop platforms. So, there are no interference betwenn the two Application objects? Good, I will follow this way for my application. Thanks to all. Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Form in DLL
Hello, in http://bugs.freepascal.org/view.php?id=1866 is described, that forms in dlls are not working at this moment. I have coded a dll which opens a form and it works. But I am not sure if there are some hidden problems or side-effects. Before I implement this in a real application, I want to read some opinions. Here is the code for the DLL: >8>8>8>8>8>8>8>8 library server; {$mode objfpc} {$H+} {$DEFINE USE_BIN_STR} uses Classes, SysUtils, Interfaces, Windows, LCLType, Unit1, Forms; {$R *.res} procedure ShowText(AText: String); stdcall; begin try Form1 := TForm1.Create(Application); Form1.Memo1.Text := AText; Form1.ShowModal; finally FreeAndNil(Form1); end; end; exports ShowText; begin Application.Initialize; end. >8>8>8>8>8>8>8>8 The Unit1 contains a form with a TMemo on it. I can show the form and load some text into it via: >8>8>8>8>8>8>8>8 procedure DllShowText(AText: String); stdcall; external 'server.dll' name 'ShowText'; // ... DllShowText('Blafasel'); >8>8>8>8>8>8>8>8 Is this a bad idea? Thanks for any help. Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus 1.0 is branched
Am 02.04.2012 11:03, schrieb Carl Kruck: This needs a big press release! And release parties! :) Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Is it meaningful or possible to change the visibility or the properties and events in a form or datamodule, ie make the private or protected?
Am 23.03.2012 14:55, schrieb Frank Church: [...] I'd prefer to look only at the public section and say, Oh, this is what it does for the program's other modules. Whatever isn't there is not relevant to the rest of the application. I understand that it comes from a Delphi legacy as RAD tool dating from a time when the principles underlying object orientation had not properly sunk in. [...] You can already do this by changing the way you are programming. Just write a class which only publish the needed methods and properties to the outside. Don't let the Application create and control your forms, move this to your class. So, your class hides the forms, datampdules and other stuff. hth Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] German localization in Lazarus app
Am 19.12.2011 09:38, schrieb fred f: Hi guyz, I have compiled and use Lazarus with German language, but e.g. the buttons in message dialogs are still Yes, No, Cancel instead of German Ja, Nein, Abbrechen, ... What should I set up to get everything in German even exceptions, ... For the dialogs under windows, I have a little (and very ugly) hack: ->8->8->8->8->8->8-- {$IFDEF WINDOWS} {$R ekgnet.rc} // HACK: For using german descriptions in Messagebox procedure HookResourceString(rs: PResStringRec; newStr: PChar); var oldprotect: DWORD; begin VirtualProtect(rs, SizeOf(rs^), PAGE_EXECUTE_READWRITE, @oldProtect); rs^ := newStr; VirtualProtect(rs, SizeOf(rs^), oldProtect, @oldProtect); end; {$ENDIF} begin Application.Title := 'project1'; Application.Initialize; Application.CreateForm(TForm1, Form1); {$IFDEF WINDOWS} HookResourceString(@rsMbYes, 'Ja'); HookResourceString(@rsMbNo, 'Nein'); {$ENDIF} Application.Run; end. ->8->8->8->8->8->8-- hth Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How to check if a string is a valid floating-point number.
Am 25.11.2011 10:16, schrieb Kjow: Debugger Exception Notification project.exe raised exception class 'EConvertError' with message: "Cross" is an invalid float This happens only if you run it in Lazarus. In this notification window should be a checkbox for ignoring this exception type while debugging. hth Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] TForm.OnCreate and Application.MainForm.Caption
Am 14.11.2011 10:51, schrieb John Landmesser: procedure TForm1.FormCreate(Sender: TObject); begin // next line produces error Application.MainForm.Caption:= Application.Title; // next line does NOT produce an error Form1.Caption:= Application.Title; end; In FormCreate, the Form1 is not assigned to Application.MainForm. This is done after the complete creation process. //BUT(!!),you get no error with the OnShow event procedure TForm1.FormOnShow(Sender: TObject); begin // next line does NOT produces error Application.MainForm.Caption:= Application.Title; end; - the creation process is done - then Form1 is assigned to Application.MainForm - then Form1.Show is called Please take a look into TApplication.CreateForm for further informations. hth Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] 'with' is evil, isn't it?
Am 03.08.2011 15:53, schrieb Mark Morgan Lloyd: with const a = MyCompomentList[0] do begin Rectangle(0, 0, a.Width, a.Height); end; What is wrong with the existing solution, declaring a variable a and use it? var a: TComponent; ... a := MyCompomentList[0]; Rectangle(0, 0, a.Width, a.Height); And I agree: switching the with off in compiler settings would a nice feature. Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] When debugging, it open multiple copies of the same file
Am 06.06.2011 12:02, schrieb Graeme Geldenhuys: Is all this a known problem, or is it just my isolated issues with the IDE again? Have this problem here too. Lazarus 0.9.30/x86 on Windows 7/x64. regards Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Next FPC official release
Am 28.02.2011 13:53, schrieb Graeme Geldenhuys: > Michael van Canneyt told me this morning it will be FPC 2.4.4, and will > be released really soon. Before or after 0.9.30 release of Lazarus? Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Namespace
Am 09.01.2011 16:11, schrieb Marcos Douglas: > If units are namespaces, why not use them in widgets declarations, > automatic, in Lazarus? > [...] > All most developers use prefixes in yours classes and functions. > Pascal not is C and don't need this. So, why do that? Maybe the unit names should be shown in the keyword completition list. Then all namespace handling is easier. g Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] JSon stream to unicode?
Leonardo M. Ramé schrieb: > Hi, I'm receiving from a Delphi 7 app a unicode Stream (from Synapse > library) containing Unicode data and I need to show it in a Lazarus > form. How can I convert it to look correctly on screen?. > > Example: > > The string "Leonardo Ramé" is shown as "Leonardo Ram\u009". > I had the same problem and use now the following function for decoding: function DecodeUnicodeEscapes(EscapedString: String): String; var FoundPos: LongInt; HexCode: String; DecodedChars: String; begin Result := EscapedString; FoundPos := Pos('\u', Result); while (FoundPos <> 0) and (FoundPos < Length(Result) - 4) do begin HexCode := Copy(Result, FoundPos + 2, 4); DecodedChars := WideChar(Hex2Dec(HexCode)); Result := AnsiReplaceStr(Result, '\u' + HexCode, UTF8Encode(DecodedChars)); FoundPos := Pos('\u', Result); end; end; hth Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] FlipText
Am 20.10.2010 03:20, schrieb silvioprog: It's possible in Lazarus?: http://www.fliptext.org/ Of course. You need only two TMemo and a unicode font. Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] tooltip debugger shows incorrect data
Am 13.10.2010 14:31, schrieb Graeme Geldenhuys: It's just amazing that everybody known that the debugger support in Lazarus and FPC absolutely sucks! Even the crappy Kylix 3 has better debugger support. Yet those developers that have spare time will rather spend there time with more IDE eye-candy and other lovely little new IDE features, instead of getting the core functionality working and stable. Hello, how about a fundraising campaign for a good debugger support (and maybe more features). I would like to give money for some features, some other users too? We would not raise enough to pay a full time job position, but maybe we providing an incentive. greetings Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Threads in Lazarus code base
Am 21.09.2010 09:59, schrieb Michael Schnell: Usually any type of "parallel" implementation in a language or a library would limit the count of spawned tasks to a number lower than the count of CPUs available. You mean n-1 parallel tasks for n CPUs? That will be very bad on a single core machine. ;) And if I remember the usage of MAKEOPTS in make.conf is the right setting for parallel compiling tasks (CountOfCpu + 1). Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] OnMouseLeave in TDrawGrid
Hallo, I recognized that the OnMosueLeave event in TDrawGrid is not published. Are there any reasons for this? Maybe because it is same as in VCL? Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Menu dividers?
K. P. schrieb: > in Delphi I can create horizontal menu dividers by setting the caption > of a menu item to '-' - this does not seem to be supported by Lazarus - > any other way this can be done? It is supported, but only shown on runtime of your application. hth Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Structured info on class watch
Michael Schnell schrieb: > With label1^ I in fact don't see anything useful Try "label1^.FCaption". hth Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] TComboBox and OnChange
zeljko: > so if user types text it'll call OnChange() for each char like in TEdit ? Yes. > hm...I don't like it. Why not? > Does work this (cannot try at the moment) ? > i := ComboBox1.Items.Add('something'); > ComboBox1.ItemIndex := i; > OnChange() should fire on itemindex change if I remember correctly. No, this also didn't work. bye Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] TComboBox and OnChange
Am 24.03.2010 15:33, schrieb dmitry boyarintsev: On Wed, Mar 24, 2010 at 4:42 PM, Michael Fuchs wrote: I know that this behaviour is the same as in Delphi, but I think it is not consistent. Is it possible to change this? Why the behavior is not consistent? Because, if you try this with a TEdit, it works. Since your code has changed Text value you're aware of the change happened. So you can call the necessary change handling code, like: ComboBox1.Text:='something'; ComboBox1Change(ComboBox1Text); Yes, in my case I try to test the OnChange calling in a fpcunit test. The user selects a item of the dropdown list or types in text, but the test just change the .Text property. regards Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] TComboBox and OnChange
Hello, a little problem with the OnChange-Event of the TComboBox. If the user selects a item from the drop-down-list, OnChange is called. If the user places the cursor in the combobox and types a text, OnChange is also called. But if I set the text with the .Text-property [1], OnChange is NOT called. If i substitute the TComboBox with a TEdit, setting the .Text-property causes an OnChange-call. I know that this behaviour is the same as in Delphi, but I think it is not consistent. Is it possible to change this? regards Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Powered by - Logo
Graeme Geldenhuys schrieb: > 2010/1/24 Vladimir Zhirov : >> I especially like the logo I get from Graeme, if memory serves me. > > Yes, I like my design too. :-) I also use it in our products. The one > I use has a slightly different font, though I have a few variations of > fonts, but the logo is the same design. I assume it can be used by the community. Your work fits better in my website than the round version. Thanks to all. Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Powered by - Logo
Hello, are there any logos which I can use in my software to show that it is developed with Lazarus? Maybe my eyes are getting worser in my age, but I have not found anything. thx Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Pascal and Hibernate - Any one use OPF?
Lee Jenkins schrieb: > I think I started a Persistence Layer for SQLite using SQLDB components > a year or so ago but didn't finish it up since the project that I needed > it for took a different path in terms of database (ended up using FB). > > I was pretty easy to do though and I think I have the unit around > somewhere if anyone is interested. I am. :) regards Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Pascal and Hibernate - Any one use OPF?
Graeme Geldenhuys schrieb: > tiOPF might not be the easiest framework to learn, but I guess that's > one side effect you get with power and flexibility. Knowing and > understanding bit about design patterns will be beneficial in learning > tiOPF. Other than that, there are lots of documentation available and > news archives of the last 8 years. The big documentation and support part is a major part of my decision to take a closer look and use it in future for a bigger application. Are there any plans to support sqlite? For smaller desktop database applications, this would simplifiy a lot. greets Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Release 1.0, part 2
Vincent Snijders schrieb: > As Florian noted, Lazarus needs developers more than users. There are > more gtk2 issues than win32 issues, so we need to focus our martekting > (if any) more to the potential gtk2 developers (on linux) than on the > potential win32 developers. More users will also attract more developers. mfg Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Visual database design software
Graeme Geldenhuys schrieb: I have been using Dezign for Database v2.5.2 for years, but it's getting a bit dated now. I know newer versions exist, but it's rather expensive. http://opensoft.homeip.net/~graemeg/dezign_for_databases.png Has anybody created something like this using Lazarus, or even thought about creating something like this. Hello, some time ago I started working on a simple ORM-Mapper for Freepascal and SQLite. Sadly this project is miles away from a stable point. But one part will be the design process. I want to write an import method for .dia-files, extract the UML class model and generate Lazarus classes, mapping methods and database tables. Maybe a similar system would be easier to write than a visual designer? mfg Michael ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Project LPI Files and Platforms
Mehmet Erol Sanliturk schrieb: Project LPI files are created at present as project_name.LPR and project_name.LPI , and others . This structure for LPI files is making difficult to develop the same project for multiple platforms in the following sense . Assume all of the source code is in a USB stick ( or in a comon server ) with project definition files . The initial project is developed in , for example , in Windows . When the same project is tried to be compiled in Linux , its LPI file is not compatible for the Linux Lazarus installation structure . Why that? I switch daily between Windows and Linux and use the same project files (via subversion). No Problems. mfg Michael ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus