1
0
Fork 0

A few words of documentation on widget styles

This commit is contained in:
Miguel de Benito 2013-08-18 15:16:01 +00:00
parent 00eaa567cf
commit 7d825cebc0
1 changed files with 30 additions and 1 deletions

View File

@ -1,4 +1,4 @@
<TeXmacs|1.0.7.15>
<TeXmacs|1.0.7.19>
<style|tmdoc>
@ -121,6 +121,35 @@
predefined glue widgets described in "<hlink|Containers, glue, refresh and
co.|scheme-gui-advanced.en.tm>".
Text attributes may be changed for <scm|text> widgets and many others by
enclosing them inside what we'll name <with|font-shape|italic|style
widgets>. These attributes are <scm|mini>, <scm|monospaced>, <scm|grey>,
<scm|inert>, <scm|centered> and <scm|bold>, and respectively: reduce the
size of the widget, choose a <tt|monospaced font>, set the color to
<with|color|grey|grey>, deactivate the widget (meaning it is rendered, but
greyed out and inactive), center it and choose a bold face. Here is an
example:
<\session|scheme|default>
<\unfolded-io|Scheme] >
(tm-widget (example3)
\ \ (hlist\
\ \ \ \ (bold (text "Hello"))
\ \ \ \ \<gtr\>\<gtr\>\<gtr\>
\ \ \ \ (inert (explicit-buttons ("world" (display "!\\n"))))))
<|unfolded-io>
\;
</unfolded-io>
<\input|Scheme] >
(top-window example3 "Some text")
</input>
</session>
<tmdoc-copyright|2012|the <TeXmacs> team.>
<tmdoc-license|Permission is granted to copy, distribute and/or modify