|
Enhancer core listviewer gadget |
Posted on: 1/29 9:55
#1 |
---|---|---|
Just popping in
![]() ![]() Joined:
2011/7/20 20:01 From In the sticks
Posts: 167
|
Hi
Following on from trixie's excellent advice at https://www.amigans.net/modules/xforum ... id=122939#forumpost122939 I've started building a program using the enhancer core classes. The toolbar gadget is great but I'm getting stuck with the listviewer gadget. The documentation, like my brain, is a bit sparse, so I thought that I'd ask here. 1. The gadget seems to create an extra unusable column to the right of the columns that you specify. This takes up extra space that could be used by the columns with data in and affect the minimum size of the window. If you look at https://photos.app.goo.gl/h8h3dsWX9rLPWYft5 you can see an extra column after the "comment" column in the 1st window and the one after the name of the image in the second one. 2. How do you react to the user selecting/activating an item in the list. I couldn't find any examples of this in the example programs and I couldn't get it to work with using WMHI_GADGETUP or something similar. cheers billy |
|
|
Re: Enhancer core listviewer gadget |
Posted on: 1/29 13:31
#2 |
---|---|---|
Just can't stay away
![]() ![]() Joined:
2009/5/1 18:57 From Czech Republic
Posts: 1257
|
@billyfish
Quote: The gadget seems to create an extra unusable column to the right of the columns that you specify. This takes up extra space that could be used by the columns with data in and affect the minimum size of the window. I asked the author about it some time ago, and he said it was there to optimize the gadget rendering when the window is resized. What you see is not an extra column but just an empty area. Personally, I find it confusing (because it DOES look like an empty column with no function), so I returned to the trusty old ListBrowser Gadget (also because it supports hierarchical nodes). |
|
_________________
The Rear Window blog AmigaOne X5000 @ 2GHz / 4GB RAM / Radeon RX 560 / ESI Juli@ / AmigaOS 4.1 Final Edition SAM440ep-flex @ 667MHz / 1GB RAM / Radeon 9250 / AmigaOS 4.1 Final Edition |
||
|
Re: Enhancer core listviewer gadget |
Posted on: 1/29 23:07
#3 |
---|---|---|
Quite a regular
![]() ![]() Joined:
2007/2/6 13:57 From Donostia (SPAIN)
Posts: 622
|
@billyfish
About 2) when you say "item" you mean for example double click on a row? Or how to retrieve column/data clicked? search in listviwer examples: ... /// Get Node Data static void VARARGS68K GetNodeData( uint32 Pos, uint32 Column, ... ) {...} EDIT: About 1) static const uint32 lv_titletags[] = { /*LISTVIEWERN_ColumnNr, 0, LISTVIEWERN_Title_MinWidth, 100,*/ LISTVIEWERN_ColumnNr, 1, LISTVIEWERN_Title_ShowDragBar, FALSE, TAG_END }; and add to listviewer object creation: LISTVIEWER_TitleTags, &lv_titletags, NOTA; all this are on listviewerX.c examples (maybe some aren't yet released or updated). Edited by jabirulo on 2021/1/30 10:22:27
Edited by jabirulo on 2021/1/30 10:24:34 |
|
|
Re: Enhancer core listviewer gadget |
Posted on: 1/31 18:50
#4 |
---|---|---|
Not too shy to talk
![]() ![]() Joined:
2006/12/6 20:39 From California, Unitied States
Posts: 366
|
@trixie
Quote: I asked the author about it some time ago, and he said it was there to optimize the gadget rendering when the window is resized. What you see is not an extra column but just an empty area. Personally, I find it confusing (because it DOES look like an empty column with no function), so I returned to the trusty old ListBrowser Gadget (also because it supports hierarchical nodes). This is a bummer. I would stick with the old list browser as well due to the extra "non" column. |
|
_________________
AmigaOne X1000, uA1 |
||
|
Re: Enhancer core listviewer gadget |
Posted on: 2/3 10:05
#5 |
---|---|---|
Just popping in
![]() ![]() Joined:
2011/7/20 20:01 From In the sticks
Posts: 167
|
@jabirulo
Thanks, yeah it was my mistake. Every time I go back to coding something using Reaction instead of MUI, I forget to add the GA_RelVerify tags as I've been used to doing everything using IDoMethod () calls and subclassing, so my bad! ![]() |
|