Author Topic: Sentence Split  (Read 39547 times)

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Sentence Split
« Reply #45 on: October 13, 2005, 01:50:40 AM »
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(....

Offline Zelos

  • Bot Overlord
  • ****
  • Posts: 707
    • View Profile
Sentence Split
« Reply #46 on: October 13, 2005, 05:20:00 AM »
really? ok I´ll give it a try then. lets hope ure right then im done and I can show you what ive been working on. so instant of line(blabla) I type ictureboxname.line(blabla) but I dont have to change the "blabla" right?
right now im not using this, but of curiosity, in a progressbar, how do I cchange so it increases/decreases?
« Last Edit: October 13, 2005, 05:31:40 AM by Zelos »
When I have the eclipse cannon under my control there is nothing that can stop me from ruling the world. And I wont stop there. I will never stop conquering worlds through the universe. All the worlds in the universe will belong to me. All the species in on them will be my slaves. THE ENIRE UNIVERSE WILL BELONG TO ME AND EVERYTHING IN IT :evil: AND THERE IS NOTHING ANYONE OF you CAN DO TO STOP ME. HAHAHAHAHAHAHAHA

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Sentence Split
« Reply #47 on: October 13, 2005, 08:45:07 AM »
I've never played with progress bars to be honest.  I bet they have a member function called value, or something along those lines, and another that's max vaue.

So maybe you'd do progressbar.value = 30 or something like that.

Offline Greven

  • Bot Destroyer
  • ***
  • Posts: 345
    • View Profile
Sentence Split
« Reply #48 on: October 13, 2005, 09:08:56 AM »
Zelos alot of you questions can be answered by the 'Object Browser'.

It is located in 'View -> Object Browser', or just hit F2!

Here you can find (almost) all commands for Objects (picturesboxes etc.) and also other simple commands, though not all commands in VB is here (why I dont know).

In VB when you want to make something to an object (picturebox, text, label etc.) you often need to call their corresponding function:
example

'objectname.function parameters(for the function)'

For the progressbar, you set it by this:
(you can also set it in the properties on design-time, some objects have an additional properties window, to find it right click on the object in question, can choose properties, if it has an additional properties window it will popup)

Code: [Select]
'Sets the minimum for the progressbar
ProgressBar.Min = 0
'Sets the maximum for the progressbar
ProgressBar.Max = 10
'When you need the progressbar to increase in value you write
'Were x is the value it should be increased with.
'Beware that if the .Value, gets over .Max it will raise an error!
ProgressBar.Value = ProgressBar.Value + x

You need to threat all Objects/items in VB as real objects, like when you want to turn on you TV, you dont say just TurnOn... You need to use something like (okay I know, but it is just an analogy)

'If you use the remotecontrol
TV.RemoteControl.TurnOn = True
'If you push a button on the tv, it will be:
TV.TurnOn = True

(Bad example, but I hope it can be used to something)
« Last Edit: October 13, 2005, 09:22:46 AM by Greven »
10010011000001110111110100111011001101100100000110110111000011101011110010110000
011000011000001100010110010111101001110100110010111100101000001000001111001011101
001101001110011011010011100011110100111000011101100100000100110011010011100110110
010110000011100111101001110110111101011101100110000111101001101001110111111011101
01100100000111010011010001100001110111010000010001001000010100001

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
Sentence Split
« Reply #49 on: October 13, 2005, 09:12:55 AM »
Only if he has a version with a decent help file.
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
Sentence Split
« Reply #50 on: October 13, 2005, 09:22:50 AM »
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(....
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.
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline Greven

  • Bot Destroyer
  • ***
  • Posts: 345
    • View Profile
Sentence Split
« Reply #51 on: October 13, 2005, 09:23:35 AM »
The object browser, will states all most all functions of a given object, be it picturebox, whatever.
10010011000001110111110100111011001101100100000110110111000011101011110010110000
011000011000001100010110010111101001110100110010111100101000001000001111001011101
001101001110011011010011100011110100111000011101100100000100110011010011100110110
010110000011100111101001110110111101011101100110000111101001101001110111111011101
01100100000111010011010001100001110111010000010001001000010100001

Offline Greven

  • Bot Destroyer
  • ***
  • Posts: 345
    • View Profile
Sentence Split
« Reply #52 on: October 13, 2005, 09:24:36 AM »
Alot of it you need to figure out you self, but that way it gives alot more, or have I the misunderstood something!??
10010011000001110111110100111011001101100100000110110111000011101011110010110000
011000011000001100010110010111101001110100110010111100101000001000001111001011101
001101001110011011010011100011110100111000011101100100000100110011010011100110110
010110000011100111101001110110111101011101100110000111101001101001110111111011101
01100100000111010011010001100001110111010000010001001000010100001

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
Sentence Split
« Reply #53 on: October 13, 2005, 09:30:32 AM »
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.
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Sentence Split
« Reply #54 on: October 13, 2005, 09:31:37 AM »
Right:

objectname then type "."

A small popup of all members appears.

Offline Zelos

  • Bot Overlord
  • ****
  • Posts: 707
    • View Profile
Sentence Split
« Reply #55 on: October 13, 2005, 11:54:16 AM »
I figure out alot on my self. but sometimes it aint that easy when you cant find all commands on a list.

but thx anyway ^_^ with ur help I learn alot and get trough those things I cant figure out on my own
« Last Edit: October 13, 2005, 11:57:10 AM by Zelos »
When I have the eclipse cannon under my control there is nothing that can stop me from ruling the world. And I wont stop there. I will never stop conquering worlds through the universe. All the worlds in the universe will belong to me. All the species in on them will be my slaves. THE ENIRE UNIVERSE WILL BELONG TO ME AND EVERYTHING IN IT :evil: AND THERE IS NOTHING ANYONE OF you CAN DO TO STOP ME. HAHAHAHAHAHAHAHA

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Sentence Split
« Reply #56 on: October 13, 2005, 02:27:00 PM »
I think you're doing quite well for no programming background.

VB is nice that way.  It isn't terribly impossible to pick up.

Offline Zelos

  • Bot Overlord
  • ****
  • Posts: 707
    • View Profile
Sentence Split
« Reply #57 on: October 13, 2005, 02:55:19 PM »
why thanks nums.
When I have the eclipse cannon under my control there is nothing that can stop me from ruling the world. And I wont stop there. I will never stop conquering worlds through the universe. All the worlds in the universe will belong to me. All the species in on them will be my slaves. THE ENIRE UNIVERSE WILL BELONG TO ME AND EVERYTHING IN IT :evil: AND THERE IS NOTHING ANYONE OF you CAN DO TO STOP ME. HAHAHAHAHAHAHAHA

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Sentence Split
« Reply #58 on: October 13, 2005, 03:01:33 PM »
Just be sure when you finish a project you let others critique your code, or you'll get stuck in bad programming habits that will be difficult to break.

Not that there's only one right way to code, but there are definately some that are less right than others.

Offline Zelos

  • Bot Overlord
  • ****
  • Posts: 707
    • View Profile
Sentence Split
« Reply #59 on: October 13, 2005, 03:15:03 PM »
right now im happy it worx, but of course I´ll show you the programming so you can show how I can improve it. its rather primetive if you ask me
When I have the eclipse cannon under my control there is nothing that can stop me from ruling the world. And I wont stop there. I will never stop conquering worlds through the universe. All the worlds in the universe will belong to me. All the species in on them will be my slaves. THE ENIRE UNIVERSE WILL BELONG TO ME AND EVERYTHING IN IT :evil: AND THERE IS NOTHING ANYONE OF you CAN DO TO STOP ME. HAHAHAHAHAHAHAHA