Re: [Lazarus] Detect that component selected in OI.

2016-05-21 Thread Howard Page-Clark
On 21/05/16 18:48, Vojtěch Čihák wrote: is there some event (message or method) triggered when component is selected in OI? It's just like PageControl and its TabSheets. When you select TabSheet in OI, component is repainted in form designer. I oberved the code but I didn't find solution.

Re: [Lazarus] New menu designer

2016-01-21 Thread Howard Page-Clark
to respond to a different-length translated string and force a repaint? Ondrej introduced an overridden TextChanged method, but this seems not to be called at the moment it is needed for the translated strings, because for this it clearly has no effect

Re: [Lazarus] New menu designer

2016-01-21 Thread Howard Page-Clark
On 21/01/16 13:29, Mattias Gaertner wrote: On Thu, 21 Jan 2016 13:21:57 + Howard Page-Clark <h...@talktalk.net> wrote: [...] I don't know anything about the translation process, or at what stage in the IDE initialization captions are replaced with translated resources

Re: [Lazarus] New menu designer

2016-01-20 Thread Howard Page-Clark
On 17/01/16 23:22, Maxim Ganetsky wrote: 16.01.2016 1:19, Howard пишет: I have submitted a patch (29411) which I hope addresses these issues, except for the issue: 'String "composing" is still present ... in main menu creation form in "add menu item" fields captions' I am n

Re: [Lazarus] New menu designer

2016-01-17 Thread Howard
and post it on mantis... This is more simpler than writing a lot of letter about what and how to fix to be translation friendly. Do you agree? 2016-01-15 23:19 keltezéssel, Howard írta: On 14/01/2016 23:27, Maxim Ganetsky wrote: String "composing" is still present e. g. in "Inser

Re: [Lazarus] New menu designer

2016-01-17 Thread Howard
On 17/01/2016 13:00, Juha Manninen wrote: ... Howard, for curiosity, your patch has: LCLVersion = '1.6.0.2' The menu editor is developed in trunk 1.7. Are you using a fixex_1_6 version for editing? Juha Yes, the code I worked on was the latest trunk (well perhaps it was from the day before

Re: [Lazarus] New menu designer

2016-01-17 Thread Howard
On 17/01/2016 18:40, Péter Gábor wrote: I think we can use one resourcestring ('') instead of three: ''; ''; ''; Yes or No? Yes, I agree with you. Howard -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http

Re: [Lazarus] New menu designer. which style do you prefer?

2016-01-16 Thread Howard
On 16/01/2016 21:08, Ondrej Pokorny wrote: On 15.01.2016 23:30, Howard wrote: Sorry, my apologies - I missed that you didn't try it. Yes working fine for me (Windows 7 32bit and Linux 64 bit). I'm relieved that such a simple change has had such a good effect, and that no further tinkering

Re: [Lazarus] New menu designer

2016-01-15 Thread Howard
) which I hope addresses these issues, except for the issue: 'String "composing" is still present ... in main menu creation form in "add menu item" fields captions' I am not clear about which string(s) you are identifying here. Can you give a sp

Re: [Lazarus] New menu designer. which style do you prefer?

2016-01-15 Thread Howard
that such a simple change has had such a good effect, and that no further tinkering with TShadowMenu size and positioning code was required; and that my poorly implemented scrolling code can therefore be dumped entirely. Howard -- ___ Lazarus mailing list Lazarus

Re: [Lazarus] New menu designer. which style do you prefer?

2016-01-12 Thread Howard
On 11/01/2016 21:51, Anthony Walter wrote: Howard, good job on the new menu designer. It's working very nicely right now. I'll take a look at modifying TShadowMenu to be a scrolling control without the need for a TScrollBox. Thanks. Yes, Ondrej's introduction of TSiblingFake and TFirstFake

Re: [Lazarus] New menu designer

2016-01-12 Thread Howard
reciate that this would cause difficulty. My motive was simply to reduce the overall number of resourcestrings required by reuse of phrase "atoms", which I see now works satisfactorily only if a single language is ever employed. Howard -- _

Re: [Lazarus] New menu designer

2016-01-12 Thread Howard
On 12/01/2016 14:37, Péter Gábor wrote: 2016-01-12 15:26 keltezéssel, Howard írta: OK, point taken. I will amend the offending resourcestrings in a patch. I'm not a linguist nor a translator, so did not appreciate that this would cause difficulty. My motive was simply to reduce the overall

