Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

third tutorial snapshot save

  • Loading branch information...
commit df7c913ba2cc1970319630b85fd44602b150a400 1 parent ec20207
megaannum authored
Showing with 13 additions and 14 deletions.
  1. +13 −14 tutorial/forms/CreatingGlyph.md
View
27 tutorial/forms/CreatingGlyph.md
@@ -15,20 +15,19 @@ the Glyph would like to occupy when drawn.
The allocation contains the key/values for 'line', 'column', 'width',
and 'height'. A 'draw()' method generally follows this template:
-
- function SomeGlyph.draw(allocation) dict
- let self.__allocation = a:allocation
- if self.__status != g:IS_INVISIBLE
- " Code to draw Glyph
- endif
-
- " For interactive Glyphs
- if self.__status == g:IS_DISABLED
- " Code to 'color' the Glyph as "disabled"
- " A "disabled" is one that can not accept focus
- call AugmentGlyphHilight(self, "DisableHi", a)
- endif
- endfunction
+ function SomeGlyph.draw(allocation) dict
+ let self.__allocation = a:allocation
+ if self.__status != g:IS_INVISIBLE
+ " Code to draw Glyph
+ endif
+
+ " For interactive Glyphs
+ if self.__status == g:IS_DISABLED
+ " Code to 'color' the Glyph as "disabled"
+ " A "disabled" is one that can not accept focus
+ call AugmentGlyphHilight(self, "DisableHi", a)
+ endif
+ endfunction
It is *critically* important when rendering a Glyph, that the Forms library
can and does use multi-byte characters, UTF-8; that some character
Please sign in to comment.
Something went wrong with that request. Please try again.