[lazarus] Mousewheel capture

2007-06-15 Thread Graeme Geldenhuys
Hi, Below is a forwarded message. Could anybody try and help this guy out? I've never used a Scrollbox or the Mousewheel event. -- From: Dave Coventry [EMAIL PROTECTED] Date: Jun 12, 2007 - 06:43 AM Hi, I've put a TScrollBox

Re: [lazarus] StringGrid.ClientWidth does not count scroll bar

2007-06-15 Thread Micha Nelissen
Joao Morais wrote: The ClientWidth method does not count the vertical scroll bar width. Is this by default? This is inconsistent with Delphi, so if this is by default I know I need to implement a workaround =) The ClientWidth is the space available for client controls, no ? The vertical

Re: [lazarus] StringGrid.ClientWidth does not count scroll bar

2007-06-15 Thread Graeme Geldenhuys
Also note that if you are working with widths in the grids/cells, that the GridLineWidth is 50% implemented. It draws the grid lines based on that value, but then eats into the cell space, which doesn't take into account the GridLineWidth (always assuming 1). Graeme. On 15/06/07, Micha

Re: [lazarus] Is the F2 shortcut in a popup menu working?

2007-06-15 Thread Graeme Geldenhuys
What platform and widgetset are you using? Graeme. On 15/06/07, Joao Morais [EMAIL PROTECTED] wrote: Hello, I have some popup menus assigned to components. Taking all shortcuts I have used so far, only the F2 seems to be not working. Something I am missing? Thanks, -- Joao Morais

[lazarus] [patch] - Object Inspector: Component Tree scrollbars

2007-06-15 Thread Graeme Geldenhuys
The following has been submitted to Mantis. I included a minor patch for the Object Inspector's component treeview scrollbars. Instead of always showing the scrollbars, they are now set to ssAutoBoth. The patch needs to be applied from the root Lazarus directory.

Re: [lazarus] Mousewheel capture

2007-06-15 Thread Dave Coventry
Just to clarify: If you place a TScrollBox on a form and place a TImage into that ScrollBox and then resize the Timage (say to 300x300), the TScrollbox will trigger DoMouseWheel events but there is a dead spot at the top left hand corner. If you make the TImage so that it takes up the

Re: [lazarus] StringGrid.ClientWidth does not count scroll bar

2007-06-15 Thread Joao Morais
Graeme Geldenhuys wrote: Also note that if you are working with widths in the grids/cells, that the GridLineWidth is 50% implemented. It draws the grid lines based on that value, but then eats into the cell space, which doesn't take into account the GridLineWidth (always assuming 1). I'm

Re: [lazarus] Is the F2 shortcut in a popup menu working?

2007-06-15 Thread Joao Morais
Graeme Geldenhuys wrote: What platform and widgetset are you using? Linux gtk1, fpc 2.1.4 and lazarus trunk; windows, lazarus 0.9.20. On 15/06/07, Joao Morais [EMAIL PROTECTED] wrote: Hello, I have some popup menus assigned to components. Taking all shortcuts I have used so far, only the

Re: [lazarus] StringGrid.ClientWidth does not count scroll bar

2007-06-15 Thread Joao Morais
Micha Nelissen wrote: Joao Morais wrote: The ClientWidth method does not count the vertical scroll bar width. Is this by default? This is inconsistent with Delphi, so if this is by default I know I need to implement a workaround =) The ClientWidth is the space available for client controls,

Re: [lazarus] Is the F2 shortcut in a popup menu working?

2007-06-15 Thread Graeme Geldenhuys
Oh boy!! I can't even get any keyboard shortcuts working in a popup menu. Just tested it in my application. GTK1 under Linux using Lazarus r11312. :-( So, I'm worse off than you then! Graeme. On 15/06/07, Joao Morais [EMAIL PROTECTED] wrote: Graeme Geldenhuys wrote: What platform and

Re: [lazarus] inputdialog

2007-06-15 Thread Henry Vermaak
On 14/06/07, Graeme Geldenhuys [EMAIL PROTECTED] wrote: Not to mention the other problems. The buttons height is wrong and the buttons don't have a consistent width. The constraints should be MaxHeight = 25, MinHeight = 25 and MinWidth = 75. indeed. it looks like this problem disappears when

Re: [lazarus] CodeTools and a GUI Class Builder

2007-06-15 Thread Graeme Geldenhuys
On 15/06/07, Al Boldi [EMAIL PROTECTED] wrote: A good starting point would probably be a DBTable-To-Class importer. tiOPF already has something link this - well kinda. The tool is called tiSQLEditor. You write and execute you SQL statement and see the result screen. In that screen you can

[lazarus] Trigger an Event

2007-06-15 Thread Darmawan Sugiarto
Hello Guy... How can I make custom control for a component for example: procedure Tform1.OnButton1Click(Object:Sender) var _i:integer; _b:Tbutton; begin _b:=Tbutton.Create(form1); _b.parent:=Panel1; _b.OnClick:=??? end How can I assign a dynamic event for my new

Re: [lazarus] Trigger an Event

2007-06-15 Thread [EMAIL PROTECTED]
For {$MODE OBJFPC} try this: _b.OnClick:[EMAIL PROTECTED] For {$MODE DELPHI} this work: _b.OnClick:=FormBtnClick El vie, 15-06-2007 a las 08:51 -0700, Darmawan Sugiarto escribió: _b.OnClick:=FormBtnClick

Re: [lazarus] CodeTools and a GUI Class Builder

2007-06-15 Thread Michael Van Canneyt
On Fri, 15 Jun 2007, Graeme Geldenhuys wrote: On 15/06/07, Al Boldi [EMAIL PROTECTED] wrote: A good starting point would probably be a DBTable-To-Class importer. tiOPF already has something link this - well kinda. The tool is called tiSQLEditor. You write and execute you SQL statement

Re: [lazarus] Trigger an Event

2007-06-15 Thread Michael Van Canneyt
On Fri, 15 Jun 2007, Darmawan Sugiarto wrote: Hello Guy... How can I make custom control for a component for example: procedure Tform1.OnButton1Click(Object:Sender) var _i:integer; _b:Tbutton; begin _b:=Tbutton.Create(form1); _b.parent:=Panel1;

Re: [lazarus] CodeTools and a GUI Class Builder

2007-06-15 Thread Al Boldi
Graeme Geldenhuys wrote: On 15/06/07, Al Boldi [EMAIL PROTECTED] wrote: A good starting point would probably be a DBTable-To-Class importer. tiOPF already has something link this - well kinda. The tool is called tiSQLEditor. You write and execute you SQL statement and see the result screen.

Re: [lazarus] CodeTools and a GUI Class Builder

2007-06-15 Thread Joao Morais
Graeme Geldenhuys wrote: Has anybody done something like this with CodeTools yet? Creating a GUI Lazarus addon or seperate application that can build or edit classes? I will continue the design stuff for PressObjects presently. I need this SDK running in the Lazarus and Delphi IDE so I

Re: [lazarus] CodeTools and a GUI Class Builder

2007-06-15 Thread Lee Jenkins
Graeme Geldenhuys wrote: On 15/06/07, Al Boldi [EMAIL PROTECTED] wrote: A good starting point would probably be a DBTable-To-Class importer. tiOPF already has something link this - well kinda. The tool is called tiSQLEditor. You write and execute you SQL statement and see the result screen.