SOME CLARIFICATIONS...

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

Moderator: Rathinagiri

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

SOME CLARIFICATIONS...

Post by Roberto Lopez »

Hi All,

Some time ago, Grigory posted a document in this forum.

That document signal the allegedly minigui ext. enhancements over HMG.

As I've stated publicly in this forum too, IMHO, such document is inaccurate in many aspects and (more important) it contains (marketing style) misleading information.

With "misleading information", I mean that in some cases, the facts about some minigui ext. features are exposed in such way, that the reader could assume that such things are not present in HMG, but that is not always true.

Remember that the theme/spirit of that document is (basically) to signal things that minigui ext. has (or can do) that HMG don't.

The document is very extensive and a detailed review would require a lot of time. So, I'm going to talk about of some of the most outstanding cases of misleading information and/or "unintentional mistakes":


1. "BUTTONEX control - so-called OwnerDraw Buttons implementation with support for XP Style.
This button can use images (icons or bitmaps) and text together."



In HMG there is only one BUTTON control, but it has CAPTION and PICTURE properties allowing the creation of MIXED (TEXT and IMAGE) buttons, or (if you prefer) text-only or image only buttons giving it nearly THE SAME FUNCTIONALITY.

A frequently used technique in mimigui ext., is to add controls with the same functionality that existing ones, but with some new properties to give them additional features.


2. "COMBOBOXEX control - combobox which support of images for items"


Again... there is only one COMBOBOX in HMG, but it has the IMAGE property that allows (optionally) add images to the items, giving it THE SAME FUNCTIONALITY IN ONLY ONE CONTROL (as in BUTTONS).


3. "DEFINE FOLDER command. A Folder allows the user to define multiple pages for the same area of dialog box from resources and without using resources."


Again, again...

Although FOLDER uses a very different (dialog based) approach and API calls, it provide a nearly SIMILAR FUNCTIONALITY THAT THE TAB CONTROL, but with the DISADVANTAGE that it could require some LOW LEVEL KNOWLEDGE to be handled and an overall more complex code.


4. "COMBOBOX - property 'ListWidth' for definition a width of dropdown list, <...> events ON LISTDISPLAY and ON LISTCLOSE."


HMG COMBOBOX includes the following:

- DROPPEDWIDTH PROPERTY (equivalent to ListWidth)
- ON DROPDOWN EVENT (equivalent to On ListDisplay)
- ON CLOSEUP EVENT (equivalent to On ListClose)

Giving it THE SAME FUNCTIONALITY in these aspects.


5. "Windows Clipboard support:<...>CopyToClipboard(cText) <...> RetriveTextFromClipboard()->cText"


HMG INCLUDES System.Clipboard object providing SIMILAR FUNCTIONALITY.


6. "The IMAGE BUTTON control with bitmap use mask, created on the fly, for disabled button state."


HMG includes SIMILAR FUNCTIONALITY for IMAGE BUTTONS.


7. "PropSheet library support"


Like DEFINE FOLDER, another somewhat difficult/low level artifact providing dialog-based TAB CONTROL like FUNCTIONALITY.


8. "The ReadOnly state of EDIT controls family (TEXT & EDIT) preserve userdefined FontColor and BackColor properties. We can also define these properties as array of RGB arrays {aEnabled,aReadonly}."


According a minigui ext. screen-shot posted recently for a sample from Luigi, when you specify only a backcolor and a fontcolor, the same color pair is used for normal and read-only state, overriding the system default colors for read-only state. As I've already stated, IMHO this a MISTAKEN behavior.

DisabledBackColor and DisabledFontColor properties were added to HMG before that Grigory posted the 'diff' document, providing SIMILAR (in fact BETTER) FUNCTIONALITY.


9. "The ACTIVATE WINDOW command supports an optional NOWAIT clause."


SIMILAR OVERALL FUNCTIONALITY is achieved in HMG with the ACTIVATE WINDOW ALL scheme and multiple windows activation.

These schemes are meant to reduce the WAIT STATES in the program, not being one to one for each defined window, driving the programmer to create an easier to debug/maintain code than the one created using NOWAIT.


10. "DEFINE DIALOG command - create a Dialog Box from resources or without using resources:"


DIALOGS, basically ARE WINDOWS that are created with different API CALLS than standard ones.

