简体   繁体   中英

BlackBerry 10: Cascades and ForeignWindow

I am using the Cascades UI and I need to use ForeignWindow in order to develop a control which will show an image will be able to zoom and pan in it. The ImageView control simply is incapable of doing this.

My question is: how and where am I supposed to handle touch events (in order to pan or zoom) for the window I am going to use as ForeignWindow. Regarding that unlike the native SDK which uses an event loop, Cascades applications use App as a main class, so where am I supposed to handle the screen_event_t and/or gesture events I would normally handle if I were developing in Native for a window?

In cascades you can add your code inside the APP class which is main class. You can add method inside the APP.cpp file and it will works.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM