Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How can I dynamically draw graphic objects in datawindow

309 views
Skip to first unread message

Dejan Ivkovic

unread,
Jan 2, 2002, 8:05:17 AM1/2/02
to
I want to draw (create) a rectangle in a datawindow dynamically. It means in
run-time. Is it possible and how?

Bug

unread,
Jan 2, 2002, 9:47:52 AM1/2/02
to
Not possible. :( But you can create a custom visual object with a simple
rectangle on it and create your custom object all you want. :) Look up the
OpenUserObject() function in the help files.

"Dejan Ivkovic" <divko...@yahoo.co.uk> wrote in message
news:dKVYlh4...@forums.sybase.com...

Simon Caldwell [TeamSybase]

unread,
Jan 2, 2002, 10:24:16 AM1/2/02
to
For once Bug's got it wrong ;-)

Here's what the DWSyntax Tool tells you:
<DW Control Name>.Modify(&
"create rectangle(band=<Detail, Footer, Header, Header.<group #>, Summary,
Trailer.<group #>, Background, Foreground>" + &
" pointer='<Arrow!, Cross!, HourGlass!, IBeam!, Icon!, Size!, SizeNESW!,
SizeNS!, SizeNWSE!, SizeWE!, UpArrow!, or cursor filename (with path)>'
moveable=<0 - False, 1 - True> resizeable=<0 - False, 1 - True> x='<an
integer>' y='<an integer>' height='<an integer>' width='<an integer>'
name=<string>" + &
" tag='<string>' brush.hatch='<0 - Horiz, 1 - BDiagonal, 2 - Vertical, 3 -
Cross, 4 - FDiagonal, 5 - DiagCross, 6 - Solid, 7 - Transparent>'" + &
" brush.color='<a long>' pen.style='<0 - Solid, 1 - Dash, 2 - Dot, 3 -
DashDot, 4 - DashDotDot, 5 - Null>' pen.width='<an integer>' pen.color='<a
long>' background.mode='<0 - Opaque, 1 - Transparent>' background.color='<a
long>')")

HTH

Simon

--

Simon Caldwell
Get Real Systems Ltd
Holtby Manor, Stamford Bridge Road, York, YO19 5LL
Tel +44 (0)1904 481999 Fax +44 (0)1904 481666
Visit us at www.getrealsystems.com
Procurement Control Specialists
Controlling corporate spend and streamlining procurement processes


"Dejan Ivkovic" <divko...@yahoo.co.uk> wrote in message
news:dKVYlh4...@forums.sybase.com...

Philip_Salgannik

unread,
Jan 2, 2002, 11:19:06 AM1/2/02
to

Bug

unread,
Jan 2, 2002, 11:45:18 AM1/2/02
to
ouch

Yeah... I forgot this was a datawindow question. I was thinkin' windows.....

<Philip_Salgannik> wrote in message
news:8A6E89288DEC44680059A3A085256B35.005885F985256B35@webforums...

Philip_Salgannik

unread,
Jan 2, 2002, 2:06:31 PM1/2/02
to
Here we go again :-))
Sure you can do this even in a window, using API

Bug

unread,
Jan 2, 2002, 2:36:43 PM1/2/02
to
Man, Philip's using me as a punching-bag this morning! <g> Okay, but in
_native PowerBuilder_, you'd have to do it my way.

Darn it! I wanna be right! hehehehe :P


<Philip_Salgannik> wrote in message
news:D253E96457AC52C40068F78A85256B35.0061093885256B35@webforums...

Philip Salgannik

unread,
Jan 2, 2002, 8:23:38 PM1/2/02
to
Here is my 32 bit port of Arthur Hefti's example which among other things
does some funky drawing using API calls...

pbm_thisusuallydoesnothelp:-))
Philip Salgannik

"Bug" <fent...@hotmail.com> wrote in message
news:aIP23Y8...@forums.sybase.com...

0 new messages