Page 1 of 1

Centering Checkbox Bitmaps in txbrowse columns

Posted: Sun Mar 08, 2009 12:44 am
by PatrickWeisser
Hello Everyone,

I see that the nDataBmpAlign variable of the TXBrwColumn class allows for only left or right justification, but not centering. And yet the Testxbr3.prg sample shows a checkbox bitmap being centered in the, "Married" column (this dialog is reached by selecting Window, RDD, Selected Cols). I looked at the code for the RddBrwSelColsWin() function of the sample which supports the browse, and I saw where the checkbox bitmap was being set via the code:

Code: Select all

   if ! Empty( oCol := oBrw:oCol( "Married" ) )
      oCol:SetCheck( { "ON", "OFF" } )
      oCol:cSortOrder  := nil
      // oCol:lBmpStretch = .T.
   endif
 
But I don't see how the centering of the checkbox bitmap is being done. Can anyone tell me what variable is being set to center the checkbox bitmap?

Thanks!

-Patrick

Re: Centering Checkbox Bitmaps in txbrowse columns

Posted: Sun Mar 08, 2009 1:08 am
by Daniel Garcia-Gil
Hello patrick

what FWH version do you use?

Re: Centering Checkbox Bitmaps in txbrowse columns

Posted: Sun Mar 08, 2009 2:11 am
by PatrickWeisser
Hello Daniel,

I'm still on the October 2008 version. I have customized some of the TGet code for my needs so it always takes me time to re-apply my changes when I download a new FiveWin version. But I think it's time for me to upgrade again so I won't fall too far behind everyone else.

The October 2008 version does appear to have the ability to center a check box in a browse column in the TestXbr3.prg sample, so I'm probably just missing something simple in the TextXbr3.prg source code.

Thanks,

-Patrick

Re: Centering Checkbox Bitmaps in txbrowse columns

Posted: Sun Mar 08, 2009 2:21 am
by Daniel Garcia-Gil
Patrick...

do you use array ?
because the octuber version no work this feature....

it was added in december

http://forums.fivetechsupport.com/viewt ... 507#p72507
* Enhancement: Class TXBrowe, the checkbox image can be centered when an array is browsed.

pelase update your actual version or i can tell you how change the xbrowse class

Re: Centering Checkbox Bitmaps in txbrowse columns

Posted: Sun Mar 08, 2009 7:40 am
by PatrickWeisser
Dear Daniel,

Yes I'm browsing an array, so that's the problem exactly. I will update my FiveWin version. It's past time I did that anyway.

Thank you!

-Patrick