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


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

bcompoundvalue? or somethign else

From Martin <Martin@spam.spam>
Newsgroups comp.lang.clipper.visual-objects
Subject bcompoundvalue? or somethign else
Date 2016-07-04 16:45 +0100
Organization A noiseless patient Spider
Message-ID <nle0b1$ora$1@dont-email.me> (permalink)

Show all headers | View raw


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 comp.lang.clipper.visual-objects | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web