The only thing I can see of doing is making a few panels that are specifically for events for each vgui menu I make, and then adding this
my_button_or_checkbox_orwhatever->AddActionSignalTarget(EventPanel); then i write an OnCommand for EvenPanel to catch em. Just seems weird that panels are also used to receive events. anyway.. I'll stop my spamming now. sorry. On 5/3/05, Heritage <[EMAIL PROTECTED]> wrote: > If i have a button, on a panel or frame, and i click it, then that > panel has to be a "pseudo" panel that I made up like my_ panel which > is derived from panel and then I override the OnCommand to intercept > the event? Seems like a total waste. If I have to do that for every > panel/frame/whatever then forget it > > that makes no sense. > How do i add an action listener thing like in hl1? > > > On 5/3/05, Heritage <[EMAIL PROTECTED]> wrote: > > But you still have to overwrite a vgui panel or frame or > > something..... in order to get at OnCommand.. > > > > in C#, i can just add listeners, and in hl1, i was able to do similar > > things. I don't want nor need to make another vgui class. I just want > > a custom listener. > > > > > > On 5/3/05, Heritage <[EMAIL PROTECTED]> wrote: > > > Oh I get it, thanks > > > > > > On 4/29/05, NuclearFriend <[EMAIL PROTECTED]> wrote: > > > > -- > > > > [ Picked text/plain from multipart/alternative ] > > > > In CTextWindow, look at how the button m_pOk is declared and then how > > > > OnCommand recieves the button command.. > > > > > > > > On 4/29/05, Heritage <[EMAIL PROTECTED]> wrote: > > > > > > > > > > I'd like to subscribe to an event such as a button click, im having > > > > > kinda of a hard to understanding how to do this. I read thu the > > > > > documentation but its still unclear to me. I dont want to derive a new > > > > > button class just to overwrite OnClick or OnCommand or OnWhatever, I > > > > > just need to subscribe to that event. I'm having a hard time finding > > > > > examples, or maybe im looking in the wrong places, or maybe this is > > > > > not the way it works? > > > > > > > > > > _______________________________________________ > > > > > To unsubscribe, edit your list preferences, or view the list archives, > > > > > please visit: > > > > > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > > > > > > > > > > > > > > > > > -- > > > > Programmer for RnL > > > > www.resistanceandliberation.com <http://www.resistanceandliberation.com> > > > > -- > > > > > > > > _______________________________________________ > > > > To unsubscribe, edit your list preferences, or view the list archives, > > > > please visit: > > > > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > > > > > > > > > > > > > _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders