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 May 28th, 2008, 03:41 AM   #1 (permalink)
1 Farad - Avg. Capacity
 
Join Date: Nov 2007
Posts: 18
RameshP is on a distinguished road
Tab order is not working if i have the web browser in my form

Hi zorro,
I need a small help from you.
Actually the tab order is working fine in the forms where i have only buttons.
where as if i have the buttons and web browser in my form the tab order is not working at all.
Your help is appreciated.
Thanks in advance.
RameshP is offline   Reply With Quote
Old May 28th, 2008, 04:03 AM   #2 (permalink)
10 Farad - Flux Capacity
Zorro's CarPC Specs
 
Zorro's Avatar
 
Join Date: Nov 2004
Location: Munich, Germany
Vehicle: Audi A3
Posts: 1,024
Zorro is a glorious beacon of lightZorro is a glorious beacon of lightZorro is a glorious beacon of lightZorro is a glorious beacon of lightZorro is a glorious beacon of light
Send a message via Skype™ to Zorro
Try setting the KeyPreview of your plugin form to true.
__________________
Skinning to go... VD2
My Plugins: BluetoothControl, Contacts, Scribble, MWConn, Phidgets, Skype, PluginBrowser, LogoDashboard, SkinBrowser
My Tools: CFInjector
My Skins: Street WS, Gizmo, Cyclone, Drive
Zorro is offline   Reply With Quote
Old May 28th, 2008, 04:53 AM   #3 (permalink)
1 Farad - Avg. Capacity
 
Join Date: Nov 2007
Posts: 18
RameshP is on a distinguished road
Hi zorro,
i tried by setting the keypreview to true,
Below is the code that i am using.
please let me know what am i missing.


this.KeyPreview = true;
this.KeyUp += new System.Windows.Forms.KeyEventHandler(this.MyPlugin _KeyUp);

private void MyPlugin_KeyUp(object sender, System.Windows.Forms.KeyEventArgs e)
{


if (e.KeyCode == Keys.Tab)
{


this.CF_sectionFocus(true);



}
}


i even tried to find the global key board hooks to find the tab press.
but still i could not able to resolve the issue.

but if i remove the web browser from the form i am not getting this issue.
RameshP is offline   Reply With Quote
Old May 28th, 2008, 12:29 PM   #4 (permalink)
10 Farad - Flux Capacity
Zorro's CarPC Specs
 
Zorro's Avatar
 
Join Date: Nov 2004
Location: Munich, Germany
Vehicle: Audi A3
Posts: 1,024
Zorro is a glorious beacon of lightZorro is a glorious beacon of lightZorro is a glorious beacon of lightZorro is a glorious beacon of lightZorro is a glorious beacon of light
Send a message via Skype™ to Zorro
Try this:

Code:
 
if (e.KeyCode == Keys.Tab)
{
   if(webcontrol.Enabled)
   {
      webcontrol.Enabled = false;
      this.CF_sectionFocus(true);
   }
   else
   {
      webcontrol.Enabled = true; 
      webcontrol.Focus();
   }
}
Not nice but should be working. If not, I don't know the answer either
__________________
Skinning to go... VD2
My Plugins: BluetoothControl, Contacts, Scribble, MWConn, Phidgets, Skype, PluginBrowser, LogoDashboard, SkinBrowser
My Tools: CFInjector
My Skins: Street WS, Gizmo, Cyclone, Drive

Last edited by Zorro; May 28th, 2008 at 12:32 PM.
Zorro is offline   Reply With Quote
Reply

Bookmarks

Tags
browser, form, order, tab, web, working

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 12:14 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