HMG OBJECTS 2010.05.30

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

Moderator: Rathinagiri

User avatar
Roberto Lopez
HMG Founder
Posts: 3980
Joined: Wed Jul 30, 2008 6:43 pm
Has thanked: 27 times
Been thanked: 168 times

HMG OBJECTS 2010.05.30

Post by Roberto Lopez » Mon May 31, 2010 1:55 am

Hi All,

I've redesigned MainMenu and ToolBar classes.

Now, ToolButtons, MenuPopups and MenuItems has its own classes.
Attachments
hmg.objects.2010.05.30.rar
(90.85 KiB) Downloaded 231 times
Regards/Saludos,

Roberto


(Veritas Filia Temporis)

User avatar
luisvasquezcl
Posts: 1140
Joined: Thu Jul 31, 2008 3:23 am
Location: Chile
Has thanked: 14 times
Been thanked: 14 times
Contact:

Post by luisvasquezcl » Mon May 31, 2010 1:58 am

Thanks Roberto,
Best regards,
Luis Vasquez

User avatar
Vanguarda
Posts: 543
Joined: Wed Feb 11, 2009 10:56 am
Location: Americana - SP
Been thanked: 1 time
Contact:

Post by Vanguarda » Mon May 31, 2010 2:47 am

hi friends,

Great work Roberto. Thank very much.

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


http://hmglights.wordpress.com/

joposadas

Post by joposadas » Mon May 31, 2010 2:58 am

Roberto,

Con estos cambios que estás haciendo (cambiando a OOP) tengo algunas preguntas y ojala pudieras aclararmelas, ya que actualmente tengo la última versión (3.0.33).
1- Con todos los cambios que tienes pensado hacer ¿se creará un paquete instalable (como las versiones anteriores) y que contenga (este nuevo paquete) todo lo hecho para OOP?
2- Los que no sabes mucho de OOP, ¿cómo nos afectará estos cambios?
3- En caso de que se haga un paquete instalable, ¿éste contendrá ejemplo del uso de OOP?
4- ¿Podremos usar OOP y la programación tradicional, a la que estamos acostrumbrados hasta la version 3.0.33 y que ambas comvivan?

De antemano muchas gracias por todo lo que has hecho y recibe un abrazo fuerte desde Guadalajara, México (la tierra del Mariachi y del Tequila)

User avatar
esgici
Posts: 4513
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 389 times
Been thanked: 111 times
Contact:

Post by esgici » Mon May 31, 2010 11:07 am

Thanks a lot Roberto :)

Best regards

--

Esgici
Viva INTERNATIONAL HMG :D

User avatar
gfilatov
Posts: 658
Joined: Fri Aug 01, 2008 5:42 am
Location: Ukraine
Has thanked: 24 times
Been thanked: 227 times
Contact:

Post by gfilatov » Mon May 31, 2010 12:03 pm

Roberto Lopez wrote:Hi All,

I've redesigned MainMenu and ToolBar classes.

Now, ToolButtons, MenuPopups and MenuItems has its own classes.
Thanks a lot, Roberto!

There are small typos in the source:

- grid.prg
It should be
METHOD RowSource ( cValue ) CLASS GRID
instead of
METHOD RowSource ( lValue ) CLASS GRID
- control.prg
1) in the method Width (nValue) should be
RETURN ::nWidth
instead of
RETURN nWidth
2) in the method OnEnter (bValue) should be
::bOnEnter := bValue
instead of
::bOnEnter := bOnEnter
Hope that useful for fixing 8-)
Kind Regards,
Grigory Filatov

"Everything should be made as simple as possible, but no simpler." Albert Einstein

User avatar
Roberto Lopez
HMG Founder
Posts: 3980
Joined: Wed Jul 30, 2008 6:43 pm
Has thanked: 27 times
Been thanked: 168 times

Post by Roberto Lopez » Mon May 31, 2010 1:34 pm

joposadas wrote:Roberto,

