Page 3 of 29

Re: HMG 3.3.1 (Stable)

Posted: Wed Jul 16, 2014 12:03 am
by srvet_claudio
Pablo César wrote:Thank you Rathi/Claudio for this new version.
Rathinagiri wrote:    - HMG IDE
      - Fixed when not found the text editor calls notepad.exe of windows (reporte by Roberto Lopez)
At my first running of this new IDE release, did not found my Notepad++ as my preferred codes editor, in place came up Windows's Notepad. I understand IDE should searchs at REGISTRY in order to know which is the app for PRG files. (source required)

My Notepad++ was installed and registered at my PC. Why did not recognized it ?
Written on my todo list!

HMG 3.3.1 (Stable)

Posted: Wed Jul 16, 2014 1:03 am
by Pablo César
Rathinagiri wrote:   - HMG IDE
      -Fixed when not found the text editor calls notepad.exe of windows (reporte by Roberto Lopez)
      -Updated Polish language in Unicode (contributed by Marek)

      - and...
this:
Screen2.PNG
Screen2.PNG (18.38 KiB) Viewed 4731 times
This option is able since IDE version 1.0.5

Very nice Claudio ! (I've liked it !)

Re: HMG 3.3.1 (Stable)

Posted: Wed Jul 16, 2014 6:50 am
by Clip2Mania
Thanks guys for the new version!

Is it possible that HMGVersion() still returns 3.3.0 instead of 3.3.1?

Regards

HMG 3.3.1 (Stable)

Posted: Wed Jul 16, 2014 11:39 am
by Pablo César
Clip2Mania wrote:Is it possible that HMGVersion() still returns 3.3.0 instead of 3.3.1?
Yes it is happing. Re-build lib then test again.

Execute: C:\hmg.3.3.1\BuildLib.bat

New set in MiniGui.ch for HMG version:

Code: Select all

#ifndef _HMG_VERSION_NUMBER_
   #define _HMG_VERSION_NUMBER_         331        // eg. 320 --> HMG 3.2.0
   #define _HMG_VERSION_WIN32_STABLE_   "Stable"   // "Stable", "Test" or ""
   #define _HMG_VERSION_WIN64_STABLE_   "Test"     // "Stable", "Test" or ""
   #define _HMG_VERSION_PATCH_          0          // if 0 --> not exist patch in this version 
#endif
Most probably was created HMG lib previously MiniGui.ch re-definition.

HMG 3.3.1 (Stable)

Posted: Wed Jul 16, 2014 1:59 pm
by Pablo César
Change log:
-HMG 3.3.1 (Stable) 2014/07/15
   - New functions for control edge (see doc)
      - SET CONTROL <ControlName> OF <FormName> CLIENTEDGE
      - SET CONTROL <ControlName> OF <FormName> STATICEDGE
      - SET CONTROL <ControlName> OF <FormName> NOTEDGE
Very nice :!:

Only a flaw when control is AUTOSIZE (at least for labels, not sure for rest of controls).
Screen6.PNG
Screen6.PNG (24.37 KiB) Viewed 4675 times
LABEL Demo for EDGE control & sample with NoPrefix:

Code: Select all

/*
 * HMG - Harbour Win32 GUI library Demo
 *
 * Copyright 2002 Roberto Lopez <mail.box.hmg@gmail.com>
 * http://www.hmgforum.com//
*/

#include "hmg.ch"

Function Main

    DEFINE WINDOW Form_Main ;
        AT 0,0 ;
        WIDTH 640 HEIGHT 480 ;
        TITLE 'Main Window' ;
        MAIN 

        @ 200,250 LABEL Label_1 ;
        WIDTH 150 HEIGHT 40 ;
        VALUE 'Click Me !' ;
        ACTION MsgInfo('Label Clicked!!!') ;
        FONT 'Arial' SIZE 24  CENTERALIGN

        @ 10,10 LABEL Label_2 ;
        AUTOSIZE ;
        VALUE '...' ;
        ACTION msginfo('test')
        
        @ 50,10 LABEL Label_3 ;
        AUTOSIZE ;
        VALUE 'Hello All, This Is An &AutoSizable Label display!!!' ;
        ACTION msginfo('test')
        
        @ 300,10 LABEL Label_4 ;
        AUTOSIZE ;
        VALUE 'Label_4 &NoPrefix' ;
        ACTION msginfo('test') ;
        FONT 'Arial' SIZE 12  CENTERALIGN NoPrefix

    END WINDOW

    Form_Main.Label_2.Value := 'Hello All, This Is An AutoSizable Label display!!!'

    SET CONTROL Label_1 OF Form_Main CLIENTEDGE
    SET CONTROL Label_2 OF Form_Main STATICEDGE
    SET CONTROL Label_3 OF Form_Main STATICEDGE
    SET CONTROL Label_4 OF Form_Main NOTEDGE
    
    CENTER WINDOW Form_Main

    ACTIVATE WINDOW Form_Main

Return Nil

Dear Rathi,

HMG Reference online (hosted doc) is not updated. SET EDGE is not at http://hmgforum.com/hmgdoc/data/index.htm.

When you update, please remember this pending.

HMG 3.3.1 (Stable)

Posted: Fri Jul 18, 2014 11:53 am
by Pablo César
Dear Claudio,

1. I use the "Build Log" button option in HMG IDE, but errors are displaying a "४" in place of line feed (LF) and carriage return (CR).
Screen.PNG
Screen.PNG (21.37 KiB) Viewed 4607 times
Is it posible to visualize error.log/build.log with line break ? Would helps for better visualization.

2. I do not know if you have read my previous mesage about EDGE control is not executing the AUTOSIZE propriety. See my source/demo in "Show" spoiler. But if you put "&" to the same value text of LABEL, then AUTOSIZE works perfectly.

Thanks in advanced

Re: HMG 3.3.1 (Stable)

Posted: Tue Jul 22, 2014 2:24 am
by srvet_claudio
Pablo César wrote:Dear Claudio,

1. I use the "Build Log" button option in HMG IDE, but errors are displaying a "४" in place of line feed (LF) and carriage return (CR).
Screen.PNG
Is it posible to visualize error.log/build.log with line break ? Would helps for better visualization.

2. I do not know if you have read my previous mesage about EDGE control is not executing the AUTOSIZE propriety. See my source/demo in "Show" spoiler. But if you put "&" to the same value text of LABEL, then AUTOSIZE works perfectly.

Thanks in advanced
Hi Pablo,

1) IDE... Written on my todo list
2) You demo work fine in my Win7

Re: HMG 3.3.1 (Stable)

Posted: Tue Jul 22, 2014 5:15 am
by bpd2000
WinXP Screen

Re: HMG 3.3.1 (Stable)

Posted: Tue Jul 22, 2014 10:23 am
by Clip2Mania
Windows 7

HMG 3.3.1 (Stable)

Posted: Tue Jul 22, 2014 11:04 am
by Pablo César
It seems problem at Win XP.

Another strange thing is when you put "&" as part of prefix in the string, because works perfectly otherwise NOAUTOSIZE works properlly. :(
srvet_claudio wrote:
Pablo César wrote:.. displaying a "४" in place of line feed (LF) and carriage return (CR)
1) IDE... Written on my todo list
Thanks, Claudio.