Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
Programatically select a cell in StringGrid/DrawGrid but don't invoke OnSelectCe
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
Golang vs free pascal
by
Laksen
[
Today
at 10:39:24 am]
TUI design (and ham radio...
by
MarkMLl
[
Today
at 10:22:15 am]
Who uses embedded languag...
by
vfclists
[
Today
at 10:12:28 am]
Class designer/editor
by
dseligo
[
Today
at 10:08:26 am]
How many levels of proced...
by
vfclists
[
Today
at 09:32:05 am]
TSynEdit: linefeeds and L...
by
Martin_fr
[
Today
at 09:19:03 am]
Browser User Agent & Frie...
by
ASBzone
[
Today
at 08:30:15 am]
Assigning result of a fun...
by
Thaddy
[
Today
at 07:41:50 am]
C++ conversion : what is ...
by
Thaddy
[
Today
at 07:09:07 am]
Fractal using Primes (and...
by
Boleeman
[
Today
at 03:56:46 am]
libqt6pas and ChatGPT
by
Bogen85
[
Today
at 02:21:26 am]
[SOLVED] Getting started ...
by
dbannon
[
Today
at 02:16:27 am]
Broken Icon Display on ma...
by
lainz
[September 14, 2024, 10:54:02 pm]
New Swagger/OpenAPI Clien...
by
vfclists
[September 14, 2024, 09:16:18 pm]
Listview how to custom or...
by
zeljko
[September 14, 2024, 08:45:48 pm]
Extended Module Player
by
Gigatron
[September 14, 2024, 07:57:58 pm]
Dark Mode on macOS 14.6.1
by
carl_caulkett
[September 14, 2024, 06:07:47 pm]
Prevent collapsing item l...
by
jamie
[September 14, 2024, 05:39:58 pm]
JSON with SQLite. SELECT ...
by
strubri
[September 14, 2024, 05:25:13 pm]
Creating `.app`s on the M...
by
carl_caulkett
[September 14, 2024, 04:57:52 pm]
Searching for a safe alte...
by
dbannon
[September 14, 2024, 03:21:53 pm]
CAD program written in La...
by
zamtmn
[September 14, 2024, 02:02:21 pm]
[SOLVED] Cannot change la...
by
Guser979
[September 14, 2024, 01:40:45 pm]
programming with Lazarus
by
VisualLab
[September 14, 2024, 01:17:44 pm]
[SOLVED] Memory leak usin...
by
wp
[September 14, 2024, 12:56:43 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Programatically select a cell in StringGrid/DrawGrid but don't invoke OnSelectCe (Read 431 times)
domasz
Hero Member
Posts: 526
Programatically select a cell in StringGrid/DrawGrid but don't invoke OnSelectCe
«
on:
August 12, 2024, 05:23:28 pm »
I have some code in OnSelectCell that needs to be called when the cell is selected by user using keyboard or mouse.
Now I want to select (highlight) that cell programmatically but don't invoke that code. Any ideas, please?
Logged
paweld
Hero Member
Posts: 1187
Re: Programatically select a cell in StringGrid/DrawGrid but don't invoke OnSelectCe
«
Reply #1 on:
August 12, 2024, 05:44:16 pm »
Code: Pascal
[Select]
[+]
[-]
StringGrid1
.
OnSelectCell
:
=
nil
;
// selcect cell
StringGrid1
.
OnSelectCell
:
=
@
OnSelectCellProc
;
Logged
Best regards / Pozdrawiam
paweld
domasz
Hero Member
Posts: 526
Re: Programatically select a cell in StringGrid/DrawGrid but don't invoke OnSelectCe
«
Reply #2 on:
August 12, 2024, 07:33:09 pm »
That's brilliant, thanks!
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
Programatically select a cell in StringGrid/DrawGrid but don't invoke OnSelectCe
TinyPortal
© 2005-2018