In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.
Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.
METHOD Command( nNotifyCode ) CLASS XComboBox
DO CASE
......
CASE nNotifyCode == CBN_CLOSEUP
::OnCloseUp()
RETURN 0
......
ENDCASE
RETURN ::Super:Command( nNotifyCode )
And do not ask me why, Microsoft decided to send the message CBN_CLOSEUP before changing its underlying value. I suggest you use the OnChange event instead of OnCloseUp.
Hi,
I think the Xailer needs some additional code to fix. On Lazarus it worked. In Xailer it works only with the csDROPDOWNLIST style.
With the OnChange event it doesn't work either. After selection cText is out of date.
And the proper event depends on the logic applied to the form, I'm using 3 combobox events.
ignacio escribió: ↑Mar Ene 04, 2022 2:01 pm
And do not ask me why, Microsoft decided to send the message CBN_CLOSEUP before changing its underlying value. I suggest you use the OnChange event instead of OnCloseUp