[SOLVED]Combobox in TaharezLook

Help and discussion regarding skinning, themes, and other artistic content.

Moderators: CEGUI MVP, CEGUI Team

User avatar
Tiblanc
Not too shy to talk
Not too shy to talk
Posts: 26
Joined: Sun Sep 13, 2009 01:27
Location: Quebec, Canada

[SOLVED]Combobox in TaharezLook

Postby Tiblanc » Mon Oct 05, 2009 01:25

Hi all!

I'm still very new to skinning and I was messing around with fonts and noticed my comboboxes were overlapping my new shiny font. I dug a bit in the looknfeel file and after the initial shock and awe, I think I figured out the problem. I'd like to ask more experienced skinners if there's a reason for this or it was because it felt right with the commonwealth font.

This is in the TaharezLook/Combobox, when defining the Height of the ComboEditbox child :

Code: Select all

                <Dim type="Height" >
                    <FontDim type="LineSpacing">
                        <DimOperator op="Multiply">
                            <AbsoluteDim value="1.5" />
                        </DimOperator>
                    </FontDim>
                </Dim>

When I look at the ComboEditbox definition, I see the top and bottom border are 5 pixels each. That would mean unless the font is at least 20 pixels high, the ComboEditbox will be too small to accommodate the borders and text, which means text gets cropped. After I replaced this multiply by an Add 10, the widget is correctly sized for all font sizes.

Is this correct or is there something I'm missing here?

Thanks!
Last edited by Tiblanc on Mon Oct 05, 2009 11:45, edited 1 time in total.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Combobox in TaharezLook

Postby CrazyEddie » Mon Oct 05, 2009 08:48

Hi there,

Yes, I think you're right; I didn't look for myself yet (though I'm aware of the x1.5 thing), this appears to be an area that has potential to cause issues. I guess it's just one of those 'quick hack' solutions that never got cleaned up :mrgreen:

Thanks,

CE.

User avatar
Tiblanc
Not too shy to talk
Not too shy to talk
Posts: 26
Joined: Sun Sep 13, 2009 01:27
Location: Quebec, Canada

Re: Combobox in TaharezLook

Postby Tiblanc » Mon Oct 05, 2009 11:45

Ahhh, good old quick hacks that come back to haunt you ;)

Thanks for the answer!


Return to “Skins and Themes”

Who is online

Users browsing this forum: No registered users and 0 guests