-
Notifications
You must be signed in to change notification settings - Fork 29
OldShoes3Styles.md
Noah Gibbs edited this page Dec 19, 2023
·
1 revision
Here's a description of what styles were supported from the Shoes3 source code:
# complete list of styles
BASIC_S = [:left, :top, :right, :bottom, :width, :height, :attach, :hidden,
:displace_left, :displace_top, :margin, :margin_left, :margin_top,
:margin_right, :margin_bottom]
TEXT_S = [:strikecolor, :undercolor, :font, :size, :family, :weight,
:rise, :kerning, :emphasis, :strikethrough, :stretch, :underline,
:variant]
MOUSE_S = [:click, :motion, :release, :hover, :leave]
KEY_S = [:keydown, :keypress, :keyup]
COLOR_S = [:stroke, :fill]
{ Background => [:angle, :radius, :curve, *BASIC_S],
Border => [:angle, :radius, :curve, :strokewidth, *BASIC_S],
Canvas => [:scroll, :start, :finish, *(KEY_S | MOUSE_S | BASIC_S)],
Check => [:click, :checked, *BASIC_S],
Radio => [:click, :checked, :group, *BASIC_S],
EditLine => [:change, :secret, :text, *BASIC_S],
EditBox => [:change, :text, *BASIC_S],
Image => MOUSE_S | BASIC_S,
ListBox => [:change, :items, :choose, *BASIC_S],
Progress => BASIC_S,
Shape => COLOR_S | MOUSE_S | BASIC_S,
TextBlock => [:justify, :align, :leading, *(COLOR_S | MOUSE_S | TEXT_S | BASIC_S)],
Text => COLOR_S | MOUSE_S | TEXT_S | BASIC_S }
We support a decent selection of that, but definitely not all of it. For any given specific style, the Shoes manual is a great place to start exploring what it did/does, and in many cases the legacy apps are good too.