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

ListBox.OnCurrentIndexChanged in GroupBox ineffective #811

Open
coder-wangfugui opened this issue Aug 9, 2022 · 1 comment
Open

ListBox.OnCurrentIndexChanged in GroupBox ineffective #811

coder-wangfugui opened this issue Aug 9, 2022 · 1 comment

Comments

@coder-wangfugui
Copy link

coder-wangfugui commented Aug 9, 2022

when I put ListBox in GroupBox ,OnCurrentIndexChanged and OnItemActivated is Ineffective。

I modified the listbox example, just like this:

                           GroupBox{
				Layout: VBox{},
				Children: []Widget{
					ListBox{
						AssignTo:              &mw.lb,
						Model:                 mw.model,
						OnCurrentIndexChanged: mw.nglb_CurrentIndexChanged,
						OnItemActivated:       mw.nglb_ItemActivated,
					},
					TextEdit{
						AssignTo: &mw.te,
						ReadOnly: true,
					},
				},
		
@coder-wangfugui
Copy link
Author

I put HSplitter in GroupBox, and the methods are useful.
I still want to know the reason.
Forgive me

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

No branches or pull requests

1 participant