Results 1 to 2 of 2

Thread: Plugin question

  1. #1
    Low Bitrate
    Join Date
    Oct 2006
    Posts
    101

    Plugin question

    Hopefully this is an easy one:

    I'm new to C#, but am trying to learn. I've got a basic plugin window built, but I need to populate it with data from CF.

    Here's the code (where I'm pretty sure where it goes):
    Code:
    				//---------------------------------------------------------------------------
    				// create labels 
    				//---------------------------------------------------------------------------
    				
    				this.CF_createLabel("LBLCITY");
    				this.CF_updateText("LBLCITY", TranslateText("LBLCITY"));
    				this.CF_createLabel("ZPANEL3");
    				this.CF_updateText("ZPANEL3", TranslateText("ZPANEL3"));
    				this.CF_createLabel("LBLLONGLAT");
    				this.CF_updateText("LBLLONGLAT", TranslateText("LBLLONGLAT"));
    				this.CF_createLabel("ZPANEL2");
    				this.CF_updateText("ZPANEL2", TranslateText("ZPANEL2"));
    				this.CF_createLabel("ZPANEL1");
    				this.CF_updateText("ZPANEL1", TranslateText("ZPANEL1"));
    what I need is for:
    lbllonglat to be the current longitude & latitude
    lblcity to be the current city, state & zip

    The code above is from 'localskinsetup' section. I'm guessing that I actually need the code to assign the data to be in the CF_PluginShow section. But, the main thing I need to know is how to set the label text to the current data.

    Any help would be great.

  2. #2
    Low Bitrate
    Join Date
    Oct 2006
    Posts
    101
    It took these 2 lines of code in the 'pluginshow' section:
    Code:
                this.CF_updateText("LBLLONGLAT", TranslateText(CF_getGPSInfo(CF_GPSInfo.LONGITUDE)) + " / " + TranslateText(CF_getGPSInfo(CF_GPSInfo.LATITUDE)));
                this.CF_updateText("LBLCITY", TranslateText(CF_getGPSInfo(CF_GPSInfo.CITY)) + " " + TranslateText(CF_getGPSInfo(CF_GPSInfo.ZIP)));

Similar Threads

  1. [request] Flash plugin
    By marazi in forum CF Plugins
    Replies: 0
    Last Post: 01-17-2008, 11:15 AM
  2. Garo's Extra POI Plugin 1.0 beta 1
    By garo in forum Map Monkey
    Replies: 63
    Last Post: 01-18-2007, 01:32 PM
  3. can't get plugin to work. help please
    By binh in forum DragonBTV's CarPC Plugins
    Replies: 2
    Last Post: 06-05-2005, 05:48 AM
  4. newbie question location trigger plugin
    By johnn4711 in forum Centrafuse
    Replies: 1
    Last Post: 04-28-2005, 10:19 AM
  5. question about medio plugin
    By thanatos106 in forum Wireless Communications
    Replies: 0
    Last Post: 04-16-2005, 10:51 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •