Re: Hyperlinks in VFP7 Editbox
From: ideasforgardens.com (Georgeideasforgardenscom_at_discussions.microsoft.com)
Date: 07/06/04
- Next message: John Germany: "Re: mapi and XP"
- Previous message: Stefan Wuebbe: "Re: Menu troubles..."
- In reply to: Anders Altberg: "Re: Hyperlinks in VFP7 Editbox"
- Next in thread: Stefan Wuebbe: "Re: Hyperlinks in VFP7 Editbox"
- Reply: Stefan Wuebbe: "Re: Hyperlinks in VFP7 Editbox"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 6 Jul 2004 07:18:02 -0700
Thank you so much Anders. Ive managed to MODIFY a memo field in a window as per your suggestion and Ive got it to work. I can certainly use that.
One niggly thing though. In WORD, when you type a URL then click a space to continue with normal text, the underlining and colouring is applied to the URL only. In the VFP editing window, I have to click Return to end the underlining and colour effects. Its OK of course, but not as neat as in WORD.
Explained another way, If I type a space and continue typing after keying a URL, the underlining/colour effect continues as I type, until I hit a carriage return. Is there any way to make this work the asme as WORD?
-- George "Anders Altberg" wrote: > You can instantiate a window object, using DEFINE CLASS x AS Form, and open > the memo in you form with > MODIFY MEMO xx.memo WINDOW (mywindopwclass.name) IN (Thisform.name ) > You can also open it as another form outside your form. > -Anders > > > "George (ideasforgardens.com)" > <Georgeideasforgardenscom@discussions.microsoft.com> wrote in message > news:709B2DD8-3E71-4C7F-BAC4-82859223B2B1@microsoft.com... > > That works just fine looking Anders, and I really appreciate your help. > > The text youve saved in the cursor is a great example to illustrate my > query. > > When that text is displayed in a text box on a form however, the Colour > and Underline effects for the URL's are not enabled. > > The text box would need an enablehyperlinks method, and from what I > understand in the previous replies to my posting that feature is available > in V8. > > Question now is, is there a workaround for V7 (which I am using) which > will underline and colour the URL (in your sample text) when it is displayed > in the text box. > > -- > > George > > > > > > "Anders Altberg" wrote: > > > > > George > > > CREATE CURSOR xx (memo m) > > > APPEND BLANK IN xx > > > REPLACE xx.memo WITH 'Look at www.dddd.com or > > > http://msdn.microsoft.com/visualforpro and you will see' > > > MODIFY MEMO memo > > > > > > -Anders > > > > > > "George (ideasforgardens.com)" > > > <Georgeideasforgardenscom@discussions.microsoft.com> wrote in message > > > news:B9E7E3F4-7519-40AC-B513-01A9400B2E00@microsoft.com... > > > > Hello Stefan and Lee > > > > Thank you guys so much for your quick reply. > > > > It looks like I need to upgrade to V8 to get this functionality. > > > > > > > > I'm looking at Stafan's suggestions. I could easily incorporate that > > > clever solution if the text box or edit region contained a single > hyperlink > > > only, but, more questions... is it possible to underline and colour > selected > > > regions of text (i.e. the hyperlink text) which appear randomly in the > body > > > of the edit box? > > > > -- > > > > George > > > > > > > > > > > > "Stefan Wuebbe" wrote: > > > > > > > > > In Vfp8 the .EnableHyperlinks property was introduced for > > > > > textbox and editbox. I don't think there is an easy solution > > > > > to make embedded link work in a Vfp7 editbox. > > > > > With labels and textboxes you can use .FontUnderScore, > > > > > ..ForeColor, set .MouseIcon or .MouseCursor in a MouseMove() > > > > > event method, and use the ShellExecute API function in .Click(), > > > > > for example. > > > > > > > > > > > > > > > hth > > > > > -Stefan > > > > > > > > > > "George (ideasforgardens.com)" > > > > > <George(ideasforgardens.com)@discussions.microsoft.com> schrieb im > > > Newsbeitrag > > > > > news:B7A1B6AF-9E89-4AC0-9F37-FE4F4181218C@microsoft.com... > > > > > > I have data with URL's in a memo field which I display in an > editbox. > > > I would like > > > > > to be able to click on the URL and go to the web page. I cant make > the > > > URL show as an > > > > > active/clickable link in the editbox. > > > > > > Is it possible to achieve this? > > > > > > Ive tried experimenting with the _VFP.EditorOptions = "k". It > allows > > > this > > > > > functionality in the VFP editor, but I cant get it to work in the > > > editbox. > > > > > > > > > > > > > > > > > >
- Next message: John Germany: "Re: mapi and XP"
- Previous message: Stefan Wuebbe: "Re: Menu troubles..."
- In reply to: Anders Altberg: "Re: Hyperlinks in VFP7 Editbox"
- Next in thread: Stefan Wuebbe: "Re: Hyperlinks in VFP7 Editbox"
- Reply: Stefan Wuebbe: "Re: Hyperlinks in VFP7 Editbox"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|