Re: [Lazarus] New menu designer. which style do you prefer?

2016-01-11 Thread Howard
correctly. I did not try making TShadowMenu a TScrollingWinControl descendant. Perhaps that would be a better option. What would others advise? Howard -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org

Re: [Lazarus] New menu designer. which style do you prefer?

2016-01-11 Thread Howard
On 11/01/2016 12:35, Ondrej Pokorny wrote: On 11.01.2016 13:31, Howard wrote: The latest trunk accepts a patch which adopts Bart's suggestion of identifying the purpose of the dummy menuitem by displaying a self-descriptive text. The background is no longer patterned. Of course this can

Re: [Lazarus] New menu designer. which style do you prefer?

2016-01-11 Thread Howard
suggestion of identifying the purpose of the dummy menuitem by displaying a self-descriptive text. The background is no longer patterned. Of course this can be further changed. Howard -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] New menu designer

2016-01-04 Thread Howard Page-Clark
On 04/01/2016 14:24, Bart wrote: On 12/22/15, Juha Manninen <juha.mannine...@gmail.com> wrote: Hello I committed a new Menu Designer by Howard Page-Clark in r50992. See: http://bugs.freepascal.org/view.php?id=29205 Can we implement it so that adding a sumnenu to a Separator (a me

Re: [Lazarus] Design issues with the new menu editor

2016-01-03 Thread Howard Page-Clark
to an arbitrary selection of components is rather tricky to manage... Perhaps this is the origin of the instability Kostas mentioned earlier. Howard --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus

Re: [Lazarus] New menu designer

2015-12-27 Thread Howard Page-Clark
On 26/12/2015 23:27, Juha Manninen wrote: Howard, as the author you also have voting power over the GUI. Besides GUI design is difficult, there is never a "right" solution that everybody would agree upon. Yes, dictatorship is far more efficient than democracy. Yet I feel some thi

Re: [Lazarus] New menu designer

2015-12-27 Thread Howard Page-Clark
lution would be to make the highlight theming for TMainMenu and TPopupMenu fully consistent across all widgetsets. However, that is a task beyond me. Howard --- This email has been checked for viruses by Avast antivirus software. https://www.avast.c

Re: [Lazarus] New menu designer

2015-12-26 Thread Howard Page-Clark
ld one. Everybody who has modified and improved it says the same. Some improvements just feel impossible without a complete rewrite. So, this was the rewrite we were asking for. I was hoping the author Howard Page-Clark would participate in the discussion and improve his designer based on feedback. Maint

Re: [Lazarus] *** SPAM *** How to pass function method to TList.Sort?

2015-12-09 Thread Howard Page-Clark
On 09/12/2015 20:11, Donald Ziesig wrote: Is there any way to pass a method function as the Compare parameter to a TList or is there a work around for it? As in: type TMyClass = object fIndex : Integer; List : array of TList; function Compare( Item1, Item2 : Pointer) :

Re: [Lazarus] Which method is called at the very end of TWinControl creation?

2015-11-08 Thread Howard
On 08/11/2015 17:05, Krzysztof wrote: What I'm looking is virtual method like "ThisIsCalledWhenControlIsCompletelyAdjustedAndReadyWithAllChildrens" . Tried other methods like VisibleChanged, ChildHandlesCreated etc but without success Possible methods to try include: Loaded FormEndUpdated

Re: [Lazarus] Editor loses focus on Compile

2015-10-12 Thread Howard Page-Clark
On 12/10/2015 15:37, Ondrej Pokorny wrote: When I compile a project in the IDE with Ctrl+F9 the editor window loses focus. Instead the message window is focused. When compiling is done, message window is still focused (even after a successful compile). In the IDE Options dialog under

Re: [Lazarus] TEdit: Find character at caret position

2015-08-02 Thread Howard Page-Clark
where this (character) position would be. Edit1.SelStart gives the character position of the caret/cursor. The next typed character is inserted at Succ(Edit1.SelStart). Howard --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus

Re: [Lazarus] Owner of a TCanvas

