Code center > Darwinbots Program Source Code
Sentence Split
PurpleYouko:
--- Quote ---I'm not 100% sure, but don't picture boxes have their own line commands?
so it would be:
pictureboxname.line(....
instead of just
line(....
--- End quote ---
Sorry I thought I had explained that already.
Whatever object you want to do anything to has to be named in the command line.
To set a pixel in a specific picturebox, you have to name the picturebox object to do anything to it.
There are several ways to do this with objects.
First and easiest. To draw directly to a form (not an object inside a form) all you have to do is be inside the form code window then type a command line such as....
PSet (X, Y), color
Second method. Drawing to a picturebox that is inside the form in which the code is located.
PictureBox1.PSet (X, Y), color
Third method. Useful if you want to do a bunch of stuff to the same object.
With PictureBox1
.PSet (X, Y), color
.PSet (X1, Y1), color
End With
Fourth method. Drawing to a picturebox that is located in a form other than the one where the code is located.
Form1.PictureBox1.PSet (X, Y), color
You can also use "With" in that scenario too.
Greven:
The object browser, will states all most all functions of a given object, be it picturebox, whatever.
Greven:
Alot of it you need to figure out you self, but that way it gives alot more, or have I the misunderstood something!??
PurpleYouko:
Right the object browser does give you all the members for each command so I guess it can be pretty useful.
You also get all this same stuff when you type in a command line.
Numsgil:
Right:
objectname then type "."
A small popup of all members appears.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version