hmg-4 Changelog

Moderator: Rathinagiri

Ricci
Posts: 255
Joined: Thu Nov 19, 2009 2:23 pm

Re: hmg-4 Changelog

Post by Ricci » Fri Dec 09, 2011 6:26 pm

Code: Select all

2011-12-09 19:5 UTC+0100 Ricci Zepmeusel ( ricci at conzoft.de )
   * source/dropdownmenu.prg
     ! method ParentButton() reactivated

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

Post by concentra » Mon Dec 12, 2011 5:57 pm

Code: Select all

2011-12-12 15:58 UTC-0300 Mauricio Ventura Faria (<conc001 a+t gmail com>)
   * include/hmg.ch
     + Added [ TOVAR <varname> ] => [ <varname> := ] compliant syntax to printer objects.
   * samples/print/demo_1.prg
   * samples/print/demo_2.prg
   * samples/print/demo_3.prg
   * samples/print/demo_4.prg
   * samples/print/demo_5.prg
   * samples/print/demo_6.prg
   * samples/print/demo_7.prg
   * samples/print/demo_8.prg
   * samples/print/demo_HMG.prg
   * samples/print/demo_OOP.prg
     ! Fixed compiling warning messages.
[[]] Mauricio Ventura Faria

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

Post by concentra » Tue Dec 13, 2011 3:29 pm

Code: Select all

2011-12-13 13:30 UTC-0300 Mauricio Ventura Faria (<conc001 a+t gmail com>)
   * samples/VirtualGrid/browse_demo_4.prg
     ! Fixed compiling warning messages.
[[]] Mauricio Ventura Faria

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

Post by l3whmg » Tue Dec 13, 2011 8:16 pm

Hi friends

Code: Select all

2011-12-13 21:10 UTC+0100 Luigi Ferraris ( <luigi at l3w.it> )
   ! include/i_keybd.ch
     ! all "ON KEY ...." commands in according with StoreKeyBoardEvent() method
     * restyle

   ! source/virtualwindow.prg
     ! fixed StoreKeyBoardEvent(). Added third parameter (action) to store
       action related to the KEY. Only one action can be stored for a key.
       If already exists the action will be overwrite.
     ! ::aKeyBoardEvents now it's PROTECTED
Cheers
Luigi from Italy
www.L3W.it

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

Post by l3whmg » Fri Dec 16, 2011 2:28 pm

Hi friends.
As announce in other thread, today I commit a revised version about TEXTBOX. Inside source and new related examples, you can find little explanation.

There are differences from current HMG3 usage; before post any questions, please, take a while and do many tests: thanks.

Code: Select all

2011-12-16 15:20 UTC+0100 Luigi Ferraris ( <luigi at l3w.it> )
   - samples/textbox/demo_1.prg
   - samples/textbox/demo_2.prg
   - samples/textbox/demo_3.prg
   - samples/textbox/demo_4.prg
   - samples/textbox/demo_5.prg
   + samples/textbox/demo_date_cmd.prg
   + samples/textbox/demo_date_oop.prg
   + samples/textbox/demo_numb_cmd.prg
   + samples/textbox/demo_numb_oop.prg
   + samples/textbox/demo_text_cmd.prg
   + samples/textbox/demo_text_oop.prg

   ! source/textbox.prg
     ! totally rewrited. see explanantion at the top of source.
       Preseved harvalid functionally.
Cheers
Luigi from Italy
www.L3W.it

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

Post by l3whmg » Fri Dec 16, 2011 2:56 pm

Hi to everyone.
Little starting bug :)

Code: Select all

2011-12-16 15:50 UTC+0100 Luigi Ferraris ( <luigi at l3w.it> )
   ! source/textbox.prg
     ! bug when not set :DataType and there isn't a valid :Value. 
       By default :DataType is TXT_CHARACTER and ::xValue is ""
Cheers
Luigi from Italy
www.L3W.it

Ricci
Posts: 255
Joined: Thu Nov 19, 2009 2:23 pm

Post by Ricci » Fri Dec 16, 2011 3:28 pm

l3whmg wrote:Hi to everyone.
Little starting bug :)

Code: Select all

2011-12-16 15:50 UTC+0100 Luigi Ferraris ( <luigi at l3w.it> )
   ! source/textbox.prg
     ! bug when not set :DataType and there isn't a valid :Value. 
       By default :DataType is TXT_CHARACTER and ::xValue is ""
Cheers
Not "little": GRID cannot be used because compiler says:
../../lib/libhmg.a(grid.o):grid.c:(.data+0xdb8): undefined reference to `HB_FUN_GETNUMFROMTEXT'
../../lib/libhmg.a(grid.o):grid.c:(.data+0xdc8): undefined reference to `HB_FUN_GETNUMFROMTEXTSP'

Side effect?

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

Post by l3whmg » Fri Dec 16, 2011 4:02 pm

Hi Ricci
yes it's "little" related with TEXTBOX :mrgreen: The problem is GRID: must be aligned/revised.
Many thanks to this notice. I will check.
Cheers
Luigi from Italy
www.L3W.it

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

Post by l3whmg » Fri Dec 16, 2011 4:38 pm

Hi Ricci.
I update GRID. The problem was: they were "public" functions and with new textbox unusefull. I have resumed them as method for GRID object.
I compiled samples/grid/demo_1.prg and work fine, but grid create crash when there is a mask (line 559 about TEXTBOX) but it's not related with TEXTBOX changes or, in other words, grid don't set correctly textbox object....I think this probem it's more complicated. I will continue.

Code: Select all

2011-12-16 17:30 UTC+0100 Luigi Ferraris ( <luigi at l3w.it> )
   ! source/grid.prg
     ! bug related with GetNumFromText(), GetNumMask() and GetNumFromTextSP().
       Now they are method of this class with these names:
       __HmgGetNumFromText(), __HmgGetNumMask() and __HmgGetNumFromTextSP() 
Luigi from Italy
www.L3W.it

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

Post by l3whmg » Fri Dec 16, 2011 5:30 pm

Hi friends.
Well I found the problem it's related with ::s_lGridCellFlag.
Take a look at lines 168 -> 173 about basic.prg. You will see that "//check name" it's execute only when ::s_lGridCellFlag is false; but within grid.prg, before creating internal textbox object, this value is set-up to .T.
And a valid name for the object it's never assigned: why?

As I write time ago, this var ::s_lGridCellFlag it's dangerous and (perhaps) unsefull because when an object must be create without a parent, the syntax is oTextBox := TEXTBOX():New( [name], 0 ).

AnyWay, I hope this can solve the problem. ASAP I will do a commit.

Cheers
Luigi from Italy
www.L3W.it

Post Reply