Hello,
I saw an example to use BMP files in a xBrowse()
Is it also possible to use JPG files.
Thanks,
Willy
xBrowse - Bitmap - JPG
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Willy,
Try this:
Try this:
Code: Select all
METHOD AddJpgFile( cJpgFile ) CLASS TXBrwColumn
local hBmp := FILoadImg( cJpgFile )
AAdd( ::aBitmaps, { hBmp, nBmpWidth( hBmp ), nBmpHeight( hBmp ) } )
return .t.
At this momoent it is already possible to browse JPG files in a xBrowse()
But it only works when there is only 1 dataline. Is it possible with xBrowse to combine bitmaps and multiple datalines.
The JPG is not displayed in the middel of the column. When I give the column the exact width it is not displayed completely.
Thanks
Willy
But it only works when there is only 1 dataline. Is it possible with xBrowse to combine bitmaps and multiple datalines.
The JPG is not displayed in the middel of the column. When I give the column the exact width it is not displayed completely.
Thanks
Willy