2015-07-27 Thread Howard Page-Clark
On 27/07/2015 10:31, Xiangrong Fang wrote: Hi There, Can I somehow get the object which owns a Canvas? e.g.: function GetCanvasOwner(ACanvas: TCanvas): TObject; begin Result := ACanvas.Owner; end; pb := TPaintBox(GetCanvasOwner(pb.Canvas); A TCanvas does not have a built-in Owner

Re: [Lazarus] Adding data field to a child node in a treeview

2015-07-04 Thread Howard Page-Clark
On 04/07/2015 09:46, Susie Nicol wrote: Hi - me again I have a Lazarus treeview, which I am populating from several sql queries. I add child nodes in this way, setting them to one of the fields returned from the query while Not SQLQuery1.EOF do Begin

Re: [Lazarus] Fugue icons for LHelp?

2015-05-13 Thread Howard Page-Clark
genuinely welcome people's efforts to improve aspects of the user interface. So I'm just trying to offer honest feedback. Apologies if you wanted this posted on Mantis. Howard --- This email has been checked for viruses by Avast antivirus software. http://www.avast.com

Re: [Lazarus] How do I change properties for GUI-components from another unit?

2015-05-11 Thread Howard Page-Clark
TForm2.BChangeClick(Sender: TObject); begin Form1.Button1.Hide; Form1.Label1.Caption:='Changed'; end; end. == The uses clauses are the critical feature. Howard --- This email has been checked for viruses by Avast antivirus software. http

Re: [Lazarus] howto change the order the components of a Form are created?

2015-04-09 Thread Howard Page-Clark
... etc. FFilelistbox:=TFileListBox.Create(Self); // with FFilelistbox do ... end; Howard --- This email has been checked for viruses by Avast antivirus software. http://www.avast.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] TComboBox.DropDownCount has no effect.

2015-04-04 Thread Howard Page-Clark
to be a Linux bug, since DropDownCount restricts the entries listed correctly on Windows (win32). Howard --- This email has been checked for viruses by Avast antivirus software. http://www.avast.com -- ___ Lazarus mailing list Lazarus

Re: [Lazarus] Is this RC2 issue or my unknowledge?

2015-03-27 Thread Howard Page-Clark
methods Howard --- This email has been checked for viruses by Avast antivirus software. http://www.avast.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Oscilliscope Control

2015-03-21 Thread Howard Page-Clark
On 21/03/2015 20:56, Michael Thompson wrote: The (dead) link is http://eletronicalivre.incubadora.fapesp.br/portal/english/oscilloscope/%7CISA This link is dead from my location also. Howard --- This email has been checked for viruses by Avast antivirus software. http://www.avast.com

Re: [Lazarus] TShortcut properties

2015-03-08 Thread Howard Page-Clark
On 07/03/2015 10:15, Mattias Gaertner wrote: On Tue, 03 Mar 2015 16:31:59 + Howard Page-Clark h...@talktalk.net wrote: Descendants of TCustomCheckbox and TCustomButton have public Shortcut and ShortcutKey2 properties which cannot be set since they are read-only. What is the purpose

[Lazarus] TShortcut properties

2015-03-03 Thread Howard Page-Clark
Descendants of TCustomCheckbox and TCustomButton have public Shortcut and ShortcutKey2 properties which cannot be set since they are read-only. What is the purpose of these properties? Howard --- This email has been checked for viruses by Avast antivirus software. http://www.avast.com

Re: [Lazarus] Lazarus Release Candidate 1 of 1.4

2015-02-16 Thread Howard Page-Clark
, and was ready to roll! I've never seen such a snappy install for a full-featured development environment before. Recompiled the last three projects I worked on (chewing its way through scores of files) without any problems. No bugs to report yet. Thanks again. Howard --- This email has

Re: [Lazarus] Filling ListBox without triggering OnSelectionChange

2015-01-07 Thread Howard Page-Clark
the OnSelectionChange event. Howard --- This email has been checked for viruses by Avast antivirus software. http://www.avast.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] TTIGrid crashed after calling ListObject.Add

2014-12-09 Thread Howard Page-Clark
TTIGrid exposes unpredictably. Howard --- This email has been checked for viruses by Avast antivirus software. http://www.avast.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo

Re: [Lazarus] No halp entry for FindDialog ...

2014-11-07 Thread Howard Page-Clark
On 08/11/2014 00:35, Bob B. wrote: and my Delphi 3 code for OnFind does not work in Lazarus, at least not in Laz 1.2.4 for Win32. Could some kind person please offer an example that works? Drop a TFindDialog, TMemo, TPopupMenu on the main form of a new default Lazarus project, and code

Re: [Lazarus] Having more than 32 elements in a set (TGridOptions of TCustomGrid)

2014-11-05 Thread Howard Page-Clark
between 0 and 31. I think you meant: ... cannot have a default value if the upper or lower bounds of the set's (or array's) base type have ordinal values *outside* the range 0..31. Howard -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Redundant text on project buttons

