Alberto Iglesias Well-Known Member Licensed User Longtime User Apr 7, 2016 #1 Anybody know how to centralize the first label verticaly when the SecondLabel is visible = false? Other question: Some way to resize bitmap and centralize verticaly in line?
Anybody know how to centralize the first label verticaly when the SecondLabel is visible = false? Other question: Some way to resize bitmap and centralize verticaly in line?
somed3v3loper Well-Known Member Licensed User Longtime User Apr 7, 2016 #2 Code: Copy If list.TwoLinesAndBitmap.SecondLabel.Visible = false Then list.TwoLinesAndBitmap.Label.Gravity=Gravity.CENTER End If ? I think you can also have access to imageview the same way Upvote 0
Code: Copy If list.TwoLinesAndBitmap.SecondLabel.Visible = false Then list.TwoLinesAndBitmap.Label.Gravity=Gravity.CENTER End If ? I think you can also have access to imageview the same way
Alberto Iglesias Well-Known Member Licensed User Longtime User Apr 7, 2016 #3 This if for gravity in the line horizontaly, not in the entire line (between 2 lines) .... I need like some: [PICTURE] [PICTURE] xxxxxxxxxxxxxxx [PICTURE] and not like this [PICTURE] xxxxxxxxxxxxxxx [PICTURE] [PICTURE] Upvote 0
This if for gravity in the line horizontaly, not in the entire line (between 2 lines) .... I need like some: [PICTURE] [PICTURE] xxxxxxxxxxxxxxx [PICTURE] and not like this [PICTURE] xxxxxxxxxxxxxxx [PICTURE] [PICTURE]
somed3v3loper Well-Known Member Licensed User Longtime User Apr 7, 2016 #4 Code: Copy list.TwoLinesAndBitmap.Label.Top=list.Top list.TwoLinesAndBitmap.Label.Height=list.TwoLinesAndBitmap.ItemHeight might be a stupid solution Upvote 0
Code: Copy list.TwoLinesAndBitmap.Label.Top=list.Top list.TwoLinesAndBitmap.Label.Height=list.TwoLinesAndBitmap.ItemHeight might be a stupid solution
Alberto Iglesias Well-Known Member Licensed User Longtime User Apr 7, 2016 #5 Not work.... I think is better work with customlistview .... Upvote 0
klaus Expert Licensed User Longtime User Apr 8, 2016 #6 With ListView.TwoLinesAndBitmap you have access to all three views: ListView.TwoLinesAndBitmap.Label ListView.TwoLinesAndBitmap.SecondLabel ListView.TwoLinesAndBitmap.ImageView With ListView.TwoLinesAndBitmap.ItemHeight and the Left, Top, Width, Height properties of the three views you can dimension and position them to your needs. Without seeing what you have done it's difficult to give a concrete advice. It would have been much more efficient if you had posted a small project showing the problem. Upvote 0
With ListView.TwoLinesAndBitmap you have access to all three views: ListView.TwoLinesAndBitmap.Label ListView.TwoLinesAndBitmap.SecondLabel ListView.TwoLinesAndBitmap.ImageView With ListView.TwoLinesAndBitmap.ItemHeight and the Left, Top, Width, Height properties of the three views you can dimension and position them to your needs. Without seeing what you have done it's difficult to give a concrete advice. It would have been much more efficient if you had posted a small project showing the problem.
asales Expert Licensed User Longtime User Apr 8, 2016 #7 Alberto Iglesias said: I need like some: [PICTURE] [PICTURE] xxxxxxxxxxxxxxx [PICTURE] Click to expand... Try this: Code: Copy ListView1.TwoLinesAndBitmap.SecondLabel.Visible = False ListView1.TwoLinesAndBitmap.Label.Height = ListView1.TwoLinesAndBitmap.ItemHeight ListView1.TwoLinesAndBitmap.Label.Gravity = Gravity.CENTER_VERTICAL Upvote 0
Alberto Iglesias said: I need like some: [PICTURE] [PICTURE] xxxxxxxxxxxxxxx [PICTURE] Click to expand... Try this: Code: Copy ListView1.TwoLinesAndBitmap.SecondLabel.Visible = False ListView1.TwoLinesAndBitmap.Label.Height = ListView1.TwoLinesAndBitmap.ItemHeight ListView1.TwoLinesAndBitmap.Label.Gravity = Gravity.CENTER_VERTICAL