Trigger an event using code

Started by Lube · 2015-11-06 09:53 UTC · 3 replies · SMF topic #2327

Hello guys, I've a question!
Is it possible to trigger an event without using the mouse? Directly from source code?
(defun c:Pippo/Main/R_fuoco#OnSelChanged (ItemIndexOrCount Value /)
  (verifica_R (/ (dcl-ComboBox-GetItemData Pippo/Main/R_fuoco ItemIndexOrCount) 1.0))
)

Thanks :)
Dennis
I'm doing it this way:
(c:Pippo/Main/R_fuoco#OnSelChanged (dcl-ComboBox-GetCurSel Pippo/Main/R_fuoco) T)

But I'm not sure if it's the best way
Yes, I also use this. Fred
Thanks Fred