In RB you have to use the graphics object of a picture.
mypicture.graphics.pixel(x,y) = mycolor
On Apr 6, 2006, at 7:41 PM, Don P. wrote:
Joseph J. Strout wrote:
At 1:04 PM +0930 4/6/06, Chris Nillissen wrote:
Hi, I am using Realbasic 2006 demo, I just converted a simple VB app
that draws to a Picture Box using the PictureBox.PSet command.
How do I
do this in RealBasic? and what control do I replace the Picture Box
with?
I've never used a Picture Box, but I imagine it's a rectangular
control that displays a picture, right? In REALbasic you would
use a Canvas control instead. A Canvas is actually much more than
a picture box; it's sort of a do-everything control, that can draw
whatever you want and respond to any user events. But it can also
draw a picture as its "backdrop" (on which you can draw additional
stuff, or not, as you wish). So you'd replace the PSet command with:
Canvas1.Backdrop = somePicture
where Canvas1 is the name of your Canvas, and somePicture is a
reference to some picture.
Best,
- Joe
To not answer the OP's question, :-), VB's PictureBox is a
graphical control that can accept all of the graphic functions that
were in GW/Q/Quickbasic such as PSet, PreSet, Line, Circle, CLS,
Paint, etc etc etc. I've been away from VB for a couple years, but
I think you could also print text to it, too.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>