1. Win32lib V0.54 Changes
- Posted by Derek Parnell <derekp at solace.com.au> Nov 02, 2000
- 435 views
I'm about to release version 0.54 of Win32Lib to the sourceforge site. There will be three ZIP files, 1) The library, include files and examples. These source files are without comments etc. 2) The documentation in HTML form 3) The library files with full comments and formatting. Here is a summary of the changes... ------------------------------------- Fixed. Can now use setHint() an a top-level window. Fixed. No longer triggers an onScroll event if the scroll position hasn't actually changed. Fixed. Now handles setting focus after a control has been destroyed. Fixed. The freeing of string memory has been made reenterant. Fixed. getMultIndices() and getMultItems() now cope with no items selected. Fixed. No longer crashes when a TVN_DELETEITEM event occurs for treeview controls. Fixed. The use of Modal windows no longer crashes the Application. Enhanced. warnErr() now allows the user can now opt to ignore repeated warnings. Enhanced window scrollbars. Standard scroll bars on windows windows now trigger onScroll events Enhanced. create(), createEx(), setClientSize(), setCtlSize(), setRect(), and setPenPosition() In addition to the current method, you can now supply dimensions relative to the control's parent in terms of percentages, plus optional pixel offset. You can even align things to the edges of the parent. Optionally you can specify minimum and maximum sizes. Enhanced. Extra validation is being done to ensure that Window Handles are being used with the correct control ID. Enhanced The event handlers onXXX can now be set for the Screen ID. This will capture all events of the given type for all controls in the application. For example onKeyDown[Screen] will be fired for all KeyDown events on all controls. Enhanced getTextExtent() now takes either a single text string or multiple strings. It returns the maximum, minimum and total pixels for width and height. This change will not effect existing code. Added getCharExtent() This returns the average width and height for a text character in a given control. Added getVScrollPos(), getHScrollPos(), setVScrollPos(), setHScrollPos() These get and set the Vertical and Horizontal positions of scrollbars that are attached to windows via the WS_HSCROLL and WS_VSCROLL Added classDefaults() This allows you to set the default styles for each control. Added setClientRect() This resizes your window so that the client area is as specified. Added doEvents() This allows Windows to check for message events during event handling. Added acquire_mem(), release_mem(), new_memset(), and manage_mem() These are the new memory management routines that are used in win32lib. The use of free(), allocate() and allocate_string() is discouraged inside win32lib.ew. Please use the new routines instead. Added getPosition() This returns a sequence containing the pixel position of the top lefthand corner of the control Added copyFile(), deleteFile(), moveFile(), createDirectory(), getTmpPath(), getTempFile() These are wrappers for the Windows file/directory commands. Added openDialog() This simulates a dialog-type window. It opens the specified window and directs all events to that window until its closed. Added showChars() This function sets an internal flag that causes wPrint() to show displayable characters in readable form. The initial setting is to show such characters like Euphoria's print() function. Added eucompress.exw This is a Windows program that compresses any euphoria source code by removing unrequired spaces, empty lines and comments. Changed setPosition() has been renamed to setPenPosition() Changed moveWindow() has been renamed to setRect() Changed getExtent() has been renamed getCtlSize() Changed getSize() has been renamed to getRect() Changed setSize() has been renamed to setCtlSize() Changed The routines renamed above are actually still defined in a compatability file "compat01.ew" which will not be distributed when version 1.00 is released. This file is automatically included in the library for now, but from v1.00 onwards will be distributed but not included inside win32lib.ew Changed The distribution now comes with a number of toolkit files. tk_mem.e (memory management) tk_maths.e (Mathematical functions) tk_misc.e (Miscellaneous) These can be used with any Eu project. These files are "included" by win32lib.ew An additional file, tk_fileio.e, is also distributed but it is not used by win32lib. Changed. onClick events now fired for all non-static controls that don't capture mouse events. For example, the StatusBar. Changed Now uses the DoubleClick time interval for the maximum mouse click time tolerence. Changed For those routines that deal with positioning controls etc, the X and Y (left and top) coordinates are relative to the parent's client area, not the parent's borders. This may break some code that currently manually adjusts these values to account for Toolbar and StatusBar controls. These sort of adjustments are now done automatically. Removed. The routines free_strings(), allot_string(), and allocate_struct() have been removed. ----- cheers, Derek Parnell
2. Re: Win32lib V0.54 Changes
- Posted by Dan B Moyer <DANMOYER at PRODIGY.NET> Nov 02, 2000
- 417 views
Derek, Wow! Sounds like *this* is going to take some time to "digest"! This is a "toggle" to wPrint, right? Hmmm, "inter-esting" :) > Added showChars() > This function sets an internal flag that causes wPrint() to > show displayable characters in readable form. The initial setting > is to show such characters like Euphoria's print() function. And at some point, will you be sending some version of the expanded Win32Lib to RDS to see if it can be *stamped*??? Dan Moyer ----- Original Message ----- From: "Derek Parnell" <derekp at SOLACE.COM.AU> To: <EUPHORIA at LISTSERV.MUOHIO.EDU> Sent: Wednesday, November 01, 2000 10:25 PM Subject: Win32lib V0.54 Changes > I'm about to release version 0.54 of Win32Lib to the sourceforge site. > > There will be three ZIP files, > 1) The library, include files and examples. These source files are without > comments etc. > > 2) The documentation in HTML form > > 3) The library files with full comments and formatting. > > > Here is a summary of the changes... > <snipped a LOT of changes>