Page 1 of 3

HMG OBJECTS 2010.05.30

Posted: Mon May 31, 2010 1:55 am
by Roberto Lopez
Hi All,

I've redesigned MainMenu and ToolBar classes.

Now, ToolButtons, MenuPopups and MenuItems has its own classes.

Re: HMG OBJECTS 2010.05.30

Posted: Mon May 31, 2010 1:58 am
by luisvasquezcl
Thanks Roberto,
Best regards,
Luis Vasquez

Re: HMG OBJECTS 2010.05.30

Posted: Mon May 31, 2010 2:47 am
by Vanguarda
hi friends,

Great work Roberto. Thank very much.

My best regards,

Re: HMG OBJECTS 2010.05.30

Posted: Mon May 31, 2010 2:58 am
by joposadas
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)

Re: HMG OBJECTS 2010.05.30

Posted: Mon May 31, 2010 11:07 am
by esgici
Thanks a lot Roberto :)

Best regards

--

Esgici

Re: HMG OBJECTS 2010.05.30

Posted: Mon May 31, 2010 12:03 pm
by gfilatov
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-)

Re: HMG OBJECTS 2010.05.30

Posted: Mon May 31, 2010 1:34 pm
by Roberto Lopez
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')...

:)

Re: HMG OBJECTS 2010.05.30

Posted: Mon May 31, 2010 1:36 pm
by Roberto Lopez
gfilatov wrote: There are small typos in the source:
<...>
Thanks!

I'll fix it.

Re: HMG OBJECTS 2010.05.30

Posted: Mon May 31, 2010 2:06 pm
by Roberto Lopez
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 :)

Re: HMG OBJECTS 2010.05.30

Posted: Mon May 31, 2010 3:55 pm
by Steed
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)