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
How many lines is too man...
by
creaothceann
[
Today
at 07:21:07 pm]
Variable initialization
by
LeP
[
Today
at 06:58:53 pm]
[SOLVED] Problem to resto...
by
Hartmut
[
Today
at 06:42:28 pm]
Debian removes FPC/Lazaru...
by
Martin_fr
[
Today
at 06:41:38 pm]
Text Fill (Memo)
by
Sc0li0sis
[
Today
at 06:08:54 pm]
BGRA Controls license inf...
by
Zoran
[
Today
at 05:48:27 pm]
TCalendar Assign a Date
by
eldonfsr
[
Today
at 05:04:10 pm]
Update a table with an Au...
by
wp
[
Today
at 04:16:29 pm]
[Feature Request]Add Larg...
by
TYDQ
[
Today
at 03:03:31 pm]
Receipt printers & lazare...
by
Petrus Vorster
[
Today
at 02:36:22 pm]
STOMP Clients Release 202...
by
mjustin
[
Today
at 01:56:25 pm]
FreePascal/Lazarus docume...
by
MarkMLl
[
Today
at 10:03:46 am]
PasLLM - LLM Inference En...
by
domasz
[
Today
at 08:53:15 am]
Lazarus IDE built for LCL...
by
dbannon
[March 05, 2026, 11:52:07 pm]
Should TEdit.Clear cause ...
by
Bart
[March 05, 2026, 10:07:40 pm]
Reset doesn't open ReadOn...
by
eny
[March 05, 2026, 09:29:24 pm]
unit ProjectDescriptorTyp...
by
n7800
[March 05, 2026, 09:27:11 pm]
Interface problem
by
PascalDragon
[March 05, 2026, 09:22:57 pm]
bgraformatui.pas(26,12) W...
by
PascalDragon
[March 05, 2026, 09:05:02 pm]
FPC says file exists, Laz...
by
cdbc
[March 05, 2026, 05:06:05 pm]
Lazarus Bugfix Release 4....
by
uganof
[March 05, 2026, 03:04:05 pm]
Add Help to an Applicatio...
by
1HuntnMan
[March 05, 2026, 02:41:40 pm]
composition instead of in...
by
BildatBoffin
[March 05, 2026, 01:16:31 pm]
Is it me or is there some...
by
jamie
[March 05, 2026, 12:03:37 pm]
Lazarus 4.x - ZeosdBo
by
essence-ciel
[March 05, 2026, 08:29:57 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: i have function named showelp but it is called from control.inc (Read 1083 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: 7587
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: 2664
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: 18764
To Europe: simply sell USA bonds: dollar collapses
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
If Europe sells their USA bonds the USD will collapse. Europe can affort that given average state debts. The USA can't affort that. Just an advice...
Thaddy
Hero Member
Posts: 18764
To Europe: simply sell USA bonds: dollar collapses
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
If Europe sells their USA bonds the USD will collapse. Europe can affort that given average state debts. The USA can't affort that. Just an advice...
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: 18764
To Europe: simply sell USA bonds: dollar collapses
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
If Europe sells their USA bonds the USD will collapse. Europe can affort that given average state debts. The USA can't affort that. Just an advice...
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
i have function named showelp but it is called from control.inc
TinyPortal
© 2005-2018