Hello,
I am trying out glide on my fez cobra, but my windows doesn’t fill the whole screen…
My window
<Glide Version="1.0.0">
<Window Name="window2" Width="480" Height="272" BackColor="E6E6E6">
<TextBlock Name="label" X="0" Y="0" Width="480" Height="32" Alpha="255" Text="Energy Logger - Main" TextAlign="Center" TextVerticalAlign="Middle" Font="4" FontColor="0"/>
<Button Name="btnStart" X="100" Y="50" Width="80" Height="32" Alpha="255" Text="Start" Font="4" FontColor="000000" DisabledFontColor="808080" TintColor="000000" TintAmount="0"/>
<Button Name="btnStop" X="300" Y="50" Width="80" Height="32" Alpha="255" Text="Stop" Font="4" FontColor="000000" DisabledFontColor="808080" TintColor="000000" TintAmount="0"/>
<Button Name="btnManual" X="200" Y="94" Width="80" Height="32" Alpha="255" Text="Manual" Font="4" FontColor="000000" DisabledFontColor="808080" TintColor="000000" TintAmount="0"/>
<Button Name="btnAuto" X="200" Y="140" Width="80" Height="32" Alpha="255" Text="Auto" Font="4" FontColor="000000" DisabledFontColor="808080" TintColor="000000" TintAmount="0"/>
<Button Name="btnValues" X="180" Y="186" Width="120" Height="32" Alpha="255" Text="Current Values" Font="4" FontColor="000000" DisabledFontColor="808080" TintColor="000000" TintAmount="0"/>
</Window>
</Glide>
static Window mainWindow = new Window();
static Window manualWindow = new Window();
static Window autoWindow = new Window();
static Window valueWindow = new Window();
static Window currentWindow = new Window();
public static void Main()
{
// Load the windows
mainWindow = GlideLoader.LoadWindow(Resources.GetString(Resources.StringResources.Window1));
manualWindow = GlideLoader.LoadWindow(Resources.GetString(Resources.StringResources.Window2));
autoWindow = GlideLoader.LoadWindow(Resources.GetString(Resources.StringResources.Window3));
valueWindow = GlideLoader.LoadWindow(Resources.GetString(Resources.StringResources.Window4));
mainWindow.Width = 480;
mainWindow.Height = 272;
//Debug.Print(FEZ_System.
// Activate touch
GlideTouch.Initialize();
// Initialize the windows.
// Since all windows are identical we can reuse the same function.
InitWin(mainWindow);
InitWin(manualWindow);
InitWin(autoWindow);
InitWin(valueWindow);
// Assigning a window to MainWindow flushes it to the screen.
// This also starts event handling on the window.
Glide.MainWindow = mainWindow;
Thread.Sleep(-1);
}
Can someone help me?