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


Groups > comp.lang.clipper.visual-objects > #9499 > unrolled thread

bcompoundvalue? or somethign else

Started byMartin <Martin@spam.spam>
First post2016-07-04 16:45 +0100
Last post2016-07-04 16:45 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  bcompoundvalue? or somethign else Martin <Martin@spam.spam> - 2016-07-04 16:45 +0100

#9499 — bcompoundvalue? or somethign else

FromMartin <Martin@spam.spam>
Date2016-07-04 16:45 +0100
Subjectbcompoundvalue? or somethign else
Message-ID<nle0b1$ora$1@dont-email.me>
Hello

I need to display a tiny little progress on a screen, and I would like 
to use something like bcompoundvalue as I already use similar code on cells.

I have the following code which is used within it and would like to make 
it a gui object on a screen


SelectObject(hDC, GetStockObject(NULL_PEN))


iSplit	:= INT(iBarWidth*SELF:afValue[2]/SELF:afValue[1])

oBrush := Brush{Color{COLORYELLOW}}

// draw bar
SelectObject(hDC, oBrush:Handle())
Rectangle(hDC, iLeft, iTop, iLeft+iSplit, iBot)
RestoreDC(hDC, -1)

SelectObject(hDC, GetStockObject(NULL_PEN))
oBrush := Brush{Color{COLORRED}}

// draw bar
SelectObject(hDC, oBrush:Handle())
Rectangle(hDC, iLeft+iSplit-1, iTop, iRight, iBot)

RestoreDC(hDC, -1)

[toc] | [standalone]


Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web