Page 97 of 106

Re: Welcome to the Project Developers' Table

Posted: Sat May 14, 2011 4:35 pm
by Carlos Britos

Code: Select all

2011-05-14 13:30 UTC-0300 Carlos Britos ( <bcd12a(a_t)yahoo.com.ar> )
  * source\abstractslider.prg
  * source\dial.prg
  * source\progressbar.prg
  * source\slider.prg
    ! Moved Methods Orientation, Width and Height to a higher class.
      Dial control is a circle, the width and height should be the same ? I'm not sure.
      The progressbar, scrollbar and slider controls, width and height depends on
      orientation, but I believe, we have to let the user take care about height
      and width, and then we can have more generic methods Width, Height and Orientation.

  * source\basic.prg
    ! Assigned default values to nHeight And nWidth.
    ! Changed how is checked the value type in methods Height And Width.
      I think in Basic class we have to define default values and check
      the value type of params in almost all methods (properties), as far as is possible.
      In this way we avoid RTE with wrong value types of params. Since hbqt reject
      wrong value types.


Re: Welcome to the Project Developers' Table

Posted: Sat May 14, 2011 11:44 pm
by Carlos Britos

Code: Select all

2011-05-14 20:44 UTC-0300 Carlos Britos ( <bcd12a(a_t)yahoo.com.ar> )
  + samples\spinner\demo_4.prg

  * source\spinner.prg
    ! Removed methods Value, RangeMax, RangeMin, OnChange, Increment and Wrap
      now inherit from abstractslider class.

  * source\abstractslider.prg
    ! Methods RangeMax and RangeMin, resets the value only, if it's out of range.

Re: Welcome to the Project Developers' Table

Posted: Tue May 17, 2011 12:36 pm
by concentra

Code: Select all

2011-05-17 08:40 UTC-0300 Mauricio Ventura Faria (<conc001 a+t gmail com>)
  * include/hmg.ch
  * samples/browse/demo_4.prg
  * samples/contextmenu/demo_1.prg
  * samples/mainmenu/demo_1.prg
  * samples/mainmenu/demo_2.prg
  * samples/mainmenu/demo_3.prg
  * samples/notifymenu/demo_1.prg
  * samples/tab/demo_1.prg
  * samples/toolbar/demo_1.prg
  * samples/toolbar/demo_3.prg
  * samples/toolbar/demo_4.prg
  * samples/widget/demo_3a.prg
  * source/contextmenu.prg
  * source/control.prg
  * source/dropdownmenu.prg
  * source/mainmenu.prg
  * source/menuitem.prg
  * source/menupopup.prg
  * source/toolbar.prg
  * source/toolbutton.prg
  * source/window.prg
    * All menus and toolbars changed to inherit from Control not from Window.
    * oCurrentToolBar workaround not needed anymore.
    * aDefultPopup workaround not needed anymore.
    * nPopupIndex workaround not needed anymore.
    * oMainMenu workaround not needed anymore.
    * oContextMenu workaround not needed anymore.
    * oContextItems workaround not needed anymore.


Re: Welcome to the Project Developers' Table

Posted: Tue May 17, 2011 12:57 pm
by Rathinagiri
Fantastic work Mauricio Ventura Faria!

Now, after a vacation break, I start working on combining grid/virtual grid and browse into one control.

Re: Welcome to the Project Developers' Table

Posted: Tue May 17, 2011 1:50 pm
by concentra
Hi, Rathinagiri
rathinagiri wrote: Now, after a vacation break, I start working on combining grid/virtual grid and browse into one control.
I found some weird bugs in this classes while testing changes using the samples. I will revise that and post here.
[[]]

Re: Welcome to the Project Developers' Table

Posted: Tue May 17, 2011 2:14 pm
by concentra

Code: Select all

2011-05-17 11:11 UTC-0300 Mauricio Ventura Faria (<conc001 a+t gmail com>)
  * source/notifymenu.prg
  * source/window.prg
    * Notify menu in tray changed to inherit from Control not from Window.


Re: Welcome to the Project Developers' Table

Posted: Tue May 17, 2011 2:53 pm
by Rathinagiri
Ok. I will wait for that.

Re: Welcome to the Project Developers' Table

Posted: Tue May 17, 2011 4:22 pm
by concentra
Rathinagiri in samples\browse\demo_4 , I double-click in a cell and change some info, when I leave editing I got the error:

Code: Select all

Error HBQT/1000 Message not found :TEXT: QWIDGET:TEXT
Called from QWIDGET:TEXT(0)
Called from BROWSE:ONSAVE(697)
Called from (b)BROWSE_CREATE(498)
Called from QAPPLICATION:EXEC(0)
Called from WINDOW:ACTIVATE(1056)
Called from MAIN(63)

P.S. I eliminated almost all :lCreated control stuff from the classes, except from BROWSE, GRID and VIRTUALGRID because I found some difficulties not knowing all the code involved.
If you will revise this classes I can also remove the :lCreated stuff from that classes, but will need your help to revise and correct bugs.

Re: Welcome to the Project Developers' Table

Posted: Tue May 17, 2011 4:31 pm
by concentra
In samples\grid\demo_3, everything seems to work fine. But when I try to change data in the column number 7 ( month ) I got an error. And the error returns over and over again whenever I change position in the grid.

Code: Select all

Error BASE/1132 Bound error: array access
Called from GRID:CELL(439)
Called from GRID:CELLCHANGED(1610)
Called from (b)GRID_CREATE(1369)
Called from QAPPLICATION:EXEC(0)
Called from WINDOW:ACTIVATE(1056)
Called from MAIN(128)

Re: Welcome to the Project Developers' Table

Posted: Tue May 17, 2011 4:36 pm
by concentra
In samples\VirtualGrid, demo_2 and demo_4 are not virtualgrid related. They are grid ( not virtual ) !
Should I change them to virtual or eliminate them ?