-- [ Picked text/plain from multipart/alternative ] Let's call your frame: frame_A and the panel in your frame: panel_A.
Make sure you are creating another message when panel_A receives a message. So in panel_A's OnMouseEvent function, there should be code to build a new KeyValue with the same data and PostMessage to panel_A's parent. If you've already done all that and it still doesn't work, lemme know. On 5/13/07, Mark Chandler <[EMAIL PROTECTED]> wrote: > > OK im having a problem with vgui messages. > > Currently I have a frame that has images and one panel on it. And on that > panel are more images. > > Now I have coded in the ImagePanel class to send a message when its > clicked > on: > > void ImagePanel::OnMousePressed(MouseCode code) > { > if ( GetParent() ) > { > KeyValues *msg = new KeyValues("MouseEvent"); > msg->SetString("event", "MousePressed"); > msg->SetString("name", GetName()); > PostMessage(GetParent(), msg); > } > BaseClass::OnMousePressed(code); > } > > Ive hooked the messages using: MESSAGE_FUNC_PARAMS( OnMouseEvent, > "MouseEvent", data ); > Now all images on the frame return the message, but I cant get images on > the > panel to return the messages to the panel. > > Any one have any ideas? > > Mark > > > > _______________________________________________ > 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