Page 101 of 106

Re: Welcome to the Project Developers' Table

Posted: Sat May 21, 2011 2:10 pm
by mrduck
mrduck wrote:

Code: Select all

// Paint event sub-classing FOR graph commands & Onpaint event
::oQTObject:connect( QEvent_Paint , {||Self:DoGraphCommands()} )
I confirm that deleting this line there is no more cpu load

Re: Welcome to the Project Developers' Table

Posted: Sat May 21, 2011 5:57 pm
by Carlos Britos

Code: Select all

2011-05-21 14:56 UTC-0300 Carlos Britos ( <bcd12a(a_t)yahoo.com.ar> )
  * include/hmg.ch
    ! Removed unused parameter in New(), like New([ <oParent> ]) and New(<"oObj">).
    ! Minor formatting.

Re: Welcome to the Project Developers' Table

Posted: Sat May 21, 2011 10:38 pm
by Carlos Britos

Code: Select all

2011-05-21 19:40 UTC-0300 Carlos Britos ( <bcd12a(a_t)yahoo.com.ar> )
  * include/hmg.ch
    ! Changed the duplicate definition of TabStop to:
      #xcommand TABSTOP => :TabStop := .T.

  * doc/txt/en/hmgsvn.txt
  * doc/txt/en/win_define.txt
  * doc/txt/en/properties_t2u.txt
  * doc/txt/en/animatebox.txt
  * doc/txt/en/properties_v2v.txt
  * doc/txt/en/datepicker.txt
  * doc/txt/en/howtostart.txt
  * doc/txt/en/properties_a2b.txt
  * doc/txt/en/slider.txt
  * doc/txt/en/properties_c2c.txt
  * doc/txt/en/scrollbar.txt
  * doc/txt/en/progressbar.txt
  * doc/txt/en/properties_e2h.txt
  * doc/txt/en/properties_i2j.txt
  * doc/txt/en/hmgdoc.txt
  * doc/txt/en/func_misc.txt
  * doc/txt/en/properties_k2n.txt
  * doc/txt/en/dial.txt
  * doc/txt/en/commands_misc.txt
  * doc/txt/en/docbuilder.txt
  * doc/txt/en/properties_o2p.txt
  * doc/txt/en/getsetprops.txt
  * doc/txt/en/properties_q2s.txt
  * doc/txt/en/hmgclasses.txt
  * doc/txt/en/properties_w2z.txt
  * doc/txt/en/spinner.txt
  * doc/txt/en/properties_d2d.txt
  * doc/txt/en/1st2read.txt
    ! Updated texts.

Re: Welcome to the Project Developers' Table

Posted: Sun May 22, 2011 2:35 am
by Rathinagiri
I think it is not necessary since we are painting on a QPixmap.... Qt takes care of all repainting needs (when the window is covered by another window and the likes)
That is great! Thanks a lot Francesco.

Re: Welcome to the Project Developers' Table

Posted: Sun May 22, 2011 6:38 pm
by Carlos Britos
Hi,
In method New in all controls exists:
::oParent:AddData( ::cName , Self )

and in METHOD Name( cValue ) CLASS BASIC exists too.
Should we remove it ? I'm not sure about the scope of this. Someone can check it.

Re: Welcome to the Project Developers' Table

Posted: Mon May 23, 2011 10:09 am
by concentra
mrduck wrote:
concentra wrote:I downloaded today´s Nightly Harbour and it comes with QT 4.6.3.
This version do not work Ok ! Specially with images. Seems that only PNG images are Ok.
The problems with images are related to plugins. If plugin is present you can open that kind of images... plugin directory is listed in qt.conf file (or can be specified in the program code)
And plugins are version dependent IE plugins v 4.7 do not work with core dlls v 4.6.

Re: Welcome to the Project Developers' Table

Posted: Mon May 23, 2011 10:20 am
by concentra
Carlos Britos wrote:Hi,
In method New in all controls exists:
::oParent:AddData( ::cName , Self )

and in METHOD Name( cValue ) CLASS BASIC exists too.
Should we remove it ? I'm not sure about the scope of this. Someone can check it.
For what I could understand, this is used to access the controls in syntax like oWindow.oLabel.Caption .
The call in the NEW() method adds a generic sequential name assigned to every control.

Code: Select all

::cName := '_HMG_OBJECT_' + AllTrim( Str( Int( ::nObjectCounter ) ) )
And when the Name method is used, another name is assigned to the same object.
Both names can be used to access the object properties, but I do not know if this was intentional or not.

Re: Welcome to the Project Developers' Table

Posted: Mon May 23, 2011 12:20 pm
by concentra

Code: Select all

2011-05-23 09:16 UTC-0300 Mauricio Ventura Faria (<conc001 a+t gmail com>)
  + samples/console/demo_1.prg
    + Added demo to show how to mix console and GUI in the same EXE.
      In fact, the console part, WVG, is not a real console, is a "pseudo-console" emulated in a graphics environment.
      But this work just as a pure console does.
  ! hmg.hbc
    ! Include gtwvg.lib in the build process.

Re: Welcome to the Project Developers' Table

Posted: Mon May 23, 2011 12:47 pm
by concentra
mrduck wrote:
mrduck wrote:

Code: Select all

// Paint event sub-classing FOR graph commands & Onpaint event
::oQTObject:connect( QEvent_Paint , {||Self:DoGraphCommands()} )
I confirm that deleting this line there is no more cpu load
Hi Mr. Duck.
This seems to be the way to go.
And we also need to remove the ::DoGraphCommands() from the ::bOnPaint() method.
And ::DoGraphCommands() must execute even if the window is not activated yet.
Committed.

Code: Select all

2011-05-23 09:41 UTC-0300 Mauricio Ventura Faria (<conc001 a+t gmail com>)
  ! source/basic.prg
  ! source/control.prg
  ! source/window.prg
    ! Moved common property :lCreated to basic.
  ! source/window.prg
    ! Fixed graph commands hogging the CPU.

Re: Welcome to the Project Developers' Table

Posted: Mon May 23, 2011 4:33 pm
by Rathinagiri
That's cool! Thanks man.