xBrowse Image

xBrowse Image

Postby fraxzi » Mon Mar 05, 2012 7:00 am

Dear All

I have this xBrowse with 2 datalines.. two columns are setcheck()
it shows like this:
Image

How can I put the image to upper right instead of what it shown..
like this:
Image
Kind Regards,
Frances

Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
User avatar
fraxzi
 
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines

Re: xBrowse Image

Postby ukoenig » Mon Mar 05, 2012 11:41 am

Fraxzi,

A Image-solution without changing xBrowse-class ( not for Checkbox ),
moving the Picture inside the Frame to the Top.
The xBrowse-row is adjusted to the Image,
or the Image is centered to the Row with a defined Row-height.

Image

copy with right-mouseclick on the Images ( 24 x 24 alpablended )

Center.bmp
Image
Top.bmp
Image

Best Regards
Uwe :lol:
Last edited by ukoenig on Fri Mar 09, 2012 2:06 pm, edited 2 times in total.
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: xBrowse Image

Postby nageswaragunupudi » Thu Mar 08, 2012 8:04 pm

oCol:nDataBmpAlign := AL_RIGHT.
Does this not do wha you want?
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10482
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: xBrowse Image

Postby ukoenig » Thu Mar 08, 2012 11:07 pm

Mr. Rao,

is that what he wants, moving the Bmp to Top ?

Image

Image

( maybe possible, to include a Option Row-centered or Top ) ?
I changed in xBrowse.prg the Line :

Bitmap Row-centered :
nBmpRow := nRow + ( nHeight - aBitmap[ BITMAP_HEIGHT ] ) / 2 + 2

in :
nBmpRow := nRow + 10

Best Regards
Uwe :lol:
Last edited by ukoenig on Fri Mar 09, 2012 12:15 am, edited 2 times in total.
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: xBrowse Image

Postby fraxzi » Fri Mar 09, 2012 12:09 am

nageswaragunupudi wrote:oCol:nDataBmpAlign := AL_RIGHT.
Does this not do wha you want?



Dear Mr. RAO,

Because the 2 dataline centers the bitmap on AL_RIGHT and the prompt (single line) to the first line not vertically centered.
Kind Regards,
Frances

Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
User avatar
fraxzi
 
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines

Re: xBrowse Image

Postby fraxzi » Fri Mar 09, 2012 12:11 am

Dear Uwe,

I tried.

Image

the image still vertically centered and prompt not align with the image..
Kind Regards,
Frances

Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
User avatar
fraxzi
 
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines

Re: xBrowse Image

Postby fraxzi » Fri Mar 09, 2012 1:07 am

Dear Uwe and Mr. RAO,

I did this to Method PaintData()

...
      nWidth  -= BMP_EXTRAWIDTH
      nBmpRow := nRow + IF( ::oBrw:nDataLines == 1, ( ( nHeight - aBitmap[ BITMAP_HEIGHT ] ) / 2 ), 0)
...

Results..
Image
Good!
Kind Regards,
Frances

Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
User avatar
fraxzi
 
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines


Return to FiveWin for Harbour/xHarbour

Who is online

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