-
Sep 24th, 2016, 07:57 PM
#1
Richtextbox Zoomfactor Issue
I have a question in regards to a zoomable Richtextbox. Im trying to setup line numbers, which works great, but is there a possible way of getting a possible number of lines based on zoomfactor on a Readonly unclickable Richtextbox with height and fontsize to play a role?
I tried a number of techniques such as trying to divide the height of a richtextbox by font height and divide it by the zoomfactor, but its off on certain zoomfactors, especially when the zoomfactor is .8 or below. Above it it seems to be it. Unless I missed something...
Also I added a 1.1 line spacing but didnt include that in my formula cause it was working already without it.
-
Sep 24th, 2016, 10:43 PM
#2
Re: Richtextbox Zoomfactor Issue
Hmmm it looks like im gonna need to create an array with fixed values. Seems like noone in the community has figured it out, not even off of google
Ok nvm bad idea. Youd have to account numerous fonts and sizes and rtb heights.
Remember there is no caret in this box im working with.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|