Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Merad

Pages: [1]
1
DotNet / Mouse wheel events not firing
« on: March 24, 2015, 07:09:05 pm »
I'm using the .NET bindings in a C# winforms app, and actually drawing onto a panel.  Mouse clicked events work fine, but scroll events never fire.

My setup code is simply

// windowHandle is the handle of the panel we're drawing to
m_renderWindow = new RenderWindow(windowHandle,
  new ContextSettings { AntialiasingLevel = 8 });
m_renderWindow.Resized += (sender, args) => UpdateViewSize();
m_renderWindow.MouseWheelMoved +=
  (sender, args) => Log.Info("mouse scrolled");
m_renderWindow.MouseButtonPressed +=
  (sender, args) => Log.Info("mouse clicked");

My main loop calls both System.Windows.Forms.Application.DoEvents() and m_renderWindow.DispatchEvents().  And as I said, clicks work fine...

2
Graphics / Text is very blurry
« on: February 18, 2015, 09:48:11 pm »
Pic: https://dl.dropboxusercontent.com/u/24553495/gc.png

The text I'm talking about is insize the Overview panel, the labels by each vertical line.  This screenshot was taken with the text set to arial font, default rendering style, and character size 8.  I'm guessing this might be because the view used for that window is rather large (it's showing the entire track, which is several hundred meters long), but what can I do to fix it?

Edit: I'm using SFML.net with C# if that makes a difference.

Pages: [1]
anything