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
IDE crashes and takes so ...
by
Martin_fr
[
Today
at 08:49:04 pm]
Newbie in Web Programming...
by
Nicole
[
Today
at 08:44:50 pm]
multitask question
by
Dzandaa
[
Today
at 08:33:26 pm]
Compiling Lazarus from so...
by
TRon
[
Today
at 07:55:37 pm]
Macos Sequoia Lazarus 3.8...
by
ChrisR
[
Today
at 07:34:39 pm]
Planet generator(raylib)
by
Lulu
[
Today
at 07:29:54 pm]
Good online resource to l...
by
Thaddy
[
Today
at 06:41:21 pm]
TPaintbox picture disappe...
by
TRon
[
Today
at 06:31:33 pm]
login_tty and openpty are...
by
Fred vS
[
Today
at 06:19:14 pm]
Minimal IPC approach?
by
duralast
[
Today
at 05:41:36 pm]
ShowModal has a bug in Li...
by
TRon
[
Today
at 04:14:31 pm]
BGRABitmap can't compile
by
Khrys
[
Today
at 03:43:59 pm]
Why isn't Lazarus / Free ...
by
silvercoder70
[
Today
at 02:46:40 pm]
Lazarus Release Candidate...
by
dbannon
[
Today
at 02:02:57 pm]
[solved] is there a non v...
by
d2010
[
Today
at 02:01:07 pm]
Linux Laz Packages have i...
by
dbannon
[
Today
at 01:56:35 pm]
Is there a chart displayi...
by
simone
[
Today
at 10:19:27 am]
How to re use a process
by
Thaddy
[
Today
at 10:10:46 am]
Helping beginners
by
Thaddy
[
Today
at 09:15:26 am]
[SOLVED] Application stil...
by
d2010
[
Today
at 07:01:19 am]
TListView - please advis...
by
TRon
[April 29, 2025, 09:49:00 pm]
$CODEPAGE + LCL = Incorre...
by
Thaddy
[April 29, 2025, 06:47:53 pm]
SOLVED: Warning: "crtbegi...
by
Thaddy
[April 29, 2025, 06:43:37 pm]
Randomally generated code
by
Thaddy
[April 29, 2025, 06:41:17 pm]
TStringGrid: what is the ...
by
jcmontherock
[April 29, 2025, 05:39:26 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: i have function named showelp but it is called from control.inc (Read 713 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: 6880
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: 2111
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: 16832
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: 16832
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: 16832
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