select + copy + link lazarus / 13-General ---------------------------------------------------------------------- Paasei · 2006-05-02 01:27 some small questions: how can I create a hyperlink in a form? how can I create a button that selects all text in a editbox onclick? how can I create a button that copies all text in a editbox onclick? how can I create a (sort of) showmessage with a yes and no button? ---------------------------------------------------------------------- matthijs · 2006-05-02 05:57 1. Creating an hyperlink can be done by placing a label on your form and in the OnClick open the site. 2. Look at the text property of an edit. 3. Again: look at the text property of an edit. 4. Look at functions like MessageBox. Have a look at delphi about or delphi basics. ---------------------------------------------------------------------- Anonymous · 2006-05-02 10:35 4.     http://wiki.lazarus.freepascal.org/index.php/Dialog_Examples ---------------------------------------------------------------------- Paasei · 2006-05-02 12:01 it isn't clear what you mean with Quotein the OnClick open the site. [/unquote] where can I find these text properties? (I have the dutch version ) ---------------------------------------------------------------------- Anonymous · 2006-05-02 12:23 Hello! OnClick is a property many controls have, it's (often) declared as a "TNotifyEvent" ("= procedure(Sender: TObject)") To use this simply focus the control (in this case the label, ex. Label1 as a TLabel) chose the tab Events on the "Object Inspector" window then double click with our mouse on the combobox (the box you can type in) whanted Event (in this case OnClick). It will create a empty procedure something like this: Code: [Select] procedure TForm1.Label1Click(Sender: TObject); begin end; between begin and end you write the code to open a link (I don't know how, but maby someone else dose) Good Lucke ---------------------------------------------------------------------- Paasei · 2006-05-02 14:45 between begin and end you write the code to open a link (I don't know how, but maby someone else dose) => that's what I'm looking for.. but thanks for the information ---------------------------------------------------------------------- matthijs · 2006-05-02 18:02 Beste Paasei, als je nou eens kijkt op de links die ik je in eerste instantie al gaf. En als je daarna dan eens gaat kijken naar een boek of zo (Delphi voor Dummies, is misschien een goed idee ) Probeer zelf eens een beetje te zoeken met de tips die je gekregen hebt. Als we je alles voorkauwen leer je er nooit wat van. ---------------------------------------------------------------------- Paasei · 2006-05-02 23:19 nuja, tis maar een eenmalig projectje voor school... :-) http://student.vub.ac.be/~jdemesse/ ---------------------------------------------------------------------- Anonymous · 2006-05-18 19:55 From Delphi.About.com: How to open a web site with the default web browser in a NEW window: http://delphi.about.com/cs/adptips2004/a/bltip0504_4.htm ---------------------------------------------------------------------- Anonymous · 2006-06-27 10:24 To make a link in an aplication: Shellexecute(handle, 'open', pchar('http://www.link here.com'), nil,nil, sw_show); and at top of the file; uses: Shellapi;