[TUT] Cool Tricks!

Post here about scripting and programming for HaloPC (audio, network, ai, etc.)
Post Reply
superaison





Posts: 175
Joined: Mon Jul 25, 2005 5:06 pm

[TUT] Cool Tricks!

Post by superaison »

Ok time for my new tut, in this you will learn how to do some neat tricks.

Now trick one.

Making the border square with one X.

Goto your properties and look for
FormBorderStyle and to the right of it you'll see "Sizable"

here is a picture

Image

for example Change it to like FixedToolWindow

What that means is that it stays like that and the user running the app cant change it, only the programmer.

here is a pic of what id look like

Image

Ok, Trick 2(two)

In Trick two we will learn how to add items to the tooler bar. in our example i will show you guys how to add a Windows Media Player Tool (thingy majigger, ill post code in a bit) and a Shockwave Flash Object.

So open your Tool Bar and and right click it and select Choose Items...

You will get a new window pop up thingy with a bunch of text and check boxes, it may take a minutre for it to pop up so sit tight. now for this tut u will click the tab "COM Companents". Scrool down and look for Shockwave Flash Object, and Windows Media Player. Check those boxes and Click "Ok" and then your tool bar should now look like this:

Image

Ill post some more l8r when I have some more time.
Last edited by superaison on Sat Nov 26, 2005 4:29 pm, edited 1 time in total.
scubakobe





Posts: 188
Joined: Sat Sep 17, 2005 7:58 am

Post by scubakobe »

Cool! I didn't know you could get the Shockwave stuff and windows media player!
superaison





Posts: 175
Joined: Mon Jul 25, 2005 5:06 pm

Post by superaison »

Thats why I posted it!
jamesr66a




Miner

Posts: 250
Joined: Sat Jul 30, 2005 9:17 am

Post by jamesr66a »

Cool I didn't know about trick 1!
superaison





Posts: 175
Joined: Mon Jul 25, 2005 5:06 pm

Post by superaison »

jamesr66a wrote:Cool I didn't know about trick 1!
Yup, I learned that a few weeks ago.
scubakobe





Posts: 188
Joined: Sat Sep 17, 2005 7:58 am

Post by scubakobe »

Hey, when I checked the Windows media player box and clicked ok, it didnt show up...

Edit: Nvm, it came up now :lol:
jamesr66a




Miner

Posts: 250
Joined: Sat Jul 30, 2005 9:17 am

Post by jamesr66a »

scubakobe wrote:Hey, when I checked the Windows media player box and clicked ok, it didnt show up...

Edit: Nvm, it came up now :lol:
It ends up at the end of the "all controls" menu
scubakobe





Posts: 188
Joined: Sat Sep 17, 2005 7:58 am

Post by scubakobe »

Hey, you didn't get spammed superaison!!
Lucky! 8)
Post Reply