Page 1 of 1

HMG 2.9.2 (Forum test III)

Posted: Fri May 29, 2009 4:46 pm
by Roberto Lopez
Hi All,

A new attempt :)

Thanks in advance for test and report.

Regards,

Roberto.

Re: HMG 2.9.2 (Forum test III)

Posted: Fri May 29, 2009 6:42 pm
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

Re: HMG 2.9.2 (Forum test III)

Posted: Fri May 29, 2009 9:20 pm
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.

Re: HMG 2.9.2 (Forum test III)

Posted: Fri May 29, 2009 9:38 pm
by esgici
Thanks Maestro

Now it's more clear :)

Best Regards

--

Esgici

Re: HMG 2.9.2 (Forum test III)

Posted: Fri May 29, 2009 11:26 pm
by Vanguarda
Thanks master for this update.


with best regards,

Re: HMG 2.9.2 (Forum test III)

Posted: Fri May 29, 2009 11:30 pm
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.

Re: HMG 2.9.2 (Forum test III)

Posted: Sat May 30, 2009 12:06 am
by esgici
Thanks for clarifications, Maestro :)

Best Regards

--

Esgici