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.


Messages - Khepri

Pages: [1]
1
DotNet / Exception while loading SoundBuffer with SFML.net
« on: March 21, 2015, 06:57:35 am »
Hi,
I've created a C# project with Windows Forms and when I'm loading a SoundBuffer with its constructor, the program returns a BadImageException. I've tried changing the build mode to x86 and make sure I had the 32bit DLLs, but it fails anyway. Although, it works with x64, but I want my program to work on 32bit systems as well.
Is this a problem in SFML.Net bindings or in my project?

Thanks for your help.
Khepri

2
DotNet / Re: Handling double click in Windows Forms.
« on: December 04, 2013, 11:33:18 pm »
How can I do that?
Thanks a lot.

3
DotNet / Handling double click in Windows Forms.
« on: December 04, 2013, 07:47:38 am »
Hi,
I'm trying to solve this problem for hours and I haven't found a solution yet. I want to use SFML on a windows forms application, my application runs very well, I've handled a RenderWindow inside of a label using that in form_load Method :
 window = gcnew RenderWindow(lblWindow->Handle);
                                 window->MouseButtonPressed += gcnew EventHandler<SFML::Window::MouseButtonEventArgs^ >(this, &frmPrincipale::OnMouseButtonPressed);
 
That works fine, except for a point... when the label is double clicked, the program does nothing, what I want is to execute the OnClick method 2 times. Is there a way I can handle double click in a label? I've tried to handle on another window like that :
window = gcnew RenderWindow(VideoMode(480, 206), "SFML Window");
and it works fine. How can I do that in a label?
Thanks a lot.
Khepri.

Pages: [1]