473,388 Members | 1,207 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,388 software developers and data experts.

Background color of RTB

Hi friends,

I am trying to develop a 'context sensitive text editor for C' in VB 6.
I wanted to know how I can highlight a particular line of text in a rich text box.
Is that possible in VB6? If not is there any means by which that can be achieved?
Thank you in advance.
Jan 2 '07 #1
4 1232
hariharanmca
1,977 1GB
Hi friends,

I am trying to develop a 'context sensitive text editor for C' in VB 6.
I wanted to know how I can highlight a particular line of text in a rich text box.
Is that possible in VB6? If not is there any means by which that can be achieved?
Thank you in advance.
Yes, You can Retrive....


Use function Splite(rtxtName.text,vbcr)
then the value will splited into lines then u can get the pirticular Line by running any one of for-while-Do loops
Jan 2 '07 #2
Killer42
8,435 Expert 8TB
I am trying to develop a 'context sensitive text editor for C' in VB 6. I wanted to know how I can highlight a particular line of text in a rich text box.
Is that possible in VB6? If not is there any means by which that can be achieved?
Do you mean to highlight as though the user had dragged the mousepointer over the line to select it, or to change the backgound colour of the text like the highlighter marker in Word? Or something else?

Or are you looking for help on how to identify/select the line?
Jan 2 '07 #3
Do you mean to highlight as though the user had dragged the mousepointer over the line to select it, or to change the backgound colour of the text like the highlighter marker in Word? Or something else?

Or are you looking for help on how to identify/select the line?

Thank you for the reply.
Actually it is like this.
Say a piece of code is written in the editor (remember this is a text editor to write C programs) and is compiled. I want that the lines where errors have occured are detected and highlighted.

Thank you for your time and reply soon.
Jan 3 '07 #4
Killer42
8,435 Expert 8TB
Thank you for the reply.
Actually it is like this.
Say a piece of code is written in the editor (remember this is a text editor to write C programs) and is compiled. I want that the lines where errors have occured are detected and highlighted.
The simple way would be to select the line by setting the start and length of selection (.SelStart & .SelLength, I think) then setting the colour with (I think) .SelColor.
Jan 3 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: erik | last post by:
Is it posssible to inherit the previous pages (parent pages) background image? Is there a script out there I could look at? Thanks
12
by: Stanimir Stamenkov | last post by:
Here are two cases regarding inline-level elements' line-height, padding and background, which I doesn't understand: <div style="background: black; color: white; line-height: 1.5">...
27
by: Kevin Yu | last post by:
When I declare on HTML page <LINK href="mycss.css" type="text/css" rel=stylesheet /> .... <BODY class=myclass> in mycss.css BODY { FONT-WEIGHT: bold; FONT-SIZE: 12px; FONT-FAMILY:...
3
by: MediaDesign | last post by:
so there's the problem: my text links have background images and when I put links around images on my page, they too get the background image treatment which I do not...I have tried several...
11
by: Konrad Den Ende | last post by:
I have a function returning a string but the problem is that the color of it is blue which suits me well for some pages but not for others. Is it possible to "feel" what the color of the background...
5
by: proximus | last post by:
Hi, I am trying to change the background of table TD's. The problem is that I have no access to the HTML code. SO I am trying to alter this using Javascript/DOM in an external .js file. I...
16
by: stevedude | last post by:
CSS newbie again. I have a problem trying to get coffee mug images within anchor tags to center with my link text for a vertical list menu. If I use the horizontal/vertical properties of...
19
by: david.karr | last post by:
If in my CSS I set the "background-color" property on the "body" element, it only covers the background of the elements defined in the body, up to the current width and height of the page. However,...
10
by: VividWeb | last post by:
Hi. I am relatively new to CSS and HTML but have a basic understanding of most things. One of my backgrounds is not positioning correctly in IE 7 or AOL. The background behind the content...
2
by: thephatp | last post by:
I'm having a problem with IE rendering correctly. I'm experimenting with using all div's in my pages now, and I'm not very familiar with the quirks of IE. I have created a sample page, and I'm...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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...
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...

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.