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 July 28th, 2006, 03:12 PM   #1 (permalink)
Newbie - Zero Capacity
 
Join Date: May 2006
Location: NY
Posts: 4
Red Monkey
Send a message via AIM to Red Monkey Send a message via MSN to Red Monkey
redrawing plugin skin over an external app embeded in plugin

I am creating a plugin for iguidance in CF, I have been successfull in creating a plugin that loads ig, kills the nag screen and makes ig a child window and places it neatly in the plugin area. I want to have the menu bar on the skin of my plugin show ontop of the top part of the child ig window so that I can put cf controls there to send vkeys to ig.

I am using winAPI's MoveWindow() function to ajust the position of the ig window in the plugin and i want to hide the ig menu bar under the plugin titlebar.

for example if I use: MoveWindow(mywindow, -2, -40, this.Width +2, this.Height +40, true) the result is that the ig menu bar is off the top and the window boarder off the sides and out of sight. if i canged the -40 to +51 then the ig winodw would apear below my skins menu bar but the ig menu will still be visible.

hope this makes sense, anyone have any ideas?
Red Monkey is offline   Reply With Quote
Old August 1st, 2006, 01:51 AM   #2 (permalink)
Newbie - Zero Capacity
 
Join Date: May 2006
Location: NY
Posts: 4
Red Monkey
Send a message via AIM to Red Monkey Send a message via MSN to Red Monkey
Progress

I have been able to get alittle more working, sorry my question above was alittle vague.

I have been able to circumvent the problem by embeding iguidance into a windows panel control and then embedding the panel into cf. The reason i chose the panel control is that i could not find a CF control that would take a IntPtr. Is there a way to do this? as it would solve part 2 below, and allow the control to have its sizes changed in the skin file.

Part 2: Assuming that i cannot use a CF control and must use the windows panel, how do i resize the panel when skin size changes?

Any thoughts on the methods i am using to solve the problem are welcome, even if you think i am going about this entirely wrong, I am sorta winging it, and might have missed a better way.

here is a screenshot


Thanks in advance,

Brian
Red Monkey is offline   Reply With Quote
Old August 1st, 2006, 11:01 AM   #3 (permalink)
Administrator
David's CarPC Specs
 
David's Avatar
 
Join Date: Oct 2004
Location: Atlanta, GA
Posts: 5,012
David has disabled reputation
You would want to use a Panel or PictureBox, not a CF control for the embedding... CF controls are nothing more than structs with custom painting...

Look at the web browser for an example... you have a Height and Width Ratio made available to you. You multiple your X,Y,With,Height of the panel by the ratio, which will automatically be calculated for you...

david
David is offline   Reply With Quote
Old August 1st, 2006, 12:43 PM   #4 (permalink)
Newbie - Zero Capacity
 
Join Date: May 2006
Location: NY
Posts: 4
Red Monkey
Send a message via AIM to Red Monkey Send a message via MSN to Red Monkey
Quote:
Originally Posted by david
You would want to use a Panel or PictureBox, not a CF control for the embedding... CF controls are nothing more than structs with custom painting...

Look at the web browser for an example... you have a Height and Width Ratio made available to you. You multiple your X,Y,With,Height of the panel by the ratio, which will automatically be calculated for you...

david
perfect, thank you. I was just comming back on to ask about centrafuse.Plugins.SkinReader.widthratio and heightratio.

Will checkout the web plugin, wish i had thought of that sooner, you are probably embedding explorer. :roll:
Red Monkey is offline   Reply With Quote
Old August 2nd, 2006, 01:36 PM   #5 (permalink)
Newbie - Zero Capacity
 
Join Date: Apr 2006
Posts: 4
mbkowns
Send a message via AIM to mbkowns
why are you even wasting your time with IG 2.0 get 3.0 its wayyyyyyyy better.
__________________
2005 Ford Mustang GT <- - - UPDATED PICTURES
MBK (AIM = IllMBKllI)
mbkowns is offline   Reply With Quote
Old August 2nd, 2006, 03:48 PM   #6 (permalink)
Newbie - Zero Capacity
 
Join Date: May 2006
Location: NY
Posts: 4
Red Monkey
Send a message via AIM to Red Monkey Send a message via MSN to Red Monkey
Quote:
Originally Posted by mbkowns
why are you even wasting your time with IG 2.0 get 3.0 its wayyyyyyyy better.
I have to work with what i have for now, once i get my app up and running with 2.0 I will visit another member on mp3car who lives close to me and test it on his 3.0, I will do my best to get all of the ig versions working in it.
Red Monkey is offline   Reply With Quote
Reply

Bookmarks

Tags
app, embeded, external, plugin, redrawing, skin

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 04:19 AM.


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