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 »

rathinagiri wrote:Thanks a LOT for your update. It is great.

First I want to unite Browse, Grid and VirtualGrid.
There are still some bugs, don't do a new release on today svn !
User avatar
Rathinagiri
Posts: 5481
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Welcome to the Project Developers' Table

Post by Rathinagiri »

Ok. I won't.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
Rathinagiri
Posts: 5481
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Welcome to the Project Developers' Table

Post by Rathinagiri »

I want to process the 'enter' or 'return' key to act as a tab key for "set navigation extended".

For this, I took "TextBox" as sample and added a 'connect' like this around in /source/textbox.prg at line number 568.

Code: Select all

   ::oQTObject:connect( QEvent_KeyPress , {|e| ::DoControlKeyBoardEvents( e )} )
I have added in control.prg as under.

Code: Select all

* control.prg
METHOD DoControlKeyBoardEvents( e ) Class CONTROL
   LOCAL oKeyEvent := QKeyEventFromPointer( e )
   LOCAL nKey := oKeyEvent:key()
   LOCAL nModifiers := oKeyEvent:modifiers()
   LOCAL oNewKeyEvent
   IF (nKey == Qt_Key_Return .and. nModifiers == Qt_NoModifier ) .or.( nKey == Qt_Key_Enter .and. nModifiers == Qt_KeypadModifier )
      oNewKeyEvent := QKeyEvent( QEvent_KeyPress, Qt_Key_Tab, Qt_NoModifier, 'Tab', 0, 1 )
      ::s_qApp:sendEvent( ::oQTObject, oNewKeyEvent )
      oNewKeyEvent := QKeyEvent( QEvent_KeyRelease, Qt_Key_Tab, Qt_NoModifier, 'Tab', 0, 1 )
      ::s_qApp:sendEvent( ::oQTObject, oNewKeyEvent )
      RETURN .F.
   ENDIF
   RETURN .F.   
I could not get it to work. It gives runtime error at sendEvent().
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
mrduck
Posts: 497
Joined: Fri Sep 10, 2010 5:22 pm

Re: Welcome to the Project Developers' Table

Post by mrduck »

There were problems with sendEvents code and they were solved last week, after rev 16420. You need to wait.
User avatar
Rathinagiri
Posts: 5481
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Welcome to the Project Developers' Table

Post by Rathinagiri »

Thanks for the info.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
Rathinagiri
Posts: 5481
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Welcome to the Project Developers' Table

Post by Rathinagiri »

Francesco,

Had you updated HMG 4.0 source in line with latest Nightly build?

Or, Shall I start doing?
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
mrduck
Posts: 497
Joined: Fri Sep 10, 2010 5:22 pm

Re: Welcome to the Project Developers' Table

Post by mrduck »

rathinagiri wrote:Francesco,

Had you updated HMG 4.0 source in line with latest Nightly build?

Or, Shall I start doing?
I'm 24/24 on hbQt now. There is a problem with the new code and we are investigating. So please don't update the hmg-4 sources in svn yet otherwise no-one will be able to compile
User avatar
Rathinagiri
Posts: 5481
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Welcome to the Project Developers' Table

Post by Rathinagiri »

Ok Francesco,

I will wait for your signal.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
Carlos Britos
Posts: 245
Joined: Sat Aug 02, 2008 5:03 pm

Re: Welcome to the Project Developers' Table

Post by Carlos Britos »

mrduck wrote:So please don't update the hmg-4 sources in svn yet otherwise no-one will be able to compile
Hi
I've made Dial class, here is the code to upload if it is accepted.
Attachments
dial.zip
(2.81 KiB) Downloaded 167 times
Regards/Saludos, Carlos (bcd12a)
User avatar
Rathinagiri
Posts: 5481
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Welcome to the Project Developers' Table

Post by Rathinagiri »

Code: Select all

2011-04-01 20:00 UTC+0530 Rathinagiri (<srgiri@dataone.in>)
  * source/browse.prg
  * source/datepicker.prg
  * source/monthcalendar.prg
  * source/grid.prg
  * source/listbox.prg
  * source/printer.prg
  * source/windows.prg
  * source/virtualgrid.prg
    * Changes according to the latest version of HBQT. Thanks for the contribution by Francesco.
Please don't commit until a new version along with the latest HBQT is released. I will do it today or tomorrow.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
Post Reply