Page 96 of 106
Re: Welcome to the Project Developers' Table
Posted: Wed Mar 09, 2011 4:06 pm
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 !
Re: Welcome to the Project Developers' Table
Posted: Wed Mar 09, 2011 4:16 pm
by Rathinagiri
Ok. I won't.
Re: Welcome to the Project Developers' Table
Posted: Wed Mar 09, 2011 4:20 pm
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().
Re: Welcome to the Project Developers' Table
Posted: Wed Mar 09, 2011 4:32 pm
by mrduck
There were problems with sendEvents code and they were solved last week, after rev 16420. You need to wait.
Re: Welcome to the Project Developers' Table
Posted: Wed Mar 09, 2011 4:37 pm
by Rathinagiri
Thanks for the info.
Re: Welcome to the Project Developers' Table
Posted: Thu Mar 10, 2011 7:09 am
by Rathinagiri
Francesco,
Had you updated HMG 4.0 source in line with latest Nightly build?
Or, Shall I start doing?
Re: Welcome to the Project Developers' Table
Posted: Thu Mar 10, 2011 9:19 am
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
Re: Welcome to the Project Developers' Table
Posted: Thu Mar 10, 2011 10:41 am
by Rathinagiri
Ok Francesco,
I will wait for your signal.
Re: Welcome to the Project Developers' Table
Posted: Mon Mar 14, 2011 11:25 pm
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.
Re: Welcome to the Project Developers' Table
Posted: Fri Apr 01, 2011 2:40 pm
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.