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

--

Joseph J. Strout
[EMAIL PROTECTED]
_______________________________________________
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>

Reply via email to