RE: [hlcoders] I need an example of adding tab control for vgui

2005-04-29 Thread Ian Warwick
You could use an array of buttons on a panel, you could possibly use one of those cool handy vector collection type thingies for the array so you can easily add new tabs to the strip, all you would need to do is handle a click event to change the background of a button (to make it look selected)

RE: [hlcoders] I need an example of adding tab control for vgui

2005-04-29 Thread Alfred Reynolds
Look at PropertySheet and PropertyPage, they are provide a tabbed interface. - Alfred -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ian Warwick Sent: Thursday, April 28, 2005 11:58 PM To: hlcoders@list.valvesoftware.com Subject: RE: [hlcoders] I need

Re: [hlcoders] I need an example of adding tab control for vgui

2005-04-29 Thread Heritage
thx guys, that was quick On 4/29/05, Alfred Reynolds [EMAIL PROTECTED] wrote: Look at PropertySheet and PropertyPage, they are provide a tabbed interface. - Alfred -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ian Warwick Sent: Thursday, April

Re: [hlcoders] I need an example of adding tab control for vgui

2005-04-29 Thread Heritage
PropertySheet Doest seem to like it, I have tried a bunch of different header files #include prsht.h #include vgui_controls/PropertySheet.h doest seem to work which headers does this control require? On 4/29/05, Heritage [EMAIL PROTECTED] wrote: thx guys, that was quick On 4/29/05, Alfred

Re: [hlcoders] I need an example of adding tab control for vgui

2005-04-29 Thread Heritage
oh nm, i got it, i guess i needed the cpp file too #include D:\\src\\vgui2\\controls\\PropertySheet.cpp you need to define everyhting in the headers plz! or maybe im an idiot, either way! g... On 4/29/05, Heritage [EMAIL PROTECTED] wrote: PropertySheet Doest seem to like it, I have

Re: [hlcoders] I need an example of adding tab control for vgui

2005-04-29 Thread Heritage
Ok, got everything working! This is a lot eaiser than hl1! One more quick question as i am now beginning my vgui development. the keyword new is overloaded correct? In other words, I dont need to call delete for vgui controls like frames panels and whatever? On 4/29/05, Heritage [EMAIL

Re: [hlcoders] I need an example of adding tab control for vgui

2005-04-29 Thread NuclearFriend
-- [ Picked text/plain from multipart/alternative ] You don't need to include all the controls seperately just ensure vgui_controls.lib is in your project (found in lib/public). On 4/29/05, Heritage [EMAIL PROTECTED] wrote: Ok, got everything working! This is a lot eaiser than hl1! One more

Re: [hlcoders] I need an example of adding tab control for vgui

2005-04-29 Thread SB Childe Roland
new is a compiler command. I'm pretty sure that you have to call delete for everything that you create with new. Someone please correct me if I'm wrong about the SDK. On 4/29/05, Heritage [EMAIL PROTECTED] wrote: Ok, got everything working! This is a lot eaiser than hl1! One more quick

Re: [hlcoders] I need an example of adding tab control for vgui

2005-04-29 Thread James Williams
On 4/29/05, SB Childe Roland [EMAIL PROTECTED] wrote: new is a compiler command. I'm pretty sure that you have to call delete for everything that you create with new. Someone please correct me if I'm wrong about the SDK. Not exactly... new is actually an operator, which can be overloaded

RE: [hlcoders] I need an example of adding tab control for vgui

2005-04-29 Thread Alfred Reynolds
Do NOT call delete directly on VGUI2 panels, use the MarkForDeletion() member function instead to free panels. You should use new to create panels. You also do not have to explicitly delete panels on exit, when VGUI2 shuts down it will delete any allocated panels. - Alfred -Original

RE: [hlcoders] I need an example of adding tab control for vgui

2005-04-29 Thread Alfred Reynolds
Have a look at memoverride.cpp, we use that file along with code in tier0.dll to manage (and track) our own heap allocations (and to have a single heap for the entire process, rather than one per dll). - Alfred -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On

Re: [hlcoders] I need an example of adding tab control for vgui

2005-04-29 Thread Heritage
Thanks Alfred, I figured it was like that but thought I should ask before I call new 1000 times a in row, lol. On 4/29/05, Alfred Reynolds [EMAIL PROTECTED] wrote: Have a look at memoverride.cpp, we use that file along with code in tier0.dll to manage (and track) our own heap allocations (and