hmg-4 Changelog

Moderator: Rathinagiri

Post Reply
User avatar
l3whmg
Posts: 694
Joined: Mon Feb 23, 2009 8:46 pm
Location: Italy
Contact:

Re: hmg-4 Changelog

Post by l3whmg »

2011-09-16 23:40 UTC+0100 Luigi Ferraris ( <luigi at l3w.it> )
* samples/everything/demo_1.prg
* removed some local var, fixed some code, now run

* hmg.ch
* removed some <oObj :=>

Cheers
Luigi from Italy
www.L3W.it
User avatar
l3whmg
Posts: 694
Joined: Mon Feb 23, 2009 8:46 pm
Location: Italy
Contact:

Re: hmg-4 Changelog

Post by l3whmg »

Hi friends,
some fixing.

Code: Select all

2011-09-18 17:10 UTC+0100 Luigi Ferraris ( <luigi at l3w.it> )
   * source/basic.prg
	  + added a reference to the Window object for HMG3 compatibility when
	    HMG3 compatibility is required

   * source/control.prg
	  * chaged to Qt isEnabled() and setDisabled() method to have compatibility
	    with HMG3 readonly functions

   * source/hmgparent.prg
	  * added SETGET option to Parent() method fur future use

   * source/misc.prg
	  * added HMG3() function to setup HMG3 compatibility required

   ! source/virtualwindow.prg
     ! reintroduced code to force event loop end... Need more study

   ! source/window.prg
     ! fixed problem when window type is not defined

   ! buildapp.bat
     ! usage of -es2 option
Luigi from Italy
www.L3W.it
User avatar
concentra
Posts: 256
Joined: Fri Nov 26, 2010 11:31 am
Location: Piracicaba - Brasil

Re: hmg-4 Changelog

Post by concentra »

Hi !
Something broke the code...
- agenda
- animatebox
- everything
- etc.
Are showing "message not found" errors.
[[]] Mauricio Ventura Faria
mrduck
Posts: 497
Joined: Fri Sep 10, 2010 5:22 pm

Re: hmg-4 Changelog

Post by mrduck »

concentra wrote:Hi !
Something broke the code...
- agenda
- animatebox
- everything
- etc.
Are showing "message not found" errors.
Just tried, no error... can you please be more detailed ?
mrduck
Posts: 497
Joined: Fri Sep 10, 2010 5:22 pm

Re: hmg-4 Changelog

Post by mrduck »

Code: Select all

2011-09-19 22:10 UTC+0100 Francesco Perillo ( fperillo at gmail.com )
   * source/virtualwindow.prg
	 * temporarily removed PROTECTED to aKeyboardEvents, waiting to rewrite
	   some code
   * source/virtualgrid.prg
	 * change order of istruction to create cell editor in order to avoid
	   the widget flashing on screen
   * source/tab.prg
	 * onChange events are now invoked only if widget has been fully
  	   activated. It is a first step.
   * source/misc.prg
	 * better implementation of get/setProperty with a check on number
	   of parameters. Now the program stops if an unsupported number
	   of parameters is used.
   * source/label.prg
	 * remove setting setAutoFillBackground to all labels, this created
	   problems for labels on tab pages
   * source/button.prg
	 * if picture file name has no "." and doesn't start with ":" then
	   we add a ":" in front of it, probably it is from a Qt resource
	   file in a hmg3 ported source code
   * source/bitmap.prg
	 * if picture file name is not valid, then try to add ":" in front.
	   probably the name is from .rc hmg3 resource file ported to hmg4
	 * added method Create() to load picture only when we already have
	   set all informations about dimensions of the label containing
	   the picture
   * include/i_keybd.ch
     * force define of keycodes
   * include/hmg3.ch
     * reverted some optimizations - other should be reverted
   * include/hmg.ch
     * force include of i_keybd.ch for ON KEY commands
	 * added a couple of missing one-liner
	 * typos
mrduck
Posts: 497
Joined: Fri Sep 10, 2010 5:22 pm

Re: hmg-4 Changelog

Post by mrduck »

Code: Select all

2011-09-19 23:23 UTC+0100 Francesco Perillo ( fperillo at gmail.com )
   * source/basic.prg
     * modified methods row(), col(), width() and height() to
       always return real values read from objects and not from
       data member
   * include/hmg.ch  (missing from previous commi)
     * force include of i_keybd.ch for ON KEY commands
     * added a couple of missing one-liner
     * typos
Rossine
Posts: 87
Joined: Thu Jun 30, 2011 10:04 pm

Re: hmg-4 Changelog

Post by Rossine »

Hello Francesco,

I see this error in last version when build "libhmg.a"

Code: Select all

include\i_keybd.ch(276) Warning W0002  Redefinition or duplicate definition of #define Qt_Key_BassBoost
include\i_keybd.ch(277) Warning W0002  Redefinition or duplicate definition of #define Qt_Key_BassUp
include\i_keybd.ch(278) Warning W0002  Redefinition or duplicate definition of #define Qt_Key_BassDown
include\i_keybd.ch(279) Warning W0002  Redefinition or duplicate definition of #define Qt_Key_TrebleUp
include\i_keybd.ch(280) Warning W0002  Redefinition or duplicate definition of #define Qt_Key_TrebleDown
include\i_keybd.ch(281) Warning W0002  Redefinition or duplicate definition of #define Qt_Key_MediaPlay
include\i_keybd.ch(282) Warning W0002  Redefinition or duplicate definition of #define Qt_Key_MediaStop
include\i_keybd.ch(283) Warning W0002  Redefinition or duplicate definition of #define Qt_Key_MediaPrevious
include\i_keybd.ch(284) Warning W0002  Redefinition or duplicate definition of #define Qt_Key_MediaNext
include\i_keybd.ch(285) Warning W0002  Redefinition or duplicate definition of #define Qt_Key_MediaRecord
include\i_keybd.ch(286) Warning W0002  Redefinition or duplicate definition of #define Qt_Key_HomePage
include\i_keybd.ch(287) Warning W0002  Redefinition or duplicate definition of #define Qt_Key_Favorites
include\i_keybd.ch(288) Warning W0002  Redefinition or duplicate definition of #define Qt_Key_Search
...
Many thanks to all developers for the excellent work hmg.4 ;)

Best Regards,

Rossine.
mrduck
Posts: 497
Joined: Fri Sep 10, 2010 5:22 pm

Re: hmg-4 Changelog

Post by mrduck »

Ok.... in i_keybd.ch there was an
#ifdef __PULL_FROM_QT__

to define keyscan codes only when that define is set...

I switched to #ifndef but I will revert this evening. You can change this yourself in the meanwhile
Rossine wrote:Hello Francesco,

I see this error in last version when build "libhmg.a"

Code: Select all

include\i_keybd.ch(276) Warning W0002  Redefinition or duplicate definition of #define Qt_Key_BassBoost
include\i_keybd.ch(277) Warning W0002  Redefinition or duplicate definition of #define Qt_Key_BassUp
include\i_keybd.ch(278) Warning W0002  Redefinition or duplicate definition of #define Qt_Key_BassDown
include\i_keybd.ch(279) Warning W0002  Redefinition or duplicate definition of #define Qt_Key_TrebleUp
include\i_keybd.ch(280) Warning W0002  Redefinition or duplicate definition of #define Qt_Key_TrebleDown
include\i_keybd.ch(281) Warning W0002  Redefinition or duplicate definition of #define Qt_Key_MediaPlay
include\i_keybd.ch(282) Warning W0002  Redefinition or duplicate definition of #define Qt_Key_MediaStop
include\i_keybd.ch(283) Warning W0002  Redefinition or duplicate definition of #define Qt_Key_MediaPrevious
include\i_keybd.ch(284) Warning W0002  Redefinition or duplicate definition of #define Qt_Key_MediaNext
include\i_keybd.ch(285) Warning W0002  Redefinition or duplicate definition of #define Qt_Key_MediaRecord
include\i_keybd.ch(286) Warning W0002  Redefinition or duplicate definition of #define Qt_Key_HomePage
include\i_keybd.ch(287) Warning W0002  Redefinition or duplicate definition of #define Qt_Key_Favorites
include\i_keybd.ch(288) Warning W0002  Redefinition or duplicate definition of #define Qt_Key_Search
...
Many thanks to all developers for the excellent work hmg.4 ;)

Best Regards,

Rossine.
Rossine
Posts: 87
Joined: Thu Jun 30, 2011 10:04 pm

Re: hmg-4 Changelog

Post by Rossine »

Hi,

I changed this and work´s now :D

Code: Select all


//#ifndef __PULL_FROM_QT__
# Ifdef __PULL_FROM_QT__ 

Best Regads,

Rossine.
mrduck wrote:Ok.... in i_keybd.ch there was an
#ifdef __PULL_FROM_QT__

to define keyscan codes only when that define is set...

I switched to #ifndef but I will revert this evening. You can change this yourself in the meanwhile
Rossine wrote:Hello Francesco,

I see this error in last version when build "libhmg.a"

Code: Select all

include\i_keybd.ch(276) Warning W0002  Redefinition or duplicate definition of #define Qt_Key_BassBoost
include\i_keybd.ch(277) Warning W0002  Redefinition or duplicate definition of #define Qt_Key_BassUp
include\i_keybd.ch(278) Warning W0002  Redefinition or duplicate definition of #define Qt_Key_BassDown
include\i_keybd.ch(279) Warning W0002  Redefinition or duplicate definition of #define Qt_Key_TrebleUp
include\i_keybd.ch(280) Warning W0002  Redefinition or duplicate definition of #define Qt_Key_TrebleDown
include\i_keybd.ch(281) Warning W0002  Redefinition or duplicate definition of #define Qt_Key_MediaPlay
include\i_keybd.ch(282) Warning W0002  Redefinition or duplicate definition of #define Qt_Key_MediaStop
include\i_keybd.ch(283) Warning W0002  Redefinition or duplicate definition of #define Qt_Key_MediaPrevious
include\i_keybd.ch(284) Warning W0002  Redefinition or duplicate definition of #define Qt_Key_MediaNext
include\i_keybd.ch(285) Warning W0002  Redefinition or duplicate definition of #define Qt_Key_MediaRecord
include\i_keybd.ch(286) Warning W0002  Redefinition or duplicate definition of #define Qt_Key_HomePage
include\i_keybd.ch(287) Warning W0002  Redefinition or duplicate definition of #define Qt_Key_Favorites
include\i_keybd.ch(288) Warning W0002  Redefinition or duplicate definition of #define Qt_Key_Search
...
Many thanks to all developers for the excellent work hmg.4 ;)

Best Regards,

Rossine.
User avatar
concentra
Posts: 256
Joined: Fri Nov 26, 2010 11:31 am
Location: Piracicaba - Brasil

Re: hmg-4 Changelog

Post by concentra »

mrduck wrote:
concentra wrote:Hi !
Something broke the code...
- agenda
- animatebox
- everything
- etc.
Are showing "message not found" errors.
Just tried, no error... can you please be more detailed ?
Ok.

At first, the -es2 in buildapp.bat is preventing samples EXEs generation since the are a lot of warnings in the code.

After updating to the latest SVN and generating lib and samples, samples\agenda\agenda.exe shows an error at startup:

Code: Select all

Error BASE/1004 Message not found: WINDOW:GINDICE
Called from __ERRRT_SBASE(0)
Called from WINDOW:ERROR(0)
Called from (b)HBOBJECT(0)
Called from WINDOW:MSGNOTFOUND(0)
Called from WINDOW:GINDICE(0)
Called from Main(107)
And samples/animatebox/demo_3.exe:

Code: Select all

Error BASE/1004 Message not found: WINDOW:OANIMATEBOX
Called from __ERRRT_SBASE(0)
Called from WINDOW:ERROR(0)
Called from (b)HBOBJECT(0)
Called from WINDOW:MSGNOTFOUND(0)
Called from WINDOW:OANIMATEBOX(0)
Called from (b)Main(24)
Called from WINDOW:ACTIVATE
Called from Main(71)
The other errors are related.
And, for example, samples/agoodstart/demo_1.exe runs Ok.
[[]] Mauricio Ventura Faria
Post Reply