| Plugin Development Extend the functionality of Centrafuse by developing plugins |
 |
May 28th, 2008, 03:41 AM
|
#1 (permalink)
|
|
1 Farad - Avg. Capacity
Join Date: Nov 2007
Posts: 18
|
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.
|
|
|
May 28th, 2008, 04:03 AM
|
#2 (permalink)
|
|
10 Farad - Flux Capacity
Join Date: Nov 2004
Location: Munich, Germany
Vehicle: Audi A3
Posts: 1,024
|
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
|
|
|
May 28th, 2008, 04:53 AM
|
#3 (permalink)
|
|
1 Farad - Avg. Capacity
Join Date: Nov 2007
Posts: 18
|
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.
|
|
|
May 28th, 2008, 12:29 PM
|
#4 (permalink)
|
|
10 Farad - Flux Capacity
Join Date: Nov 2004
Location: Munich, Germany
Vehicle: Audi A3
Posts: 1,024
|
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.
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|