HMG 2.9.2 (Forum test III)

HMG announcements; Latest HMG-related news, releases, fixes and updates.

Moderator: Rathinagiri

Post Reply
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

HMG 2.9.2 (Forum test III)

Post by Roberto Lopez »

Hi All,

A new attempt :)

Thanks in advance for test and report.

Regards,

Roberto.
Attachments
hmg292-3.rar
(369.93 KiB) Downloaded 283 times
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: HMG 2.9.2 (Forum test III)

Post by esgici »

Hi Maestro

Thanks a lot for this new release :)

Tested for some random built (old) projects, it seems no problem.

Unfortunately I'm not sure understanding new feature : property style synonyms :(

Here is my test prg :

Code: Select all

/*
  

  Testing property style synonyms for the DEFINE WINDOW command clauses introduced by HMG 2.9.2
  

*/

#include "minigui.ch"

PROC Main()

          
   DEFINE WINDOW frmSynsTest ;
      ROW         0          ;
      COL         0          ;
      WIDTH       520        ;
      HEIGHT      400        ;
      TITLE       'Tests for property style synonyms' ; 
      WindowType  "MAIN"     ;
      Visible     .T.        ; 
      AutoRelease .F.        ;
      MinButton   .T.        ;
      MaxButton   .F.        ;
      Sizable     .F.        ;
      SysMenu     .F.        ;
      TitleBar    .T.        ; 
      FontName    "FixedSys" ;
      FontSize    12         ;
      HelpButton  .T.        ; 
      Break       .T.        ;
      Focused     .T.        ;
      Topmost     .T.      
         
   END WINDOW // frmSynsTest
   
   frmSynsTest.Center
   
   frmSynsTest.Activate

      
RETU // Main()

*-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.
It produce most annoying error : Syntax error at WINDOW :!:

Where I'm wrong :?:

Thanks in advance with best regards.

--

Esgici
Viva INTERNATIONAL HMG :D
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: HMG 2.9.2 (Forum test III)

Post by Roberto Lopez »

esgici wrote:Hi Maestro
<...>
Unfortunately I'm not sure understanding new feature : property style synonyms :(
<...>
WindowType "MAIN" ;
<...>
It produce most annoying error : Syntax error at WINDOW :!:

Where I'm wrong :?:

Thanks in advance with best regards.
You must not use quotes for Main.

And... this is not exactly a feature. The purpose for this, is consistency and easyness.

The syntax:

<PropertyName> <PropertyValue>

IMHO, is easier to understand and remember. Besides that, its consistent with IDE, where (ie) for windows you use 'row' and 'col' properties instead AT <row> , <col>.

I've attached the new help text for 'define window'. Please, take a look at it.

Regards,

Roberto.
Attachments
definewindow.rar
(3.51 KiB) Downloaded 298 times
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: HMG 2.9.2 (Forum test III)

Post by esgici »

Thanks Maestro

Now it's more clear :)

Best Regards

--

Esgici
Viva INTERNATIONAL HMG :D
User avatar
Vanguarda
Posts: 543
Joined: Wed Feb 11, 2009 10:56 am
Location: Americana - SP
Contact:

Re: HMG 2.9.2 (Forum test III)

Post by Vanguarda »

Thanks master for this update.


with best regards,
--
Paulo Sérgio Durço (Vanguarda)


http://hmglights.wordpress.com/
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: HMG 2.9.2 (Forum test III)

Post by Roberto Lopez »

esgici wrote:Thanks Maestro

Now it's more clear :)

Best Regards

--

Esgici
A little more clarification:

For controls (alternate syntax) you can define it as non-visible at definition via:

VISIBLE .F.

To do the same for windows you must add NOSHOW clause.

The idea is that you be able to do the same thing using the same syntax (or logic).

So, you can define a non visible window now in the same way that you define a non visible control via alternate syntax (as I've said: VISIBLE .F.)

The same is applicable to a lot of properties.

Regards,

Roberto.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: HMG 2.9.2 (Forum test III)

Post by esgici »

Thanks for clarifications, Maestro :)

Best Regards

--

Esgici
Viva INTERNATIONAL HMG :D
Post Reply