Take a look at the following code: KeyValues* kv = new KeyValues( "myMessage", "p1", 1, "p2", 2 ); m_pInventoryButtons[i]->SetCommand( kv );
Are the KeyValues managed by the panel (deleted when changed or when panel is deleted) or do I have to take care of deleting them? _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders