Page 1 of 9

HMG 3.3.0 (Stable)

Posted: Sat May 24, 2014 9:25 am
by Rathinagiri
Dear HMG Family,

I am very much happy to announce the new version HMG 3.3.0. This version has so many new features and bug fixes, thanks to the contributions of many members of our forum.

Dr. Claudio Soto is successful in bringing out HMG in 64 Bits. That is a tremendous achievement, I can say. Let us congratulate him for that. A patch for 64 Bits is getting ready and you have to apply that patch on the regular 32 Bits version of HMG and HMG is already powered for 64 Bits. I will share the 64 Bits Patch version shortly.

This setup file doesn't contain the NotePad++ editor.

HMG can be downloaded from sourceforge.net site .

Enjoy!


Changelog:

HMG 3.3.0 (Stable) 2014/05/24
  • Updated to latest Harbour Nightly Build (2014-05-06)
  • Following libraries in HFCL are now in-built in the main library
    • BosTaurus
    • HMG_HPDF
  • New functions in BosTaurus library:
    • BT_BitmapLoadEMF ( cFileName, [ aBackgroundFillColor ], [ nNewWidth ], [ nNewHeight ], [ ModeStretch ] )  ---> Return hBITMAP
    • BT_DrawFillFlood ( hDC, Row, Col, aColorRGBFill )
  • Re-arrangement and Improvements in HMG Documentation
  • Demo folders are re-arranged according to the HMG Documentation order (Contributed by Pablo César)
  • New demos:
    • SAMPLES\Controls\RichEditBox
    • SAMPLES\Controls\Grid\GridOnKeyOnClick
    • SAMPLES\Miscellaneous\MoveResizeControl
    • SAMPLES\Controls\ListBox\ListBox_4 ( Contributed By Pablo César )
    • SAMPLES\UNICODE\BOX_DRAWING ( Contributed By Pablo César )
    • Enhanced SAMPLES\Controls\Grid\GridIncrementalSearch
  • New Features in Grid Control
    • It is now possible to effectively control the user events in Grid. At definition the following directives are possible now.
      • [ ON CLICK <OnClickProcedure> ]
      • [ ON KEY <OnKeyProcedure> ]
      • [ EDITOPTION <nEditOption> ]      
      • <ParentWindowName>.<GridControlName>.CellRowFocused   --> nCellRowIndex
      • <ParentWindowName>.<GridControlName>.CellColFocused   --> nCellColIndex
      • <ParentWindowName>.<GridControlName>.CellRowClicked   --> nCellRowIndex
      • <ParentWindowName>.<GridControlName>.CellColClicked   --> nCellColIndex
      • <ParentWindowName>.<GridControlName>.CellNavigation [ := | --> ] lBoolean
      • <ParentWindowName>.<GridControlName>.EditOption     [ := | --> ] GRID_EDIT_DEFAULT | GRID_EDIT_SELECTALL | GRID_EDIT_INSERTBLANK | GRID_EDIT_INSERTCHAR | GRID_EDIT_REPLACEALL
    • For more details please see Grid Doc.
  • New Printer related functions
    • OpenPrinterGetDC()
    • OpenPrinterGetPageDC()
    • IsPrintPageMetaFile()
    • OpenPrinterGetPageWidth()
    • OpenPrinterGetPageHeight()
  • New Runtime Window Handling
    • ThisWindow|<FormName>.Handle            --> nFormHandle
    • ThisWindow|<FormName>.Index             --> nFormIndex
    • ThisWindow|<FormName>.IsMinimized       --> lBoolean
    • ThisWindow|<FormName>.IsMaximized       --> lBoolean
    • ThisWindow|<FormName>.ClientAreaWidth   --> nWidth
    • ThisWindow|<FormName>.ClientAreaHeight  --> nHeight
    • ThisWindow|<FormName>.NoCaption   [ := | --> ] lBoolean
    • ThisWindow|<FormName>.NoMaximize  [ := | --> ] lBoolean
    • ThisWindow|<FormName>.NoMinimize  [ := | --> ] lBoolean
    • ThisWindow|<FormName>.NoSize      [ := | --> ] lBoolean
    • ThisWindow|<FormName>.NoSysMenu   [ := | --> ] lBoolean
    • ThisWindow|<FormName>.HScroll     [ := | --> ] lBoolean
    • ThisWindow|<FormName>.VScroll     [ := | --> ] lBoolean
    • ThisWindow|<FormName>.Enabled     [ := | --> ] lBoolean
    • ThisWindow|<FormName>.AlphaBlendTransparent := nAlphaBlend (0 to 255, Completely Transparent = 0, Opaque = 255)
    • ThisWindow|<FormName>.BackColorTransparent  := aRGBColor
  • New Functions
    • FindTextDialog
    • ReplaceTextDialog
    • HMG_LoadResourceRawFile ( cFileName, cTypeResource | nTypeResourceID ) --> cData
    • GetFontList ( [ hDC ] , [ cFontFamilyName ] , [ nCharSet ] , [ nPitch ] , [ nFontType ] , [ lSortCaseSensitive ] , [ @aFontName ] )
    • System.EmptyClipboard
    • SET DIALOGBOX POSITION: Sets the position of the dialog boxes (FindTextDialog, GetColor, GetFile, GetFolder, GetFont, MessageBoxTimeout, MsgXXX, PutFile, ReplaceTextDialog, SELECT PRINTER, etc)
      • SET DIALOGBOX [ POSITION ] ROW <nRow>|<@VarCodeBlockRow>|<NIL>   COL <nCol>|<@VarCodeBlockCol>|<NIL>
      • SET DIALOGBOX [ POSITION ] CENTER OF PARENT
      • SET DIALOGBOX [ POSITION ] CENTER OF <hWnd>
      • SET DIALOGBOX [ POSITION ] CENTER OF DESKTOP
      • SET DIALOGBOX [ POSITION ] DISABLE
      • See example of SET DIALOGBOX POSITION in doc
    • HMG_GetLastMouseMessage ( [ @hWnd ], [@nMsg], [@wParam], [@lParam] ) --> nMsg
    • HMG_CleanLastMouseMessage ()
    • HMG_GetCursorPos ( [ hWnd ], @nRow, @nCol )
    • HMG_SetCursorPos ( [ hWnd ],  nRow,  nCol )   
    • SetWindowLongPtr (hWnd, nIndex, dwNewLong) --> return dwRetLong
    • GetWindowLongPtr (hWnd, nIndex) --> return dwRetLong
    • SetClassLongPtr (hWnd, nIndex, dwNewLong) --> return dwRetLong
    • GetClassLongPtr (hWnd, nIndex) --> return dwRetLong      
    • GetCurrentProcessId() --> return nProcessID
    • EnumProcessesID () ---> return array { nProcessID1, nProcessID2, ... }
    • GetProcessName ( [ nProcessID ] ) --> return cProcessName
    • GetProcessFullName ( [ nProcessID ] ) --> return cProcessFullName
    • GetProcessMemoryInfo ( [ ProcessID ] )  --> return array with 9 numbers
    • GlobalMemoryStatusEx () --> return array with 7 numbers
  • Enhanced GetColor ( [ aDefaultColor ], [ @aCustomColors ], [ lFullOpenBox ] )
  • Enhanced RichEditBox Control
    • New Properties
      • FontName
      • FontSize
      • FontBold
      • FontItalic
      • FontUnderline
      • FontStrikeOut
      • FontColor
      • FontBackColor
      • FontScript
      • Link
      • GetClickLinkRange
      • GetClickLinkText
      • RTFTextMode
      • AutoURLDetect
      • Zoom
      • SelectRange
      • CaretPos
      • Value
      • ViewRect
      • GetSelectText
      • GetTextLength
      • GetTextRange
      • GetPosChar
      • AddText
      • AddTextAndSelect
      • CanPaste
      • CanUndo
      • CanRedo
      • BackGroundColor
      • ParaAlignment
      • ParaNumbering
      • ParaNumberingStyle
      • ParaNumberingStart
      • ParaOffset
      • ParaLineSpacing
      • ParaIndent
      • FindText
      • ReplaceText
      • ReplaceAllText
    • New Methods
      • SelectAll
      • UnSelectAll
      • SelCopy
      • SelPaste
      • SelCut
      • SelClear
      • Undo
      • Redo
      • ClearUndoBuffer
      • RTFLoadFile
      • RTFSaveFile
      • RTFPrint
    • New Properties at Definition
      • NOHSCROLL
      • NOVSCROLL
      • ON SELECT
      • ON LINK
      • ON VSCROLL
  • New Features in Print Preview 
    • New Save Print Preview as image: BMP, JPG, GIF, TIFF, PNG or EMF
    • New Save Printer Preview as PDF
    • Enhanced look and feel of Print Preview ( Contributed By Pablo César )
    • Enhanced quality of images of ThumbNails in printer preview
    • Changed cursor behavior in Print Preview window: Zoom and Glass Cursor only into page to print
  • New HMG_HPDF PRINT UNICODE TEXT as images (Please see SAMPLES\HPDF\HMG_HPDFUNI)
  • New Unicode related functions
    • HMG_IsUTF8 ( cString )          --> lBoolean
    • HMG_IsUTF8WithBOM ( cString )   --> lBoolean
    • HMG_UTF8RemoveBOM ( cString )   --> cString
    • HMG_UTF8InsertBOM ( cString )   --> cString
  • New Registry related functions
    • RegCloseKey ( hKey ) --> return lBoolean
    • RegOpenKeyEx ( hKey, cSubKey, [ RegSAM ], @hResult ) --> return lBoolean
    • RegEnumKeyEx ( hKey, nIndex, @cBuffer, @cClass ) --> return lBoolean
  • New HFCL ComboSearchBox Features ( See sample )
    • Additive 
    • RowOffset
    • ColOffset
  • Fixed Printer Preview activate from Modal Window with Panel Window (Reported by Marek, Fixed by Dr. Claudio Soto)
  • Fixed scroll window with Panel Window (Reported by Marek, Fixed by Dr. Claudio Soto)
  • Fixed HMG_HPDF ttf font selection ( Contributed By Pablo César )         
  • Fixed Numeric TextBox Decimal Point problem ( Contributed By Pablo César )
  • Fixed HFCL ComboSearchBox GotFocus/LostFocus Bug
  • Fixed HTML_END ( Contributed By Pablo César )

