sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Growing/Shrinking Text and Checkboxes in MSIE WebDialogs

    Scheduled Pinned Locked Moved Developers' Forum
    2 Posts 2 Posters 124 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      MartinRinehart
      last edited by

      This post is for the next web searcher. My first Google result said that this was impossible. MSIE WebDialogs do not respond to Ctrl/+ and Ctrl/-.

      (It may be better to do this in ems. You try it.) Store a default size, in pixels. 12 is a good starting point.

      When you create the page, size your text to (default+2). Size your checkboxes (via style) to height=width=default.

      
      textContainer.style.fontSize = (default+2) + 'px';
      checkbox.style.width = default+'px';
      checkbox.style.height = default+'px';
      
      

      Provide Expand/Contract buttons. Incr/decrement default and redraw. Increment size 2 seems a good compromise between fine-grain control and getting to the size you want quickly.

      Author, Edges to Rubies - The Complete SketchUp Tutorial at http://www.MartinRinehart.com/models/tutorial.

      1 Reply Last reply Reply Quote 0
      • thomthomT Offline
        thomthom
        last edited by

        IE doesn't play nice with pixel values. It refuses to scale the text then. It only scales relative units.

        The default font size of pretty much all browsers are 16px. So it's common to set the font-size of html to 62.5% - so that the base font size is 10px. Then you can use em values easier: 1.2em becomes 12px.

        Thomas Thomassen — SketchUp Monkey & Coding addict
        List of my plugins and link to the CookieWare fund

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Buy SketchPlus
        Buy SUbD
        Buy WrapR
        Buy eBook
        Buy Modelur
        Buy Vertex Tools
        Buy SketchCuisine
        Buy FormFonts

        Advertisement