Re: bug on hotkeys
"Pedro Cardoso" <[email protected]>
| Newsgroups | gmane.comp.lib.wxwindows.wxnet |
|---|---|
| Message-ID | <[email protected]> |
I tried it again but it didn't work. here is a simple code I used. Note the
text on the checkboxes buttons etc doesn't appear underlined on the hotkey
char, im running on win xp.
The only hotkeys that work is the menus hotkeys.
using System;
using System.Drawing;
using wx;
namespace Form1
{
public class MyFrame : wx.Frame
{
public const int ID_CHECKBOX1 = 1;
public CheckBox checkBox1;
public const int ID_BUTTON1 = 2;
public Button button1;
public MyFrame(string title, Point pos, Size size) :
base(title, pos, size,wx.Window.wxCAPTION|wx.Window.wxCLIP_CHILDREN|
wx.Window.wxMAXIMIZE_BOX| wx.Window.wxSYSTEM_MENU |
wx.Window.wxCLOSE_BOX|wx.Window.wxMINIMIZE_BOX)
{
Panel panel;
checkBox1 = new CheckBox(this, ID_CHECKBOX1,
"&CheckBox1", new Point(240, 96), new Size(240, 24));
checkBox1.Value = false;
checkBox1.Raise();
button1 = new Button(this, ID_BUTTON1, "&Button1",
new Point(272, 192), new Size(168, 64));
button1.Raise();
this.BackgroundColour = new
wx.Colour(System.Drawing.SystemColors.Control.R,System.Drawing.SystemColors.
Control.G,System.Drawing.SystemColors.Control.B);
// Bind events
EVT_BUTTON(ID_BUTTON1, new
EventListener(this.button1_Click));
}
private void button1_Click(object sender, wx.Event e)
{
}
}
// Define a new application type, each program should
derive a class from App
public class MyApp : wx.App
{
public override bool OnInit()
{
MyFrame frame = new MyFrame("Form1", new
Point(50,50), new Size(548,331));
frame.Show(true);
return true;
}
[STAThread]
static void Main()
{
MyApp app = new MyApp();
app.Run();
}
}
}
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285