I need to draw some figures (lines, rectangles ...) with win32 API
functions.
So I define the event pbm_paint (WM_PAINT) in a visual user and I put the
drawing code in it (all functions are external API functions); the code look
like this:
os_paintstruct los_paint
BeginPaint(handle(this),los_paint)
Rectangle(los_paint.hdc,10,10,100,100)
EndPaint(handle(this),los_paint)
But it doesn't work !, nothing is drawing (however it's the good way to
proceed in SDK !)
How works pbm_paint in PB ? does PB fire WM_PAINT event before calling
pbm_paint event ?
When I look at the paintstruct rectangle returned by BeginPaint function the
coordinate are setted to 0 instead of map the region to redraw. (even I make
an InvalidateRect to the windows's handle)
Does anyone have a response to my problem ?
Thanks in advance.
Benoit.
If you want to paint objects, you might look at the Create option for a
datawindow, or the OpenUserObject function for user objects. Within PB,
that's probably the best way to do it natively.
On Tue, 12 Jan 1999 13:50:12 +0100,
in powersoft.public.powerbuilder.powerscript
--
Bruce Armstrong [TeamPS] | Romac/Source International
mailto:Bruce.A...@eudoramail.com | mailto:jo...@sourcela.com
| http://www.romac-source.com
Preach the gospel at all times. If necessary, use words. [Francis of Assisi]
http://www.harvest.org/text/knowgod.html
Thanks a lot
Benoit.
Bruce Armstrong [TeamPS] wrote in message
<8F1xpzjP#GA....@forums.powersoft.com>...
On Tue, 12 Jan 1999 16:57:52 +0100,