Questions tagged [tgridpanel]

TGridPanel is a User Interface Element that implements a grid panel control in which each component is placed within a cell on a grid.

TGridPanel is a User Interface Element that implements a grid panel control in which each component is placed within a cell on a grid.

15 questions
20
votes
2 answers

Delphi How to use TGridPanel

I want to use Delphi's 2009 TGridPanel, but I don't understand how to use it correctly. For example, I want to have a GridPanel with 4 columns which should have each 25% percent of the GripPanels width. So I put a GripPanel on the form and add 4…
flinkiy1
  • 267
  • 1
  • 3
  • 7
8
votes
5 answers

GridPanel does not adjust at first resize

I have a problem I am unable to solve even though I spend long time trying to do it. I usually use GridPanels to align controls on forms. It has, however, an annoying bug. When the GridPanel align mode is alClient and I maximize its parent window,…
Mariusz Schimke
  • 3,185
  • 8
  • 45
  • 63
4
votes
2 answers

Delphi TGridPanel - dynamically hide some rows

I have grid panel 16 x 4 like this one: Sometimes i want to hide some rows and to move bottom rows up. When I set component visible property to false the layout is not updated: Nevertheless the row size type is set to auto: Why the component…
truthseeker
  • 1,220
  • 4
  • 25
  • 58
3
votes
1 answer

Getting column index of a clicked control in TGridPanel

I'm using a TGridPanel to hold some panels. At design time, I've set the grid panel to have 1 row and 5 columns. I can add a panel to the grid using this code, which works well: procedure TForm6.AddPanelToGrid(const ACaption: string); var pnl:…
Michael Vincent
  • 1,620
  • 1
  • 20
  • 46
3
votes
2 answers

Finding out position of a control inside TGridPanel

How I can find out the position (row and column index) of controls inside TGridPanel? I'd like to use common OnClick event for number of buttons and need to know the X,Y position of the button. I'm using Delphi 2007.
Harriv
  • 6,029
  • 6
  • 44
  • 76
2
votes
2 answers

Getting the cell clicked on in a TGridPanel

I have a TGridPanel on a form and wish to add a control to a specific "cell" that is clicked on. I can get the point easily enough: procedure TForm1.GridPanel1DblClick(Sender: TObject); var P : TPoint; InsCol, InsRow : Integer; begin P :=…
Jerry Gagnon
  • 1,131
  • 8
  • 16
2
votes
1 answer

How in Delphi 10.4.2 show vertical separator lines in a TGridPanel that has a group of TRadioButton in its columns

I have a TGridPanel that has 6 columns (as an example). In each column there is a TRadiobutton. All five TradioButtons from a group. In this way the five TRadioButtons work as expected, and at the same time only one of them can be checked. To add…
Zonouzi
  • 81
  • 9
2
votes
1 answer

How to have an absolute row between two percentage rows when adding to a TGridPanel from code?

I am trying to create a Form with a TGridPanel from code. It contains: A memo at the top (which is set to 50%) A navigator at the center (which is set to 24 pixels) A grid at the bottom (which is set to 50%) This is the code I wrote: uses …
Jens Mühlenhoff
  • 14,565
  • 6
  • 56
  • 113
1
vote
1 answer

Change the order of rows in TGridPanel by button click

I like to change the order of rows in a TGridPanel by clicking a button. The Gridpanel rows are dymamically created and contain a Panel with a manually docked form. The form has its own edit components and a Label with the index of the current…
1
vote
1 answer

delphi gridpanel last row height issue

How to avoid gridpanel last row take higher than others? I have 10 rows with 10 percent value If I append a new row with 0 percent the prior row which tend to be the last row take the right height but a new row borders appears at the bottom which I…
S.FATEH
  • 451
  • 8
  • 16
1
vote
3 answers

How to assign a component to a Delphi GridPanel row and column programmatically?

I am working on a project using Delphi where I am making rows and columns for a GridPanel dynamically. I am also creating a panel (TPanel) that I intend to place in each cell dynamically. My question is: How do you assign the newly created panel to…
Andre72127
  • 219
  • 3
  • 11
1
vote
0 answers

Delphi 2007 - Is there a THeaderControl that works in the vertical direction

I have a need to resize rows on a TGridPanel, and figured I could do it by having a THeaderControl left-aligned and resizing the TGridPanel rows when the OnSectionResize fires to match the section widths in the header control. Unlike scrollbars…
rossmcm
  • 5,493
  • 10
  • 55
  • 118
1
vote
1 answer

how to attach headerclick event for Ext.grid.GridPanel in extjs?

Can you tell me how to attach headerclick or headerdblclick event to Ext.grid.GridPanel?
diya
  • 13
  • 1
  • 4
1
vote
0 answers

XE2: Issues with TGridPanel

I've created the following TGridPanel in the IDE: This TGridPanel is inside a TPageControl:TTabSheet, which is on a TFrame. TFrame => TPageControl => TTabSheet => TGridPanel During Design Time in the IDE everything is fine. However, when I drop…
Mario Werner
  • 1,771
  • 14
  • 24
0
votes
1 answer

How to add padding in a cell of a TGridPanel in Delphi?

I created a Delphi 10.4 VCL testing program. On the form, I created a one-row-multi-column TGridPanel and placed a TSpeedButton on column 0. The properties of column 0 are: SizeStyle: ssAuto Value: 50 Some properties of the TSpeedButton are: Align:…
user130268
  • 1,341
  • 2
  • 12
  • 20