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

Author Topic: SFML RenderWindow + C# Forms, not sure how to pull this off if able  (Read 2392 times)

0 Members and 1 Guest are viewing this topic.

StormWingDelta

  • Sr. Member
  • ****
  • Posts: 365
    • View Profile
Didn't see any extending of C#'s forms class in window or renderwindow and was curious how to make it so I could use both together without a headache. ???


Currently my idea would be to do this number and extend both.
public class MyWindow : RenderWindow, Form
 
Or just pop open small forms outside the main window and pass events to it from them, but I'm wanting to use some of the form functionality with SFML and not get blown to kingdomcome while doing so.   ??? :-\
I have many ideas but need the help of others to find way to make use of them.

zsbzsb

  • Hero Member
  • *****
  • Posts: 1409
  • Active Maintainer of CSFML/SFML.NET
    • View Profile
    • My little corner...
    • Email
Re: SFML RenderWindow + C# Forms, not sure how to pull this off if able
« Reply #1 on: April 07, 2014, 07:58:20 pm »
I believe I posted a working example of embedding SFML within a WinForm here.
Motion / MotionNET - Complete video / audio playback for SFML / SFML.NET

NetEXT - An SFML.NET Extension Library based on Thor

StormWingDelta

  • Sr. Member
  • ****
  • Posts: 365
    • View Profile
Re: SFML RenderWindow + C# Forms, not sure how to pull this off if able
« Reply #2 on: April 07, 2014, 08:13:21 pm »
Sweet wasn't sure what to search for using the search bar.  :)  At least I can now do what I was wanting to. :D


Was thinking harder than I had to.  :-[
I have many ideas but need the help of others to find way to make use of them.