HMG 2.9.2 (Forum test)

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

Moderator: Rathinagiri

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

HMG 2.9.2 (Forum test)

Post 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.
Attachments
hmg292.rar
(386.73 KiB) Downloaded 309 times
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: HMG 2.9.2 (Forum test)

Post by Rathinagiri »

So, now we have many options. Thanks Roberto.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: HMG 2.9.2 (Forum test)

Post 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.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
Vanguarda
Posts: 543
Joined: Wed Feb 11, 2009 10:56 am
Location: Americana - SP
Contact:

Re: HMG 2.9.2 (Forum test)

Post by Vanguarda »

HI all,

Thanks Master Roberto. Very nice this update...

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


http://hmglights.wordpress.com/
shridhar
Posts: 32
Joined: Mon May 25, 2009 5:24 am

Re: HMG 2.9.2 (Forum test)

Post by shridhar »

Thanks a lot ..! Master.
User avatar
gfilatov
Posts: 1067
Joined: Fri Aug 01, 2008 5:42 am
Location: Ukraine
Contact:

Re: HMG 2.9.2 (Forum test)

Post 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... ;)
Kind Regards,
Grigory Filatov

"Everything should be made as simple as possible, but no simpler." Albert Einstein
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: HMG 2.9.2 (Forum test)

Post 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.
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)

Post 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
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)

Post 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.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: HMG 2.9.2 (Forum test)

Post 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.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
Post Reply