Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
LCL
»
[SOLVED]shellexec replacement
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
IRC channel
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
Variables as indexes of a...
by
dsiders
[
Today
at 03:37:52 am]
[Solved] Can a thumbnail ...
by
jamie
[
Today
at 02:47:30 am]
Random crashes on Mac Stu...
by
jamie
[
Today
at 02:18:19 am]
How to access and set pro...
by
KodeZwerg
[
Today
at 01:55:40 am]
OpenSSL 3.0 vs Indy's 1.0...
by
Remy Lebeau
[
Today
at 01:26:36 am]
CompareText improvement
by
BeniBela
[
Today
at 12:31:51 am]
Fullscreen event?
by
KodeZwerg
[
Today
at 12:17:27 am]
fpc 3.3.1 or lazarus 2.3 ...
by
Martin_fr
[March 30, 2023, 11:29:01 pm]
Make build crashes
by
Jonas Maebe
[March 30, 2023, 09:19:49 pm]
Synapse TCP/IP client and...
by
GetMem
[March 30, 2023, 09:16:46 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED]shellexec replacement (Read 5634 times)
mbnoimi
New Member
Posts: 34
[SOLVED]shellexec replacement
«
on:
October 23, 2010, 11:24:08 am »
Hi All,
I usually use shellexec in Windows in "onclick" event for opening links is there any replacement for opening links in LCL?
PS
I'm afraid that shellexec will not works in Linux.
«
Last Edit: October 26, 2010, 08:44:46 am by mbnoimi
»
Logged
typo
Hero Member
Posts: 3051
Re: shellexec replacement
«
Reply #1 on:
October 23, 2010, 11:28:32 am »
ShellExecute has an implementation in Lazarus, but use OpenURL instead.
Logged
LazarusBrasil.Org
mbnoimi
New Member
Posts: 34
Re: shellexec replacement
«
Reply #2 on:
October 23, 2010, 11:53:08 am »
Quote
ShellExecute has an implementation in Lazarus
you mean I can use ShellExecute safety in Linux, is it?
Logged
typo
Hero Member
Posts: 3051
Re: shellexec replacement
«
Reply #3 on:
October 23, 2010, 12:18:43 pm »
No.
Logged
LazarusBrasil.Org
Zoran
Hero Member
Posts: 1763
Re: shellexec replacement
«
Reply #4 on:
October 23, 2010, 12:34:16 pm »
See:
http://www.lazarus.freepascal.org/index.php/topic,10453.0.html
http://www.lazarus.freepascal.org/index.php/topic,8243.0.html
Logged
theo
Global Moderator
Hero Member
Posts: 1918
Re: shellexec replacement
«
Reply #5 on:
October 23, 2010, 12:35:35 pm »
Use
OpenDocument(Filename);
or
OpenURL(FileName);
Both in unit LCLIntf (at least in Lazarus 0.9.29)
Logged
mbnoimi
New Member
Posts: 34
[SOLVED]Re: shellexec replacement
«
Reply #6 on:
October 26, 2010, 08:42:33 am »
Thanks a lot for your replies the problem solved.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
LCL
»
[SOLVED]shellexec replacement
TinyPortal
© 2005-2018