Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Listview with multiple selections #53

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Shallowmallow
Copy link
Contributor

@Shallowmallow Shallowmallow commented Jan 30, 2024

image

Can set indices, get items etc

Just two question. What is the point of one-item-repeated ? Maybe I should also force one line section for this selection mode.

Plus code question, I did this in ListViewSelectedIndices.
for (i in (_value:Array<Int>)) { view.ensureVisible(i); }
If someone do selectedIndices = ["aa", bb"]. Feels it could it break. Wonder if there is a better way.

Needs haxeui/hxWidgets#104

@ianharrigan
Copy link
Member

Does ensureVisible even work on haxeui-hxwidgets? I think its the default behaviour tbh (at least on windows). And if its not, i guess it would just ensure the last item was visible?

@Shallowmallow
Copy link
Contributor Author

Shallowmallow commented Jan 31, 2024 via email

@ianharrigan
Copy link
Member

Where is the behaviour for ensureVisible on hxwidgets? I think its the default behaviour on wx, but pretty sure there is no code in haxeui-hxwidgets to expose that functionality (unless i just can see it)

@Shallowmallow
Copy link
Contributor Author

Shallowmallow commented Jan 31, 2024 via email

@ianharrigan
Copy link
Member

Sorry, ive been reading this wrong the whole time... this is adding the behaviour for mulitple selections to haxeui-hxwidgets... got it... for now, i would do anything with ensureVisible... wx is pretty good at handling it, unless we note otherwise

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants