03-11-2013 10:21 PM
I'd like to retrieve the screen_display_t object at some point in my Cascades application. Since I am letting the operating system do all of the UI creation, I do not have direct knowledge of the context object which means I don't know how to retrive the display object.
What's the best way to retrive the display object?
03-12-2013 06:21 PM
You can retrieve a SCREEN_PROPERTY_DISPLAY from a window handle, but you first need a window handle. Try just creating a new context and new window and reading this value. If you are concerned about multi-display stuff, maybe you can attach the window to a ForeignWindowControl in your app first.
Curious what you're trying to do.
03-12-2013 07:06 PM
03-12-2013 07:19 PM
03-14-2013 02:18 PM
Every window in Cascades has 'handle' property. This is your screen_window_t handle to the window in Native world. Use it to get display as Sean mentioned above.