Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #9499 > unrolled thread
| Started by | Martin <Martin@spam.spam> |
|---|---|
| First post | 2016-07-04 16:45 +0100 |
| Last post | 2016-07-04 16:45 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.clipper.visual-objects
bcompoundvalue? or somethign else Martin <Martin@spam.spam> - 2016-07-04 16:45 +0100
| From | Martin <Martin@spam.spam> |
|---|---|
| Date | 2016-07-04 16:45 +0100 |
| Subject | bcompoundvalue? 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)
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web