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 - devonrevenge

Pages: [1]
1
Window / What is a popular way for creating renderwindows dynamically?
« on: December 16, 2015, 07:50:13 pm »
I have been practicing making simpler programs but im now attempting to make myself a few experimental gui functions.

Presently if I wanted to create a new window object each time something like a message window popped up I have passed a RenderWindow object as a reference into a function and changed its state again when I needed something else, this requires something like a static object for use in main, I dont really like this, I would like to create a window from within an onject and just call a show window function within it.

What is the popular way of doing something like this, I like to keep my main method simple and clean and im sure theres better ways especially if I wanted to call several different windows fro m several different threads.

Pages: [1]
anything