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