الرئيسية > dev > api > name > gb.raise 
 en fr de es it nl pl pt pt_BR mk sq ca hu cs tr fa id vi ko ja ru zh zh_TW eo
السابق  التالي  تحرير  إعادة تسمية  تراجع  بحث  الإدارة  
المستندات  
تحذير! هذه الصفحة لم يتم ترجمتها.  See english version 
GB.Raise
int GB.Raise ( void *object , int id , int nparam , ... )

This functions raises an event.

After the nparam argument, you must pass the event handler arguments in order.

You must pass first the type of the argument, by using a api/cat/datatype, and then the value of the argument. Then you repeat this process for each argument. See api/cat/call for more information.

The function returns TRUE to indicate that the event has been canceled by the event handler.

مثال


// Here is how the QT component sends a keyboard event.

drop = GB.Raise(control, event_id, 3,
         GB_T_STRING, TO_UTF8(kevent->text()), 0,
         GB_T_INTEGER, kevent->key(),
         GB_T_INTEGER, kevent->state());

إنظر أيضا

api/cat/event