I have a button to go the SRL forums for "more scripts", but a simple question? How do i make a button load a URL?
You're looking for a function? -
procedure OpenWebPage(URL: string);
Opens webpage in default internet browser.
OpenWebPage('www.villavu.com/forum');
or
OpenWebPage('www.villavu.com');
~Hermen
Firstly you need to make a sender, if your not sure search it.
This is, in theory, how you would do it, firstly you would need a TNotifyEvent such as OnClick();
Button.OnClick := @Click;
The sender 'Click' being:
SCAR Code:Procedure Click(Sender : TObject);
Begin
OpenWebPage('www.villavu.com');
End;
![]()



You need http:// at the beginning of the URL.
There are currently 1 users browsing this thread. (0 members and 1 guests)