Mercurial > dwindows
diff android/dw.cpp @ 2835:1f0017a07771
Android: Implement DW_SIGNAL_COLUMN_CLICK for containers in
DW_CONTAINER_MODE_MULTI.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 12 Sep 2022 18:53:47 +0000 |
parents | 0cbe8201db3c |
children | da90bf6d0564 |
line wrap: on
line diff
--- a/android/dw.cpp Mon Sep 12 10:13:24 2022 +0000 +++ b/android/dw.cpp Mon Sep 12 18:53:47 2022 +0000 @@ -765,6 +765,17 @@ } JNIEXPORT void JNICALL +Java_org_dbsoft_dwindows_DWContainerAdapter_eventHandlerInt(JNIEnv* env, jobject obj, jobject obj1, + jint message, jint inta, jint intb, jint intc, jint intd) { + void *params[_DW_EVENT_PARAM_SIZE] = { nullptr, nullptr, nullptr, + DW_INT_TO_POINTER(inta), DW_INT_TO_POINTER(intb), + DW_INT_TO_POINTER(intc), DW_INT_TO_POINTER(intd), nullptr, + DW_INT_TO_POINTER(message), nullptr }; + + _dw_event_handler(obj1, params); +} + +JNIEXPORT void JNICALL Java_org_dbsoft_dwindows_DWindows_eventHandlerContainer(JNIEnv* env, jobject obj, jobject obj1, jint message, jstring jtitle, jint x, jint y, jlong data) { const char *title = jtitle ? env->GetStringUTFChars(jtitle, nullptr) : nullptr;