Hello,
I saw an example to use BMP files in a xBrowse()
Is it also possible to use JPG files.
Thanks,
Willy
Hello,
I saw an example to use BMP files in a xBrowse()
Is it also possible to use JPG files.
Thanks,
Willy
It's not possible, image for using in browses (any kind) should be always BMPs in files or resources.
Willy,
You have to use a TImage object that reads the JPG and convert it into a BMP automatically in memory.
Thanks,
Is there an example.
Greetings,
Willy.
Therefore I should have to change the txBrowse class.
However this is a complex situation I will give it a try.
Any tips how to start this ?
Thanks,
Willy
METHOD AddJpgFile( cJpgFile ) CLASS TXBrwColumn
local hBmp := FILoadImg( cJpgFile )
AAdd( ::aBitmaps, { hBmp, nBmpWidth( hBmp ), nBmpHeight( hBmp ) } )
return .t.Thanks Antonio,
I test this as soon as possible
Willy
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