Click here to Skip to main content
15,917,481 members
Home / Discussions / C#
   

C#

 
Generalmanaged + unamanaged directx Pin
gonenb21-Oct-03 8:20
gonenb21-Oct-03 8:20 
GeneralRe: managed + unamanaged directx Pin
Jeremy Kimball24-Oct-03 5:32
Jeremy Kimball24-Oct-03 5:32 
GeneralRe: managed + unamanaged directx Pin
gonenb24-Oct-03 6:46
gonenb24-Oct-03 6:46 
GeneralRe: managed + unamanaged directx Pin
gonenb30-Oct-03 4:29
gonenb30-Oct-03 4:29 
GeneralThreads appear twice Pin
AJB...21-Oct-03 6:39
AJB...21-Oct-03 6:39 
GeneralRe: Threads appear twice Pin
James Simpson24-Oct-03 2:03
James Simpson24-Oct-03 2:03 
QuestionEditcontrol GUI widget.. Any Tips? Pin
kfowlks21-Oct-03 4:32
kfowlks21-Oct-03 4:32 
AnswerRe: Editcontrol GUI widget.. Any Tips? Pin
J. Dunlap21-Oct-03 12:14
J. Dunlap21-Oct-03 12:14 
kfowlks wrote:
When trying to invert the color of the text when a line is selected sometimes the text drawn over the black text does not align if i only draw a subset starting in the middle.
If i select the entire line then it works perfectly.


Might be something to do with kerning. How big is the difference between the two positions?


kfowlks wrote:
This is my first time attempting to code a editcontrol
from scratch so what is the proper tecnique for painting the control. Currently the screen us refreshing every line on each keypress. Basiclly, I'm drawing text line by line. All drawing is currently done in the Paint event. Does anyone know a better way?


Because of word-wrapping (provided that you are doing true word-wrap), this may well be so. I would strongly advise double-buffering (and not with the built-in double-buffering either - it updates the screen after each drawing operation, rather than after all of the operations are complete).

I'm interested in your results and findings, as I'm going to be writing a text editor myself soon. If you find something of interest in the areas, or just want to discuss aspects of a textbox implementation, feel free to drop on over at the Fluid forums[^].



"Worry not that no one knows of you; seek to be worth knowing." -- Confucius

FLUID UI Toolkit | FloodFill in C# & GDI+







GeneralRe: Editcontrol GUI widget.. Any Tips? Pin
kfowlks22-Oct-03 4:16
kfowlks22-Oct-03 4:16 
General__LINE__ Pin
Rick Crone21-Oct-03 3:53
Rick Crone21-Oct-03 3:53 
GeneralRe: __LINE__ Pin
Rick Crone21-Oct-03 5:51
Rick Crone21-Oct-03 5:51 
GeneralRe: __LINE__ Pin
Heath Stewart21-Oct-03 6:39
protectorHeath Stewart21-Oct-03 6:39 
GeneralRe: __LINE__ Pin
Rick Crone21-Oct-03 7:53
Rick Crone21-Oct-03 7:53 
GeneralRe: __LINE__ Pin
Heath Stewart21-Oct-03 8:36
protectorHeath Stewart21-Oct-03 8:36 
GeneralRe: __LINE__ Pin
Rick Crone21-Oct-03 9:43
Rick Crone21-Oct-03 9:43 
GeneralRe: __LINE__ Pin
leppie21-Oct-03 8:42
leppie21-Oct-03 8:42 
GeneralRe: __LINE__ Pin
J. Dunlap21-Oct-03 9:01
J. Dunlap21-Oct-03 9:01 
QuestionHow can I get graphics through message WM_NCPAINT ? Pin
wangier20-Oct-03 23:24
wangier20-Oct-03 23:24 
AnswerRe: How can I get graphics through message WM_NCPAINT ? Pin
Heath Stewart21-Oct-03 6:41
protectorHeath Stewart21-Oct-03 6:41 
GeneralRe: How can I get graphics through message WM_NCPAINT ? Pin
wangier21-Oct-03 15:08
wangier21-Oct-03 15:08 
GeneralRe: How can I get graphics through message WM_NCPAINT ? Pin
Heath Stewart21-Oct-03 18:57
protectorHeath Stewart21-Oct-03 18:57 
GeneralRe: How can I get graphics through message WM_NCPAINT ? Pin
wangier21-Oct-03 23:40
wangier21-Oct-03 23:40 
GeneralRe: How can I get graphics through message WM_NCPAINT ? Pin
Heath Stewart22-Oct-03 2:59
protectorHeath Stewart22-Oct-03 2:59 
GeneralRe: How can I get graphics through message WM_NCPAINT ? Pin
wangier22-Oct-03 15:44
wangier22-Oct-03 15:44 
GeneralRe: How can I get graphics through message WM_NCPAINT ? Pin
wangier21-Oct-03 17:24
wangier21-Oct-03 17:24 

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.