LWGShane Well-Known Member Licensed User Longtime User May 23, 2018 #1 Is it possible to set the alignment (Left, Center, Right) of the items in "xCustomListView"?
LucaMs Expert Licensed User Longtime User May 23, 2018 #2 It would be possible but only by modifying xCustomListView. You should create a panel within the panel which will "be the item" and align the first one. Something like (not tested, pseudo-code, written here right now): Code: xCLV.Add(CreateItem(...), ItemValue) Code: Sub CreateItem(...) As Panel Dim pnlItem As Panel pnlItem.Initialize... ... Dim pnlInternal As Panel pnlItem.AddView(pnlItnternal... ' <--- align it ... Return pnlItem End Sub Upvote 0
It would be possible but only by modifying xCustomListView. You should create a panel within the panel which will "be the item" and align the first one. Something like (not tested, pseudo-code, written here right now): Code: xCLV.Add(CreateItem(...), ItemValue) Code: Sub CreateItem(...) As Panel Dim pnlItem As Panel pnlItem.Initialize... ... Dim pnlInternal As Panel pnlItem.AddView(pnlItnternal... ' <--- align it ... Return pnlItem End Sub
LucaMs Expert Licensed User Longtime User May 23, 2018 #3 You can also set pnlItem.Color = Colors.Transparent. Upvote 0
LucaMs Expert Licensed User Longtime User May 23, 2018 #4 Something like this one (not so nice ): Attachments xCLV align item.zip xCLV align item.zip 14.7 KB · Views: 616 Upvote 0
Erel B4X founder Staff member Licensed User Longtime User May 24, 2018 #5 Are you asking about text items added with AddTextItem? There is no alignment at all to other items. Upvote 0