Join Our 3 MILLION+ Members Today! Register Here | Login
Go Back   BlackBerry Forums at CrackBerry.com > BlackBerry Professionals > App Developers

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
    Thread Author   #1  
Old 05-04-2011, 10:04 AM
CrackBerry Abuser
Device(s): Unlocked 9700 (Bold) / 32GB Playbook
Carrier: Rogers
Pin: hrm...
 
Location: Toronto, Canada
Join Date: Nov 2010
Posts: 263
Likes Received: 2
Thanked 16 Times in 15 Posts
Default how to manipulate bb options menu navigation to enable/disable a function?

Hello, I am new to blackberry app dev and I am wondering if its possible to open the options menu and manipulate the menu to navigate to a specfic setting and enable/disable such setting?

Any insight is appreciated. I am not looking for a handout just a point in the right direction.

Thanks


EDIT: While researching I came across net.rim.device.api.system.EventInjector. It appears using this class I will be able to use EventInjector.NavigationEvent to manipulate a navigation movement and EventInjector.KeyCodeEvent to inject a keypress similar to a shortcut press or EventInjector.KeyEvent to represents the input of a character and not the actual event of a key being pressed.

How would I go about using these classes to say open the options and navigate to an option and click it?
Posted from my CrackBerry at wapforums.crackberry.com

Last edited by Justam; 05-04-2011 at 02:46 PM.
Reply With Quote Tip this Post
  #2  
Old 05-19-2011, 07:33 AM
CrackBerry User
 
Join Date: May 2011
Posts: 20
Likes Received: 1
Thanked 12 Times in 2 Posts
Default

Probably i'm doing wrong, but my solution is:
create function that draws buttons, something like

void drawbuttons(long Style)
{
horizonalFieldManager.add(new ButtonField("name", Style))
}

function that deletes buttons:

void deletebuttons()
{
horizaontalFieldManager.deleteAll();
}

Status could be the following
Status = Field.FOCUSABLE
Status = Field.NON_FOCUSABLE

So if i want to change button status, i'm deleting buttons using deletebuttons(), then change Status varuable, and then call drawbuttons(Status);

Somethink like that. I could be wrong, but it works.
Reply With Quote Tip this Post
Reply
BlackBerry Forums at CrackBerry.com > > BlackBerry Professionals > App Developers   how to manipulate bb options menu navigation to enable/disable a function?

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes