About Store Forum Documentation Contact



Post Reply 
New ListGroup Flag: LGW_DATA_OR_PARENT
Author Message
Driklyn Offline
Member

Post: #1
New ListGroup Flag: LGW_DATA_OR_PARENT
Currently, you have two options for auto width detection of ListGroup data:
  • LGW_DATA
  • LGW_PARENT

The problem with that is:

If you use LGW_DATA, you're guaranteed to show the entire text for each piece of data, but if all the text in the data is only a few characters long, you end up with a very tiny menu to click on.

If you use LGW_PARENT, you're guaranteed to get an easily clickable menu, but if any text in the data exceeds this width, the characters get cut off.

The solution:

LGW_DATA_OR_PARENT: It finds the longest piece of text in the data and, if it is longer than LGW_PARENT, it uses LGW_DATA; however, if it is shorter than LGW_PARENT, it uses LGW_PARENT.

The best of both worlds smile
(This post was last modified: 05-13-2011 06:51 AM by Driklyn.)
05-13-2011 06:49 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: New ListGroup Flag: LGW_DATA_OR_PARENT
that was added as LCW_MAX_DATA_PARENT or similar
09-28-2011 11:55 AM
Find all posts by this user Quote this message in a reply
Driklyn Offline
Member

Post: #3
RE: New ListGroup Flag: LGW_DATA_OR_PARENT
Very cool! Surprised you remembered this.. pfft
09-29-2011 05:54 AM
Find all posts by this user Quote this message in a reply
Post Reply