GET establecer foco

GET establecer foco

Postby artu01 » Fri Nov 12, 2010 1: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
artu01
 
Posts: 397
Joined: Fri May 11, 2007 8:20 pm
Location: Lima

Re: GET establecer foco

Postby FranciscoA » Fri Nov 12, 2010 2:06 am

Hola, intenta con: oGet1:oJump := oGet4
Saludos.
Francisco J. Alegría P.
Chinandega, Nicaragua.

Fwxh-MySql-TMySql
User avatar
FranciscoA
 
Posts: 2112
Joined: Fri Jul 18, 2008 1:24 am
Location: Chinandega, Nicaragua, C.A.

Re: GET establecer foco

Postby artu01 » Fri Nov 12, 2010 4:07 am

Gracias francisco
funciono perfecto! :D
fwh 17.12, harbour 3.2.0, pelles C, bcc7, Ms-Sql
artu01
 
Posts: 397
Joined: Fri May 11, 2007 8:20 pm
Location: Lima

Re: GET establecer foco

Postby jll-fwh » Fri Nov 12, 2010 5: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
User avatar
jll-fwh
 
Posts: 408
Joined: Fri Jan 29, 2010 8:14 pm
Location: Meliana - Valencia


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 59 guests