-
Notifications
You must be signed in to change notification settings - Fork 673
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
Feature/ComboBox #414
Feature/ComboBox #414
Conversation
Good job @fergusonr. My advice is to change this code:
to this one:
and let the Enter event to the end user. That was the reason why I changed that. |
Thanks @BDisp change checked-in |
Hi @BDisp (I think) your last check-in has changed some behaviour of TextField.Text If I programatically set the Text value, it only takes effect on the second assignment search.Text = "lost"; // does not set |
@fergusonr you have both values of the |
@fergusonr that is breaking in the linux. Since this project is multi-platform you must check that. |
@fergusonr it's still breaking in the linux. See the DirListView implementeation on the File->Open. You are dealing folders with a Windows's way only that not is compatible with Unix. Use WSL and install dotnet, mono and vsdbg on it to run your project on linux. |
Well done. It's working in both now. I haven't macOS but as it is based Unix OS, it must working there too. |
@BDisp these should be my last check-ins. Tidy up behaviour when hosted in a Window https://drive.google.com/open?id=1nS6GY8qSW9Ka4TcmtMvQ46whdTOnRB-X |
That's great. Your control is near to be a combo that you can add properties to a read only feature too. How about that? :-) |
… feature/TextFieldAutoComplete
@fergusonr don't forget to rebase your branch to reflect the changes in the master for the files you are modifying. |
@fergusonr Can you please implement a Scenario on See instructions here: https://github.com/migueldeicaza/gui.cs/tree/master/UICatalog |
…rgusonr/gui.cs into feature/TextFieldAutoComplete
… feature/TextFieldAutoComplete
This is very cool. I think that change to See: #497 If you start typing in the edit and then pick an item, I would think the list would update to reflect that the edit now has that item in it full. E.g. in the above the list should JUST have Also, when open it's not clear that it's an edit and a list. I wonder if making the edit one or two char narrower would help? Or... use a different color for the list? Or both: |
Thanks @tig agree the list should be differentiated from search. I do not change the list on selection because that's the behaviour of the Windows ComboBox. ie: it disappears on selection (unless I'm misunderstand you) All said, I do not have a strong opinion either way, so if this gets merged to master, its open to public PR's |
What about my suggestion for making the list narrower than the edit? |
A suggestion may even be of variable size within a minimum and maximum limit depending on the size of the item. |
Also, please add ///<inheritdoc cref="name"/> comments to all of your e.g. ///<inheritdoc cref="OnEnter"/>
public override bool OnEnter ()
{
if (!search.HasFocus)
this.SetFocus (search);
search.CursorPosition = search.Text.Length;
return true;
} |
… feature/TextFieldAutoComplete
Add XML comments
@tig ok, thats done. |
@fergusonr this is getting fantastic. I'm already visualizing the ComboBox with a 'V' on the right and it is possible to open and close the search list :-) |
I verified this is AWESOME by fetching the PR locally. Great freaking job! |
Really he is doing a fabulous job. I'm really amazed. |
Simple text field with auto-complete. List Demos -> Search Single Item
https://drive.google.com/open?id=1uxh5a6y8kqIv6ZMdy6-k_CJQWv1bhz_y