473,791 Members | 3,105 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

RichTextbox. Get attributes of character under mouse cursor ?

Using VB6.

With a RichTextbox, I can get the position of the character under the mouse
pointer with an API call like: SendMessage(hWn d, EM_CHARFROMPOS, 0&, Pointl)
by passing the mouse x,y co-ordinates in the Pointl structure.

But does anyone know a way to get the *attributes* of the character (Bold,
Underline, etc) WITHOUT affecting the textbox in any way?

Any method that requires the character to be the selected text (like
EM_GETCHARFORMA T) is not suitable.

Chris.

Jul 17 '05 #1
0 3969

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

Similar topics

3
11742
by: AttiDude | last post by:
Hi, I have some difficulties when adding text to a (multiline)richtextbox, to change the color of that line only. Changing colors on parts of text you want, need to be selected to change color. So I need to create a code that selects the text I just added to the richtextbox for a very short period so the user doesn't notices.
5
2451
by: pinocchio | last post by:
Hello, I want to hide cursor in textRichBox. Default the cursor blink if you click on richTextBox and I want to disable this feature. I need to make something like Adobe Reader, so textRichBox as readonly but the text can be selected, etc. Any idea?
0
4485
by: James dean | last post by:
In this program i set the RichTextBox property SelectionStart in order to move the caret(cursor) onto the next character. I have a loop to do this but unfortunately this is very slow. How would i use the System.Windows.Forms.Cursor.Position to move myself onto the next character. I need some way to measure each character in the string and then move it forward. Is there any other way to move the caret forward. I have tried the Select mthod...
0
296
by: Nathan | last post by:
In a RichTextBox, how do you get/set the current location of the blinking cursor (not the mouse cursor)? Thanks
8
2188
by: Dennis | last post by:
How can I tell if the Insert Mode is on or off? -- Dennis in Houston
0
1589
by: Lou | last post by:
Dear all, I have two questions and need to get some hints from u. :0) 1. Editor with the syntax functionality. In my ongoing editor, when the user types the word, e.g. "ABC", the word "ABC" will appear in the RichTextBox with the changed color red. Afterwards, when the furhter action is taking on, e.g. user gives the input directly in the RichTextBox or types the other word, the color
0
1325
by: Vimalathithan | last post by:
Hi Every one, I have developing the user control with RichTextBox in C# windows application. The problem is when I paste any text inside the RichTextBox at the runtime the pasted lines not in visible. I can view only last two lines and the cursor blink at the last character of the pated content. once move the cursor by up arrow key the text will scroll upto and can visible. I made the RichTextBox to fit with number of line that is it will...
2
3548
by: =?Utf-8?B?TWFyayBDb2xsYXJk?= | last post by:
I'm currently writing an application that has a RichTextBox and a toolbar which includes the following toolbar buttons: - Font - Font Size - Bold - Italic - Underline I want the toolbox buttons to act the same as the ones in Word. i.e. When you select text that has different Fonts the Font toolbar button (combo box)
5
6100
by: Andrus | last post by:
I use Winforms RichTextBox control to edit scripts. Scripts are plain ascii texts. When error occurs, script engine returns character position of error in code as integer. How to position cursor to this character position ? RichTextBox does not have current position property. Andrus.
0
9515
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10207
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10155
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9995
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7537
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6776
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5431
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5559
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4110
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.