Centrafuse Carputer, CarPC & UMPC Forums

Go Back   Centrafuse Carputer, CarPC & UMPC Forums > 3rd Party Development > Plugin Development

Plugin Development Extend the functionality of Centrafuse by developing plugins


Reply
 
LinkBack Thread Tools Display Modes
Old December 11th, 2007, 04:57 AM   #1 (permalink)
Newbie - Zero Capacity
 
Join Date: Dec 2007
Posts: 1
andresv is on a distinguished road
Display plugin data in main window.

I have couple of questions on plugin capabilities.

I have little hardware that measures inside and outside temperature. Now I'm wondering is it possible to display these temperature readings in nearby time and date. And that they will be always visible as time and date is.

Second question - is it possible to display that same information on LCD using existing VFD plugin.
andresv is offline   Reply With Quote
Old December 11th, 2007, 10:46 AM   #2 (permalink)
Administrator
David's CarPC Specs
 
David's Avatar
 
Join Date: Oct 2004
Location: Atlanta, GA
Posts: 5,012
David has disabled reputation
do not currently have the ability for you to output to the VFD, I can look into this later...

you can create a plugin with a form that always shows, and is set to TopMost possibly and make it always show on top the application...

david
David is offline   Reply With Quote
Old December 21st, 2007, 04:05 PM   #3 (permalink)
7 Farad - Super Capacity
kmp14's CarPC Specs
 
Join Date: May 2007
Posts: 137
kmp14 is on a distinguished road
I have the same question about a plugin always being visible. I tried TopMost, and that did not work. How do I specify that the form "always shows"? thanks.
kmp14 is offline   Reply With Quote
Old December 21st, 2007, 04:48 PM   #4 (permalink)
Administrator
David's CarPC Specs
 
David's Avatar
 
Join Date: Oct 2004
Location: Atlanta, GA
Posts: 5,012
David has disabled reputation
if you set the Visible in the pluginInit and set it to TopMost... Change visible and do not use ShowDialog, because that will not show ontop of the navigation screen...

what is it doing?

david
David is offline   Reply With Quote
Old December 27th, 2007, 10:08 AM   #5 (permalink)
7 Farad - Super Capacity
kmp14's CarPC Specs
 
Join Date: May 2007
Posts: 137
kmp14 is on a distinguished road
Sorry for the delay in responding. I do set the plugin to Visible = true in the pluginInit, and set the Form to TopMost, but it does not show unless I add a button for the plugin and click it. I am not using ShowDialog. Any other tips would be appreciated!
kmp14 is offline   Reply With Quote
Old December 28th, 2007, 06:33 PM   #6 (permalink)
7 Farad - Super Capacity
kmp14's CarPC Specs
 
Join Date: May 2007
Posts: 137
kmp14 is on a distinguished road
Got it to work. I did not need to set the Form to TopMost. What I did was set the visible = true in the pluginInit, AND added an event handler for the visibleChanged event:

Code:
//in CF_pluginInit()
this.Visible = true;
this.VisibleChanged+= new EventHandler(heading_VisibleChanged)

//add method
private void heading_VisibleChanged(object sender, EventArgs e)
{
     this.Visible = true;
}
This makes sure the plugin is always visible, even when CF automatically hides it. Also, you do not need to create a button for when doing this. It will automatically start and show when CF starts. If you don't want it to start automatically, remove the this.Visible = true; in the CF_pluginInit() and add a button. (haven't tried this, think it would work).

Ken

Last edited by kmp14; December 28th, 2007 at 06:35 PM. Reason: typo
kmp14 is offline   Reply With Quote
Reply

Bookmarks

Tags
data, display, main, plugin, window

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:22 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright ©2009 Flux Media, Inc. All rights reserved.Ad Management plugin by RedTyger