--- In [email protected], "entropyreduction" <alancampbelllists+ya...@...> wrote:
Just uploaded dialogplugin1.19_081224.zip To http://tech.groups.yahoo.com/group/power-pro/files/0_TEMP_/AlansPluginProvisional/ pdf, chm not up to date > > > > > > > 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. Fixed, I think. > > Using get_value to get the font, the following crashes PowerPro: > local TestBarhandle=cl.getbarhandle("TestBar") > win.debug(dialog.get_value(TestBarHandle, "font")) Fixed? > It also crashes PowerPro if you use get_value to try to get the > font for a window with class PowerProChildToolbar. Fixed? set_font(hwnd,...) makes no attempt to delete exisitng font of hwnd. Re destroying a font resource: suppose I provide a variant of dialog.clear e.g. dialog.clear(hwnd, "font") which will destroy the HFONT used buy a window, and set it's font to the system font. To be used with care, only on powerpro-owned windows. Dealing with styles still TBD.
