Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages | Examples

browser.c

Example of launch_browser().
/*
 * Copyright (C) 2003 BLADOX, s.r.o.  All rights reserved.
 * 
 * This file is part of an example program for Turbo. This example
 * program may be used, distributed and modified without limitation.
 *
 */

#include <config.h>
#include <turbo/turbo.h>

u8 PROGMEM t_Foo_en[] = "Browser";
u8 PROGMEM t_url[] = "http://www.bladox.com/index.wml";

void action_menu (void *data)
{
  launch_browser (t_url, Q_LAUNCH_BROWSER_NEW);
}

void turbo_handler (u8 action, void *data)
{
  switch (action)
  {
    case ACTION_INSERT_MENU:
      insert_menu (t_Foo_en);
      break;
    case ACTION_MENU_SELECTION:
      stk_thread (action_menu, data);
      break;
    default:
      break;
  }
}


Copyright © 2004-2006 BLADOX
Turbo version 1.2