About Store Forum Documentation Contact



Post Reply 
List using LDM_RECT
Author Message
RedcrowProd Offline
Member

Post: #1
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 smile

Thanks,
(This post was last modified: 01-04-2020 06:22 AM by RedcrowProd.)
01-04-2020 06:20 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
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
Find all posts by this user Quote this message in a reply
RedcrowProd Offline
Member

Post: #3
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
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
RE: List using LDM_RECT
LIST_SORTABLE for clicking ListColumn buttons
01-05-2020 04:18 AM
Find all posts by this user Quote this message in a reply
RedcrowProd Offline
Member

Post: #5
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 grin

thanks smile
(This post was last modified: 01-05-2020 09:23 AM by RedcrowProd.)
01-05-2020 07:42 AM
Find all posts by this user Quote this message in a reply
Post Reply