Search found 16 matches

by funbiscuit
Sat Jun 18, 2016 13:49
Forum: Help
Topic: Resizing two windows simultaneously in layout container
Replies: 38
Views: 26746

Re: Resizing two windows simultaneously in layout container

Thanx! Feel free to add a sample to the sample framework with your test code Yes, I'll add it a little bit later. Will need some time to figure out how it should be added to existing samples. Did u actually make that whole PR without using Mercurial at all ? :D Yep. It's just that I'm not very fami...
by funbiscuit
Fri Jun 17, 2016 19:47
Forum: Help
Topic: Resizing two windows simultaneously in layout container
Replies: 38
Views: 26746

Re: Resizing two windows simultaneously in layout container

I've made a pull request: https://bitbucket.org/cegui/cegui/pull-requests/215/resizable-layout-container/diff But there is no demo to test so here is the code of example: CEGUI::FrameWindow* window = 0; CEGUI::FrameWindow* window0 = 0; CEGUI::FrameWindow* window4 = 0; CEGUI::ResizableLayoutContainer...
by funbiscuit
Fri Jun 17, 2016 18:44
Forum: Help
Topic: Resizing two windows simultaneously in layout container
Replies: 38
Views: 26746

Re: Resizing two windows simultaneously in layout container

@yaronct

Thanks! That macro solved everything :)
Now I'll create new fork from master branch, upload everything and make a pull request. But at first I'll test that my fork builds correctly so I didn't miss anything.
by funbiscuit
Fri Jun 17, 2016 17:18
Forum: Help
Topic: Resizing two windows simultaneously in layout container
Replies: 38
Views: 26746

Re: Resizing two windows simultaneously in layout container

@yaronct Okay, I'll create issue at bitbucket. Currently I'm "merging" code into normal CEGUI distribution and I have one very strange problem. I'm able to create my new widgets but if I try to call any new functions I get "unresolved external" error. This is strange because if I...
by funbiscuit
Wed Jun 15, 2016 20:55
Forum: Help
Topic: Resizing two windows simultaneously in layout container
Replies: 38
Views: 26746

Re: Resizing two windows simultaneously in layout container

@yaronct Uhm. I don't even know what to say. I tried to reproduce bug under "clean" conditions. That's what I used (just two buttons with absolute position and size added to window): CEGUI::PushButton* btn0 = static_cast<CEGUI::PushButton*>(CEGUI::WindowManager::getSingletonPtr()->createWi...
by funbiscuit
Wed Jun 15, 2016 10:24
Forum: Help
Topic: Resizing two windows simultaneously in layout container
Replies: 38
Views: 26746

Re: Resizing two windows simultaneously in layout container

@yaronct Thanks! I also looked at what bitbucket can do and was surprised that I can make changes to code in browser and commit them there. So when I'll finish fighting with bugs I'll make a pull request. ============ Well, it looks like I'm almost done. Now I have only one serious bug which is migh...
by funbiscuit
Tue Jun 14, 2016 14:21
Forum: Help
Topic: Resizing two windows simultaneously in layout container
Replies: 38
Views: 26746

Re: Resizing two windows simultaneously in layout container

@yaronct I'll do it in future, that's for sure. Btw, what should I do to that fork? Only add my classes for layout container and splitter? I mean it won't work by default since you will need to register them manually with this lines: CEGUI::WindowFactoryManager::getSingleton().addFactory<CEGUI::TplW...
by funbiscuit
Tue Jun 14, 2016 10:46
Forum: Help
Topic: Resizing two windows simultaneously in layout container
Replies: 38
Views: 26746

Re: Resizing two windows simultaneously in layout container

@yaronct

That was quite stupid :D Thanks, I added overload with Image argument and now it works.

Now I'll modify container so it can be vertical too. Then test that I can embed one layout into another and then I might consider it finished.
by funbiscuit
Tue Jun 14, 2016 09:55
Forum: Help
Topic: Resizing two windows simultaneously in layout container
Replies: 38
Views: 26746

Re: Resizing two windows simultaneously in layout container

@yaronct Well, I don't have currently time to make a test project so for now I can only send you all code you need. Here it is: test_hlayout.zip There are two .cpp and two .h files needed for layout container. Also I included test.cpp file with example code of how you can use it. You would need to i...
by funbiscuit
Tue Jun 14, 2016 08:04
Forum: Help
Topic: Resizing two windows simultaneously in layout container
Replies: 38
Views: 26746

Re: Resizing two windows simultaneously in layout container

@yaronct Yes, I can upload code somewhere. It's just 6 files (and two of them are xml) but not sure that it will be in fork since I'm not very familiar with git. Anyway, I wanted to fix what I can by myself and then upload it. That's why I asked about adding property. Btw, small video about what it ...
by funbiscuit
Mon Jun 13, 2016 20:28
Forum: Help
Topic: Resizing two windows simultaneously in layout container
Replies: 38
Views: 26746

Re: Resizing two windows simultaneously in layout container

I almost made widget to work as Sequential Layout Container. Actually all functions work (like swap children and move child to position) only need to change few small things. Meanwhile I'd like to ask small question about adding property. If I understand correctly, one can add multiple properties so...
by funbiscuit
Sun Jun 12, 2016 08:26
Forum: Help
Topic: Resizing two windows simultaneously in layout container
Replies: 38
Views: 26746

Re: Resizing two windows simultaneously in layout container

@Ident my widget currently inherits from LayoutContainer. I didn't inherit from SequentialLayout or any other since I'm not sure that I'll be able to follow their principles. Maybe when I get everything to work I'll try to adopt code to inherit from SequentialLayout or even HorizontalLayout. Just ne...
by funbiscuit
Sat Jun 11, 2016 19:35
Forum: Help
Topic: Resizing two windows simultaneously in layout container
Replies: 38
Views: 26746

Re: Resizing two windows simultaneously in layout container

Well, I played a little bit with code and now I have a kinda working resizable horizontal layout for multiple windows (any amount). It worlks properly only in ideal condition and breaks quite easily. So I'll fix it in the future. Also kind of major drawback (although for me it's perfectly fine) is t...
by funbiscuit
Tue Jun 07, 2016 16:36
Forum: Help
Topic: Resizing two windows simultaneously in layout container
Replies: 38
Views: 26746

Re: Resizing two windows simultaneously in layout container

That's exactly what I was going to say... Well, for beginnig it will be quite hard to support any combination of horizontal/vertical splitters. And I don't even know how to approach that correctly (with your suggestion of hierarchy). But I think anything should be possible to achieve with just two ...
by funbiscuit
Tue Jun 07, 2016 09:07
Forum: Help
Topic: Resizing two windows simultaneously in layout container
Replies: 38
Views: 26746

Re: Resizing two windows simultaneously in layout container

Afaik that's impossible... Thanks for suggestion, I also thought about that. It might work with two widgets. I know what you are going after but ... As I already said thanks for suggestion and a detailed answer! Yes, that makes sense and I should be able to do that for two windows inside of custom ...

Go to advanced search