FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Pocket PC x2RowCol()
Posts: 298
Joined: Fri Oct 07, 2005 05:20 AM
x2RowCol()
Posted: Fri Sep 08, 2006 01:18 AM

Antonio :

He buscado el c贸digo fuente de esa funci贸n y no la encuentro en ning煤n subdirectorio ,lo que quiero saber es que tratamiento les da a la variables que se envian por referencia.

  x2RowCol(@nRow, @nCol, @nHeight, @nWidth, lPixel, Self, oWnd)

Mucho agradecer茅 tu explicaci贸n.

Vikthor
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
x2RowCol()
Posted: Fri Sep 08, 2006 07:25 AM

Vikthor,

That function is never called as it is inside an ifdef:

ifdef FWPLUS

It belonged to a third party lib.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 298
Joined: Fri Oct 07, 2005 05:20 AM
x2RowCol()
Posted: Fri Sep 08, 2006 01:29 PM
Antonio Linares wrote:Vikthor,

That function is never called as it is inside an ifdef:

#ifdef FWPLUS

It belonged to a third party lib.


jojojojo , I saw , I saw

Thanks Antonio
Vikthor
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
x2RowCol()
Posted: Fri Sep 08, 2006 04:51 PM

You are welcome :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 298
Joined: Fri Oct 07, 2005 05:20 AM
x2RowCol()
Posted: Fri Sep 08, 2006 09:47 PM
Antonio Linares wrote:You are welcome :-)


Antonio :

En FWH as铆 como para Pocket PC, la ubicaci贸n de los controles en una Ventana y en Dialogo no son iguales , nuestro software utiliza mucho la creaci贸n de Dialgos y Ventanas desde c贸digo fuente , ya hab铆a resuelto que los controles dentro de dialogos se ubicaran correctamente en la version FWH , y s贸lo me quedaba pendiente resolver la ubicaci贸n de los controles dentro de los dialgoos en la FWPPC.
隆隆 Ese detalle ya esta resuelto !!!

Pero me queda la duda de por que tienen ese comportamiento.
Vikthor
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
x2RowCol()
Posted: Fri Sep 08, 2006 11:11 PM

Vikthor,

Because windows measurements are in pixels, and dialogs measurements are in "dialog base units". Its a Windows API built-in behavior.

You may use GetDialogBaseUnits() to get the ratio between pixels and "base units". From the Windows API docs:

>>
The GetDialogBaseUnits function returns the dialog box base units used by Windows to create dialog boxes. Both Windows and applications use these units to convert the width and height of dialog boxes and controls from dialog units, as given in dialog box templates, to pixels, and vice versa.
>>

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion