comparison android/dw.cpp @ 2577:6fdab466d7a2

Android: Fix notebook page change event page always being 0. iOS: Commit a lingering DWMenu fix, menubar might not initialize array.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sat, 22 May 2021 10:00:31 +0000
parents bbe693293be5
children a36448beb7f7
comparison
equal deleted inserted replaced
2576:db097ec28c90 2577:6fdab466d7a2
519 /* Handler for notebook page changes */ 519 /* Handler for notebook page changes */
520 JNIEXPORT void JNICALL 520 JNIEXPORT void JNICALL
521 Java_org_dbsoft_dwindows_DWindows_eventHandlerNotebook(JNIEnv* env, jobject obj, jobject obj1, jint message, jlong pageID) { 521 Java_org_dbsoft_dwindows_DWindows_eventHandlerNotebook(JNIEnv* env, jobject obj, jobject obj1, jint message, jlong pageID) {
522 void *params[_DW_EVENT_PARAM_SIZE] = { nullptr }; 522 void *params[_DW_EVENT_PARAM_SIZE] = { nullptr };
523 523
524 params[3] = DW_INT_TO_POINTER(pageID);
524 params[8] = DW_INT_TO_POINTER(message); 525 params[8] = DW_INT_TO_POINTER(message);
525 _dw_event_handler(obj1, params); 526 _dw_event_handler(obj1, params);
526 } 527 }
527 528
528 /* Handlers for HTML events */ 529 /* Handlers for HTML events */