List View Not Adding Items

Post a reply

Confirmation code
Enter the code exactly as it appears. All letters are case insensitive.
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review

Expand view Topic review: List View Not Adding Items

Re: List View Not Adding Items

Post by scotte58 » 25 Jul 2017, 23:53

1) In the "Gui, Main:Add, ListView,..." command, you're not defining any columns. I've never done that before, but it appears to simply create one, un-titled column. Presumably, that's why the ListView header is blank.

2) "LV_ModifyCol()" auto-sizes the column widths to fit your data, so it has to be called AFTER you add data to the ListView. It needs to be after your LV_Add() loop. But since you only have one column, it won't have any affect anyway--the width of the single column is defined by the "w750" given when you created the ListView.

3) In your LV_AddList() function, the "LV_Delete()" removes all rows from the ListView, so the following call to "LV_GetCount()" will always return 0 and your loop never gets executed.

4) Your LV_FilterSearch() function doesn't reference the ListView at all, so it won't have any visible effect. I presume you want something more like this:

Code: [Select all] [Expand]GeSHi © Codebox Plus

and your "Items" list is properly not necessary at all. Good luck.

List View Not Adding Items

Post by Delta Pythagorean » 25 Jul 2017, 19:53

So, I've hit a roadblock and I can't find a reason why this is happening.
I've got my entire code here:

Code: [Select all] [Expand]GeSHi © Codebox Plus

And I've got my screenshots on what happened most recently and the Gui it created.
LV Gui.PNG (4.83 KiB) Viewed 228 times

The attachment LV Gui.PNG is no longer available

If you know the reason why or a reason why this happened, please do tell me. Thanks.