--- In [email protected], "entropyreduction"
<alancampbelllists+ya...@...> wrote:
>
> Hi Sheri,
> 
> --- In [email protected], "Sheri" <sherip99@> 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?
> 

Shame to break existing scripts though it sounds like fixing them
would be easy enough. And it would be nice to be able to initialize
the dialog from a constructed font_spec when there is no usable target
handle for dialog to access with get_font (e.g., a normal PowerPro bar
item).

Regards,
Sheri

Reply via email to