Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

At 15 APR 1998 09:26:59PM DSig (SigSolutions) wrote:

In an editbox/line, if you select a section of text then property SELECTION will give you the starting position/nbr of chars. It looks like the documentation says that the reverse is doable .. meaning a simple setprop of position/nbr of chars (fm delim) to selection will 'highlight' the text. In fact in looking at editfind this seems to be exactly what is happening ..

So why, when I setprop the selection does the text not highlight? Sure I am just missing something simple but ..

tia

dsig

David Tod Sigafoos ~ SigSolutions

[email protected] cis:70302,77 voice: 503-639-8080


At 16 APR 1998 04:46AM Oystein Reigem wrote:

David,

So why, when I setprop the selection does the text not highlight?

Perhaps your editbox/line hasn't got focus? This is at least how it is with my system. I can set selections in many editboxes/lines, but the selection is only highlighted in the one which has focus.

I thought I remembered this being discussed last year, and something about being able to set the style so that the selection always showed. So I went back in my notes and I found Cameron saying there is a style that can be set - a style that has to do with highlighting. Confusingly he also says that highlight is the default behaviour. He's must be wrong about the latter, and I never tried his style (I had your problem once but setting focus solved it for me), but here at least is what he said - now you go and try it:

]

- Oystein -


At 16 APR 1998 09:28AM DSig (SigSolutions) wrote:

Oystein,

bravo!! it was the focus. thanks for the quick response.

I have printed out your reply and will try the 'cameron' style. It does seem odd that the control has to have focus BUT hey .. if it works :-)

thanks again

dsig

David Tod Sigafoos ~ SigSolutions

[email protected] cis:70302,77 voice: 503-639-8080


At 16 APR 1998 12:14PM Donald Bakke wrote:

David,

It does seem odd that the control has to have focus BUT hey .. if it works :-)

It only needs to have focus if you don't have the ES_NOHIDESEL style set. This, of course, is the default so you have to always set this style if you want the selection to appear whenever focus is lost or a dialog box is called (e.g. EditFind). The caveat is that if you don't clear you selections you could have several editline/boxes on your form all with their text selected, which looks ugly.

[email protected]

SRP Computer Solutions


At 17 APR 1998 04:21PM Cameron Purdy wrote:

We plan to add the no-hide-sel style as a check-box in Form Designer. (It was originally planned for 3.6 but I don't believe it was implemented.)

Cameron Purdy

[email protected]


At 20 APR 1998 10:40PM DSig (SigSolutions) wrote:

Cameron,

Thanks for the heads up ..

dsig

David Tod Sigafoos ~ SigSOlutions

[email protected] cis:70302,77 voice:503-639-8080

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/0f88ec442b3fc0c8852565e80007f6ff.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1