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
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
WIKI Timeout issues
Please read here if you have trouble connecting to the wiki
Recent
TCombobox causes Access V...
by
rich2014
[
Today
at 06:55:58 pm]
What is the current versi...
by
Remy Lebeau
[
Today
at 06:52:50 pm]
32-Bit MS-DOS Application...
by
paule32
[
Today
at 06:51:38 pm]
StringGrid - How to force...
by
etrusco
[
Today
at 06:20:30 pm]
InstallAware 2025 Sources...
by
Thaddy
[
Today
at 06:09:10 pm]
Output buffer to audio.
by
Fred vS
[
Today
at 05:34:55 pm]
Linux - partly off topic...
by
Martin_fr
[
Today
at 05:23:49 pm]
Firebird 5.02. - the root...
by
rvk
[
Today
at 04:55:39 pm]
[ZeosDBO/TZQuery] Passing...
by
rdxdt
[
Today
at 04:54:10 pm]
How do I drag/move a fram...
by
Warfley
[
Today
at 04:00:05 pm]
Nothing but chaotic attem...
by
Nicole
[
Today
at 03:18:37 pm]
TimageList - Lazarus 4 wi...
by
Nicole
[
Today
at 03:10:55 pm]
Fast Canvas Library V1.0
by
TBMan
[
Today
at 02:38:56 pm]
I created a Hello World p...
by
paweld
[
Today
at 01:56:08 pm]
Reading Embeded PO Files
by
Bart
[
Today
at 01:34:25 pm]
functional IF
by
creaothceann
[
Today
at 01:09:43 pm]
What is your favorite "bu...
by
cdbc
[
Today
at 11:32:49 am]
TStringGrid.VisibleColCou...
by
wp
[
Today
at 10:57:24 am]
Gateway Timeouts
by
Marc
[
Today
at 09:58:47 am]
Animated toggle switch
by
cdbc
[
Today
at 08:41:11 am]
Pasdoc and Lazarus
by
440bx
[
Today
at 05:10:23 am]
[AGREED] processing web f...
by
Leledumbo
[
Today
at 04:28:13 am]
Testers required for LAMW...
by
nicelybrewed
[
Today
at 12:38:21 am]
IDE/ New Plugin
by
anderbelluno
[
Today
at 12:19:10 am]
Compiler can't find a (fa...
by
cdbc
[June 12, 2025, 11:35:34 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: i have function named showelp but it is called from control.inc (Read 787 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: 6943
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: 2198
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 -> KDE5 -> FPC 3.2.2 -> Lazarus 3.6 up until Jan 2024 from then on it's both above &: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 4.99
Thaddy
Hero Member
Posts: 17104
Ceterum censeo Trump esse delendam
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
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.
Thaddy
Hero Member
Posts: 17104
Ceterum censeo Trump esse delendam
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
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.
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: 17104
Ceterum censeo Trump esse delendam
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
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
i have function named showelp but it is called from control.inc
TinyPortal
© 2005-2018