Example #1
0
void set_softkey(void) {
    static Softkey s;
    strcpy(s.text, "Not there");
    s.callback = softkey_callback;

    roadmap_softkeys_set_right_soft_key("Alerter", &s);
}
Example #2
0
static void set_softkeys(SsdDialog d){
   static Softkey right,left;
   SsdWidget container;

   if (d->scroll_container)
      container = d->scroll_container;
   else
      container = d->container;

   if (container->right_softkey)
      strcpy(right.text, container->right_softkey);
   else
      strcpy(right.text, "Back_key");

   right.callback = right_softkey_callback;
   roadmap_softkeys_set_right_soft_key(d->name, &right);

   if (container->left_softkey)
      strcpy(left.text, container->left_softkey);
   else
      strcpy(left.text, "Exit_key");
   left.callback = left_softkey_callback;
   roadmap_softkeys_set_left_soft_key(d->name, &left);
}