Quantcast
Channel: MicroStation Programming - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 1677

Re: [v8 2004 MDL] Dummy DITEM_MESSAGE_STATECHANGED event is triggerred for combobox

$
0
0

Brien Bastings:

Are you checking the "reallyChanged" flag in your item hook?

case DITEM_MESSAGE_STATECHANGED:
    {
    if (!dimP->u.stateChanged.reallyChanged)
        break;

    // Do something...
    }

 

Hi Brien,

Thank you. I tested reallyChanged flag and when I select something from combo menu it comes 1, when dummy event occurred, it comes 0. So, I didn't use it. Actually on some other cases, reallyChanged flag sometimes brings meaningless values.

With combobox I am using ListCell item. Each ListCell item has its internal value. After testing mdlListCell_getStringValue() as SUCCESS, the problem is solved and dummy event is not triggered. This was very interesting.

Regards,

Ahmet Sedat ALIS


Viewing all articles
Browse latest Browse all 1677

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>