[lazarus] TNoteBook vs TPageControl

2007-06-18 Thread Graeme Geldenhuys
Hi, What is the difference between these two components? Which one would be more reliable in a production environment? The product will be released of Windows and Linux. Regards, - Graeme - _ To unsubscribe: mail [EMAIL

Re: [lazarus] TNoteBook vs TPageControl

2007-06-18 Thread Mattias Gaertner
On Mon, 18 Jun 2007 09:26:13 +0200 Graeme Geldenhuys [EMAIL PROTECTED] wrote: Hi, What is the difference between these two components? TPageControl is a descendant of TCustomNoteBook and provides a few more utility functions. Which one would be more reliable in a production environment?

Re: [lazarus] TNoteBook vs TPageControl

2007-06-18 Thread Henry Vermaak
On 18/06/07, Graeme Geldenhuys [EMAIL PROTECTED] wrote: Hi, What is the difference between these two components? Which one would be more reliable in a production environment? The product will be released of Windows and Linux. i'm using lots of pagecontrol/tabsheets in a project at the

Re: [lazarus] TNoteBook vs TPageControl

2007-06-18 Thread Graeme Geldenhuys
On 18/06/07, Henry Vermaak [EMAIL PROTECTED] wrote: i'm using lots of pagecontrol/tabsheets in a project at the moment. they work very well. only complaint thus far is that i can't seem to select them reliably in the visual editor. i need to select them in the object inspector. I noticed

Re: [lazarus] TNoteBook vs TPageControl

2007-06-18 Thread Charl van Jaarsveldt
Also, in both, if you are designing a tab, then flip over to another tab, any new components dropped onto the tab you are now on will not be displayed at design time, only the resize blocks will be there to tell you where it is. This happens in Gtk2, not sure about Gtk1. Workaround is to save the

Re: [lazarus] TNoteBook vs TPageControl

2007-06-18 Thread Henry Vermaak
On 18/06/07, Charl van Jaarsveldt [EMAIL PROTECTED] wrote: Also, in both, if you are designing a tab, then flip over to another tab, any new components dropped onto the tab you are now on will not be displayed at design time, only the resize blocks will be there to tell you where it is. This

Re: [lazarus] TNoteBook vs TPageControl

2007-06-18 Thread Graeme Geldenhuys
On 18/06/07, Charl van Jaarsveldt [EMAIL PROTECTED] wrote: Also, in both, if you are designing a tab, then flip over to another tab, any new components dropped onto the tab you are now on will not be displayed at design time, only the resize blocks will be there to tell you where it is. This

[lazarus] Useless code in win32intf?

2007-06-18 Thread Luiz Americo Pereira Camara
Maybe i missed something but what's the meaning of the following code, found in win32callback.inc:710 if lWinControl.ClassName = 'TPairSplitter' then P := P; Luiz _ To unsubscribe: mail [EMAIL PROTECTED] with

Re: [lazarus] TNoteBook vs TPageControl

2007-06-18 Thread Charl van Jaarsveldt
here is one: http://www.freepascal.org/mantis/view.php?id=8346 On 6/18/07, Graeme Geldenhuys [EMAIL PROTECTED] wrote: On 18/06/07, Charl van Jaarsveldt [EMAIL PROTECTED] wrote: Also, in both, if you are designing a tab, then flip over to another tab, any new components dropped onto the tab

Re: [lazarus] Mousewheel capture

2007-06-18 Thread Darmawan Sugiarto
I used ver 0.9.23 on XP but your problem not happend make sure you drop Timage inside TScrollBox Dave Coventry [EMAIL PROTECTED] wrote: Hi, I think I said in my post that I was using 0.9.22 on XP It DOES work it you just drop a TImage onto the TScrollBox. If you resize the TImage to, say

Re: [lazarus] Useless code in win32intf?

2007-06-18 Thread Павел Ишенин
Luiz Americo Pereira Camara wrote: Maybe i missed something but what's the meaning of the following code, found in win32callback.inc:710 if lWinControl.ClassName = 'TPairSplitter' then P := P; ow, sorry. I used it to debug (we have no conditional breakpoints). I will ask to remove it.

Re: [lazarus] Useless code in win32intf?

2007-06-18 Thread Marc Weustink
Luiz Americo Pereira Camara wrote: Maybe i missed something but what's the meaning of the following code, found in win32callback.inc:710 if lWinControl.ClassName = 'TPairSplitter' then P := P; Probably used while debugging to set a breakpoint marc

Re: [lazarus] TNoteBook vs TPageControl

2007-06-18 Thread Christian Ulrich
Which one would be more reliable in a production environment? The product will be released of Windows and Linux. I use TPagecontrol at time, in Windows it works well in GTK it isnt visible after the second Form.Show so its useless in an productive Enviroment. Dont know about TNotebook.

Re: [lazarus] TNoteBook vs TPageControl

2007-06-18 Thread Henry Vermaak
On 18/06/07, Christian Ulrich [EMAIL PROTECTED] wrote: I use TPagecontrol at time, in Windows it works well in GTK it isnt visible after the second Form.Show so its useless in an productive Enviroment. Dont know about TNotebook. mine doesn't even work in windows. i wouldn't call it useless

Re: [lazarus] Useless code in win32intf?

2007-06-18 Thread Giuliano Colla
Павел Ишенин ha scritto: ow, sorry. I used it to debug (we have no conditional breakpoints). I will ask to remove it. Well you're better set than I am. One of our guys forgot to remove from a real-time library module a delay inserted for debugging purposes. It had been used in 207 different

RE: [lazarus] TNoteBook vs TPageControl

2007-06-18 Thread Hess, Philip J
Graeme, You might want to check and see if TNotebook has this same problem: http://www.freepascal.org/mantis/view.php?id=8056 What this means is that anchored controls on a TTabSheet don't resize when the sheet does following a resize of form at runtime. That is, the controls on the TTabSheet

Re: [lazarus] Combo.OnClick

2007-06-18 Thread Joao Morais
Joao Morais wrote: Hello, The ComboBox.OnClick event is *being* fired when the user opens the combo and is *not being* fired when the user click on the option (and the combo is closed). Is this a bug or is this by default? Something here? If this is really a bug I can try a fix,

Re: [lazarus] Combo.OnClick

2007-06-18 Thread Felipe Monteiro de Carvalho
On which platform are you and what is the expected behavior? -- Felipe Monteiro de Carvalho _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at

Re: [lazarus] Useless code in win32intf?

2007-06-18 Thread Vincent Snijders
On Mon, 18 Jun 2007 22:59:55 +0800 Павел Ишенин [EMAIL PROTECTED] wrote: Luiz Americo Pereira Camara wrote: Maybe i missed something but what's the meaning of the following code, found in win32callback.inc:710 if lWinControl.ClassName = 'TPairSplitter' then P := P; ow, sorry. I

Re: [lazarus] Combo.OnClick

2007-06-18 Thread Joao Morais
Felipe Monteiro de Carvalho wrote: On which platform are you and what is the expected behavior? win32 and gtk1. I would expect onclick fired when the user chooses another option. This should also happen when the user presses up and down arrow keys (opened and closed combo). The onclick

[lazarus] win32 snapshots with gdb 6.6

2007-06-18 Thread Vincent Snijders
Hi, I want to inform you that since a couple of days, the lazarus snapshots come with gdb 6.6 instead of gdb 6.0. Please, report any problems you have because of this change, so that we can fix them before the next release. Vincent

Re: [lazarus] TNoteBook vs TPageControl

2007-06-18 Thread George Lober
Hello, Yes that would be showstopper, but I checked TPageControl/TTabSheet under GTK, with TButton, TEdit, TListview and TStringGrid, and the controls resize correctly, either with alClient or with alNone and anchors set. ??? Regards, George Hess, Philip J wrote: Graeme, You might want

[lazarus] Lazarus failing under DEP

2007-06-18 Thread Steven Graham
Hi I've just turned DEP on XP into OptOut mode and I've had to opt it out as when I start lazarus (it does auto load my project files) and it gives an Access Violation. Then I get another dialog saying: Runtime error 217 at $0089D862 $0089D862 $008992EC $0041EA55 $0041C83C An unhandled

Re: [lazarus] Lazarus failing under DEP

2007-06-18 Thread Steven Graham
Micha Nelissen wrote: The nice JITForms hack ? What is the JITForms hack? I'm sorry I forgot to say that I'm using standard 0.9.22 beta _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the

Re: [lazarus] Lazarus failing under DEP

2007-06-18 Thread Micha Nelissen
Steven Graham wrote: Hi I've just turned DEP on XP into OptOut mode and I've had to opt it out as when I start lazarus (it does auto load my project files) and it gives an Access Violation. The nice JITForms hack ? Micha _

Re: [lazarus] Lazarus failing under DEP

2007-06-18 Thread Felipe Monteiro de Carvalho
What is DEP? -- Felipe Monteiro de Carvalho _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

RE: [lazarus] TNoteBook vs TPageControl

2007-06-18 Thread Hess, Philip J
George, Did you test with the sample app included with the Mantis bug report? On Windows, the TEdit on the form resizes okay when you resize the form horizontally, but the TEdit on the TTabSheet does not. Thanks. -Phil -Original Message- From: George Lober [mailto:[EMAIL PROTECTED]

Re: [lazarus] Lazarus failing under DEP

2007-06-18 Thread Steven Graham
Micha Nelissen wrote: Felipe Monteiro de Carvalho wrote: What is DEP? Data Execution Prevention. JITForms has code that allocates memory, copies some code of itself to it, and then lets an event callback point to it. It was more a remark for Mattias, than anything others could fix.

Re: [lazarus] Lazarus failing under DEP

2007-06-18 Thread Micha Nelissen
Felipe Monteiro de Carvalho wrote: What is DEP? Data Execution Prevention. JITForms has code that allocates memory, copies some code of itself to it, and then lets an event callback point to it. It was more a remark for Mattias, than anything others could fix. Micha

Re: [lazarus] Lazarus failing under DEP

2007-06-18 Thread Mattias Gaertner
On Mon, 18 Jun 2007 19:27:18 +0100 Steven Graham [EMAIL PROTECTED] wrote: Micha Nelissen wrote: The nice JITForms hack ? What is the JITForms hack? A very evil hack. But 0.9.23 and fpc 2.0.5 already contains a solution. I'm sorry I forgot to say that I'm using standard 0.9.22

Re: [lazarus] Combo.OnClick

2007-06-18 Thread Felipe Monteiro de Carvalho
On 6/18/07, Joao Morais [EMAIL PROTECTED] wrote: I would expect onclick fired when the user chooses another option. There is OnChange for that. The onclick event shouldn't be fired when the user opens the combo, there is another event to accomplish this. For me the behavior looks logical.

Re: [lazarus] Lazarus failing under DEP

2007-06-18 Thread Steven Graham
Felipe Monteiro de Carvalho wrote: What is DEP? Data Execution Prevention, it activates the NX/XD bits and stops buffer overflow vulnerabilities by stopping programs being able to execute from their data. DEP thinks that lazarus is trying to execute it's data.

Re: [lazarus] TNoteBook vs TPageControl

2007-06-18 Thread George Lober
Ok, never mind, I see now the bug is applicable to Win32 only. Although using other modes other than alNone, seems to work Ok. George George Lober wrote: Hello, Yes that would be showstopper, but I checked TPageControl/TTabSheet under GTK, with TButton, TEdit, TListview and TStringGrid,

Re: [lazarus] Lazarus failing under DEP

2007-06-18 Thread Steven Graham
Mattias Gaertner wrote: A very evil hack. But 0.9.23 and fpc 2.0.5 already contains a solution. ooh I see! Use 0.9.23 and a recent fpc (2.0.5 or 2.3.x) and compile lazarus with -dEnableFakeMethods. does the binary version of 0.9.23 use this, I've never compiled lazarus before, just

Re: [lazarus] Lazarus failing under DEP

2007-06-18 Thread Felipe Monteiro de Carvalho
On 6/18/07, Steven Graham [EMAIL PROTECTED] wrote: does the binary version of 0.9.23 use this, No I've never compiled lazarus before, just downloaded the binary version. It's trivial. Open Lazarus and go to the menu Tools -- Configure Build Lazarus And add the option on the edit box and

RE: [lazarus] TNoteBook vs TPageControl

2007-06-18 Thread Hess, Philip J
I don't see that on Windows. Setting the TEdit's Align to alCustom has the same problem as clNone. The other settings expand the TEdit to take up the entire sheet, which isn't what we want. Thanks. -Phil -Original Message- From: George Lober [mailto:[EMAIL PROTECTED] Sent: Monday,

Re: [lazarus] Lazarus failing under DEP

2007-06-18 Thread Vincent Snijders
On Mon, 18 Jun 2007 19:57:30 +0100 Steven Graham [EMAIL PROTECTED] wrote: Mattias Gaertner wrote: A very evil hack. But 0.9.23 and fpc 2.0.5 already contains a solution. ooh I see! Use 0.9.23 and a recent fpc (2.0.5 or 2.3.x) and compile lazarus with -dEnableFakeMethods. Not

Re: [lazarus] Combo.OnClick

2007-06-18 Thread Joao Morais
Felipe Monteiro de Carvalho wrote: On 6/18/07, Joao Morais [EMAIL PROTECTED] wrote: I would expect onclick fired when the user chooses another option. There is OnChange for that. This is fired when the text is changed. I need an event that says when the index is changed. The onclick

Re: [lazarus] Lazarus failing under DEP

2007-06-18 Thread Steven Graham
Vincent Snijders wrote: Not fpc 2.0.5, but 2.1.5. yep just used 2.1.5! Download the fpc 2.1.5 win32 snapshot installer and install it. run lazarus (turn off DEP). configure build lazarus. select clean + build for all build parts. enter -dEnableFakeMethods in the options textbox. build

Re: [lazarus] Combo.OnClick

2007-06-18 Thread Felipe Monteiro de Carvalho
On 6/18/07, Joao Morais [EMAIL PROTECTED] wrote: This is fired when the text is changed. I need an event that says when the index is changed. I thougth OnChange would do that ... doesn't it activate when you change to another option and it has the same caption as before? My complaint is

Re: [lazarus] TNoteBook vs TPageControl

2007-06-18 Thread George Lober
Ok, you got me on that one. I don't use alCustom, never needed to, so I didn't check for that. Also if for example you use alTop and you set Anchor akBottom to true, this will also not work. Again I don't use those combinations, so I didn't check. I usually use alNone with anchors, alClient,

Re: [lazarus] Combo.OnClick

2007-06-18 Thread Joao Morais
Felipe Monteiro de Carvalho wrote: On 6/18/07, Joao Morais [EMAIL PROTECTED] wrote: This is fired when the text is changed. I need an event that says when the index is changed. I thougth OnChange would do that ... doesn't it activate when you change to another option and it has the same

Re: [lazarus] win32 snapshots with gdb 6.6

2007-06-18 Thread Luiz Americo Pereira Camara
Vincent Snijders wrote: Hi, I want to inform you that since a couple of days, the lazarus snapshots come with gdb 6.6 instead of gdb 6.0. Are you using the binary found in http://sourceforge.net/project/showfiles.php?group_id=2435package_id=82724release_id=190586 ? I use the svn and

Re: [lazarus] Combo.OnClick

2007-06-18 Thread Luiz Americo Pereira Camara
Joao Morais wrote: OnClick doesn't mean exactly a click, you have OnMouseDown to accompish this. OnClick means that the user sent information to the control, and this doesn't happen when he open a combo (not usually). Did you tried OnSelect? Luiz

Re: [lazarus] win32 snapshots with gdb 6.6

2007-06-18 Thread Vincent Snijders
On Mon, 18 Jun 2007 19:38:24 -0300 Luiz Americo Pereira Camara [EMAIL PROTECTED] wrote: Vincent Snijders wrote: Hi, I want to inform you that since a couple of days, the lazarus snapshots come with gdb 6.6 instead of gdb 6.0. Are you using the binary found in

Re: [lazarus] Combo.OnClick

2007-06-18 Thread Joao Morais
Luiz Americo Pereira Camara wrote: Joao Morais wrote: OnClick doesn't mean exactly a click, you have OnMouseDown to accompish this. OnClick means that the user sent information to the control, and this doesn't happen when he open a combo (not usually). Did you tried OnSelect? Hei, nice

RE: [lazarus] TNoteBook vs TPageControl

2007-06-18 Thread Hess, Philip J
I tested tonight and gtk has same problems as win32 with anchors. This is evidently an LCL problem, not a widgetset one. Clearly, if the TEdit on the form resizes, then the TEdit on the TTabSheet should too. That's the way Delphi works. -Original Message- From: George Lober