Editando una línea completa con TxBrowse

Editando una línea completa con TxBrowse

Postby AngelSalom » Tue Aug 21, 2007 9:14 am

Buenas... sigo con mi migración a TxBrowse. Estoy intentando hacer una edición de toda una línea de datos (todas las columnas) y para ello obtengo el recuadro de la línea que quiero editar del browse mediante el siguiente código :

Code: Select all  Expand view
  nTop    := ( ( oLbx:nRowSel - 1 ) * oLbx:nRowHeight ) + oLbx:HeaderHeight()
  nBottom := nTop+oLbx:nRowHeight
  nLeft   := 0
  nRight  := oLbx:BrwWidth()


Pero cuando genero el diálogo, mediante :

Code: Select all  Expand view
  DEFINE DIALOG oDlgDoc FROM nTop,nLeft TO nBottom, nRight;
         STYLE nOR ( WS_VISIBLE, WS_POPUP ) COLOR CLR_WHITE, CLR_RED PIXEL OF oDlg


Este se muestra con los valores nTop y nLeft haciendo referencia a la ventana principal, no al diálogo conteneder del browse con lo que se me fastidia la presentación.

Ver imagen :

Image


Gracias.
Angel Salom
Visionwin Software - https://www.visionwin.com
------------------------------------------------------------
fwh 19.05 - harbour 3.2 - bcc 7.4
User avatar
AngelSalom
 
Posts: 708
Joined: Fri Oct 07, 2005 7:38 am
Location: Benicarló (Castellón ) - España

Parece resuelto

Postby AngelSalom » Tue Aug 21, 2007 9:27 am

Bien, creo que lo resolví añadiendo el siguiente código :

Code: Select all  Expand view
aRct :=GetWndRect (oLbx:hWnd)
nTop:=nTop+aRct[1]
nLeft:=nLeft+aRct[2]


Un saludo.
Angel Salom
Visionwin Software - https://www.visionwin.com
------------------------------------------------------------
fwh 19.05 - harbour 3.2 - bcc 7.4
User avatar
AngelSalom
 
Posts: 708
Joined: Fri Oct 07, 2005 7:38 am
Location: Benicarló (Castellón ) - España


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 85 guests