U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Key in DropList cannot be same
Re: Key in DropList cannot be same [message #14177 is a reply to message #14152] Mon, 18 February 2008 07:22 Go to previous messageGo to previous message
bonami is currently offline  bonami
Messages: 186
Registered: June 2007
Location: Beijing
Experienced Member
input your IP, port, IP, port from left to right.
keep UDP selected.
write sth.
press "send"
the message is then sent through the network loop and received at the right side.

send multiple messages. then choose one from the DropList on top of the incoming message text field.
whatever you choose, the first message will be shown, because of the location/key problem.

explanation: the incoming message history DropList's key is the peer's index in another std::list. So messages from same peers have same keys and there is no way to differ them by Find() or GetIndex(). The only way is to go through all the items.

hope i've made it clear. thank you.
 
Read Message icon9.gif
Read Message
Read Message
Read Message
Read Message icon14.gif
Read Message
Read Message
Read Message
Read Message
Previous Topic: Two questions on U++
Next Topic: Layout and Paint event processing
Goto Forum:
  


Current Time: Tue Jul 28 13:29:55 GMT+2 2026

Total time taken to generate the page: 0.00596 seconds