combo box selection changes (in particular
CSpectatorMenu::OnTextChanged() ).
- Alfred
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Heritage
Sent: Tuesday, May 03, 2005 10:04 PM
To: hlcoders@list.valvesoftware.com
Subject: Re: [hlcoders] vgui event
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
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
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
--
[ Picked text/plain from multipart/alternative ]
As long as you understand because I think you've lost me. :p
On 5/4/05, Heritage [EMAIL PROTECTED] wrote:
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
Did you work with the hl1 sdk? There was a way to create your own
custom action signal and input signal classes which you then used to
catch events like mouse over and click or whatever.
Basically, what i am saying is, creating a new class to intercept
fundamental event messages is stupid. For
Sent: Tuesday, May 03, 2005 10:04 PM
To: hlcoders@list.valvesoftware.com
Subject: Re: [hlcoders] vgui event question?
Did you work with the hl1 sdk? There was a way to create your own custom
action signal and input signal classes which you then used to catch
events like mouse over and click
--
[ 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
8 matches
Mail list logo