• Welcome to Valhalla Legends Archive.
 

Maximizing Bot Help

Started by Antichrist, August 21, 2004, 09:21 PM

Previous topic - Next topic

Antichrist

Alright, this is hard to explain, but hopefully you get it. My bot, I've got the layout done and everything. When you run it, and you go to maximize it, how do you get it so everything resizes to fit the screen and not just have the bot stay the same size and the blank form filling in the space where the bot doesn originally fill. Hopefully you guys understand what I'm trying to ask. Thanks!

Newby

If it's Visual Basic (I'm assuming it is, you called your window a form!) then resize the controls (object.Move) when Form_Resize is fired.
- Newby

Quote[17:32:45] * xar sets mode: -oooooooooo algorithm ban chris cipher newby stdio TehUser tnarongi|away vursed warz
[17:32:54] * xar sets mode: +o newby
[17:32:58] <xar> new rule
[17:33:02] <xar> me and newby rule all

Quote<TehUser> Man, I can't get Xorg to work properly.  This sucks.
<torque> you should probably kill yourself
<TehUser> I think I will.  Thanks, torque.

Antichrist

Oops, yes I did mean Window. I'm using VB .net, if that helps at all.

ChR0NiC

Quote from: Antichrist on August 21, 2004, 09:30 PM
Oops, yes I did mean Window. I'm using VB .net, if that helps at all.

Newby answered your question for you, you need to make changes to your objects when Form_Resize fires, so everytime your form's size changes, your objects change accordingly.

Antichrist

Alright, thank you Newby.

MyndFyre

Quote from: Antichrist on August 21, 2004, 09:30 PM
Oops, yes I did mean Window. I'm using VB .net, if that helps at all.

VB .NET has resizing built-in with the framework.  You need to set your controls' Dock property or Anchor property.  My bot resizes very well, and has no code for resizing controls outside of Dock and Anchor.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

Antichrist

#6
Awesome, thanks MyndFyre.