Jump to content
Sign in to follow this  
dreadedentity

How to remove the border of a listbox?

Recommended Posts

Hello,

I am trying to create a listbox in a dialog that does not have a border, it would essentially be just a list floating on your screen. Does anyone know how I can do this?

Cheers,

Dread

Solved with the help of zapat:

style = 16; //0x10

Style 16 is also known as ST_MULTI, if you use the gigantic list of #define's to help you with your dialogs

Edited by DreadedEntity

Share this post


Link to post
Share on other sites

Can you not set the alpha to 0 on the border color class control config entry?

Share this post


Link to post
Share on other sites
Can you not set the alpha to 0 on the border color class control config entry?

Hello Fight, I'm not quite sure what you mean by this, can you provide an example?

Share this post


Link to post
Share on other sites

I may have been mistaken. I had this colorBorder[] = {0,0,0,1}; under my RscListBox but I'm not sure if it is doing anything.

Share this post


Link to post
Share on other sites

Certainly zapat:

ybekaOh.jpg

and here is my basic listbox class definition:

class RscListbox
{
access = 0;
idc = -1;
type = CT_LISTBOX;
style = NO_BORDER; //I have a #define created, but it obviously doesn't work very well
sizeEx = 0.03000
font = FT_EMONO;
rowHeight = 0.03;

borderColor[] = {0,0,0,0};

maxHistoryDelay = 10;
autoScrollSpeed = -1;
autoScrollDelay = 5;
autoScrollRewind = 0;

canDrag = 0;
disableFiltering = 0;
colorText[] = {1,1,1,1};
colorBackground[] = {0,0,0,0.0};
colorDisabled[] = {1,1,1,1};
colorSelect[] = {0,0,0,0.5};
soundSelect[] = {"",0,0,0};

class ListScrollBar
{
color[] = {1, 1, 1, 0.6};
colorDisabled[] = {};
colorActive[] = {1, 1, 1, 1};
thumb = "\A3\ui_f\data\gui\cfg\scrollbar\thumb_ca.paa";
arrowFull = "\A3\ui_f\data\gui\cfg\scrollbar\arrowFull_ca.paa";
arrowEmpty = "\A3\ui_f\data\gui\cfg\scrollbar\arrowEmpty_ca.paa";
border = "\A3\ui_f\data\gui\cfg\scrollbar\border_ca.paa";
};
};

I am working on an updated version of ACS. Better back-end, cleaner front-end UI.

Share this post


Link to post
Share on other sites

style = 16; //0x10

Edited by zapat

Share this post


Link to post
Share on other sites

There is no way to change the border color when using a different style - 5 for example?

Share this post


Link to post
Share on other sites
Fight try using borderColor

No dice, unfortunately. I don't think I will be able too. That wiki page about it posted above only speaks about borders in regards to the horizontal listboxes (CT_XLISTBOX). I will either have to use the light gray color, have no border, or create a separate control behind it that allows me to change its color.

Share this post


Link to post
Share on other sites

Create a frame class behind it. This will give you the most control over it.

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  

×