Skip to content

Instantly share code, notes, and snippets.

@gferreira
Created November 30, 2012 13:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gferreira/4175687 to your computer and use it in GitHub Desktop.
Save gferreira/4175687 to your computer and use it in GitHub Desktop.
options for a `create anchors` dialog
# options for a `create anchors` dialog for hTools2
1. Simple dialog, allowing the creation of `top` and `bottom` anchors with
positions relative to the font’s x-height (top) and baseline (bottom).
|---------------------|
| # create achors |
|---------------------|
| |
| [ ] top |
| dy [ 25 ] - + |
| |
| [×] bottom |
| dy [ 25 ] - + |
| |
| [ ] accent |
| |
| |---------------| |
| | apply | |
| |---------------| |
| |
|---------------------|
2. Generic dialog to create anchors with any given name, at a specified
position. Multiple anchors need to be created one by one, by name and position.
|---------------------|
| # create achors |
|---------------------|
| |
| name [ myname ] |
| |
| x [ 25 ] - + |
| y [ 85 ] - + |
| |
| [×] overwrite |
| |
| |---------------| |
| | create | |
| |---------------| |
| |
|---------------------|
3. Combined dialog, integrating special cases for `top` and `bottom` anchors
(relative positions) with generic controls (custom positions) for any other
arbitrary name.
|---------------------|
| # create achors |
|---------------------|
| |
| [ ] top |
| dy [ 25 ] - + |
| |
| [×] bottom |
| dy [ 25 ] - + |
| |
| [×] [ myname ] |
| x [ 25 ] - + |
| y [ 25 ] - + |
| |
| [ ] accent |
| [ ] overwrite |
| |
| |---------------| |
| | apply | |
| |---------------| |
| |
|---------------------|
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment