Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #7732
| From | JohnMartens <martens@tennishulp.info> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: Bitmaps on the screen |
| Date | 2015-02-09 18:42 +0100 |
| Organization | A noiseless patient Spider |
| Message-ID | <mbarg4$msn$1@dont-email.me> (permalink) |
| References | <mbamt0$vh3$1@dont-email.me> |
Hope this helps.
John
LOCAL oFixedBitmap AS FixedBitmap
oBmp := FileBitmap{cFileNm}
oFixedBitmap := FixedBitmap{dwItemNr, pItemOrigin, dItemSize}
oFixedBitmap:SetBitmap(oBmp)
oFixedBitmap:Origin := pItemOrigin
oFixedBitmap:Size := dItemSize
oFixedBitmap:Show()
CLASS FileBitmap INHERIT Bitmap
METHOD Destroy() CLASS FileBitmap
IF (SELF:hBitmap != NULL_PTR)
DeleteObject(SELF:hBitmap)
IF ! InCollect()
SELF:hBitmap := NULL_PTR
ENDIF
ENDIF
RETURN NIL
METHOD Handle() CLASS FileBitmap
RETURN SELF:hBitmap
METHOD Init(cFilename) CLASS FileBitmap
IF ! IsString(cFilename) .OR. Empty(cFilename)
///
ENDIF
IF ! File(cFilename)
///
ENDIF
SELF:hBitmap := LoadImage(0, PSZ(cFilename), IMAGE_BITMAP, 0, 0,
LR_LOADFROMFILE)
RegisterAxit(SELF)
RETURN SELF
ACCESS Size CLASS FileBitmap
LOCAL bm IS _WINBITMAP
GetObject(SELF:hBitmap, _SIZEOF(_WINBITMAP), @bm)
RETURN Dimension{bm.bmWidth, bm.bmHeight}
Martin schreef op 9-2-2015 om 17:24:
> Just a quicky
>
> I need to assemble a few narrow bitmaps together on the screen and
> touching.
>
> 80 high 10 to 20 wide, 3 to 5 bitmaps wide.
>
> Thinking of bcompoundvalues
>
> Thanks
>
> Martin
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Bitmaps on the screen Martin <spam@spam.spam> - 2015-02-09 16:24 +0000
Re: Bitmaps on the screen JohnMartens <martens@tennishulp.info> - 2015-02-09 18:42 +0100
Re: Bitmaps on the screen Martin <spam@spam.spam> - 2015-02-10 09:10 +0000
csiph-web