bug handling xp visual styles

"Pedro Cardoso" <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.wxnet
Message-ID <[email protected]>
Here is a sample program that shows a few controls, but when i add a
app.exe.manifest file under Windows xp so the controls can have a xp look
the controls appear invisible and some only appear when i move the mouse on
its supposed location. Hope it can be fixed


using System;
using System.Drawing;
using wx;

namespace wx.Samples
{
	public class MyFrame : wx.Frame
	{

		public const int ID_COMBOBOX1	= 1;
		public const int ID_BUTTON1	= 2;
		public const int ID_PICTUREBOX3	= 3;
		public const int ID_TEXTBOX1	= 4;
		public const int ID_LABEL1	= 5;
		ComboBox comboBox1;
		Button button1;
		StaticBitmap pictureBox3;
		TextCtrl textBox1;
		StaticText label1;

		public MyFrame(string title, Point pos, Size size) :
base(title, pos, size,wx.Window.wxCAPTION|wx.Window.wxCLIP_CHILDREN|
wx.Window.wxFRAME_NO_TASKBAR| wx.Window.wxMAXIMIZE_BOX|
wx.Window.wxSYSTEM_MENU | wx.Window.wxCLOSE_BOX|wx.Window.wxMINIMIZE_BOX)
		{

			string[] comboBox1Items = {};
			comboBox1 = new ComboBox(this, ID_COMBOBOX1,
"comboBox1", new Point(32, 32), new Size(232, 21), comboBox1Items);
			comboBox1.BackgroundColour = new
wx.Colour(System.Drawing.SystemColors.Window.R,System.Drawing.SystemColors.W
indow.G,System.Drawing.SystemColors.Window.B);
			comboBox1.Raise();
			button1 = new Button(this, ID_BUTTON1, "button1",
new Point(184, 208), new Size(72, 40));
			button1.Raise();
			pictureBox3 = new StaticBitmap(this,
ID_PICTUREBOX3,new wx.Bitmap() , new Point(-30, -24), new Size(352, 320));
			pictureBox3.BackgroundColour = new
wx.Colour(System.Drawing.SystemColors.Window.R,System.Drawing.SystemColors.W
indow.G,System.Drawing.SystemColors.Window.B);
			textBox1 = new TextCtrl(this, ID_TEXTBOX1,
"textBox1", new Point(48, 160), new Size(176, 20));
			textBox1.BackgroundColour = new
wx.Colour(System.Drawing.SystemColors.Window.R,System.Drawing.SystemColors.W
indow.G,System.Drawing.SystemColors.Window.B);
			textBox1.Raise();
			label1 = new StaticText(this, ID_LABEL1, "label1",
new Point(64, 88), new Size(184, 32));
			this.BackgroundColour = new
wx.Colour(System.Drawing.SystemColors.Control.R,System.Drawing.SystemColors.
Control.G,System.Drawing.SystemColors.Control.B);
			label1.Raise();
			
		}

	}


	// 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(304,300));
			frame.Show(true);
			return true;
		}

		[STAThread]
		static void Main()
		{
			MyApp app = new MyApp();
			app.Run();
		}
	}
}





-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.