Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
10-19-2012 07:01 PM
This might be a very simple question, but I can't find any examples to figure it out with. I want to use screen_set_group_property_iv, the first argument is of type screen_group_t. But when you create a screen group, you do it with a const char*. screen_group_t doesn't appear to be defined as cont char*. So what is the proper way to reference the group ID that I created for use in this function? Can I just cast my ID string to screen_group_t?
10-20-2012 12:29 AM - edited 10-20-2012 12:30 AM
there are around a dozen references to screen_group_t in screen.h.
This one may be of interest:
10-20-2012 02:53 AM
10-20-2012 10:22 PM
You can't arbitrarily look up a screen_group_t by name, but screen_get_window_property_pv() can be used to retrieve a screen_group_t from a window with the SCREEN_PROPERTY_GROUP type.
It can also be queried from some other objects, like events... scan the docs for SCREEN_PROPERTY_GROUP:
10-20-2012 10:27 PM
fyi, the reason you aren't typically permitted to look up groups or windows by name is that it's a security/usability concern. If you start messing around with the internals of some of these objects without the knowledge of the intermediate framework, it can lead to state being out-of-sync, things misbehaving visually, or crashes. (eg. imagine changing the source buffer dimensions of a video window or cascades UI while rendering code is running).