2014-10-16 Thread Howard Page-Clark
in GUI design which could stand the test of time in the way that most things Mac have justifiably become classics (without needing to slavishly follow every passing design fad). Howard -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Fuzzy translations ignored

2014-09-18 Thread Howard Page-Clark
) works counterclockwise well, using the following code example. I'm sure if you added anitaliasing to improve the rendering quality this would be welcomed. Howard == code == unit Unit1; {$mode objfpc}{$H+} interface uses Classes, SysUtils, Forms, Controls, Graphics; type { TForm1

Re: [Lazarus] Displaying a Listview entry in bold and a different colour

2014-09-15 Thread Howard Page-Clark
', but it works on Windows using TListView's OnCustomDrawItem() event. Howard ==code== unit mainListviewOwnerDraw; {$mode objfpc}{$H+} interface uses Classes, SysUtils, Forms, Graphics, ComCtrls, LCLType, StdCtrls; type TForm1 = class(TForm) ListView1: TListView; procedure

Re: [Lazarus] StrToDate and DefaultFormatSettings

2014-09-12 Thread Howard Page-Clark
On 12/09/2014 13:04, Henry Vermaak wrote: On Fri, Sep 12, 2014 at 08:18:36AM -0300, Leonardo M. Ramé wrote: Hi, I need to convert strings with format d-mmm-y to TDateTime. For example: '12-Sep-14' This will accomplish the task. function DatestrToDateTime(const aDate: string): TDateTime;

Re: [Lazarus] Code completion problems with Graph units

2014-09-09 Thread Howard Page-Clark
://wiki.lazarus.freepascal.org/IDE_Window:_Codetools_Defines_Editor). Howard -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Is this normal or bug ?

2014-08-02 Thread Howard Page-Clark
On 02/08/2014 10:41, FreeMan wrote: Tmy_Form = class(TForm) private { private declarations } v1:integer; v2:string; public { public declarations } function exmple(v1:integer;v2:string):boolean; end; when compile: xx.pas(8,21) Error: Duplicate identifier

Re: [Lazarus] how to set two memos for parallel text editing ?

2014-05-28 Thread Howard Page-Clark
, WM_VSCROLL, theMessage.wParam , theMessage.lParam); if theMessage.wParamlo=SB_THUMBTRACK then SetScrollPos(Memo2.Handle, SB_VERT, theMessage.wParamhi, True); end; end. //== code end == You should be able to adapt this to your needs. Howard

Re: [Lazarus] GetFormImage bug

2014-05-13 Thread Howard Page-Clark
On 13/05/2014 16:49, Chris Crori wrote: I have a thumbnail section in my main program form. In the forms, I use GetFormImage to make an image and send it to the mainform. The bug is that some components are not visible in this image. TDBGrid is one and a custom component derived from TBitBtn is

Re: [Lazarus] Forcing TMemo to dislplay last entry

2014-04-25 Thread Howard Page-Clark
Memo1.SelStart:=Length(Memo1.Text); Howard -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] OnBeforeSelection

2014-04-19 Thread Howard Page-Clark
On 19/04/2014 02:03, Eric Kom wrote: Hi Dear; Please I'm looking for the *OnBeforeSelection *Event on the TDBGrid? I can only see the OnSelectEditor. It is a protected property, so to use it you must declare a descendant and make it public (or published). Howard

Re: [Lazarus] How to minimize application showing modal form(s)

2014-04-13 Thread Howard Page-Clark
described above. As Zeljko pointed out, you have uncovered a bug. If it is not addressed in trunk, you should raise the issue in the Mantis bugtracker so it gets nailed. Then unsatisfactory workarounds would not be needed. Howard -- ___ Lazarus

Re: [Lazarus] How to minimize application showing modal form(s)

