FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour GET establecer foco
Posts: 400
Joined: Fri May 11, 2007 08:20 PM
GET establecer foco
Posted: Fri Nov 12, 2010 01:26 AM
Gente quiero mover el cursor a un get especifico despues que presiono enter
en el valid le puse esta instruccion PostMessage(:hwnd, WM_SETFOCUS) no va al get que quiero sino al siguiente
control .

Aqui fragmento de mi codigo: Intento que del get 3 se vaya al get 6

DEFINE DIALOG oDlgVr RESOURCE "DLG_ITEM_VOU" TITLE "Item de Voucher"

REDEFINE GET oGet VAR cApCtaCte ID 101 OF oDlgVr PICTURE "@!"

REDEFINE GET oGet VAR cTipOri ID 102 OF oDlgVr UPDATE valid eval({|| PostMessage(oDlgVr:aControls[6]:hwnd, WM_SETFOCUS),.t.})

REDEFINE GET oGet VAR cSerOri ID 103 OF oDlgVr UPDATE

REDEFINE GET oGet VAR cNumOri ID 104 OF oDlgVr PICTURE &DOCPIC UPDATE

REDEFINE GET oGet VAR cMedpag ID 142 OF oDlgVr UPDATE PICTURE '@!'

REDEFINE GET oGet VAR cMonOri ID 105 OF oDlgVr PICTURE "@!" UPDATE

ACTIVATE DIALOG oDlgVr CENTERED


Intente con oDlgVr:aControls[6]:SetFocus() se sigue al sgte. control
me podrian ayudar, gracias


Uso. Fwh8.11, xharbour build 1.1.0 (Simplex) (Rev.6195), pellesC
fwh 17.12, harbour 3.2.0, pelles C, bcc7, Ms-Sql
Posts: 2170
Joined: Fri Jul 18, 2008 01:24 AM
Re: GET establecer foco
Posted: Fri Nov 12, 2010 02:06 AM

Hola, intenta con: oGet1:oJump := oGet4
Saludos.

Francisco J. Alegría P.

Chinandega, Nicaragua.



Fwxh-MySql-TMySql
Posts: 400
Joined: Fri May 11, 2007 08:20 PM
Re: GET establecer foco
Posted: Fri Nov 12, 2010 04:07 AM

Gracias francisco
funciono perfecto! :D

fwh 17.12, harbour 3.2.0, pelles C, bcc7, Ms-Sql
Posts: 408
Joined: Fri Jan 29, 2010 08:14 PM
Re: GET establecer foco
Posted: Fri Nov 12, 2010 05:53 AM

Hol artu:

Es mucho mas facil de lo que lo has hecho, para posicinar el foco en un objeto es:

Nombre del Objeto:SetFocus()

Un saludo
JLL

Libreria: FWH/FWH1109 + Harbour 5.8.2 + Borland C++ 5.8.2
Editor de Recursos: PellecC
ADA, OURXDBU
S.O: XP / Win 7 /Win10
Blog: http://javierlloris.blogspot.com.es/
e-mail: javierllorisprogramador@gmail.com

Continue the discussion