RedcrowProd
Member
|
List using LDM_RECT
Hey,
I am trying to get my LIST with "LDM_RECT" mode on to show multiple horizontal line ( using the setElmType and LIST_TYPE_LINE ).
but so far, the list member that should go beneath it keep drawing on the same line, but just become not target-able.
Here is a sample of what i use
Quote:ListColumn lc[]=
{
ListColumn(MEMBER(DetailedMenuMember, img), 0.5, "Icon"),
};
*R_DetailMenu+=list.create(lc, Elms(lc), true);
list.drawMode(LDM_RECTS);
list.horizontal(true);
list.flag=LIST_TYPE_LINE;
list.setElmType(MEMBER(DetailedMenuMember, type)); // the type member is either 0 or 1.
list. cur_mode=LCM_MOUSE;
list.elmHeight(0.1);
i'd appreciate any help
Thanks,
(This post was last modified: 01-04-2020 06:22 AM by RedcrowProd.)
|
|
01-04-2020 06:20 AM |
|
Esenthel
Administrator
|
RE: List using LDM_RECT
Hi,
I've updated the comments:
Quote:LIST_TYPE_LINE =0x040, // if elements of different "types" won't be displayed in the same line in LDM_RECTS mode, this will work only if LIST_TYPE_SORT is enabled
|
|
01-04-2020 01:15 PM |
|
RedcrowProd
Member
|
RE: List using LDM_RECT
Hi, Thanks for your answer it did the trick!
It seems that the button themselves still seems to be off, some of them are not targetable, any special way to fix this ?
(This post was last modified: 01-05-2020 04:25 AM by RedcrowProd.)
|
|
01-05-2020 02:27 AM |
|
Esenthel
Administrator
|
RE: List using LDM_RECT
LIST_SORTABLE for clicking ListColumn buttons
|
|
01-05-2020 04:18 AM |
|
RedcrowProd
Member
|
RE: List using LDM_RECT
Worked !
any chance you could make SlideBar _vertical not private btw ? i need to set-up a slidebar as vertical
thanks
(This post was last modified: 01-05-2020 09:23 AM by RedcrowProd.)
|
|
01-05-2020 07:42 AM |
|