NeoBook 5.6.4 Update Released

NeoSoft Corp. has released NeoBook version 5.6.4.

NOTE: If you registered NeoBook 5 before February 1st 2008 then you will need to purchase a new registration code in order to use version 5.6 or higher. If you purchased NeoBook 5 after February 1st 2008, then this upgrade is free. Registered users of NeoBook 5.0 through 5.5.4 can purchase a new registration code for $25.

This update contains the following:

Enhancements

-Added an option to Book Properties > Version Info to allow customization of the Vista/Windows 7 manifest included in compiled publications. Most NeoBook authors can safely ignore this feature and simply use the default "As Invoker" setting. Versions of Windows prior to Vista will ignore the manifest. (See the “Book Properties > Global” topic in the help file for more information about this feature.)

-Compiled publications now attempt to detect changes to the default printer made by the Windows Control Panel or other applications. Previously, a change in the default printer would not be recognized until the publication was restarted. (Note to Programmers: Your app should broadcast a WM_SETTINGCHANGE message if you alter the default printer.)

Fixes

-The Archive/Backup command now works correctly. A bizarre glitch in the software we use to “protect” NeoBook from hackers unexpectedly caused this feature to stop working in v5.6.3. Only the English version was affected.

-Corrected two compatibility issues related to Internet Explorer 8. The first caused an error message to appear when closing compiled publications containing embedded HTML content. The second prevented NeoBook from test running ActiveX (PKG) publications (formally known as web browser plug-ins) when IE8 was installed.

-Corrected a problem that prevented NeoBook from running on some Windows 95/98 systems. This was caused by a compatibility issue with the software used to “protect” NeoBook from hackers. This affected NeoBook only and not compiled publications.

-Corrected a problem that prevented Web Browser objects from redrawing properly when snapped to a container.

-The help file’s search feature now works correctly after being inadvertently disabled in the previous update.

Other

-The compiler option “Web Browser Plug-In“ was changed to “ActiveX Control (PKG)” which more accurately reflects the type of application created. Hopefully, this will reduce confusion (and tech support questions) about this feature.

Download here:

http://clickcoders.org/cgi-bin/download.pl?file=nbw.exe

Neobook Tip: Fract Int Sign - Decompose Number Into Its Parts

Contributed by Sam Cox:

This subroutine decomposes a numeric value into useful parts: [Sign], [Int], and [Fract] such that Math "[Sign]*([Int]+[Fract])" "" "[Value]" recreates the original value.
USAGE

SetVar "[Args]" "Value,Decimals"
Gosub "FractIntSign"

The "Decimals" parameters is optional and defaults to "9". To use the default, the usage is:

USAGE WITH DEFAULT VALUE OF DECIMALS

SetVar "[Args]" "Value"
Gosub "FractIntSign"

CODE

:FractIntSign
StrParse "[Args]" "," "[Arg]" "[Argc]"
If "[Argc]" "=" "1"
SetVar "[Arg2]" "9"
Endif
If "[Arg1]" "<" "0"
SetVar "[Sign]" "-1"
Math "Abs([Arg1])" "9" "[Arg1]"
Else
SetVar "[Sign]" "1"
Endif
Math "[Arg1]-0.499999999999999" "0" "[Int]"
Math "[Arg1]-[Int]" "[Arg2]" "[Fract]"
Return

:: Next >>