Jump to content
Sign in to follow this  
iceman77

So how about that listbox side padding...

Recommended Posts

Aside from rowheight how can I adjust padding in these list boxes? As you can see I have plenty of space on the left. I've done a good bit of searching about this over the last days, to no avail. Though I suppose it's not that big of a deal... I'd like to tidy that part up! I'm using listbox type 5 style 0x00.

listmv.jpg

Share this post


Link to post
Share on other sites

Check out the column definition on this page :

http://community.bistudio.com/wiki/DialogControls-ListBoxes

That area has by default a small padding area because that is where the listbox imag goes... see this command:

http://community.bistudio.com/wiki/lbSetPicture

You can use the coloumn definition either in your base clase or your child to remove the padding space.

Share this post


Link to post
Share on other sites

Hmm. Columns doesn't do anything for type 5. And if I use type 102 (apparently required by colomns), my entire UI background disappears, fk'n wierd. Leaving the rest of the dialog intact.

102

class IceBaseLB
{
    type=CT_LISTNBOX;
    style=ST_LEFT;
    idc=-1;
    font = "Bitstream";
    sizeEx=0.017;
    rowHeight=0.02;
    columns[] = {-0.01,1,0.7}; 
    drawSideArrows = 0; 
    idcLeft = -1; 
    idcRight = -1; 
    colorText[] = {1,1,1,1};
    colorScrollbar[] = {1,1,1,1};
    colorSelect[] = {0,0,0,1};
    colorSelect2[] = {1,0.5,0,1};
    colorSelectBackground[] = {0.6,0.6,0.6,1};
    colorSelectBackground2[] = {0.2,0.2,0.2,1};
    colorBackground[] = {1,1,1,1};
    maxHistoryDelay = 1.0;
    soundSelect[] = {"",0.1,1};
    period = 1;
    autoScrollSpeed = -1;
    autoScrollDelay = 5;
    autoScrollRewind = 0;
    arrowEmpty = "#(argb,8,8,3)color(1,1,1,1)";
    arrowFull = "#(argb,8,8,3)color(1,1,1,1)";
    shadow = 0;
        class ScrollBar
        {
         color[] = {1,1,1,0.6};
         colorActive[] = {1,1,1,1};
         colorDisabled[] = {1,1,1,0.3};
         thumb = "#(argb,8,8,3)color(1,1,1,1)";
         arrowEmpty = "#(argb,8,8,3)color(1,1,1,1)";
         arrowFull = "#(argb,8,8,3)color(1,1,1,1)";
         border = "#(argb,8,8,3)color(1,1,1,1)";
         shadow = 0;
        };
};

Edited by Iceman77

Share this post


Link to post
Share on other sites

Try this:

class IceBaseLB
{
    type=CT_LISTNBOX;
[color=#ff0000]     style=LB_TEXTURES;[/color]
    idc=-1;
    font = "Bitstream";
    sizeEx=0.017;
    rowHeight=0.02;
    columns[] = {-0.01,1,0.7}; 
    drawSideArrows = 0; 
    idcLeft = -1; 
    idcRight = -1; 
    colorText[] = {1,1,1,1};
    colorScrollbar[] = {1,1,1,1};
    colorSelect[] = {0,0,0,1};
    colorSelect2[] = {1,0.5,0,1};
    colorSelectBackground[] = {0.6,0.6,0.6,1};
    colorSelectBackground2[] = {0.2,0.2,0.2,1};
    colorBackground[] = {1,1,1,1};
    maxHistoryDelay = 1.0;
    soundSelect[] = {"",0.1,1};
    period = 1;
    autoScrollSpeed = -1;
    autoScrollDelay = 5;
    autoScrollRewind = 0;
    arrowEmpty = "#(argb,8,8,3)color(1,1,1,1)";
    arrowFull = "#(argb,8,8,3)color(1,1,1,1)";
    shadow = 0;
        class ScrollBar
        {
         color[] = {1,1,1,0.6};
         colorActive[] = {1,1,1,1};
         colorDisabled[] = {1,1,1,0.3};
         thumb = "#(argb,8,8,3)color(1,1,1,1)";
         arrowEmpty = "#(argb,8,8,3)color(1,1,1,1)";
         arrowFull = "#(argb,8,8,3)color(1,1,1,1)";
         border = "#(argb,8,8,3)color(1,1,1,1)";
         shadow = 0;
        };
};

Try the style as either:

style = LB_TEXTURES;

or

style = LB_MULTI;;

Share this post


Link to post
Share on other sites

Thanks. Gonna try it asap.

---------- Post added at 15:53 ---------- Previous post was at 15:29 ----------

Dang, didn't work :p

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×