Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #7731 > unrolled thread
| Started by | Martin <spam@spam.spam> |
|---|---|
| First post | 2015-02-09 16:24 +0000 |
| Last post | 2015-02-10 09:10 +0000 |
| Articles | 3 — 2 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
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
| From | Martin <spam@spam.spam> |
|---|---|
| Date | 2015-02-09 16:24 +0000 |
| Subject | Bitmaps on the screen |
| Message-ID | <mbamt0$vh3$1@dont-email.me> |
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
[toc] | [next] | [standalone]
| From | JohnMartens <martens@tennishulp.info> |
|---|---|
| Date | 2015-02-09 18:42 +0100 |
| Message-ID | <mbarg4$msn$1@dont-email.me> |
| In reply to | #7731 |
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
[toc] | [prev] | [next] | [standalone]
| From | Martin <spam@spam.spam> |
|---|---|
| Date | 2015-02-10 09:10 +0000 |
| Message-ID | <mbchrg$et2$1@dont-email.me> |
| In reply to | #7732 |
Thankyou I will try this
On 09/02/2015 17:42, JohnMartens wrote:
> 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
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web