They are nearly indistinguishable from standard windows for an user, with the disadvantage (as in FOLDERS and PROPSHEET) that they requires more complex coding and some low level knowledge.

SIMILAR FUNCTIONALITY is provided by DEFINE WINDOW command in HMG.



To be continued...
Regards/Saludos,

Roberto


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

Re: SOME CLARIFICATIONS...

Post by Vanguarda »

Hi friend Roberto,

Thanks for clarify this points for us.

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


http://hmglights.wordpress.com/
User avatar
Rathinagiri
Posts: 5481
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: SOME CLARIFICATIONS...

Post by Rathinagiri »

Thanks Roberto. Please continue.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
Roberto Lopez
HMG Founder
Posts: 4023
Joined: Wed Jul 30, 2008 6:43 pm

Re: SOME CLARIFICATIONS...

Post by Roberto Lopez »

rathinagiri wrote:Thanks Roberto. Please continue.
I'll do! :)

But not today... its 1:45 AM here... I'm going to bed!
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
swapan
Posts: 242
Joined: Mon Mar 16, 2009 4:23 am
Location: Kolkata, India
Contact:

Re: SOME CLARIFICATIONS...

Post by swapan »

Roberto Lopez wrote:
rathinagiri wrote:Thanks Roberto. Please continue.
I'll do! :)

But not today... its 1:45 AM here... I'm going to bed!
Thanks for throwing light on this ..........................
We need this kind of stuff on occasionally.......
Thanks & Regards,
Swapan Das

http://www.swapandas.com/
User avatar
sudip
Posts: 1456
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Re: SOME CLARIFICATIONS...

Post by sudip »

Hello Roberto,

Thank you very much for this discussion :)

I am using both HMG Official and HMG Extended. But, I never think - any one is better than the other. It's not a competition. Two verions (I have some doubt, are they really 2 separate products or 2 separate versions!!!) have different themes, different compilers. Creators of both them have different thinking :)

They have some things in common, both of them use Harbour, both of them are very user friendly and fast, both of them help common users (like me) to come out of Microsoft's grip :)

I don't believe in any advertisement, especially for Open Source products. I have seen many "adversiements" of different libraries of Harbour and xHarbour in different forums and groups. But in Rathi's word I must say "East or West HMG is the best". By saying "HMG", I want to mean both Official and Extended versions :)

But, I must say one thing - HMG Ext doesn't have any forum like our HMGForum :D It's a family of like minded people :D

Here, I expressed what I feel. Please correct me if I am wrong. :)

With best regards.

Sudip
With best regards,
Sudip
User avatar
Roberto Lopez
HMG Founder
Posts: 4023
Joined: Wed Jul 30, 2008 6:43 pm

Re: SOME CLARIFICATIONS...

Post by Roberto Lopez »

sudip wrote: Here, I expressed what I feel. Please correct me if I am wrong. :)
Anyone is free to express his ideas here.

Grigory has largely/freely exposed his ideas here, like I'm doing now.
Regards/Saludos,

Roberto


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

Re: SOME CLARIFICATIONS...

Post by Roberto Lopez »

sudip wrote:I must say "East or West HMG is the best". By saying "HMG", I want to mean both Official and Extended versions :)
I'm not agree ;)
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
sudip
Posts: 1456
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Re: SOME CLARIFICATIONS...

Post by sudip »

Roberto Lopez wrote:
sudip wrote: Here, I expressed what I feel. Please correct me if I am wrong. :)
Anyone is free to express his ideas here.

Grigory has largely/freely exposed his ideas here, like I'm doing now.
Thank you both :)
I am learning many things from your views :D
Please discuss more about your views :D :D

With best regards.

Sudip
With best regards,
Sudip
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: SOME CLARIFICATIONS...

Post by esgici »

Roberto Lopez wrote:Hi All,
...
To be continued...
Hi Maestro

In my humble opinion, please don't continue !

Because first, you aren't a warrior, you are a peace-man.

Second, any serious HMG user can see REAL differences (or can examine); for others, understanding is very difficult. For who are choose darkness, any clarifications can't be useful.

Nonetheless it's your decision.

With my best regards

--

Esgici
Viva INTERNATIONAL HMG :D
Post Reply