Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #12882

Re: A short question:

From Franz Rachbauer <office@rachbauer.org>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: A short question:
Date 2020-03-02 12:17 +0100
Organization Aioe.org NNTP Server
Message-ID <r3iq0d$9ff$1@gioia.aioe.org> (permalink)
References <035266d8-49a2-491d-9951-013ab945d6e0@googlegroups.com>

Show all headers | View raw


I do this with JPG, read from file, convert to bmp and show in bBrowser.
Hope this helps.
Franz

// Define col IMAGE
oColumn := bDataColumn{SELF:oDCBrowser, _oDbf, {|Server, Owner| 
Owner:GetImage(Server)}, #Expression, SELF}
oColumn:Caption := "Image"
oColumn:ValType := "O"
oColumn:Alignment := BALIGN_CENTER
oColumn:Width := 100
oColumn:SuspendEmptyValues := TRUE

METHOD GetImage(oServer) CLASS dlgLeft
// Get Image with filename from dbf recno
LOCAL cFile AS STRING
LOCAL cString AS STRING
LOCAL oImage AS Bitmap
LOCAL oBild AS FabPaintLib

cFile := GetGlobal(#TMP) + "~LC" + StrZero(oServer:Recno,5) + ".JPG"
IF File(cFile)
	oBild := FabPaintLib { cFile , SELF }
	oBild:ResizeBilinear(100, Round(FLOAT(_HEIGHT)/FLOAT(_WIDTH)*100,0))
	oBild:AsStringFileFormat := "BMP"
	cString := oBild:AsString
	oImage := bBitmap{bimgCreateBitmapFromDibString(, cString)}
ENDIF
RETURN oImage

Am 02.03.2020 um 11:34 schrieb Gunter:
> How do I display icons in a cell of the bBrowser? The file name of the icon is in the connected DBF. The icons have different resolutions.
> Thanks in advance.
> Gunter
> 

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

A short question: Gunter <rhsteinfurth@gmail.com> - 2020-03-02 02:34 -0800
  Re: A short question: Franz Rachbauer <office@rachbauer.org> - 2020-03-02 12:17 +0100
    Re: A short question: sherlocksoftware@gmail.com - 2020-03-10 08:58 -0700
      Re: A short question: Franz Rachbauer <office@rachbauer.org> - 2020-03-11 05:58 +0100
  Re: A short question: rhsteinfurth@gmail.com - 2020-03-02 05:56 -0800
    Re: A short question: Franz Rachbauer <office@rachbauer.org> - 2020-03-02 18:04 +0100
  Re: A short question: rhsteinfurth@gmail.com - 2020-03-03 02:12 -0800
    Re: A short question: Franz Rachbauer <office@rachbauer.org> - 2020-03-03 12:27 +0100
  Re: A short question: rhsteinfurth@gmail.com - 2020-03-06 08:58 -0800
    Re: A short question: Franz Rachbauer <office@rachbauer.org> - 2020-03-06 20:22 +0100
  Re: A short question: Stefan Überbacher <info@sanosoft.com> - 2020-03-09 00:05 -0700
  Re: A short question: rhsteinfurth@gmail.com - 2020-03-17 01:05 -0700

csiph-web