Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Databases
»
DBGrid columns no resize at run-time
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
storing string
by
Remy Lebeau
[
Today
at 09:46:56 pm]
AVRPascal – free code edi...
by
marcov
[
Today
at 09:44:17 pm]
How do you know wich vers...
by
Warfley
[
Today
at 08:32:11 pm]
Unable to find file "date...
by
Cumberland
[
Today
at 08:27:29 pm]
Common File Dialogs Have ...
by
rvk
[
Today
at 07:33:14 pm]
Developing a Kernel Modul...
by
nicolap
[
Today
at 05:37:05 pm]
LazMapView - adding a sca...
by
alpine
[
Today
at 05:26:28 pm]
[SOLVED] Howto use a DEFI...
by
tintinux
[
Today
at 04:55:13 pm]
ZDataset.Locate + loParti...
by
tintinux
[
Today
at 04:47:48 pm]
Strange memory allocation...
by
MathMan
[
Today
at 03:40:40 pm]
Best UI to adopte while d...
by
marcov
[
Today
at 02:42:45 pm]
Random SnowFlakes:
by
Boleeman
[
Today
at 12:24:18 pm]
AY_FLY Library
by
Thaddy
[
Today
at 11:50:21 am]
Hustle - A simple task ma...
by
MarkMLl
[
Today
at 11:37:20 am]
How much would it hamper ...
by
Thaddy
[
Today
at 11:36:24 am]
Lazarus MDI application.
by
Fred vS
[
Today
at 11:25:21 am]
Linking question
by
Khrys
[
Today
at 10:23:13 am]
CudaText Editor (written ...
by
AlexTP
[
Today
at 10:16:27 am]
sql log file with sql sta...
by
Zvoni
[
Today
at 09:06:27 am]
Amigo programming languag...
by
paxscript
[
Today
at 05:30:46 am]
NSHapticFeedbackPerformer
by
msintle
[
Today
at 01:29:22 am]
Error: (1026) Compilation...
by
daniel_sap
[December 01, 2024, 08:02:58 pm]
Worksheet.PageLayout
by
seghele0
[December 01, 2024, 04:30:15 pm]
[Solved] How to unselect ...
by
jamie
[December 01, 2024, 12:48:55 pm]
Lazarus/FPC semi-randomly...
by
Martin_fr
[December 01, 2024, 12:22:41 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: DBGrid columns no resize at run-time (Read 497 times)
pat03uk
New Member
Posts: 20
DBGrid columns no resize at run-time
«
on:
October 23, 2024, 10:18:17 am »
I can't resize the columns of a DBGrid at run time using the mouse.
I get the resize cursor when hovering over the header junction between columns but no resize.
This is latest Lazarus on a Mac.
Pat
Logged
five
New Member
Posts: 28
Re: DBGrid columns no resize at run-time
«
Reply #1 on:
November 12, 2024, 05:10:50 pm »
Hi pat03uk,
I was able to reproduce this behavior. If you have a silent exception on the OnMouseDown event linked to the DBGrid, you will not be able to resize columns.
Check if you have any overloaded events related to the mouse action on your DBGrid that are not raising exception.
Code: Pascal
[Select]
[+]
[-]
Procedure
TfmMainDemo
.
grdProjectMouseDown
(
Sender
:
TObject
;
Button
:
TMouseButton
;
Shift
:
TShiftState
;
X
,
Y
:
Integer
)
;
Begin
// Simulate a silent exception
Abort
;
End
;
«
Last Edit: November 12, 2024, 05:20:21 pm by five
»
Logged
pat03uk
New Member
Posts: 20
Re: DBGrid columns no resize at run-time
«
Reply #2 on:
November 16, 2024, 06:40:43 pm »
five
Thanks for that. I will check but I have since tried KDBGrid, RXDBGrid which work as expected. Then I went back to DBGrid and that now worked fine as well. So I don't know what the problem was.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Databases
»
DBGrid columns no resize at run-time
TinyPortal
© 2005-2018