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.
Bookmarks