2014-04-12 Thread Howard Page-Clark
and OnRestore (of type TNotifyEvent), and hook them up in your main form's OnCreate code. In the OnMinimize and OnRestore handler implementations use FindComponent (or some other means) to locate your previously named modal form, and either Hide it or Show it as appropriate. Howard

Re: [Lazarus] Scroll Wheel

2014-04-11 Thread Howard Page-Clark
On 11/04/2014 19:33, Timothy Groves wrote: No; I am unsure as to how to do that. Would I need to create a descendant class, or does Lazarus support overriding without doing so? The following should give you an idea how to develop the hint Mattias gave: ===code=== unit testIntWheelEdit;

Re: [Lazarus] TTimer woes (newbie)

2014-04-01 Thread Howard Page-Clark
with a Sleep, and remove his timer altogether. Howard -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] TTimer woes (newbie)

2014-03-31 Thread Howard Page-Clark
); MNumbers.Lines.Add(IntToStr(FNumber)); Inc(FCount); Inc(FRunningTotal, FNumber); end; end. -- code end -- Howard -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] Codetools include search path(s)

2014-03-27 Thread Howard Page-Clark
the codetools? Howard -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Setting TStringGrid row/col border styles

2014-03-24 Thread Howard Page-Clark
and content edit box you'll see an [+ Attachments and other options] link below the edit box. That brings up a dialog which lets you locate a file somewhere on your disk to add to the new topic as an attachment. Howard -- ___ Lazarus mailing list

Re: [Lazarus] Setting TStringGrid row/col border styles

2014-03-22 Thread Howard Page-Clark
On 22/03/2014 20:53, Gary Randall wrote: ... Specifically, I need to change the penstyle and weight of row/col borders. The public properties: GridLineColor GridLineStyle and published property GridLineWidth may be all you need, without custom drawing. Howard

Re: [Lazarus] Checking characters in a string

2014-03-12 Thread Howard Page-Clark
On 12/03/2014 13:53, Richard Mace wrote: Hi, I am trying to check to make sure the a string contains at least 1 uppercase character, 1 lowercase character and 1 number. Any ideas as of the best way of coding this? If you restrict yourself to Latin ansi encoding and 'number' means a numeric

Re: [Lazarus] Getting and setting the x numbered word in a sentence

2014-01-07 Thread Howard Page-Clark
On 07/01/2014 18:04, Richard Mace wrote: Hi, Is there an existing routine in Lazarus that will get and set effectively the x numbered word in a sentence without actually knowing what the actual word is? E.g with the string the cat sat on the mat If word delimiters are consistently all the same

Re: [Lazarus] how about a HasProperty() property?

2014-01-05 Thread Howard Page-Clark
On 05/01/2014 23:50, Alejandro Gonzalo wrote: For example, if you want to loop though components and set the dbNavigator's DataSource property to that of the component if it has a DataSource property (and of course is not a dbNavigator itself). It seems you can't do that by using the

Re: [Lazarus] Adding shapes to TShape

2013-12-26 Thread Howard Page-Clark
On 26/12/2013 12:03, Frederic Da Vitoria wrote: Should I forget about deriving TShape and should I directly modify TShape's code? For a project that needed something similar I found that TShape with its fixed TShapeType enumeration was too inflexible (though it is Delphi-compatible, hence

Re: [Lazarus] Souce listing on Mac

2013-12-25 Thread Howard Page-Clark
\ ) that you might feel able to contribute if you come up with worthwhile improvements to the existing code. I'm sure patches to improve the functionality would be welcome. Howard -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http

Re: [Lazarus] TSpinEdit and TFloatSpinEdit

2013-11-18 Thread Howard Page-Clark
have Property FloatValue and Property IntValue. I presume for Delphi compatibility. It is then possible to convert a Delphi project to a Lazarus project without rewriting source code that involves spinedits. (The Delphi TSpinEdit has a Value property that is a longint). Howard

Re: [Lazarus] Inserting new pages into a TPageControl

2013-10-13 Thread Howard Page-Clark
On 11/10/2013 22:00, Mark Morgan Lloyd wrote: Given a TPageControl with several existing pages, how does one insert a page at a specified position rather than at the end? This function should do it: uses ComCtrls; function InsertAt(ExistingIndex: integer; aPageControl:

Re: [Lazarus] How do you remove form caption area?

2013-10-05 Thread Howard Page-Clark
On 05/10/2013 16:25, Graeme Geldenhuys wrote: Does LCL not have a TPopupWindow class? eg: like you would use for Hint Windows, Splash Screens etc? Weird. There is THintWindow in the Forms unit, but AFAIK it does not allow the kind of border the OP wants without resorting to calls such as

Re: [Lazarus] TTreenode.data

2013-09-11 Thread Howard Page-Clark
On 11/09/2013 09:24, Antonio Fortuny wrote: Le 11/09/2013 07:51, Richard Mace a écrit : procedure TfrmMain.tvMainChange(Sender: TObject; Node: TTreeNode); begin ShowMessage('Node ' + IntToStr(Integer(Node.Data))); change to: ShowMessage('Node ' + IntToStr(*PtrInt***(Node.Data))); Also

Re: [Lazarus] TTreenode.data

2013-09-11 Thread Howard Page-Clark
On 11/09/2013 18:03, Flávio Etrusco wrote: On Wed, Sep 11, 2013 at 5:41 AM, Howard Page-Clark h...@talktalk.net wrote: Also unless you want the treeview to behave as if it were fully initialised with Data integer values of zero, you would need to add: procedure TfrmMain.tvMainChange(Sender

Re: [Lazarus] Positioning entries on main menu

2013-08-31 Thread Howard Page-Clark
On 30/08/2013 21:43, Mark Morgan Lloyd wrote: What I'm considering is something like a » symbol to control whether an extra pane is shown to the right of a text editor. You might get some ideas from the SelComponentPageButton which has been added in recent Lazarus commits (1.1). See

[Lazarus] Anders Hejlsberg interview

2013-07-16 Thread Howard Page-Clark
People may be interested to listen to this 20 minute interview with Anders (and a MS colleague named Steve Lucco) in which they discuss Java, Javascript, C#, Typescript, XMl... http://www.codeproject.com/Articles/619759/CodeProject-interviews-Anders-Hejlsberg-and-Steve They also mention

Re: [Lazarus] WindowsVersion

2013-07-10 Thread Howard Page-Clark
On 10/07/2013 06:33, Richard Mace wrote: Hi, Could someone let me know what until WindowsVersion is in please? The unit is win32proc. Howard -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org

Re: [Lazarus] libSANE.dll for winfows

2013-05-28 Thread Howard Page-Clark
On 28/05/2013 12:51, amin ibrahime wrote: Hi I try to uses scanner by lazarus application to multiplateform i found SANE demomain i compiled and run under liunx but when run under widows i need*libsane.dll * where i can find this dll or its pascle source code to compile and use Scanning

Re: [Lazarus] porting delphi project code

2013-05-15 Thread Howard Page-Clark
On 15/05/2013 19:19, waldo kitty wrote: can someone please give me the steps, in simple layman's terms, that are needed to convert a delphi project or application code to Lazarus/FPC? i have never run delphi and have not the first clue other than there is some sort of convertor available...

Re: [Lazarus] TextHeight in Console App

2013-05-14 Thread Howard Page-Clark
On 14/05/2013 15:32, Graeme Geldenhuys wrote: On 2013-05-14 14:07, Edilson Vieira wrote: The project is an Image Generation Program, a console program. The error ocurr when I call the method TextHeight of the Canvas property of TBitmap. You do realize that if you pull in the 'Graphics' unit

Re: [Lazarus] TMemo flicker

2013-04-29 Thread Howard Page-Clark
On 29/04/13 5:47, Jürgen Hestermann wrote: Am 2013-04-29 18:38, schrieb K. P.: Have you tried wrapping your writes in memo1.Lines.BeginUpdate and memo1.Lines.BeginUpdate? I have tried it now but it doesn't change anything. In addition to wrapping the writes within BeginUpdate/EndUpdate

Re: [Lazarus] How to create a listbox that can be shifted

2013-04-23 Thread Howard Page-Clark
On 23/04/13 5:20, Jürgen Hestermann wrote: I am stuck again. How can I make long (wide) text visible in a restricted window? Use a TMemo, and set its ScrollBars property to ssAutoBoth? -- ___ Lazarus mailing list

Re: [Lazarus] Is the site http://forum.lazarus.freepascal.org dead?

2013-04-19 Thread Howard Page-Clark
On 19/04/13 7:16, GREP wrote: I don't even know how to add a hostfile and your command on Windos XP sp3 dowsnot work ipconfig Try opening a command prompt in the directory c:\windows\system32 and type ipconfig /flushdns Enter (note that an h was missed off the parameter in a previous

Re: [Lazarus] PAnsiChar to UTF8 issues

2013-04-09 Thread Howard Page-Clark
On 09/04/13 6:35, Leonardo M. Ramé wrote: Well, I can live with the debugger problem, but is there a solution for the ? sign end displaying in my app?. If you get an ansi string, you must convert it to utf8 before giving it to the LCL need to find the exact function label.caption :-

Re: [Lazarus] Event generator

2013-04-02 Thread Howard Page-Clark
On 02/04/13 2:47, Antonio Fortuny wrote: BUT: on the form of an application (btw, multi-threaded + Indy 10) drop a common TButton on the main (and only) form: OK. When trying to assign an event to it: BOUM :o the LCLClasses unit is displayed and the next error is displayed in the errors

Re: [Lazarus] some number manipulation

2013-03-09 Thread Howard Page-Clark
On 09/03/13 11:12, appjaws wrote: Hi all, I have a series of results, for each day of the month I have 10 numbers ranging from 1 to 20. i.e. Day11,3,4,5,7,9,12,16,17,20 Day23,4,5,6,8,9,15,17,18,19 etc. Question 1 how can I find the number of 1's 2's 3's 4's etc. for the whole month

Re: [Lazarus] some number manipulation

2013-03-09 Thread Howard Page-Clark
-sort-quick-demo1a.html and Lazarus also has several integer quicksort implementations in its own code such as at ...\lazarus\lcl\grids.pas, line 2850 Howard -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http

Re: [Lazarus] exception handling in constructor

2013-03-02 Thread Howard Page-Clark
On 02/03/13 10:51, Michael Van Canneyt wrote: This will definitely cause a memory leak, because the FPC code does not know that an exception occurred in the constructor (you catch it with Except), and hence will not call the destructor. Thanks for the correction and explanation. Howard

Re: [Lazarus] How to rename a Form

2013-02-20 Thread Howard Page-Clark
On 20/02/13 9:05, Frédéric Loyer wrote: When I create a new application project, my program start with a Unit1 (I can easily rename), associated with a Form1 I can't rename. How can I change the name of this form ? In the Lazarus IDE, make sure the form is selected by clicking it, move focus

Re: [Lazarus] Code Completion Templates

2013-02-12 Thread Howard Page-Clark
On 12/02/13 6:58, Donald Ziesig wrote: The following code from my TemplateExpander unit fails at compilation: uses CodeToolOptions; because the compiler can't find the file. Assuming CodeTools has been added as a dependency for your project, I think you also need to add in the Project

[Lazarus] Project Options dialog

2013-02-02 Thread Howard Page-Clark
This is a suggestion for improving the Project Options UI. The Application (settings) page now sports several platform-specific options. I think it would be better to group these by platform, and have the list of settings identified by platform. Something like: Cross-platform settings

Re: [Lazarus] Problem growing an array

2013-01-25 Thread Howard Page-Clark
On 25/1/13 3:55, appjaws wrote: Hi, Could one of you experts look at my code please. My program crashes after the first set of strings are added because -- I think -- the length is not updating. The following is just a snipet. It's hard to tell from a snippet, but I don't see anywhere that you

Re: [Lazarus] Problem growing an array

2013-01-25 Thread Howard Page-Clark
On 25/1/13 6:38, appjaws wrote: On 25/01/13 18:26, Howard Page-Clark wrote: On 25/1/13 3:55, appjaws wrote: Hi, Could one of you experts look at my code please. My program crashes after the first set of strings are added because -- I think -- the length is not updating. You're

Re: [Lazarus] Lazarus books

2013-01-24 Thread Howard Page-Clark
On 24/1/13 6:51, appjaws wrote: I need a book or site that can explain these details and provide working examples that I can use as practise. I know what I want to achieve with a gui program but not the best way to to complete an operation. Have you looked at Lazarus the Complete Guide

Re: [Lazarus] Dynamic library dependency error

2013-01-22 Thread Howard Page-Clark
On 22/1/13 2:22, xrfang wrote: I try to make a dynamic library and get this error: paintrect.pas(0,0) Fatal: Can not find unit Controls used by paintrect. Check if package LCLBase is in the dependencies. You need to add LCLBase as a project dependency. Use the Project Inspector's Add button

Re: [Lazarus] Got Pointer, expected Open Array Of Char

2013-01-13 Thread Howard Page-Clark
On 13/1/13 1:58, Dave Coventry wrote: On 13 January 2013 14:56, leledumbo leledumbo_c...@yahoo.co.id wrote: Or const since it's meant to be read only Hmmm. Doesn't help. Still getting the same error. I've tried passing the src parameter as a Pointer and then casting it as an array of Char.

Re: [Lazarus] Got Pointer, expected Open Array Of Char

2013-01-12 Thread Howard Page-Clark
On 12/1/13 6:10, Dave Coventry wrote: dst and src are passed to the function that calls Copybytes(); function copy_compressed_bytes(var dst: array of Char; var dloc, sloc: integer; src: array of Char; len: integer): integer; begin Copybytes(@dst[dloc],@src[sloc],16); return 0; end;

Re: [Lazarus] record literal in FPC?

2013-01-08 Thread Howard Page-Clark
On 08/1/13 3:30, xrfang wrote: I would like to use literal directly, such as: Edit1.CaretPos := (X: 0, Y: 0); You can use a typed constant thus: const Origin: TPoint = (x:0; y:0); begin ... Edit1.CaretPos := Origin; ... -- ___ Lazarus mailing

Re: [Lazarus] My Lazarus logo using Inkscape

2013-01-08 Thread Howard Page-Clark
On 08/1/13 3:14, Zaher Dirkey wrote: We need the declaration for reproduce word, i don't think it is make a similar to it, i need a lawyer :P IANAL but reproduce here means produce a copy of, which you are not doing. Rather you are adapting the image (or taking inspiration from the image, or

Re: [Lazarus] Difference between Delphi 2010 / Lazarus

2012-12-13 Thread Howard Page-Clark
On 13/12/12 9:45, Jorge Gonçalves wrote: Hi, I'm translating one application from delphi to lazarus, and I'm having some problems with the way lazarus and delphi stores calculate fields in the dfm. The delphi store one more property :Calculated. This property is public and are stored using the

Re: [Lazarus] Converting pence into pounds and then to string

2012-12-12 Thread Howard Page-Clark
How's the best way of converting an integer number 208 (that is pence) into a string value that is in pounds (2.08) Here's another variant that provides an optional $, £ or € uses math; function PenceToString(pennies: integer; precision: integer=2; currency:

Re: [Lazarus] from hfiandor 11 dic 2012

2012-12-11 Thread Howard Page-Clark
On 12/12/12 1:40, Héctor F. Fiandor Rosario wrote: Dear fellows: I am using SQLite3 for an application and I have a problem. I need to use a table in an unit that don´t has a form -is a unit for ReadWrite procedures- and I can´t place the DataAccess for SQLite icom. Please, in this cases, what

[Lazarus] TDataModule accepts some visual controls

2012-12-09 Thread Howard Page-Clark
I discovered that a datamodule will let you drop a TMainMenu or a TPopupMenu on it. Is this by design, or an oversight? Should I report this as a bug? Howard -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http

Re: [Lazarus] Beta testers needed / Lazarus with Editor-Macro-Script

2012-11-30 Thread Howard Page-Clark
On 30/11/12 1:21, Martin wrote: Hi, I need some testers for all the different available platforms. Because, unfortunately, I do not have every available hardware/OS myself :( ?xml version=1.0 encoding=utf-8? TestResults !-- Generated using FPCUnit on 2012-11-30 10:59:13-- TestListing

Re: [Lazarus] Why doesn't this work?

2012-11-29 Thread Howard Page-Clark
On 28/11/12 10:15, Erwin van den Bosch wrote: procedure TForm1.Button1Click(Sender: TObject); var iLastError: integer; begin iLastError:=10053; if iLastError in [10053, 10054] then Label1.Caption:='Yes, it works!' else Label1.Caption:='No, it doesn''t

Re: [Lazarus] Where is the System Unit source?

2012-11-14 Thread Howard Page-Clark
On 14/11/12 4:19, Curt Carpenter wrote: Could anyone tell me where I'll find the system unit source? I have the source for FPC, but can's seem to find system.pas anywhere. Look in fpc/rtl/inc/system.inc Howard -- ___ Lazarus mailing list Lazarus

  1   2   3   >