Con estos cambios que estás haciendo (cambiando a OOP) tengo algunas preguntas y ojala pudieras aclararmelas, ya que actualmente tengo la última versión (3.0.33).
1- Con todos los cambios que tienes pensado hacer ¿se creará un paquete instalable (como las versiones anteriores) y que contenga (este nuevo paquete) todo lo hecho para OOP?
2- Los que no sabes mucho de OOP, ¿cómo nos afectará estos cambios?
3- En caso de que se haga un paquete instalable, ¿éste contendrá ejemplo del uso de OOP?
4- ¿Podremos usar OOP y la programación tradicional, a la que estamos acostrumbrados hasta la version 3.0.33 y que ambas comvivan?

De antemano muchas gracias por todo lo que has hecho y recibe un abrazo fuerte desde Guadalajara, México (la tierra del Mariachi y del Tequila)
1. HMG OBJECTS will be a separate project, so, it will be simply another choice for people preferring Clipper original OOP style.

2. You can continue using standard HMG.

3. I'm already creating three samples for each new class I've added (Plain OOP, xBase standard and Extended syntax).

4. My idea about that, is that 'mixing' semi-OOP and standard OOP in the same application could drive to the programmer to write messy code. I'll not encourage such practice, but, eventually (as I've already said) a HMG standard compatibility layer could be easily done to work on top of HMG OBJECTS.

Remember that HMG OBJECTS is an alternative to standard HMG and the two projects will coexist.

As I've already commented too, the idea is to connect HMG OBJECTS with different GUI frameworks, giving us a portable and easily expandable GUI framework, compatible with HMG.

The basic idea is that once that the project be finished, I'll pass the ball to you (all of you :) ).

If you catch it, HMG will have a lot of new lives and personalities beyond me, but such personalities could be easily/safely 'plugged-in' in a solid and stable standard (HMG OBJECTS).

In Spanish we have a 'saying': 'Soñar no cuesta nada' ('it costs nothing to dream')...

:)
Regards/Saludos,

Roberto


(Veritas Filia Temporis)

User avatar
Roberto Lopez
HMG Founder
Posts: 3980
Joined: Wed Jul 30, 2008 6:43 pm
Has thanked: 27 times
Been thanked: 168 times

Post by Roberto Lopez » Mon May 31, 2010 1:36 pm

gfilatov wrote: There are small typos in the source:
<...>
Thanks!

I'll fix it.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)

User avatar
Roberto Lopez
HMG Founder
Posts: 3980
Joined: Wed Jul 30, 2008 6:43 pm
Has thanked: 27 times
Been thanked: 168 times

Post by Roberto Lopez » Mon May 31, 2010 2:06 pm

Roberto Lopez wrote: De antemano muchas gracias por todo lo que has hecho y recibe un abrazo fuerte desde Guadalajara, México (la tierra del Mariachi y del Tequila)
Saludos desde Argentina... podría decir la tierra del tango y del buen vino... pero casi todo el mundo la conoce como la tierra de Maradona :)
Regards/Saludos,

Roberto


(Veritas Filia Temporis)

User avatar
Steed
Posts: 385
Joined: Sat Dec 12, 2009 3:40 pm
Has thanked: 1 time
Been thanked: 2 times

Post by Steed » Mon May 31, 2010 3:55 pm

Hi, Roberto,

Thanks for the new version, there are a problem with the samples:
1-) main.menu: demo_1, demo_2, demo_3 : when you set checked value = true and enabled= false and then you do click on the buttons check and enable you obtain wrong values, you obtain checked= false and enable = true
2-) window.child: demo_1: when you do click in the button you have these error "Parent can be specified only for Panel windows. Program Terminated"
3-) window.standard: demo_1: when you do click in the button you have these error "Parent can be specified only for Panel windows. Program Terminated".
demo_2: when you do click in the button you have these error "Error BASE/1003 Variable does not exist OMAIN"

Regards,

Ed
(Since the land of coffee, Shakira , Juanes and sadly noworldcup and other things)
Last edited by Steed on Tue Jun 01, 2010 10:01 pm, edited 1 time in total.

Post Reply