Page 1 of 2

HMG 2.9.2 (Forum test)

Posted: Thu May 28, 2009 3:06 am
by Roberto Lopez
Hi All,

Please test and report any problem you found.

Code: Select all

- Harbour MiniGUI 2.9.2 Changelog:

	English:
	--------

	- Fixed: Print Preview. 'go to page' window not refresh preview window.

	- New: Property style synonyms for the following DEFINE WINDOW command clauses:

		- WindowType (Main/Modal/Child/SpltChild Clauses)
		- Visible (NoShow Clause)
		- AutoRelease (NoAutoRelease Clause)
		- MinButton (NoMinimize Clause)
		- MaxButton (NoMaximize Clause)
		- Sizable (NoSize Clause)
		- SysMenu (NoSysMenu Clause)
		- TitleBar (NoCaption Clause)
		- FontName (Font Clause)
		- FontSize (Size Clause)
		- HelpButton (HelpButton Clause)
		- Break (Break Clause)
		- Focused (Focused Clause)
		- Topmost (Topmost Clause)

Thanks in advance.

Regards,

Roberto.

Re: HMG 2.9.2 (Forum test)

Posted: Thu May 28, 2009 7:04 am
by Rathinagiri
So, now we have many options. Thanks Roberto.

Re: HMG 2.9.2 (Forum test)

Posted: Thu May 28, 2009 12:10 pm
by Roberto Lopez
rathinagiri wrote:So, now we have many options. Thanks Roberto.
The idea is to give to the window definition a 'property style' for all clauses used at definition time, being consistent with controls that have full 'property style' via alternate syntax for all properties.

Regards,

Roberto.

Re: HMG 2.9.2 (Forum test)

Posted: Thu May 28, 2009 12:38 pm
by Vanguarda
HI all,

Thanks Master Roberto. Very nice this update...

with best reagrds,

Re: HMG 2.9.2 (Forum test)

Posted: Thu May 28, 2009 12:40 pm
by shridhar
Thanks a lot ..! Master.

Re: HMG 2.9.2 (Forum test)

Posted: Thu May 28, 2009 1:00 pm
by gfilatov
Roberto,

I want to say about some optimization again :)

How about to change this multiline definition in the i_window.ch

Code: Select all

	#xcommand DEFINE WINDOW <w> ;
...
			[ FONT <FontName> SIZE <FontSize> ] ;
...
			[ FONTNAME <FontName> FONTSIZE <FontSize> ] ;
with the following one line

Code: Select all

	#xcommand DEFINE WINDOW <w> ;
...
			[ <dummy1: FONT, FONTNAME> <FontName> <dummy2: SIZE, FONTSIZE> <FontSize> ] ;
...
:?:

Just my 2 cents... ;)

Re: HMG 2.9.2 (Forum test)

Posted: Thu May 28, 2009 1:25 pm
by Roberto Lopez
gfilatov wrote:Roberto,

I want to say about some optimization again :)

How about to change this multiline definition in the i_window.ch

Code: Select all

	#xcommand DEFINE WINDOW <w> ;
...
			[ FONT <FontName> SIZE <FontSize> ] ;
...
			[ FONTNAME <FontName> FONTSIZE <FontSize> ] ;
with the following one line

Code: Select all

	#xcommand DEFINE WINDOW <w> ;
...
			[ <dummy1: FONT, FONTNAME> <FontName> <dummy2: SIZE, FONTSIZE> <FontSize> ] ;
...
:?:

Just my 2 cents... ;)
Thanks!

Regards,

Roberto.

Re: HMG 2.9.2 (Forum test)

Posted: Thu May 28, 2009 7:19 pm
by esgici
Roberto Lopez wrote: ... test and report any problem you found.
Hi Maestro

While

Code: Select all

MsgBox( "Window Row is : " + LTRIM( STR( ThisWindow.Row ) ) )

and

Code: Select all

MsgBox( "Window Row is : " + LTRIM( STR( GetProperty( <cWindowName>, "Row" ) ) ) )
producing correct values;

Code: Select all

MsgBox( "Window type is : " + ThisWindow.WindowType )
produced :

Error E0030 Syntax error: "syntax error at '.'"

and

Code: Select all

MsgBox(  VALTYPE( GetProperty( <cWindowName>, "WindowType" ) ) )
produced : "U"

:(

Other "property style synonyms" are seeming the same.

Best Regards

--

Esgici

Re: HMG 2.9.2 (Forum test)

Posted: Thu May 28, 2009 10:22 pm
by Roberto Lopez
esgici wrote:
Roberto Lopez wrote: ... test and report any problem you found.
Hi Maestro

While

Code: Select all

MsgBox( "Window Row is : " + LTRIM( STR( ThisWindow.Row ) ) )

and

Code: Select all

MsgBox( "Window Row is : " + LTRIM( STR( GetProperty( <cWindowName>, "Row" ) ) ) )
producing correct values;

Code: Select all

MsgBox( "Window type is : " + ThisWindow.WindowType )
produced :

Error E0030 Syntax error: "syntax error at '.'"

and

Code: Select all

MsgBox(  VALTYPE( GetProperty( <cWindowName>, "WindowType" ) ) )
produced : "U"

:(

Other "property style synonyms" are seeming the same.

Best Regards

--

Esgici

It's an error, but in documentation, since these new properties are available at control definition only and should be tagged with (D) in the documentation.

Properties available at control definition are not available at SetProperty and GetProperty functions nor semi-oop syntax.

I'll fix the documentation.

Thanks for reporting.

Regards,

Roberto.

Re: HMG 2.9.2 (Forum test)

Posted: Thu May 28, 2009 11:03 pm
by Roberto Lopez
Roberto Lopez wrote:
It's an error, but in documentation, since these new properties are available at control definition only and should be tagged with (D) in the documentation.

Properties available at control definition are not available at SetProperty and GetProperty functions nor semi-oop syntax.

I'll fix the documentation.
Ok. Here it is.

We always had three property types:

D: Available only at control definition
R: Read-Only (*)
W: Write-Only (*)

(*): at runtime only via Getproperty, SetProperty or semi-oop

This had be never properly documented (until now:) )

Code: Select all

Properties:

      - Row
      - Col
      - Width
      - Height
      - Title
      - NotifyIcon
      - NotifyTooltip
      - FocusedControl (R)
      - Cursor (W)
      - VirtualWidth (D)
      - VirtualHeight (D)
      - Icon (R)
      - WindowType (Main/Modal/Child/SpltChild/Standard Clauses) (D)
      - Visible (NoShow Clause) (D)
      - AutoRelease (NoAutoRelease Clause) (D)
      - MinButton (NoMinimize Clause)(D)
      - MaxButton (NoMaximize Clause) (D)
      - Sizable (NoSize Clause) (D)
      - SysMenu (NoSysMenu Clause) (D)
      - TitleBar (NoCaption Clause) (D)
      - BackColor (D)
      - FontName (Font Clause) (D)
      - FontSize (Size Clause) (D)
      - HelpButton (HelpButton Clause) (D)
      - GripperText (D)
      - Break (Break Clause) (D)
      - Focused (Focused Clause) (D)
      - Topmost (Topmost Clause) (D)
      - Name (R) 

R: Read-Only
W: Write-Only
D: Available at definition only 
Regards,

Roberto.