Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
i have function named showelp but it is called from control.inc
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
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Is case for string more o...
by
egsuh
[
Today
at 03:14:41 am]
Unleashed Pascal (async/a...
by
Akira1364
[
Today
at 02:24:26 am]
Fast Canvas Library V1.05...
by
Gigatron
[
Today
at 01:28:23 am]
How to define the SQLite3...
by
jamie
[
Today
at 01:26:49 am]
kOmniXML for Lazarus and ...
by
PeterEvans
[
Today
at 01:11:14 am]
Finding List of Fonts & P...
by
J-G
[August 09, 2026, 11:05:31 pm]
[Scrubbed] Question about...
by
jamie
[August 09, 2026, 08:47:34 pm]
Bug: XLSX writer does not...
by
wp
[August 09, 2026, 08:29:22 pm]
New charts
by
Tomxe
[August 09, 2026, 08:20:17 pm]
New Big Integer library i...
by
ad1mt
[August 09, 2026, 05:32:14 pm]
Star Wars Galaxian
by
Thausand
[August 09, 2026, 04:47:51 pm]
Automatic generation of *...
by
PeterBB
[August 09, 2026, 01:38:51 pm]
TyControls: a custom-draw...
by
Antek
[August 09, 2026, 12:07:39 pm]
PO-Editor MyLangEdit3 now...
by
dbannon
[August 09, 2026, 07:55:47 am]
Application triggers mess...
by
JanRoza
[August 09, 2026, 12:26:52 am]
[solved] form reset/reloa...
by
ADMGNS
[August 08, 2026, 09:58:42 pm]
Create small language
by
ADMGNS
[August 08, 2026, 09:52:19 pm]
Advatage Database server
by
neobrasil08
[August 08, 2026, 08:42:18 pm]
QGradientTrackPanel: A Fu...
by
Ed78z
[August 08, 2026, 07:22:09 pm]
How get listy of FieldDat...
by
Aruna
[August 08, 2026, 04:02:16 pm]
Identify network devices
by
LemonParty
[August 08, 2026, 03:44:03 pm]
how to connect to mariadb...
by
Mike.Cornflake
[August 08, 2026, 12:25:31 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: i have function named showelp but it is called from control.inc (Read 1156 times)
tanakian
New Member
Posts: 14
i have function named showelp but it is called from control.inc
«
on:
March 17, 2025, 02:10:18 pm »
in my unit1.pas i have function named ShowHelp, however, when i call it from Form1 method, it calls one from control.inc: procedure TControl.ShowHelp;
is that correct?
Logged
jamie
Hero Member
Posts: 7889
Re: i have function named showelp but it is called from control.inc
«
Reply #1 on:
March 17, 2025, 02:16:33 pm »
That is because you're calling it from the wrong place of code
Rename your function to something else to make it easier.
Logged
The only true wisdom is knowing you know nothing
cdbc
Hero Member
Posts: 2921
Re: i have function named showelp but it is called from control.inc
«
Reply #2 on:
March 17, 2025, 02:20:22 pm »
"ViewHelp" springs to mind
Logged
If it ain't broke, don't fix it
PCLinuxOS(rolling release) 64bit -> KDE6/QT6 -> FPC Release -> Lazarus Release & FPC Main -> Lazarus Main
Thaddy
Hero Member
Posts: 19606
Glad to be alive.
Re: i have function named showelp but it is called from control.inc
«
Reply #3 on:
March 17, 2025, 03:11:06 pm »
Specify it by prefixing with the unit name
Code: Pascal
[Select]
[+]
[-]
unit1
.
ShowHelp
(
)
That way your showhelp will be called instead of the method TControl.ShowHelp().
But as others suggested it may be better to choose a different name, although the above suggestion works fine.
If your ShowHelp is part of the form, i.e.
if it is a method
, declare it override.
TControl.ShowHelp is virtual.
Code: Pascal
[Select]
[+]
[-]
type
TForm1
=
class
(
TForm
)
;
private
....
public
procedure
showhelp
;
override
;
end
;
implementation
procedure
TForm1
.
ShowHelp
;
begin
Showmessage
(
'form1 help'
)
;
end
;
That will also work and probably the best option.
See also
https://lazarus-ccr.sourceforge.io/docs/lcl/controls/tcontrol.showhelp.html
«
Last Edit: March 17, 2025, 03:34:27 pm by Thaddy
»
Logged
Any "programmer" that knows only one programming language is not a programmer
Thaddy
Hero Member
Posts: 19606
Glad to be alive.
Re: i have function named showelp but it is called from control.inc
«
Reply #4 on:
March 18, 2025, 01:37:29 pm »
We already gave correct answers.
Logged
Any "programmer" that knows only one programming language is not a programmer
tanakian
New Member
Posts: 14
Re: i have function named showelp but it is called from control.inc
«
Reply #5 on:
March 18, 2025, 03:16:35 pm »
thank you everyone.
Logged
Thaddy
Hero Member
Posts: 19606
Glad to be alive.
Re: i have function named showelp but it is called from control.inc
«
Reply #6 on:
March 18, 2025, 04:33:29 pm »
Did you understand it?
Logged
Any "programmer" that knows only one programming language is not a programmer
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
i have function named showelp but it is called from control.inc
TinyPortal
© 2005-2018