win32lib v0.57.4 released
- Posted by Derek Parnell <ddparnell at bigpond.com> May 05, 2002
- 520 views
Hi All, for those that are interested, I've place version 0.57.4 on my website: http://www.users.bigpond.com/ddparnell/euphoria/w32lv057.zip 675KB If I don't hear of any bugs during the next week, I'll promote it to v0.58 and get RDS to place it on the contributions section as a stamped file. The changes are: -- Fixes -- - "by Matt Lewis". The Delete-All functions for ListView and TreeView now work. - "by Martin Stachon". Put back 'include compat01.ew' - "by Irv Mullins". Now handles clicking into an "empty" treeview without crashing. - addItem() now works with empty text strings. - "by Judith Evans and Martin Stachon". removeTVItem() now correctly resets the 'has children' flag so that subsequent addTVItem() calls use the correct graphics. - "by Martin Stachon". No longer crashes when using getRect() on a closed window. - The demo program, 'generic.exw', now saves the text correctly. - The setSelectedText() routine now works when the length of the selected text is zero. - "by Brian Broker". limitText() now works. - "by Thomas Parslow". GDI resource leak using wPuts and queryFont removed. - "by Brian Broker". getText() nows returns the newly - "by Martin Stachon". replaceObject() was not handling tagged resources. - "by Bernie Ryan". calling the Windows API "xGetScrollInfo" now works. - addIcon() can now be called before any ListView, TreeView, ComboBoxEx, or FlatToolBar has been created. - The Destroy event is now triggered before the control is destroyed. - The Destroy event, when triggered for the main window, no longer crashes. -- Enhancements -- - The Win32LibVersion constant now has a 4th entry; the date of the version. - The getControlInfo() function now supports a new info type - CONTROLINFO_classinfo. This returns a sequence containing the data used by the control when created - such as Name of control type and default background color. - setText() no longer generates a warning message for controls that do not support setting the text. - setText() now supports atoms, integers, formatting mask, as well as straight text. - MleText controls no longer have a Horizontal scroll bar. This means that they are now automatically in word-wrap mode. - The Mouse event now responds to Mouse Wheel movements. - "by Guillermo Bonvehi". shellExecute can now use NULL for the 'verb' parameter. - shellExecute() can now supply the style flags as a sequence of individual flag values. - "by Thomas Parslow". The bitBlt routine can now handle the source and destination being the same bitmap. - getText() and setText() now work with MenuItems. - Added Minimized and Maximized keywords that can be used in OpenWindow, ShowWindow, and WinMain routines. - The sendMessage(), w32Func() and w32Proc() routines can now take string arguments. These are automatically converted to lzpstr 'C' data items for you. The memory is acquired and released automatically. - destroy() can now be used to remove a TabItem from a TabControl - setFont() for RichEdit controls now allows you to specify that the change affects the entire text or just the insertion point (the default). - wPuts() can now specify a X,Y position to move to before displaying text. - wPuts() can now accept numbers as the second parameter. - When creating a StatusBar control, you can now specify the panels in the statusbar. - "by Brian Broker". addTabs() can now add tabstops to a list box. - destroy() now works on all control types and releases child control resoures as well. - getOpenFileName() now supports selecting multiple files. -- New Routines -- - There is a new routine makeMenu() which is a shorthand way of creating an entire menu structure for a window. - A new routine setSubFields() allows you to create sub-fields in the status bar. setText(), getText() and setHint() now support these sub-fields. - A new set of routines are available that implements user defined properties for controls. These routines are defineUserProperty(), setUserProperty(), resetUserProperty(), and getUserProperty(). - drawLines() routine allows a multiple disjoint line segments of varying colors to be rendered in one call. This is faster than calling setPenColor() and drawLine() multiple times. - setTVText() used to change the text of a TreeView item. - collapseItem() used to hide a TreeView item's children. - toggleItem() used to hide or show a TreeView's children. - setTVImages() used to change the TreeView item's images. - getFocus() returns the id of the control that has focus. - EzCreateFont() is now a global function. - useLogicalResolution() can be used to control how font's are sized. - assignFont() updates the font in a control's Device Context - "by Brian Broker". insertText() and appendText(). - findItem() to locate an item in a List or Combo type of control. - getLastMsg() returns the latest windows message. - setLVAttr() is used to set special sorting requirements for ListView controls, including user-defined routines. -- Changes that might break some existing code -- - expandItem() only takes one parameter now. It no longer needs the id of the TreeView control. - When creating a TabItem, the new TabItem gets focus. - SIZENESWPointer has been renamed to SizeNESWPointer to conform to the naming convention of the other standard Pointer Shape names. - uFindReplaceMsg has been renamed w32FindReplaceMsg to conform with the naming convention used with other global constants. - insertListViewItem() now returns a sequence {index, itemid} - The application's default icon is now set to the same as Euphoria's. - Removed obsolete Windows 3.1 identifiers. - The struct_LVDISPINFO() routine was removed because it wasn't used internally and has very little use to anyone. ----------- Derek.