Open
Conversation
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? |
Contributor
Author
|
EnsureVisible work. Like if you set the selectedIndices by code,it's better
to use it.
i guess it would just ensure the last item was visible?
I think you're right. I did this because I saw this in normal Listview, and
I thought there was surely a good reason I didn't understand about to do
this ( and maybe there is in core). But ensure last item is enough I think
Le mer. 31 janv. 2024 à 07:41, Ian Harrigan ***@***.***> a
écrit :
… 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?
—
Reply to this email directly, view it on GitHub
<#53 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADBNBIUYDPJWTVVHPDW2YHDYRHRRPAVCNFSM6AAAAABCSB2432VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJYGQ4DCOJVGQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
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) |
Contributor
Author
|
It's in hx.widgets.ListCtrl.
Le mer. 31 janv. 2024 à 08:54, Ian Harrigan ***@***.***> a
écrit :
… 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)
—
Reply to this email directly, view it on GitHub
<#53 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADBNBIWIASCSO6PURDOKD7TYRH2B5AVCNFSM6AAAAABCSB2432VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJYGU3DSNBXHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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