FLTK logo

Re: [fltk.general] Search widget

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Search widget Greg Ercolano Sep 09, 2020  
 
On 2020-09-09 08:24, Albrecht Schlosser wrote:
> On 9/9/20 3:19 PM holm.h...@gmail.com wrote:
>>
>> I have a long list, and want to select one items. I would like to type 
>> in a text in a Fl_Input, when the text match a small number (~10) items 
>> I want the a window to pop up and the user can select one of the 
>> matching entries.
>> Easier for the user, and typos will be eliminated.
>>
>> Do any of you have written such a widget earlier ?
> 
> I don't have such a widget, but I think that something like Fl_Choice 
> would be a good starting point to derive your own widget from. You could 
> create/edit/deactivate the choices depending on the input value. But 
> that's only a thought, maybe someone has a better idea or example.
> 

	Fl_Choice_Input is what you're describing here, something I wrote
	a while ago, and I think was the first widget from me added to FLTK.

	OP might want a tighter integration though, like google's input field
	and firefox's url input field where the menu auto-appears below the
	entire input field, and doesn't grab focus so the user can still type
	while the menu is posted.

	So the menu probably needs to not be an actual menu, but just a drop down
	text field that overdraws everything else. Might be a little tricky to do.

-- 
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/da83029b-a379-5fed-62ee-4113772c718d%40seriss.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.