Code to Increment Text Box Margin

Started by JFme, September 15, 2011, 04:14:21 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

JFme

I have very frequent need to change the top margin of the text block of shapes.  Each such change, however, requires multiple mouse clicks (select shape, right click Format/Text/Text Block/Margins).  Would like code that I can install behind a button so that I can select a shape(s), then for each click of the button the top margin of the text block of that selected shape(s) increments by +2 pt. (I would also have another button which increments by -2 pt.).  For example, if the top margin of a selected shape is 12 pt., multiple clicks of the button would increment 12 --> 14 --> 16 --> etc.  This would save me lots of time and reduce wear and tear on my hands!  Thanks very much for any help.

Browser ID: smf (is_webkit)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 121 (show)
Files included: 34 - 1321KB. (show)
Memory used: 1071KB.
Tokens: post-login.
Cache hits: 12: 0.00173s for 26,582 bytes (show)
Cache misses: 1: (show)
Queries used: 15.

[Show Queries]