--- In [email protected], "entropyreduction"
<alancampbelllists+ya...@...> wrote:
>
> --- In [email protected], "Sheri" <sherip99@> wrote:
> >
> > --- In [email protected], "entropyreduction"
> > <alancampbelllists+yahoo@> wrote:
> > >
> > > --- In [email protected], "Sheri" <sherip99@> wrote:
>
> > ...unless the target provided to choose_font doesn't support getting
> > its font, then the service gives an error (wrong number of arguments).
>
> Does this still happen with dialogplugin1.19_081219.zip?
>
> > If the target provided to choose_font is the handle to a whole
> > bar, font dialog opens with Microsoft Sans Serif and an absurdly
> > large font size of 721788. Properties for the tested bar actually
> > had: TempBar.NewProperties(?"fontname = Arial\nfontinfo = Bold
> > Size: 10")
>
> Does this still happen with dialogplugin1.19_081219.zip?
Yes, but the actual value of the absurdly large font size varies each
time.
Font dialog doesn't crash but looks similar if given handle to whole
bar or the PowerProChildToolbar.
>
> > Using get_value to get the font, the following crashes PowerPro:
>
> > local TestBarhandle=cl.getbarhandle("TestBar")
> > win.debug(dialog.get_value(TestBarHandle, "font"))
>
> Does this still happen with dialogplugin1.19_081219.zip?
yes.
>
> > It also crashes PowerPro if you use get_value to try to get the
> > font for a window with class PowerProChildToolbar.
>
> Does this still happen with dialogplugin1.19_081219.zip?
yes.
>
> > If an individual *control item has its own font (via cl.setfont),
> > dialog.get_value(controlhandle, "font") gets its fontspec
> > accurately without crashing. Ditto for choose_font.
>
> Does this still happen with dialogplugin1.19_081219.zip?
>
yes.
To summarize:
PowerPro crashes if you use dialog.get_value(hwnd, "font") if hwnd is
handle to whole bar or handle to bar's PowerProChildToolbar.
Font dialog (choose_font) shows with strange settings but doesn't
crash if given the same handles as above.
dialog.get_value(hwnd, "font") and dialog.choose_font(hwnd) work fine
if give handles to items on bars which are embedded controls, as long
as the controls themselves have own font. dialog.set_font can also
change them on the fly.
In contrast, cl.setfont currently has to be followed by cl.refresh to
display changed fonts in embedded controls. cl.refresh is not
necessary after cl.setfont to powerpro's own buttons that are not
embedded controls (powerprochildtoolbar). After cl.refresh, embedded
controls have new handles.
Regards,
Sheri