Child window dividers
#2 Crossbones+ - Reputation: 3512
Posted 19 August 2012 - 10:15 PM
Or some frameworks have docking features which make this GUI stuff easier. What language/framework are you using to design the interface? It will be easier to answer you if you target your platform, this is too broad a question at the moment.
#5 Crossbones+ - Reputation: 1328
Posted 22 August 2012 - 11:37 AM
http://www.relisoft.com/win32/splitter.html
but the splitter control itself is not the problem i.e. you can roll-your-own child window that paints a splitter bar on the screen pretty easily. The hard part is implementing the splitter semantics. This could be some work depending on how complex you want it to be, but basically it comes down to having multiple views or whatever in separate child windows that can be re-sized by dragging the splitter.
#6 Members - Reputation: 701
Posted 23 August 2012 - 04:40 AM
I'm not sure if there is considerable commercial value in it (I'd appreciate input on that), but I think at least one form of it I will make available for free use.
#7 Crossbones+ - Reputation: 1328
Posted 23 August 2012 - 09:56 AM
[win32] I'm finishing up working on a system for a project I'm working on (an engine editor). It's a system for docking windows which is cloned... I mean inspired... inspired by Visual Studio. See video and more info here: http://my.opera.com/adelamro/blog/win32-docking-system
I'm not sure if there is considerable commercial value in it (I'd appreciate input on that), but I think at least one form of it I will make available for free use.
That's pretty nice looking ... Did you do the arrow controls -- the button thingies that determine if and where the child window is going to get docked -- as separate child windows or in some other way?
#8 Members - Reputation: 701
Posted 23 August 2012 - 01:03 PM
#9 Crossbones+ - Reputation: 1328
Posted 23 August 2012 - 02:14 PM
It's a single top-level popup custom control (window) with no borders, and has a GDI clipping region and transparency. The clipping region is recalculated when needed to shift the location of the central docking diamond as it's called. This control is the second major actor in this system after the dock host control.
So the whole docking diamond is one non-rectangular window? When you say it has GDI clipping region do you mean you are setting its window region with SetWindowRgn or are you using newer APIs that I'm not familar with? i.e. "LayeredWindow" or whatever. (Basically my knowledge of Win32 GUI programming cuts off at about 1999)
#11 Crossbones+ - Reputation: 1328
Posted 20 September 2012 - 04:29 PM
To make the actual divider widget you need to make a custom control, which in Win32 world basically means creating a custom child window. Look at my post in this thread:How do I do it by hand?
http://www.gamedev.net/topic/564692-creating-a-child-window/
However, in your case you need to implement more functionality in the window procedure. You need to paint the splitter in WM_PAINT and so forth. Generally if you've never done this before google "custom Win32 child window" and see what you find.
#16 Crossbones+ - Reputation: 1328
Posted 24 February 2013 - 06:10 AM
Never mind, Visual Studio Express doesn't have MFC.
Hey Polyfrag ...
I guess it doesn't count as necro-ing if you necro your own thread. But reading back on that/this thread, you were asking about writing a game editor to Win32 and are now asking about MFC. I get the feeling that you are trying to write a game model editor "native" and don't want to have anything to do with anything that is not native. Which is fine, but in 2013 you also don't want to have anything to do with MFC. I was a big Win32 fan in the day, so I understand where you are coming from, but just to speed this all along, my advice is for you to get into QT. I think that QT is like the new Win32, in terms of GUI programming.Seriously if you want to get into GUI programming in C++, download QT Creator and test it out.
Edited by jwezorek, 24 February 2013 - 06:11 AM.







