trichview.com

trichview.support




Re: Maybe


Return to index


Author

Message

Sergey Tkachenko

Posted: 03/12/2002 23:08:05


I'll think about it, but I am not sure about this feature...

If implemented correctly, using SetSelectionBounds after SearchText will be

efficient (and I think it will not cause flicker). Do not forget to call

Invalidate after SetSelectionBounds.


By the way, there is an example for applying hypertext style to URLs in

Demos\Delphi\Assorted\URLs\

This example selects URLs quite smart (although it will not find http:// at

the middle of word, and I think it should not).

It works much faster than selecting+applying style (actually, it uses the

fastest method for this task).

And it is flexible because it allows to apply different hypertext styles,

preserving text formatting.


> TRVESearchSelectOptions: [selectLeftPart, selectRightPart, SelectWord]

>

> 'this the sampleSearchline to explain'

>

> SearchText is 'Search'

>

> If SelectLeftPart the part 'sampleSearch' is selected

> If SelectRightPart the part 'Searchline' is selected

> If SelectWord the part 'sampleSearchline' is selected

>

> These options are important in some ways (to select URL when they're

accoled

> to anothers words

> like 'blablabblahttp://test.com blablabla' because users can use bad

typing

> in editors or in others softwares, for example :-) with that it's easy to

> apply hypertext style to 'http://test.com' only !

>

> Actually i use getselectbounds & setselectbounds and that work generally

> good but sometimes that do not work ?!! and it's probably not so

optimized?

> thanks for your opinion or suggestions :-)






Powered by ABC Amber Outlook Express Converter