title: Touch Event in blackberry
body: <p>I have created a VerticalFieldmanager optFieldManager
  in which i have added some CustomButtons
  Then i want to invoke the button's functionality using touch event method
  i tried this using the TouchEvent() method
  For this i do fetch the index of optFieldManager which gives the index value as 0
  which confirms that the field is present
  But then i again ask for the field inside the manager which returns -1 value which means there is no field added to Manager ... which isn't true
  I debugged the code and found that the clicked postions are correctly returned </p>
  
  <pre><code>int index1=optionVertFldMgr.getFieldAtLocation(message.getX(1), message.getY(1)); 
  </code></pre>
  
  <p>but the index1 value comes as -1 which is wrong </p>
  
  <p>what's the problem </p>
  
  <p>I have added the snippet of code below</p>
  
  <pre><code>protected boolean touchEvent(TouchEvent message) {
  
              switch(message.getEvent())
              {
  
              case TouchEvent.CLICK:
              {
                  int index=getFieldAtLocation(message.getX(1), message.getY(1));
                  //int index1=optionVertFldMgr.getFieldAtLocation(message.getX(1), message.getY(1));
                  if(index!=-1)
                  {
                      Field field=getField(index);
                      if(field.equals(optionVertFldMgr))  
                      {
  
                          int index1=optionVertFldMgr.getFieldAtLocation(message.getX(1), message.getY(1));
                          System.out.println("HELOOOOOOO"+((VerticalFieldManager) field).getFieldAtLocation(message.getX(1), message.getY(1)));
                          //int index1=optionVertFldMgr.getFieldWithFocusIndex();
                          if(index1&gt;-1)
                          {
                              Field fld=optionVertFldMgr.getField(index1);
                              if(fld.equals(m_agendaBtn))
                              {
                                  fld.setFocus();
                                  return true;
                              }else if(fld.equals(m_eventFeedBackBtn))
                              {
                                  fld.setFocus();
                                  UiApplication.getUiApplication().pushScreen(new EventFeedbackScreen());
                                  return true;
                              }
                          }
                      }
                  }
              }
              }
              return false;
              }
  </code></pre>