473,396 Members | 1,961 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Highlight Handle, anyone?

When you highlight a selection of text represented in an object on a form,
somewhere in the Framework or alternatively in the Windows API there exists
an array of variables that either contain as a string the portion of text
before the highlight, in the highlight and after the highlight, or as an
integer or long the beginning and length of the highlighted string or other
related data.

The question is where?
TIA

--
Timothy Casey GPEMC! >11950 is the nu****@fieldcraft.com.au 2email
Terms & conditions apply. See www.fieldcraft.biz/GPEMC
Discover valid interoperable web menus, IE security, TSR Control,
& the most advanced speed reading application @ www.fieldcraft.biz
Jun 29 '07 #1
2 1759
On Fri, 29 Jun 2007 10:15:19 +1000, "Number 11950 - GPEMC! Replace
number with 11950" <nu****@fieldcraft.bizwrote:
>When you highlight a selection of text represented in an object on a form,
somewhere in the Framework or alternatively in the Windows API there exists
an array of variables that either contain as a string the portion of text
before the highlight, in the highlight and after the highlight, or as an
integer or long the beginning and length of the highlighted string or other
related data.

The question is where?
TIA
Look at the properties for the object you are interested in.

For TextBox, SelectedText is the text that is selected, and
SelectionStart and SelectionLength are the index of the start of the
selected text and the length of the selection.
Jun 29 '07 #2
"Jack Jackson" <ja********@pebbleridge.comwrote in message
news:g2********************************@4ax.com...
On Fri, 29 Jun 2007 10:15:19 +1000, "Number 11950 - GPEMC! Replace
number with 11950" <nu****@fieldcraft.bizwrote:
When you highlight a selection of text represented in an object on a
form,
somewhere in the Framework or alternatively in the Windows API there
exists
an array of variables that either contain as a string the portion of text
before the highlight, in the highlight and after the highlight, or as an
integer or long the beginning and length of the highlighted string or
other
related data.

The question is where?
TIA

Look at the properties for the object you are interested in.

For TextBox, SelectedText is the text that is selected, and
SelectionStart and SelectionLength are the index of the start of the
selected text and the length of the selection.
What I'm looking at is the web-browser control in design mode. I realise
that this may not be the only control lacking SlectionStart and
SelectionLength properties that I may have to determine highlight boundaries
in, so I am left wondering how it is handled by the Framework or the API...?

--
Timothy Casey GPEMC! >11950 is the nu****@fieldcraft.com.au 2email
Terms & conditions apply. See www.fieldcraft.biz/GPEMC
Discover valid interoperable web menus, IE security, TSR Control,
& the most advanced speed reading application @ www.fieldcraft.biz
Jun 29 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: David Morgan | last post by:
Hello I have a little function to highlight text if it exists. Function Highlight(vFind, vSearch) Dim RegEx Set RegEx = New RegExp RegEx.Pattern = vFind RegEx.IgnoreCase = True Highlight =...
7
by: Bob | last post by:
I've done this before, but can't find the simple code that allows this. I have a multiple item drop down created in a form with FrontPage 2002. I want to highlight or bold selected items, but...
0
by: Sean | last post by:
Hi, I am doing a desktop application and now I am having problem preventing the quick highlight of a treenode when a user right clicks a treenode. The reason I am doing this is that only when...
8
by: dhnriverside | last post by:
Hi I'm using an asp:repeater and its DataSource/DataBind system to show a number of records from the database. I want to highlight the latest record (which will be the highest ID). Any...
9
by: Devron Blatchford | last post by:
Hi there, Just wondering if I change the back and fore colour of a listview item when the mouse hovers over it? I want to overide the default windows colour. Can someone please tell me how to...
5
by: Atara | last post by:
I am trying to convert the following code to VB .Net, I still have some gaps (the lines that are marked with (*)) and also I need an ending condition for the while loop. any help would be...
2
by: Karl Groves | last post by:
Just wondering if anyone out there has a good function to highlight code. PHP's highlight_string function chokes whenever the string contains certain characters. Most of the functions I've found...
0
Merlin1857
by: Merlin1857 | last post by:
A thing I have been asked for on a number of occasions is the ability to highlight text after its been searched for in a record return page. The following does this perfectly. Use this function...
4
by: JoCom67 | last post by:
How do you highlight (or select) the value of a numeric field after you to this field.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.