CELayoutEditor--Add scrollbar to window without ScrollablePa

Use this forum for:
- Discussion regarding unofficial CEGUI related tools, scripts and utilities.
- User to user help for the obsoleted CELayoutEditor and CEImagesetEditor tools.

Moderators: CEGUI MVP, CEGUI Team

kili
Not too shy to talk
Not too shy to talk
Posts: 45
Joined: Fri Apr 27, 2007 06:17

CELayoutEditor--Add scrollbar to window without ScrollablePa

Postby kili » Thu Aug 02, 2007 07:52

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

User avatar
scriptkid
Home away from home
Home away from home
Posts: 1178
Joined: Wed Jan 12, 2005 12:06
Location: The Hague, The Netherlands
Contact:

Postby scriptkid » Fri Aug 03, 2007 07:41

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!

kili
Not too shy to talk
Not too shy to talk
Posts: 45
Joined: Fri Apr 27, 2007 06:17

Postby kili » Tue Aug 07, 2007 01:37

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

kili
Not too shy to talk
Not too shy to talk
Posts: 45
Joined: Fri Apr 27, 2007 06:17

Postby kili » Tue Aug 07, 2007 09:53

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:


Return to “Unofficial CEGUI-Related Tools”

Who is online

Users browsing this forum: No registered users and 7 guests