Ayuda con LOCK en BROWSE usando INPUTITEMS

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

User avatar
fchirico
Posts: 324
Joined: Sat Aug 23, 2008 11:27 pm
Location: Argentina

Re: Ayuda con LOCK en BROWSE usando INPUTITEMS

Post by fchirico »

Gracias Fernando.

Abriendo con F4 y cerrando con doble Enter he logrado reprodicir el problema.

Gracias por reportarlo.
Roberto, gracias a vos por ayudarnos a todos nosotros.

Saludos, Fernando Chirico.
Saludos, Fernando Chirico.

User avatar
Roberto Lopez
HMG Founder
Posts: 3987
Joined: Wed Jul 30, 2008 6:43 pm
Has thanked: 27 times
Been thanked: 173 times

Post by Roberto Lopez »

gfilatov wrote:I suggest to add a handling ON DROPDOWN and ON CLOSEUP events in the management of the ComboBox for Logical value too.
I've published a fixed HMG version (2.6.1).

I've followed a different path (a little simpler):

Code: Select all

///////////////////////////////////////////////////////////////////////////////
Procedure _InPlaceEditOk ( i , Fieldname , r , ControlType , aValid , CellColIndex , sFieldName , AreaName , aValidMessages , lock , aInputItems )
///////////////////////////////////////////////////////////////////////////////
Local b , Result , mVar , TmpName 

	If ControlType == 'X' .Or. ControlType == 'L'

		If GetDroppedState ( GetControlHandle ('Control_1' , '_InPlaceEdit' ) ) == 1
			SendMessage ( GetControlHandle ('Control_1' , '_InPlaceEdit' ) , CB_SHOWDROPDOWN , 0 , 0 )
			InsertReturn()
			Return
		EndIf

	EndIf

If the combo is open when the user pressed [Enter], I close the combo sending CB_SHOWDROPDOWN message (using 0 as parameter) and insert a [Return] via keybd_event function (called by InsertReturn).

Regards,

Roberto.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)

User avatar
fchirico
Posts: 324
Joined: Sat Aug 23, 2008 11:27 pm
Location: Argentina

Post by fchirico »

Roberto wrote:
I've published a fixed HMG version (2.6.1).
Funcionó perfecto, incluso lo probé con otro browse más complicado que el del ejemplo y funcionó perfecto !!!

Sinceramente gracias !!!

Saludos, Fernando Chirico.
Saludos, Fernando Chirico.

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

Post by Rathinagiri »

Thanks a lot. :)
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

Post Reply