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
Recent
THashedStringList - do we...
by
Martin_fr
[
Today
at 08:32:53 pm]
Default Component Size mi...
by
SandyG
[
Today
at 08:22:50 pm]
2d "platform" game sugges...
by
TRon
[
Today
at 08:15:22 pm]
Forum slow for others as ...
by
Remy Lebeau
[
Today
at 08:07:38 pm]
Best way to exchange data...
by
cdbc
[
Today
at 07:54:00 pm]
Managing linked list as i...
by
Nicole
[
Today
at 07:20:39 pm]
FPC 3.2.2 Call Through do...
by
Thaddy
[
Today
at 06:52:23 pm]
Unneeded copy of string
by
Martin_fr
[
Today
at 06:50:40 pm]
Virtual Tree View blurs t...
by
anse
[
Today
at 05:54:55 pm]
Amoeba Animated: Not that...
by
Fred vS
[
Today
at 04:01:50 pm]
Rain Simulator
by
Boleeman
[
Today
at 03:56:43 pm]
SetDefaultLang with a fil...
by
wp
[
Today
at 03:38:49 pm]
Ying Yang: Various ways t...
by
Boleeman
[
Today
at 02:14:07 pm]
Slowly Rotating Nested Sq...
by
Boleeman
[
Today
at 11:48:54 am]
Fpcupdeluxe
by
Philippe1
[
Today
at 10:45:54 am]
[Solved] Defining multipl...
by
nikel
[
Today
at 10:35:53 am]
Handle double click on a ...
by
Hansaplast
[
Today
at 09:39:42 am]
[Solved] Argon2id and AES
by
Swirl
[
Today
at 09:03:51 am]
[SOLVED] How to use "Reso...
by
Hansaplast
[
Today
at 08:58:48 am]
LINED FERRIS Wheel: Rotat...
by
Boleeman
[
Today
at 07:18:21 am]
[Solved] Adding String to...
by
nikel
[
Today
at 03:04:16 am]
Tipp: Howto use the Help ...
by
avra
[
Today
at 01:53:41 am]
If you are looking for Wi...
by
avra
[
Today
at 01:52:31 am]
Peter de Jong Attractor: ...
by
Boleeman
[
Today
at 01:44:08 am]
Lectura puerto serie
by
JASO
[
Today
at 01:09:38 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: i have function named showelp but it is called from control.inc (Read 694 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: 6867
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: 2064
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: 16763
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
Changing servers. thaddy.com may be temporary unreachable but restored when the domain name transfer is done.
Thaddy
Hero Member
Posts: 16763
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
Changing servers. thaddy.com may be temporary unreachable but restored when the domain name transfer is done.
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: 16763
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
Changing servers. thaddy.com may be temporary unreachable but restored when the domain name transfer is done.
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
i have function named showelp but it is called from control.inc
TinyPortal
© 2005-2018