Hi Sheri,

--- In [email protected], "Sheri" <sheri...@...> wrote:

You gave prototype of choose_font as
 
> local new_font_spec = dialog.choose_font(font_spec_w_no_color)

At the moment it's

local font_spec = dialog.choose_font([<target> [<colour_var_name> ]])

Problem is, <target> can be one or two parameters, often hidden by
using the dot syntax on a handle to a dialgo or control.

It would be easier to parse and understand if I changed spec to

local font_spec = dialog.choose_font([<font_spec> [,_<var_name>]])

but that would break CA (and regex?) scripts; you'd have to code

local font_spec = dialog.choose_font(dialog.get_font(<target>))

instead of 

local font_spec = dialog.choose_font(<target>)

Whadya think?

Concentrating on choose_font for nowl; will get to change_style later.




Reply via email to