Results 1 to 2 of 2

Thread: Richtextbox Zoomfactor Issue

  1. #1

    Thread Starter
    College Grad!!! Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,339

    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.

  2. #2

    Thread Starter
    College Grad!!! Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,339

    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
  •  



Click Here to Expand Forum to Full Width