Page 1 of 1

Imagery sections

Posted: Sun Sep 17, 2006 23:53
by Slicky
Can you change ImagerySection in code?

I don't see properties that would allow this. I want to switch some effects on windows rather than have lots of different definitions.

Posted: Mon Sep 18, 2006 18:03
by CrazyEddie
I don't think this is easily done at the moment; changing an imagery section would affect all windows using any WidgetLook that used the ImagerySection - if that's what you're after, then you could do some hacking to set that up.

Pretty much the API of the Falagard imagery system classes was written in a 'sparse' way - basically to support the bare minimum of what was needed to get the thing working; as such there are quite a few 'missing' members.

However, it is possible to completely replace most of the named Falagard parts for a given WidgetLookFeel (or indeed most of the other related classes that use collections of named objects) simply be re-adding a new class with the same name. Note that doing that is some pretty heavy shit and has not, as far as I am aware, ever been tried!! :D

Best thing is to have a poke around and see what blows up! If you need further dissuasion then post back and I'll see what I can do :P

CE

Posted: Sun Sep 24, 2006 03:07
by Slicky
I ended up creating another window and using hide/show in the same position. Not necessarily elegant but it does the job for now.

Thanks

Posted: Tue Jul 03, 2007 17:10
by zarroba
I didn't know were to ask for this and I don't know either if this is the right place, I hope someone that could help reads it..
I have a widget that has a variable number of Images each of the following boxes is a picture and after the pictures I have a label (Imagine an ItemEntry with images before the text):
|__|...|__| some text

I know how many pictures I should have but how can I define them in the looknfeel file. Were is the best place to do this?

thanks
José Tavares

Posted: Wed Jul 04, 2007 11:58
by Pompei2
I think it is not possible to do this, as you would need a loop or something similar in your look'n'feel file. correct me if i'm wrong.

Posted: Thu Jul 05, 2007 09:17
by zarroba
I think it's not possible either. Is it possible to do it anywere else? for example in the renderer.
I was thinking of having one ImagerySection and aggregate several images in that section. Is it possible to do it?

thanks

Posted: Thu Jul 05, 2007 10:44
by Pompei2
you could create a new custom widget, but i know nothing about this. I think it's a window Factory. search the forums, there were some posts about how to do it. (you need to write a c++ class to create a widget)

Posted: Mon Jul 09, 2007 10:11
by zarroba
I have already created a new widget. But the problem remains.. how can I define a variable number of imagery sections?