Re: [Lazarus] HTML Help for LCL
I see it works now in Rev. 40244 Thank you Mattias! -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] HTML Help for LCL
Hi HTML Help for LCL still does not work (It works for RTL and FCL). There is an old bug report about this problem: http://bugs.freepascal.org/view.php?id=19817 Are there any news about this? Helpful hints how to make it work? Thank you. Theo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Tagging 0.9.30
In NASA's style, the answer is GO. Roger. We agree wholeheartedly. And while you're starting on that, I'll just read these notes on P22. Call P22 possible program alarm 526, range greater than 400 nautical miles, and then use the P22 as described on PGNS-20. Take option 1 in Noun 06, and use the no-update mode. The rendezvous radar will lock on at about 25 degrees elevation above the horizon. If 503 alarm occurs, designate Fail. Key a Proceed and allow the rendezvous radar to search for the CSM. And place the range altitude monitor switch in altitude/altitude rate to prevent the tape meter from driving into the stops. And press on. Roger. I think I have that. Columbia, Columbia, Houston. Over. Houston, Columbia. Roger, Columbia. We'd like a Cryo(genics tanks) stir - all four tanks - and the standard 1 minute. Over. In work. ... :-) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Does Lazarus support a complete Unicode Component Library?
Florian Klaempfl schrieb: ObjFPC used AnsiString for a String from the beginning ... You mean ShortString, right? http://www.freepascal.org/docs-html/prog/progse75.html#x274-289000D.4 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Does Lazarus support a complete Unicode Component Library?
Michael Schnell hat geschrieben: On 02/18/2011 11:40 AM, Mattias Gaertner wrote: / // Otherwise this thread will go endless without a solution. / //This is true with any Unicode discussion, ...even more so if you are involved in that discussion s.c.n.r :-) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] GTK3 is out
or install fedora rawhide on some virtual machine :) OK, done: http://www.theo.ch/lazarus/gtk3k.png What's next? ;-) (Just joking, not enough time atm.) Cheers Theo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] GTK3 is out
or install fedora rawhide on some virtual machine :) I've tried but I'm getting nowhere. Can't even compile the simplest gtk3 app using gcc on this system. I have all of these symptoms: https://bugzilla.redhat.com/show_bug.cgi?id=651328 Let's wait. Theo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Old OpenSUSE 10.2 and Laz 29544
Maybe wait till the new version 10.4 before updating. You probably mean 11.4. Yes, I think I'll install this version when it's out. Thanks Theo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] GTK3 is out
I was trying to build this version from sources today, but gave up at the requirement of Xinput2. This would probably need a complete X11 and whatnot upgrade. Regards Theo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Old OpenSUSE 10.2 and Laz 29544
I have an OpenSUSE 10.2 where I succeded to run Lazarus 0.9.31 up to now. After upgrading to 29544, I'm getting this error when trying to build a project /usr/bin/ld: cannot find -lgdk_pixbuf-2.0 Strange thing is, the IDE has no problems to build itself and is obviously not missing libgdk_pixbuf-2.0 I know I should probably upgrade this Linux Installation, otoh, if a simple solution exists... Does anybody know what's wrong here? Thank you Theo Lazarus 0.9.31 r29544 FPC 2.4.2 i386-linux-gtk 2 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Old OpenSUSE 10.2 and Laz 29544
Mark Morgan Lloyd wrote: Does ls -l /usr/lib/libgdk_pixbuf-2.0* tell you anything useful? No, this lib doesn't seem to be installed here, but this was no problem so far. I haven't even changed the compiler (*2.4.2 [2010/11/22] for i386) I have only upgraded Lazarus from one of the first 0.9.31 versions to *0.9.31 r29544, and now the linker wants libgdk_pixbuf-2.0. As I said, this is when I try to build even the simplest project, the IDE itself builds and runs without complaining about this lib, so it is not strictly necessary it seems. Thank you Theo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Old OpenSUSE 10.2 and Laz 29544
I was wrong. The libs are there, but they are in /opt/gnome/lib on this system. For a reason, the latest version doesn't find them like the versions before. If I add -Fl/opt/gnome/lib, everything is fine. Thank you Theo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Old OpenSUSE 10.2 and Laz 29544
Ah, I thought this was obsolete. I added it to the LCL. Thank you, problem solved. Theo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] CharMapDialog and more...
Hello I've encountered a strange behaviour after installing today's Lazarus snapshot on my Win2k in VirtualBox. When I select Edit - Insert from Character Map after starting the IDE, nothing happens. After a while, I found out that it's showing up only after I've once clicked in the editor window. If this is intended, the Menu Item should be disabled in this case. But before that, I've tried to run the IDE unter GDB to see if there is some error message. I have no idea if this is anyhow related, but the IDE didn't start up completely. A GDB backtrace showed this.: (gdb) break fpc_raiseexception Breakpoint 1 at 0x40c1c6 (gdb) run Starting program: C:\lazarus/lazarus.exe [New Thread 1220.0x140] warning: Can not parse XML library list; XML support was disabled at compile tim e [New Thread 1220.0x300] Breakpoint 1, 0x0040c1c6 in fpc_raiseexception () (gdb) bt #0 0x0040c1c6 in fpc_raiseexception () #1 0x004715f0 in CLASSES_TSTREAM_$__READBUFFER$formal$LONGINT () #2 0x08ceb810 in ?? () #3 0x00da5610 in DEBUGINFO_PROJECTICON () #4 0x00955113 in GROUPRESOURCE_TGROUPRESOURCE_$__FINDSUBRESOURCES () #5 0x009551d9 in GROUPRESOURCE_TGROUPRESOURCE_$__CHECKBUILDITEMSTREAM () #6 0x0095521f in GROUPRESOURCE_TGROUPRESOURCE_$__GETITEMDATA$$TSTREAM () #7 0x00da39f4 in RESSTR_STRINGTABLERESOURCE_END () #8 0x0095989e in TPROJECTICON__UPDATERESOURCES (ARESOURCES=0x87e1c98, MAINFILENAME=0x8cdeec8 'project1.res', this=error reading variable) at projecticon.pas:136 #9 0x007d17e3 in TPROJECTRESOURCES__UPDATE (this=error reading variable) at projectresources.pas:372 #10 0x007d1d40 in TPROJECTRESOURCES__REGENERATE ( MAINFILENAME=0xd13e4c 'project1.lpr', UPDATESOURCE=true, PERFORMSAVE=false, SAVETOTESTDIR=0x0, this=error reading variable) at projectresources.pas:486 #11 0x0044adcf in TMAINIDE__DONEWPROJECT (PROJECTDESC=0x8ae22c0, this=error reading variable) at main.pp:9778 #12 0x0043104b in TMAINIDE__SETUPSTARTPROJECT (this=error reading variable) at main.pp:2126 #13 0x0042e219 in TMAINIDE__STARTIDE (this=error reading variable) at main.pp:1390 #14 0x00402e3f in main () at lazarus.pp:105 (gdb) Just reporting, I don't know what it means. Thank you Theo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Is it possible to create a loop
No, but if you're using Lazarus and want to save typing, you can write: You can save even more typing write: fors then press Ctrl+J then Shift+Ctrl+C You can edit the templates in Environment - Code Templates... :-) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] GTK2 version questions
Hello I have a question regarding this bug rep. http://bugs.freepascal.org/view.php?id=17010 Is there any backward-compatibility limit for Lazarus regarding GTK2 versions? The functions imported there are from 2.8. Afaics, it was released 13 August 2005. This should be OK to use, right? If I'd make a patch for this function, do we always wait for FPC to include a certain GTK2 API or is there a unit somewhere for our own imports? If not, I guess I'd have to make a patch for /trunk/packages/gtk2/src/gtk+/gtk/gtktreeview.inc like {$IFDEF HasGTK2_8} function gtk_tree_view_get_visible_range(tree_view: PGtkTreeView; out start_path, endpath: PGtkTreePath): gboolean; cdecl; external gtklib; function gtk_icon_view_get_visible_range(tree_view: PGtkTreeView; out start_path, endpath: PGtkTreePath): gboolean; cdecl; external gtklib; {$ENDIF} Correct? Thank you Theo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] anchordockingdsgn on GTK2
I've tried for the first time Anchordockingdsgn on GTK2. Impressive work. Thank you. There is one thing, that I would call a show stopper for practical use: Everytime I choose an Item from the component palette, the Design-Form goes behind the IDE/Editor. And the bug http://bugs.freepascal.org/view.php?id=17015 shows here. When maximizing the IDE, the sub-windows are not aligned correctly (always). See: http://www.theo.ch/lazarus/anchordsgn.png The image shows a maximized IDE. It sizes correctly if afterwards, I resize some windows inside the IDE, but not at the time when I'm maximizing. Thank you. Theo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] anchordockingdsgn on GTK2
The bring to front comes from the window manager, so this can not be changed. Maybe the code I've posted here could help with the WM problem: http://www.mail-archive.com/lazarus@lists.lazarus.freepascal.org/msg10541.html But I understand if you don't want XLib code in the LCL. Thank you Theo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] TListView.TopItem and TListView.GetItemAt()
Is there *any* way to get/set the scroll position of the list? For GTK2 TListView.TopItem watch this bug report: http://bugs.freepascal.org/view.php?id=17010 Regards Theo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] TLazIntfImage GetDataLineStart
Both LoadFromRawImage and LoadFromIntfImage seem to work here without any conversion by me. I'm now on a 16bit display for testing, and it has no problem showing the BPP32_B8G8R8A8_BIO_TTB image using either mehtod. Complicated matter without documentation. ;-) Thank you both Marc an Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] TLazIntfImage GetDataLineStart
The TLazIntfImage.Colors property converts automatically. Thanks, I am aware of this. / Is it safe to assume that the pointer from IntfImg.GetDataLineStart is // always pointing to a PRGBTripleArray ? / No. So the wiki example is misleading? Is there a built in method in TLazIntfImage to convert to / ensure a certain format after loading an image form file etc.? Thank you Mattias. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] TLazIntfImage GetDataLineStart
Ah, now I see. Thanks! I tried like below, it seems to work. TBitmap.LoadFromIntfImage seems to care about the back-conversion, right? procedure TForm1.Button1Click(Sender:TObject); var li1,li2:TLazIntfImage; Description: TRawImageDescription; Row1: PRGBQuadArray; i:integer; begin Li1:=TLazIntfImage.Create(0,0); Li1.LoadFromDevice(Image1.Canvas.Handle); Writeln(Li1.DataDescription.AsString); Description.Init_BPP32_B8G8R8A8_BIO_TTB(Li1.Width,Li1.Height); Li2:=TLazIntfImage.Create(0,0); Li2.DataDescription:=Description; Li2.CopyPixels(Li1); Row1:=Li2.GetDataLineStart(3); for i:=0 to 20 do begin Row1^[i].rgbRed:=$FF; Row1^[i].rgbGreen:=$88; Row1^[i].rgbBlue:=$88; end; Writeln(Li2.DataDescription.AsString); Image2.Picture.Bitmap.LoadFromIntfImage(Li2); end; -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] FPCBot Log down?
Restarted Vincent Thank you Vincent. Afaics it's down again. Theo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Code Explorer synchronized with caret position
Wouldn't it be useful, if the code explorer had a mode to highlight/expand the node which corresponds the current caret-position in the source editor? At least in mode Refresh on Idle / Source View. Or is there such an option and I just could not find it? For me, this would be more useful than code-folding. - You would know where you are. ;-) - You could see neighbour methods, which are probably related with the current method. - You could see parameters (even if header not visible due to scrolling). - You could see var sections (even if var section not visible due to scrolling). Has this been discussed before? Was it rejected for a reason? Am I right, that the prerequisites for this feature are already there? Thank you Best regards Theo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Code Explorer synchronized with caret position
Thanks Mattias / Am I right, that the prerequisites for this feature are already there? / Yes. Hmm, I thought it would be relatively easy. I don't know anything about code explorer, but tried this: In CodeExplorer.pas: To get some event, I started here: procedure TCodeExplorerView.Refresh(OnlyVisible: boolean); There I'm calling SelectSourceEditorNode which looks as if it would do what I intend. Btw. This method is never called throughout the Project afaics. This one is calling SelectCodePosition which is calling FindCodeTVNodeAtCleanPos It passes all checks, but in the last method, this code: AVLNode:=fCodeSortedForStartPos.FindLeftMostKey(@KeyPos, TListSortCompare(@CompareStartPosWithViewNodeData)); returns always nil for AVLNode. Thank you for any comment. Best regards Theo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Code Explorer synchronized with caret position
@Dodi: Not sure if we're talking about the same thing. I wanted a relatively non-intrusive feature, which is selecting the item in code explorer which corresponds to the current caret-position-context in the source editor. Nothing more. I was, and still am, under the impression, that method SelectSourceEditorNode is doing just this (probably not expanding). Somebody please tell me if this is a wrong assumption. Thank you. Theo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Code Explorer synchronized with caret position
@Mattias: If this helps: I looks like the seemingly unused method SelectSourceEditorNode was introduced by you in rev. 19201 Thanks Theo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Code Explorer synchronized with caret position
I implemented a simple follow cursor. YES! You ARE a hero! ;-) Works great. One could think about auto-expanding the corresponding var sections. But great! Thank you very much Best regards Theo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus-other list
Florian Klämpfl florian at freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus wrote: The less people can spam on mailing lists, the more they can code. Since experience showed that code contribuitions is usually reciprocally proportional to the generated mailing list noise by a person Hehe, this is one for my collection of quotations -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Parser
Your fpGUI as well as Michael's (Schnell) MSEide+MSEgui and other Cui honorem, honorem ;-) His name is Martin Schreiber (MSEide+MSEgui) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Gtk2 question
/zeljko wrote: / Yep, if he want to get complete X11 tree he can do that via XLib and (now guessing from my mind) use XQueryTree() and friends. Yes. I had already some code but hacked a class today. The code and an example is here: http://www.theo.ch/lazarus/winlist.zip The example lists toplevel windows with several properties. If you doubleclick an item, the selected window gets raised, focused and wm-activated plus the desktop is switched if necessary. It's certainly not perfect but works here. It should also solve the op's problem, because the list is in stack order. The window below the active window ist the second last in the list. Please test, if you like. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Gtk2 question
You can probably do this using XLib interface directly (units x, xlib) and polling. I don't know if you can get an event for this. http://tronche.com/gui/x/xlib/input/XGetInputFocus.html Warning: XLib programming is not easy. ;-) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] next release date?
I presume that would be summer in the northern hemisphere, correct? :) 56° 0′ 0″ N, 92° 56′ 0″ E Yes! ;-) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Store empty string property in *.lfm
Hello Is it possible to store an empty string property? The property is getting a default value a creation time (GetUserDir), If the user enters an empty string to the obj. insp. it is shown as empty but still has the value it got at creation time when run. I've tried things like: property Directory: string read FDirectory write SetDirectory stored True nodefault; but it doesn't work. Empty String is never stored it seems. Am I missing sth.? Thanks Theo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Store empty string property in *.lfm
Thanks for your answer Matthias String properties always have as default value the empty string. But you can define a stored procedure. See the TControl.Caption property. I don't get what you mean. There I read: property Caption: TCaption read GetText write SetText stored IsCaptionStored; where afaics IsCaptionStored determines whether or not to store the Caption value. But I simply want it always stored, even when empty. Since it doesn't seem to work with empty string, I use a workaround which does the job for me: procedure TThumbControl.SetDirectory(const AValue: UTF8String); begin if AValue='' then fDirectory:='none' else fDirectory := AValue; if (fDirectory 'none') and (fDirectory '') then if DirectoryExistsUTF8(AValue) then begin Thank you Best regards Theo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Store empty string property in *.lfm
Thanks for your suggestions. TWriter does not support that directly. But you can do something like this: Yes, this is probably cleaner than my workaround with none. But it needs one extra boolean field, and the none solution should be safe too. (Afaik there is no system where none without slashes is a valid absolute path). Thank you Mattias. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] creating Handle during loading
Hello I'm trying to write a component. It's working fine so far, but I'm getting these hints on the console: [HINT] TWinControl.CreateWnd creating Handle during loading Form1:TForm1 csDesigning=False [HINT] TWinControl.CreateWnd creating Handle during loading ThumbControl1:TThumbControl csDesigning=False It happens when I run an application which is using the IDE-installed component, not when creating the component at runtime. These are only hints and it's working fine, but I wonder how to get rid of them. Any ideas what is tipically causing this? Thank you Best regards Theo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] creating Handle during loading
It means that while the TThumbControl is loading properties it already tries to execute them. This creates unnecessary overhead. Improve ThumbControl to only access the Handle when needed. Thank you Matthias, I had to move some code to CreateWnd, now it's quiet. :-) Thanks Best regards Theo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Question about SVN version stability
I have a question regarding the current status of trunk. I have a self written component which is going into eternal loop in the area BoundsRect. It worked for several versions before current 0.9.29. It's very well possible that it's a bug in my component. I'm just asking if it's worth investigating the problem on my side, or if I should just wait for a stable LCL version in the area of AutoSize probably. It's a component with scrollbars the way synedit is using it (CreateParams). It is resizing Scrollbars also with the changing content dimensions. So tracking down this issue is not exactly easy. My question: Should I wait or try to see what's going wrong? What do you think? Thank you Theo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Question about SVN version stability
Thank you for your time Matthias Several means what: 10 or 100 or 1000? I don't know the exact version when it stopped working, but it certainly worked with 0.9.29 r23701 and several release versions before afair. Compile the LCL with -dVerboseIntfSizing. Thank you, I will try this. There are a lot of possibilities to create endless loops. Without some code it's hard to tell. I know, that's why I was asking. It's a component which has about 15 units. So I wanted to know if it's worth the trouble of isolating the problem. I see now that I will have to do this. Thank you Best Regards Theo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Question about SVN version stability
P.S. If you want to know what it is: I've posted a demo on Deutsches Lazarusforum one and a half year ago, You can checkout the old compiled version for GTK2 here: http://www.theo.ch/lazarus/woprsnap.zip It's a proof of concept for a Word Processor / Rich Editor whatever. Entirely written with Lazarus / FPC. I had no time ever since to improve it and it would take at least two months to get the code to a presentable version. Open woprdoc.wop to see what it was able to do at the time. I'll probably never get this to a release version. Too many problems. Too complex. Too stupid and lazy me. ;-) But still worth a look at the proof of concept imho. Regards Theo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] virus note about 0.9.28.2 package?
This sounds similar: http://lazarus.freepascal.org/index.php/topic,9450.0.html -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] TImage Canvas not growing with Image? GTK2
Hello Is it correct, that the paintable area of an Image.Canvas is not growing with the Image? Example: Put a TImage on an empty Form. Set Align to alClient. Then put for ex. this code in Form.OnChangeBounds procedure TForm1.FormChangeBounds(Sender:TObject); begin With Image1 do begin Canvas.Brush.Color:=clWhite; Canvas.FillRect(0,0,Width,Height); Canvas.MoveTo(0,0); Canvas.LineTo(Width,Height); Canvas.MoveTo(Width,0); Canvas.LineTo(0,Height); end; end; Now resize the form with the Mouse. For me, the image resizes correctly but the visible area keeps the designtime size. See: http://www.theo.ch/lazarus/lazimgresize.png Is it a bug, or is it by design? Lazarus 0.9.29 r25504M FPC 2.4.0 i386-linux-gtk 2 (beta) Thank you -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] TImage Canvas not growing with Image? GTK2
Thank you both. I thought it might be correct, that's why I didn't make a bug report. I saw people are using/recommending TImage.Canvas for drawing because drawing is non-volatile, unlike TPaintBox. They are probably not aware, that it doesn't resize the graphic. Best Regards Theo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Hiding Comments
I know this is probably hard to implement but I sometimes would really like to have it. ;-) I have some heavily commented code, be it for the following reasons. - Comments explaining what the following code is doing, sometimes line by line. - Comments which keep some thoughts of previous implementations in code (not for shipping) but which might be helpful and be it only for not going that route again. - Some todo stuff (I know about the todo feature). I think it would be helpful to hide all comments at times, because while helpful, they make reading the actually working code a lot harder. Does anybody know if this is implemented somewhere in other IDEs? Does anybody else think this would be a good feature? Does anybody have a suggestion how to implement this? Don't beat me, it's just a question and I have no answer. ;-) Thanks -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Hiding Comments
Paul Nicholls? This Paul Nicholls? http://www.efg2.com/Lab/Library/UseNet/1999/0806.txt ;-) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Hiding Comments
it is a lovely sunny 24 degrees here in Tasmania, Australia, very nice :) Humm, it's -10 (Celsius) here in central Switzerland. Swiss Intl. Air Lines offers three flights to Hobart tomorrow. Two via Hongkong-Sydney one via Bangkok-Sydney. Which one to take? ;-) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus IDE + Qt annoyances
hmmm...maybe it's time to revamp it with qtlcl :) Feel free! ;-) You know better if it's possible and how much effort it would take. Cheers Theo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus IDE + Qt annoyances
Hi Zeljko, Here disabled toolbuttons in the IDE have a border (look like buttons) while enabled ones are flat. Need a screenshot? Cheers Theo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Reconstructing Lazarus Website 4: the dev tool
Hmm, the fact that this thread already has a lot of messages but the content thread (which it is all about imho) has not recieved one answer makes me a bit sceptical about this project... ;-) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Reconstructing Lazarus Website 2: the content
@Aleksa I almost completely agree. There should probably be a section with these information on the first page. The first page should primarily be for those who come for the first time - to attract them, and show them what Lazarus really is. Exactly. This is important and could be done in reasonable time. This is much more important than changing website technology imho. Only thing I do not agree: I think we should not compare Lazarus with Delphi and other tools. It's a little cheap / bad taste. Theo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Process Detection
See: http://wiki.lazarus.freepascal.org/UniqueInstance -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] LCLGTK2 no visual updates
I read some questions regarding LCLGTK2 not updating changes visually at runtime: http://www.lazarus.freepascal.org/index.php/topic,7977.msg38099/topicseen.html#new http://www.lazarus.freepascal.org/index.php/topic,7969.msg38075.html#msg38075 Is there probably a more general reason for this? Did this work before? Regards Theo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] cross platform [Re: Lazarus Goal]
Unfortunately this brings up the idea of aesthetic, Consider the Preferences dialog in Mac Leopard's Mail client: http://web.fastermac.net/~MacPgmr/Lazarus/Screenshots/mail_prefs.jpg http://web.fastermac.net/%7EMacPgmr/Lazarus/Screenshots/mail_prefs.jpg I don't think this dialog has a lot do to with aesthetic. It looks cheap to me. The Icons look like randomly collected from the net. No common height or color style, strange vertical alignment (see RSS). Vertical alignment is almost inexistent anyway. Look at the checkboxes vs. the comboboxes. comboboxes blue green red don't even have the same distance Nah, really... ;-) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Case error with cirilyc
You might try utf8scanner http://wiki.lazarus.freepascal.org/Theodp This should do what you need: procedure TForm1.Button1Click(Sender: TObject); var s :TUTF8Scanner; begin s := TUTF8Scanner.Create(Memo1.text); s.FindChars :='абвгдabvgd'; //Memo1.text:=s.GenerateCaseStatement(); //Writes the case block for you repeat case s.FindIndex(s.Next) of {а} 0: s.Replace('a'); {б} 1: s.Replace('b'); {в} 2: s.Replace('v'); {г} 3: s.Replace('g'); {д} 4: s.Replace('d'); {a} 5: s.Replace('a'); {b} 6: s.Replace('b'); {v} 7: s.Replace('v'); {g} 8: s.Replace('g'); {d} 9: s.Replace('d'); end; until s.Done; Memo2.Text := s.UTF8String; s.free; end; -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Case error with cirilyc
You should not replace multiple characters with this method like s.Replace('ввв'); It works for me, if I write s.Replace('в'); It outputs: kввgd then Make sure your file encoding is UTF-8 (standard) If you really need to replace with ввв then write the output in a second string like you did before. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Groupboxes in the IDE
Well, it's doing that already by using the Label 2xBevel isn't it?? Yes, I counted these as //groupbox-alikes too in my prev. message. I don't mind if you use custom components for the IDE if there is a good reason to do so. But you should be aware of the fact that they do not follow themes with the current solution. As long as both (TGroupBox, custom groupbox) are used together, it may look inconsistent mainly because of different caption-font. // -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Groupboxes in the IDE
Is there a reason, why the Lazarus IDE is using groupboxes with normal font as well as a combination of bevels and label with bold font for groupbox functionality? For ex. IDE Options - Environment vs. IDE Options - Editor. It think this doesn't look consistent. I vote for using TGroupBox with Font.Style:=[]; all over the place. Regards Theo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus has unique font sizes
I think it should be like this in Delphi: Since size and height change the same value with a slightly different meaning (PPI) whichever value was set, the other one is rounded and gets a negative value. If you set size you should get a negative height and vice versa. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus