Click here to Skip to main content
15,498,926 members
Home / Discussions / C#
   

C#

 
GeneralRe: Best method for syntax highlighting Pin
WebMaster15-Jul-09 7:11
MemberWebMaster15-Jul-09 7:11 
GeneralRe: Best method for syntax highlighting Pin
Luc Pattyn15-Jul-09 7:23
sitebuilderLuc Pattyn15-Jul-09 7:23 
GeneralRe: Best method for syntax highlighting Pin
WebMaster15-Jul-09 7:37
MemberWebMaster15-Jul-09 7:37 
GeneralRe: Best method for syntax highlighting Pin
Luc Pattyn15-Jul-09 7:43
sitebuilderLuc Pattyn15-Jul-09 7:43 
GeneralRe: Best method for syntax highlighting Pin
WebMaster15-Jul-09 9:34
MemberWebMaster15-Jul-09 9:34 
GeneralRe: Best method for syntax highlighting Pin
Luc Pattyn15-Jul-09 9:40
sitebuilderLuc Pattyn15-Jul-09 9:40 
GeneralRe: Best method for syntax highlighting Pin
WebMaster16-Jul-09 7:12
MemberWebMaster16-Jul-09 7:12 
GeneralRe: Best method for syntax highlighting Pin
Luc Pattyn16-Jul-09 7:49
sitebuilderLuc Pattyn16-Jul-09 7:49 
Hi,

I gave you
xPixel=(textColumnNumber-horizontalScrollCount)*textCharacterWidth;


and you now want textColumnNumber=a*xPixel+b right?

The only problem is determining the coefficients a and b. Take the recipe I gave earlier, make the factors and terms on the textColumnNumber disappear by adding/subtracting/multiplying/dividing both sides of thee equation appropriately.
The first thing to go is "*textCharacterWidth" because that is what you perform last in the original equation;
then the remaining "-horizontalScrollCount"

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.

GeneralRe: Best method for syntax highlighting Pin
WebMaster16-Jul-09 22:54
MemberWebMaster16-Jul-09 22:54 
GeneralRe: Best method for syntax highlighting Pin
Luc Pattyn17-Jul-09 0:01
sitebuilderLuc Pattyn17-Jul-09 0:01 
GeneralRe: Best method for syntax highlighting Pin
WebMaster17-Jul-09 4:14
MemberWebMaster17-Jul-09 4:14 
GeneralRe: Best method for syntax highlighting Pin
Luc Pattyn17-Jul-09 4:26
sitebuilderLuc Pattyn17-Jul-09 4:26 
GeneralRe: Best method for syntax highlighting Pin
WebMaster17-Jul-09 5:59
MemberWebMaster17-Jul-09 5:59 
GeneralRe: Best method for syntax highlighting Pin
Luc Pattyn17-Jul-09 12:15
sitebuilderLuc Pattyn17-Jul-09 12:15 
GeneralRe: Best method for syntax highlighting Pin
WebMaster17-Jul-09 22:39
MemberWebMaster17-Jul-09 22:39 
GeneralRe: Best method for syntax highlighting Pin
WebMaster28-Jul-09 9:41
MemberWebMaster28-Jul-09 9:41 
GeneralRe: Best method for syntax highlighting Pin
Luc Pattyn28-Jul-09 23:37
sitebuilderLuc Pattyn28-Jul-09 23:37 
GeneralRe: Best method for syntax highlighting Pin
Kevin Marois14-Jul-09 10:08
professionalKevin Marois14-Jul-09 10:08 
GeneralRe: Best method for syntax highlighting Pin
Adam R Harris14-Jul-09 11:32
MemberAdam R Harris14-Jul-09 11:32 
QuestionPassing a pointer to array of structs via P/Invoke Pin
Klempie14-Jul-09 7:29
MemberKlempie14-Jul-09 7:29 
Questioncustomizing a ToolStripTextBox Pin
Jim Crafton14-Jul-09 6:38
MemberJim Crafton14-Jul-09 6:38 
AnswerRe: customizing a ToolStripTextBox Pin
Henry Minute14-Jul-09 6:53
MemberHenry Minute14-Jul-09 6:53 
GeneralRe: customizing a ToolStripTextBox Pin
Jim Crafton14-Jul-09 7:04
MemberJim Crafton14-Jul-09 7:04 
GeneralRe: customizing a ToolStripTextBox Pin
DaveyM6914-Jul-09 7:26
professionalDaveyM6914-Jul-09 7:26 
Questionreturn string Pin
AndyInUK14-Jul-09 6:22
MemberAndyInUK14-Jul-09 6:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.