Page 1 of 1

CELayoutEditor--Add scrollbar to window without ScrollablePa

Posted: Thu Aug 02, 2007 07:52
by kili
Hi,
i want to add VerticalScrollbar or HorizontalScrollbar
to window component through DialogAddWindow.

Then i masked:
windowType.find((utf8*)"VerticalScrollbar") != String::npos ||
windowType.find((utf8*)"HorizontalScrollbar") != String::npos ||
in RequiresParent(), is there other things need to do?
or will this cause any crash?

ps.i found that if i mask
//windowType.find((utf8*)"LargeVerticalScrollbar") != String::npos ||
and add it on window....then crash...

Otherwise,
ScrollablePane seems has 1 bug?
it only can add 1 item,and if i add another item in it,
then the first one disapears in treelist,
and if i delete the second....crash!!

Posted: Fri Aug 03, 2007 07:41
by scriptkid
You should be fine addig scrollbars directly, but i probably didn't find much use for it.

I verified the scrollble pane issue, but it doesn't happen at my end. Do you use the latest editor code?

Good luck!

Posted: Tue Aug 07, 2007 01:37
by kili
i can't duplicate the delete problem,after that,
maybe some other things cause that...

but i'm sure that if i put LargeVerticalScrollbar into window component,
my CPU will very busy and CELayoutEditor hangs on...

my CELayoutEditor version is 0.5RC2,
CEGUI is 0.5.0

ps.i can't link to your svn on CEGUI wiki = =

Posted: Tue Aug 07, 2007 09:53
by kili
i found that it's

<Image imageset="TaharezLook" image="VertScrollBarSegment" />
<VertFormat type="Tiled" /> //this line

in
TaharezLook.looknfeel
cause crash

if i change it to
<VertFormat type="Stretched" />
<HorzFormat type="CentreAligned" />

it will be ok,but ugly... :roll: