Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - weigi

Pages: [1]
1
How Do I...? / Turning Page
« on: August 25, 2015, 05:53:53 am »
Hi Guys
I am looking for a example how to turn a page or a Card by pressing a button.
Thanks in advance
weigi

2
Non-Game Programming / Re: browser launch
« on: November 15, 2012, 02:41:15 pm »
Hi xabras
Thanks for your input. One step further.

But the Webpage will start emediately when i go to the
case 7:
      nCurrentScreen = SCREEN_6_1;
      sprintf(URL, "http://itunes.apple.com/us/app/ditto/id363392316?mt=8&ls=1");
      break;

what does i have to do that the webpage opens when i push the button in container 6_1?

   // Populate container 6 see
   ViewAdd(nContainer6, "Images/Blanko_320x480.png", 0, 0);
   
   ButtonAdd(nContainer6, "Images/RoundedButton", 8, 13, OnButton, 0); //OnButton6 Screen 2
   TextAdd(nContainer6, 20, 23, "Auswahl", nFont);

   ButtonAdd(nContainer6, "Images/Pfeil_blauHG", 270, 430, OnButton, 7); //OnButton5 Screen 3


      ViewAdd(nContainer6_1, "Images/bgweiss320-480.png", 0, 0); //Screen6_1 
      ButtonAdd(nContainer6_1, "Images/Pfeil_blauback", 270, 430, OnButton, 6); //OnButton6_1 Screen 6
      AppStoreButton = ButtonAdd(nContainer6_1, "Images/AppStore", 10, 60, OnButton, 7);

3
Non-Game Programming / Re: browser launch
« on: November 15, 2012, 12:56:50 pm »
Nobody can help??  :'(
I still have no idea how to use web launch it would be really great if somebody could help
it is probably usefull if i print the code here.
Once again i would like to start a browser lauch from the menu but it wont work. If i touch the button Appstore nothin happens.

#include "DragonFireSDK.h"

int AppStoreButton;

enum Screen
{
   SCREEN_1,
   SCREEN_6,
   SCREEN_6_1,
};

Screen nCurrentScreen = SCREEN_1;

int nContainer1;
int nContainer6;
int nContainer6_1;
//int FontLarge;

int nFont;

// This function refreshes the screen
void UpdateScreen()
{
   

   ContainerSetVisible(nContainer1, 0);
   ContainerSetVisible(nContainer6, 0);
   ContainerSetVisible(nContainer6_1, 0);



   switch(nCurrentScreen)
   {
   case 0:
      ContainerSetVisible(nContainer1, 1);
      break;

        case 5:
      ContainerSetVisible(nContainer6, 1);
      break;
   case 6:
      ContainerSetVisible(nContainer6_1, 1);
      break;
   
   };

   
}

int OnButton(int id)

{
   

    //******************* webzugriff
     char URL[300];
    //*******************

   switch(id)
   {
   case 0:
      nCurrentScreen = SCREEN_2;
      break;

   case 6:
      nCurrentScreen = SCREEN_6;
      break;
   case 7:
      nCurrentScreen = SCREEN_6_1;
      sprintf(URL, "http://itunes.apple.com/us/app/ditto/id363392316?mt=8&ls=1");
      break;
   
   }

   UpdateScreen();
   return id;

    BrowserLaunch(URL);  //web
    return(1);  //web

   
}

// This function marks the beginning of program execution
void AppMain()
{
   nContainer1 = ContainerAdd(0, 0, 0); //Start
   nContainer6 = ContainerAdd(0, 0, 0); //see
   nContainer6_1 = ContainerAdd(0, 0, 0); //Details

   nFont = FontAdd("Helvetica", "Regular", 12, 0x000000);



   // Populate container 1 START
   ViewAdd(nContainer1, "Images/essox-ch2.png", 0, 0);
   
   ButtonAdd(nContainer1, "Images/RoundedButton", 8, 80, OnButton, 0); //OnButton0 Screen 2
   TextAdd(nContainer1, 24, 91, "Information", nFont);

   

    // Zurück zum Start Button
   
   ButtonAdd(nContainer2, "Images/RoundedButton", 8, 415, OnButton, 3); //OnButton3 Screen 1
   TextAdd(nContainer2, 24, 426, "Startseite", nFont);



   // Populate container 6 see
   ViewAdd(nContainer6, "Images/Blanko_320x480.png", 0, 0);
   
   ButtonAdd(nContainer6, "Images/RoundedButton", 8, 13, OnButton, 0); //OnButton6 Screen 2
   TextAdd(nContainer6, 20, 23, "Auswahl", nFont);

   ButtonAdd(nContainer6, "Images/Pfeil_blauHG", 270, 430, OnButton, 7); //OnButton5 Screen 3


      ViewAdd(nContainer6_1, "Images/bgweiss320-480.png", 0, 0); //Screen6_1 
      ButtonAdd(nContainer6_1, "Images/Pfeil_blauback", 270, 430, OnButton, 6); //OnButton6_1 Screen 6
      AppStoreButton = ButtonAdd(nContainer6_1, "Images/AppStore", 10, 60, OnButton, 7);

4
Non-Game Programming / Re: browser launch
« on: November 13, 2012, 06:08:35 am »
Hi Nico91

o3.32 am? i am imprest :).
I was trying several things like the red entry is showing.

weigi

//******************* webzugriff
     char URL[300];
//*******************

   switch(id)
   {
      case 6:
      nCurrentScreen = SCREEN_6; //Hallo
      break;
   case 7:
      nCurrentScreen = SCREEN_6_1; //Hallo_Details
      sprintf(URL, "http://itunes.apple.com/us/app/ditto/id363392316?mt=8&ls=1");
         BrowserLaunch(URL);  //web then it will open the browser if i go to screen 6_1 but it should open the browser if i hit the button.
         return(1);  //web}
     
      break;
   
   };
{
    BrowserLaunch(URL);  //web  it will not start "cannot find or open the pdb file"
    return(1);  //web}

}

   UpdateScreen();

   return id;

   BrowserLaunch(URL);  //web
               return(1);  //web}

5
Non-Game Programming / browser launch
« on: November 12, 2012, 11:10:30 am »
Hi guys
I am a newby in programing and i am trying to implement a browserlaunch in to containers. But unfortunatelly i am no able to create a working link to a container. I think the solution is to place the BrowserLaunch(URL); to the right place. But after trying several things i cannot find the right solution  Grrrrrrr.... :'( . I hope the example down there is clear to you experts.
Thanks in advance.

weigi


//******************* webzugriff
     char URL[300];
//*******************

   switch(id)
   {
      case 6:
      nCurrentScreen = SCREEN_6; //Hallo
      break;
   case 7:
      nCurrentScreen = SCREEN_6_1; //Hallo_Details
      sprintf(URL, "http://itunes.apple.com/us/app/ditto/id363392316?mt=8&ls=1");
      break;
   
   };

   UpdateScreen();

   return id;

   BrowserLaunch(URL);  //web
               return(1);  //web
}

void AppMain()

// Populate container 6 Bielersee
   
   ViewAdd(nContainer6_1, "Images/Bielersee/bgweiss320-480.png", 0, 0); //Screen6_1 
   ButtonAdd(nContainer6_1, "Images/Pfeil_blauback", 270, 430, OnButton, 6); //OnButton6_1 Screen 6
   AppStoreButton = ButtonAdd(nContainer6_1, "Images/AppStore", 10, 60, OnButton, 6);



Pages: [1]