Click here to Skip to main content
15,891,734 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# struct and NuSOAP(php) Pin
dataminers14-Jul-09 9:30
dataminers14-Jul-09 9:30 
GeneralRe: C# struct and NuSOAP(php) Pin
Almighty Bob21-Jul-09 2:11
Almighty Bob21-Jul-09 2:11 
AnswerRe: C# struct and NuSOAP(php) Pin
Almighty Bob21-Jul-09 2:06
Almighty Bob21-Jul-09 2:06 
QuestionImage (Bitmap) Brightness/Contrast Pin
lexx_zone14-Jul-09 6:55
lexx_zone14-Jul-09 6:55 
AnswerRe: Image (Bitmap) Brightness/Contrast Pin
vineas14-Jul-09 7:06
vineas14-Jul-09 7:06 
AnswerRe: Image (Bitmap) Brightness/Contrast Pin
Luc Pattyn14-Jul-09 7:09
sitebuilderLuc Pattyn14-Jul-09 7:09 
AnswerRe: Image (Bitmap) Brightness/Contrast Pin
lexx_zone14-Jul-09 8:38
lexx_zone14-Jul-09 8:38 
QuestionBest method for syntax highlighting Pin
WebMaster14-Jul-09 6:36
WebMaster14-Jul-09 6:36 
AnswerRe: Best method for syntax highlighting Pin
Luc Pattyn14-Jul-09 7:31
sitebuilderLuc Pattyn14-Jul-09 7:31 
GeneralRe: Best method for syntax highlighting [modified] Pin
WebMaster14-Jul-09 8:45
WebMaster14-Jul-09 8:45 
GeneralRe: Best method for syntax highlighting Pin
Luc Pattyn14-Jul-09 15:19
sitebuilderLuc Pattyn14-Jul-09 15:19 
GeneralRe: Best method for syntax highlighting Pin
WebMaster14-Jul-09 20:47
WebMaster14-Jul-09 20:47 
GeneralRe: Best method for syntax highlighting Pin
Luc Pattyn15-Jul-09 0:03
sitebuilderLuc Pattyn15-Jul-09 0:03 
GeneralRe: Best method for syntax highlighting Pin
WebMaster15-Jul-09 1:24
WebMaster15-Jul-09 1:24 
GeneralRe: Best method for syntax highlighting Pin
Luc Pattyn15-Jul-09 1:43
sitebuilderLuc Pattyn15-Jul-09 1:43 
GeneralRe: Best method for syntax highlighting Pin
WebMaster15-Jul-09 1:56
WebMaster15-Jul-09 1:56 
GeneralRe: Best method for syntax highlighting Pin
Luc Pattyn15-Jul-09 2:03
sitebuilderLuc Pattyn15-Jul-09 2:03 
GeneralRe: Best method for syntax highlighting Pin
WebMaster15-Jul-09 2:33
WebMaster15-Jul-09 2:33 
GeneralRe: Best method for syntax highlighting Pin
Luc Pattyn15-Jul-09 2:44
sitebuilderLuc Pattyn15-Jul-09 2:44 
GeneralRe: Best method for syntax highlighting Pin
WebMaster15-Jul-09 3:23
WebMaster15-Jul-09 3:23 
GeneralRe: Best method for syntax highlighting Pin
Luc Pattyn15-Jul-09 3:29
sitebuilderLuc Pattyn15-Jul-09 3:29 
GeneralRe: Best method for syntax highlighting Pin
WebMaster15-Jul-09 4:05
WebMaster15-Jul-09 4:05 
GeneralRe: Best method for syntax highlighting Pin
Luc Pattyn15-Jul-09 4:20
sitebuilderLuc Pattyn15-Jul-09 4:20 
Hi,

with monospaced fonts, the formula are ver simple:
xPixel=(textColumnNumber-horizontalScrollCount)*textCharacterWidth;
yPixel=(textLineNumber-verticalScrollCount)*textLineHeight;


which is assuming all characters have same width and height, and all scrolling is by integral lines and characters. Which I prefer anyway.

The above are text position to screen position (as for displaying stuff); invert them for editing (mouse to text).

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
WebMaster15-Jul-09 4:44
WebMaster15-Jul-09 4:44 
GeneralRe: Best method for syntax highlighting Pin
Luc Pattyn15-Jul-09 5:16
sitebuilderLuc Pattyn15-Jul-09 5:16 

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.