• Welcome to Valhalla Legends Archive.
 

Resizing Form

Started by WiLD, October 15, 2003, 05:23 AM

Previous topic - Next topic

WiLD

Ok i didnt know where to post this but im posting it here!
Im having a little trouble with a form. i want it so when you resize it everything else adjusts to the new size so you can see all the extra black stuff.
Thank you in advance.
=_=  &&  g0dFraY  &&  -=Templar=-  @USWest

Grok

I've posted resize code for a form.  Search the forum and search bnetdocs.

WiLD

ok, iv tried searching but it only comes up with this topic, if you could provide a link and copy and paste the code it would be greatly appreciated.
=_=  &&  g0dFraY  &&  -=Templar=-  @USWest

Banana fanna fo fanna

Basically, you want to pull out your algebra hat.

Make a ratio of the old size to the new size and adjust your coords/sizes accordingly.

Grok

Quote from: WiLD on October 16, 2003, 06:37 PM
ok, iv tried searching but it only comes up with this topic, if you could provide a link and copy and paste the code it would be greatly appreciated.

Click Advanced Search, put "Form_Resize" as the phrase to search for, and change the number of days to 800.  You'll find enough useful code to ignore for a month.  Especially the resize stuff from st0rm.

Seven

Quote from: St0rm.iD on October 16, 2003, 07:23 PM
Basically, you want to pull out your algebra hat.

Make a ratio of the old size to the new size and adjust your coords/sizes accordingly.

As he said, just calculate the subtraction (in my case) to however many objects you have.  Yes, Form_Resize can be a bitch, but once you get a few objects down to resizing, the rest is a peice of cake

iago

If you make everything a control array it's easy!
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


UserLoser

Quote from: Grok on October 15, 2003, 06:56 AM
I've posted resize code for a form.  Search the forum and search bnetdocs.

AFAIK BnetDocs doesnt have anything on resizing

Banana fanna fo fanna

Quote from: iago on October 18, 2003, 07:38 AM
If you make everything a control array it's easy!

Form.controls iirc

Adron

Was the language specified yet?

iago

This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


hismajesty


Adron


Banana fanna fo fanna

omfg omfg wrong forum flame flame flame

hismajesty

Quote from: Adron on October 20, 2003, 02:34 PM
Quote from: hismajesty on October 20, 2003, 02:29 PM

No, but it is VB.

Why do you say that?

Well, I assumed it is VB because every other post he has posted here has been about VB.  ;)