ListView subitems not showing in Tile view

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 5 years and 10 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
MDinice
Posts: 20
Last visit: Sun Feb 19, 2023 4:27 pm

ListView subitems not showing in Tile view

Post by MDinice »

To help you better we need some information from you.

*** Please fill in the fields below. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. ***

Product, version and build: PowerShell Studio 2018 v5.5.150
32 or 64 bit version of product: 64 bit
Operating system: Win 10
32 or 64 bit OS: 64 bit

*** Please add details and screenshots as needed below. ***
ListView sub items don't seem to be showing in Tile view. sample form attached
DO NOT POST SUBSCRIPTIONS, KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM
Attachments
frmLvToolbox.psf
(58.2 KiB) Downloaded 133 times
User avatar
Alexander Riedel
Posts: 8478
Last visit: Tue Mar 26, 2024 8:52 am
Answers: 19
Been upvoted: 37 times

Re: ListView subitems not showing in Tile view

Post by Alexander Riedel »

[Topic moved by moderator]
Alexander Riedel
SAPIEN Technologies, Inc.
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: ListView subitems not showing in Tile view

Post by jvierra »

It appears you may have posted the wrong form as this form has no data and appears to have a random array of panels and other controls.

Post just a simple ListView showing the issue you wish help with.

Attached is an example of some of the ways to use a ListView
Attachments
Demo-ListViewIcons.psf
(18.28 KiB) Downloaded 133 times
User avatar
MDinice
Posts: 20
Last visit: Sun Feb 19, 2023 4:27 pm

Re: ListView subitems not showing in Tile view

Post by MDinice »

sorry about that this should have items and sub-items
Attachments
frmLvToolbox.psf
(57.41 KiB) Downloaded 128 times
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: ListView subitems not showing in Tile view

Post by jvierra »

No code and it does not clear up what you are asking. What is the question?
User avatar
MDinice
Posts: 20
Last visit: Sun Feb 19, 2023 4:27 pm

Re: ListView subitems not showing in Tile view

Post by MDinice »

Are the items showing in the listview when you run the form? the items were built with the groups and items collection in the right panel in design mode. so there is no extra code and their shouldn't have to be. each item in the items collection has a single sub item that should be but is not showing. I would think those sub items should also be showing in design view.

Capture.PNG
Capture.PNG (84.14 KiB) Viewed 3282 times
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: ListView subitems not showing in Tile view

Post by jvierra »

The form you posted has NO code at all. It is just a form with a control.
Defining groups and items does not create a list. It just creates the template.
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: ListView subitems not showing in Tile view

Post by jvierra »

Without columns you will not see subitems. In "Tile" view you will not see subitems. Add columns and switch to detail view to see all items and subitems.
Attachments
frmLvToolbox (1).psf
(64.24 KiB) Downloaded 139 times
User avatar
MDinice
Posts: 20
Last visit: Sun Feb 19, 2023 4:27 pm

Re: ListView subitems not showing in Tile view

Post by MDinice »

Unfortunately i'm not looking to use detail view. i'm trying to make grouped buttons for a lack of a better description. and this right out of Sapiens spotlight on the list view
Capture2.PNG
Capture2.PNG (36.24 KiB) Viewed 3268 times
It also states later on that if more then one sub-item exists only the first in the collection will display this is why each item only has one sub-item. As you can see in my initial screen shot the large image and main item show this is why I was reporting the first sub-item not showing as a possible bug. I reported a treeview bug a month or so back that they acknowledged and fixed so I thought this might also be an issue. That is also why i posted in the powershell studio forum and not the gui. The article mentions the value being ignored in OS's earlier then XP so I was assuming it would work in OS's later then XP. If that is a wrong assumption I apologize. I do appreciate and am grateful for the quick responses.
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: ListView subitems not showing in Tile view

Post by jvierra »

The ListView is a very unmanageable control and I do not have any examples that do what you want. The behavior of the control is also very flakey if you mix different modes.

Tomorrow I will try to put together an example that may be helpful. I, personally, avoid the control because it seldom does what I need. Using a ListView as a menu can be done but it will not work as expected. As soon as you deviate from any example it will change modes and leave you confused.
This topic is 5 years and 10 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked