Introducing MPGH's AIGA. The latest advancement in artificial intelligence. Click here now to learn more!
Page 1 of 3 123 LastLast
Results 1 to 15 of 39
  1. #1
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253

    [ TUT ] DrawBox Auto ReSize...

    Ok Guys This Is How To Make You DrawBox Auto ReSize When You Close The Groups In Hans Menu And My Combined Hans And Gellins Base


    This Is My Farwell Gift Too You Guys As Im Leaving Mpgh Too Learn Alot Of Diffent Shit On My Learning Adventure...Enjoy!!!

    Hans Default Menu
    Well In Hans Default Menu Its All Already There So Just Put tothieght In The DrawBox Like So..

    void D3DMenu::AddItem(char *txt, int *var, char **opt, int maxval, int typ)
    {
    if (noitems>=(maxitems-1)) return;
    MENU[noitems]->typ=typ;
    MENU[noitems]->txt=txt;
    MENU[noitems]->opt=opt;
    MENU[noitems]->var=var;
    MENU[noitems]->maxval=maxval;
    noitems++;
    totheight=(noitems*height)+titleheight;
    }

    DrawBox( 20,200,170,tothieght,D3D color,pDevice);

    My Hans And Gellin Combined Base
    In Menu.cpp In The Global Make A New Int..ex. int whatever;
    Then In Menu.h Add This extern int whatever;
    Now Go Back Too Menu.cpp And Find The AddItem Function...

    void cMenu::AddItem(char *txt, char **opt, int *var, int maxvalue, int typ)
    {
    MENU[Mmax].typ=typ;
    MENU[Mmax].txt=txt;
    MENU[Mmax].opt=opt;
    MENU[Mmax].var=var;
    MENU[Mmax].maxvalue=maxvalue;
    Mmax++;
    whatever=(Mmax*Mysize);
    }

    DrawBox(20,200,170,whatever,D3D color,pDevice);

    There You Go Your Drawboxes Will Auto Resize..

    Bye Everyone

  2. The Following 10 Users Say Thank You to whit For This Useful Post:

    ★Rusty (09-17-2010),azerty54 (09-15-2010),deathninjak0 (09-09-2010),inliner (09-09-2010),lolipop1113 (09-15-2010),MEkhi2 (12-02-2010),mo3ad001 (09-09-2010),NewCories (03-02-2011),Nubzgetkillz (11-30-2010),o-o (09-09-2010)

  3. #2
    Stephen's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    Engine.exe
    Posts
    4,689
    Reputation
    184
    Thanks
    1,149
    My Mood
    Aggressive
    Cool. Good for Noobs who dun know how to add :L

  4. The Following User Says Thank You to Stephen For This Useful Post:

    whit (09-09-2010)

  5. #3
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    Quote Originally Posted by Stephen View Post
    Cool. Good for Noobs who dun know how to add :L
    Tried To Make No0b Friendly...

  6. #4
    DBag4Life69's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Posts
    290
    Reputation
    13
    Thanks
    59
    My Mood
    Twisted
    Quote Originally Posted by whit View Post
    Ok Guys This Is How To Make You DrawBox Auto ReSize When You Close The Groups In Hans Menu And My Combined Hans And Gellins Base


    This Is My Farwell Gift Too You Guys As Im Leaving Mpgh Too Learn Alot Of Diffent Shit On My Learning Adventure...Enjoy!!!

    Hans Default Menu
    Well In Hans Default Menu Its All Already There So Just Put tothieght In The DrawBox Like So..

    void D3DMenu::AddItem(char *txt, int *var, char **opt, int maxval, int typ)
    {
    if (noitems>=(maxitems-1)) return;
    MENU[noitems]->typ=typ;
    MENU[noitems]->txt=txt;
    MENU[noitems]->opt=opt;
    MENU[noitems]->var=var;
    MENU[noitems]->maxval=maxval;
    noitems++;
    totheight=(noitems*height)+titleheight;
    }

    DrawBox( 20,200,170,tothieght,D3D color,pDevice);

    My Hans And Gellin Combined Base
    In Menu.cpp In The Global Make A New Int..ex. int whatever;
    Then In Menu.h Add This extern int whatever;
    Now Go Back Too Menu.cpp And Find The AddItem Function...

    void cMenu::AddItem(char *txt, char **opt, int *var, int maxvalue, int typ)
    {
    MENU[Mmax].typ=typ;
    MENU[Mmax].txt=txt;
    MENU[Mmax].opt=opt;
    MENU[Mmax].var=var;
    MENU[Mmax].maxvalue=maxvalue;
    Mmax++;
    whatever=(Mmax*Mysize);
    }

    DrawBox(20,200,170,whatever,D3D color,pDevice);

    There You Go Your Drawboxes Will Auto Resize..

    Bye Everyone
    Damn, bro.
    Why you leaving us, man?
    That's entirely horrible, cuz you're a very good coder, and you're just dipping.

  7. The Following User Says Thank You to DBag4Life69 For This Useful Post:

    whit (09-09-2010)

  8. #5
    Stephen's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    Engine.exe
    Posts
    4,689
    Reputation
    184
    Thanks
    1,149
    My Mood
    Aggressive
    Ima miss you bro.

    Peace.

  9. The Following User Says Thank You to Stephen For This Useful Post:

    whit (09-09-2010)

  10. #6
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    Quote Originally Posted by DBag4Life69 View Post


    Damn, bro.
    Why you leaving us, man?
    That's entirely horrible, cuz you're a very good coder, and you're just dipping.
    Not As Good As Most People Here (Crash,Seal,Stephen,Blood)..
    Ime Leaving For A Godd Reason Too Learn...Ill Be Back
    Might Not Be Tomorrow But Trust Me..

  11. The Following User Says Thank You to whit For This Useful Post:

    Stephen (09-09-2010)

  12. #7
    Stephen's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    Engine.exe
    Posts
    4,689
    Reputation
    184
    Thanks
    1,149
    My Mood
    Aggressive
    Byeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.

  13. The Following User Says Thank You to Stephen For This Useful Post:

    whit (09-09-2010)

  14. #8
    o-o's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    who reading that ? T_T
    Posts
    682
    Reputation
    10
    Thanks
    307
    My Mood
    Cold
    Gonna Miss You dude and answer me PM

    @topic Thanks dude
    [IMG]https://i423.photobucke*****m/albums/pp312/LizMLsinatra/hh-1.png[/IMG]
    Happy Hanukkah For All Of MPGH !


    The Real Life Are Better Then A Game !


    Song :[YOUTUBE]vgKBOkvO5N0&feature=player_embedded[/YOUTUBE]
    Best Friends :

    Hax4Life!

    Solify

    [MPGH]Drake`

    Respect Them Or I'll Kill You ...



  15. #9
    CodeDemon's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    vagina
    Posts
    1,070
    Reputation
    50
    Thanks
    940
    My Mood
    Fine
    D: Dont go whit! I'll miss you :'( You should check back here everyday /

    Good Luck with whatever you are planning on doing.

    PS: Nice tut /

  16. The Following User Says Thank You to CodeDemon For This Useful Post:

    whit (09-09-2010)

  17. #10
    Hahaz's Avatar
    Join Date
    Sep 2008
    Gender
    male
    Location
    Matrix World
    Posts
    1,170
    Reputation
    64
    Thanks
    4,091
    My Mood
    Bored
    Don't worry.. he'll be back lol.

  18. The Following 4 Users Say Thank You to Hahaz For This Useful Post:

    cosconub (09-12-2010),J (09-09-2010),whit (09-09-2010),Yepikiyay (09-09-2010)

  19. #11
    mo3ad001's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Posts
    842
    Reputation
    53
    Thanks
    797
    My Mood
    Busy
    lol i'm Triad may 10 time's for this
    and Really all Fail
    i don't think that in this Easy
    thank you

    H A X O
    Email : Noobmem@hotmail.com


  20. #12
    coogle007's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Posts
    267
    Reputation
    18
    Thanks
    297
    My Mood
    Aggressive
    Thx but the border resize only a part of menù the last folder don't have background

  21. #13
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    Quote Originally Posted by mo3ad001 View Post
    lol i'm Triad may 10 time's for this
    and Really all Fail
    i don't think that in this Easy
    thank you
    No Problem Mate...
    Easy Really Is Easy..
    Quote Originally Posted by coogle007 View Post
    Thx but the border resize only a part of menù the last folder don't have background
    Post A Pic ..Idk What Your Talkin Bout

  22. #14
    whatup777's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    CA Source Code Section
    Posts
    4,025
    Reputation
    147
    Thanks
    351
    My Mood
    Dead
    he's like frosty the snowman. He'll be back another day. /

    See ya whit. Ima miss you.
    Quotes I live by.


    A foolish person learns from his mistakes, I wise person learns from others.
    Quote Originally Posted by AVGN View Post



    mhm

    i live in texas

    i was at the grocery store with my son. He saw a mexican guy, and he said "Look daddy! a mower man!"

    he's 4 yrs old

  23. The Following User Says Thank You to whatup777 For This Useful Post:

    whit (09-09-2010)

  24. #15
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    Quote Originally Posted by whatup777 View Post
    he's like frosty the snowman. He'll be back another day. /

    See ya whit. Ima miss you.
    Laters Homes...

Page 1 of 3 123 LastLast

Similar Threads

  1. [TUT]How to make a simple Auto Clicker!
    By Takari in forum Programming Tutorials
    Replies: 24
    Last Post: 09-20-2010, 07:28 PM
  2. WPS Auto-Click -- AutoIt 3 SOURCE + TUT
    By Grim in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 21
    Last Post: 12-14-2009, 07:27 PM
  3. [Tut][Visual Basic][Snippet][C&P] Resizing a Window to a photosize
    By CoderNever in forum Visual Basic Programming
    Replies: 4
    Last Post: 11-17-2009, 08:26 AM
  4. [Release] ddd555 pub working without auto install, + tut
    By mariofan901 in forum Combat Arms Hacks & Cheats
    Replies: 65
    Last Post: 09-18-2009, 10:37 PM
  5. [TUT] How to make an auto typer
    By SkyReborn in forum Visual Basic Programming
    Replies: 5
    Last Post: 09-06-2009, 11:26 PM