Re: HMG 3.3.0 (Stable)

Posted: Sat May 24, 2014 9:38 am
by Rathinagiri
I like the following in this version personally.

1. Now it is possible to save the print output to pdf file in print preview. There by we can print even unicode fonts. Even though it is a work around, I like this one a lot.

2. Following the same way, a new work around method to print unicode font in HPDF is made by Dr. Claudio Soto. It is very handy to print in any system font also.

3. The Grid control is an important control and any user event on that can now be captured and it is in full control of the developer now. We can do whatever we want. :)

4. HMG in 64 Bits. Yes. HMG enters into new horizons.

5. New features of RichEditBox. Once I had seen the jaw dropping sample for RichEditBox, I had come to the conclusion that the time is not far away to have our own HMG code editor with syntax highlighting exclusively for HMG.

6. Registry functions.

Thank you friends for keeping HMG fresh, simple and effective.

Re: HMG 3.3.0 (Stable)

Posted: Sat May 24, 2014 10:43 am
by esgici
Thank you very much Mr. Diamond and Dr. Soto :D

Re: HMG 3.3.0 (Stable)

Posted: Sat May 24, 2014 11:13 am
by serge_girard
Much thanks to all involved !

Serge

Re: HMG 3.3.0 (Stable)

Posted: Sat May 24, 2014 11:25 am
by bpd2000
esgici wrote:Thank you very much Mr. Diamond and Dr. Soto :D
+1000

Re: HMG 3.3.0 (Stable)

Posted: Sat May 24, 2014 12:42 pm
by quartz565
Thank you very much all, for this new version!!

Nikos

Re: HMG 3.3.0 (Stable)

Posted: Sat May 24, 2014 1:44 pm
by tonton2
Bonsoir
Thank you very much all, for this new version.
I am going to try it

Re: HMG 3.3.0 (Stable)

Posted: Sat May 24, 2014 2:35 pm
by andyglezl
Gracias a todos los que contribuyen a este gran trabajo !
------------------------------------------------------
Thanks to all who contribute to this great work!

Re: HMG 3.3.0 (Stable)

Posted: Sat May 24, 2014 4:28 pm
by JALMAG
Thanks!
best regards

Re: HMG 3.3.0 (Stable)

Posted: Sat May 24, 2014 4:42 pm
by srvet_claudio
My one cent.
I think that the information on our forum stayed outdated :lol: :lol: :lol: