Welcome to the Project Developers' Table

Moderator: Rathinagiri

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

Re: Welcome to the Project Developers' Table

Post 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

Carlos Britos
Posts: 221
Joined: Sat Aug 02, 2008 5:03 pm
Has thanked: 6 times
Been thanked: 5 times

Post 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.
Regards/Saludos, Carlos (bcd12a)

Carlos Britos
Posts: 221
Joined: Sat Aug 02, 2008 5:03 pm
Has thanked: 6 times
Been thanked: 5 times

Post 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.
Regards/Saludos, Carlos (bcd12a)

User avatar
Rathinagiri
Posts: 5303
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 188 times
Been thanked: 203 times
Contact:

Post 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.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

Carlos Britos
Posts: 221
Joined: Sat Aug 02, 2008 5:03 pm
Has thanked: 6 times
Been thanked: 5 times

Post 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.
Regards/Saludos, Carlos (bcd12a)

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

Post 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.
[[]] Mauricio Ventura Faria

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

Post 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.
[[]] Mauricio Ventura Faria

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

Post 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.
[[]] Mauricio Ventura Faria

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

Post 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.
[[]] Mauricio Ventura Faria

User avatar
Rathinagiri
Posts: 5303
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 188 times
Been thanked: 203 times
Contact:

Post by Rathinagiri »

That's cool! Thanks man.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

Post Reply