News for hackers. Stuff that matters.
Re:Egui: An easy-to-use immediate mode GUI by elpocko on Friday August 13, 2021 @11:14AM (#28169906)
Why does every IM UI library have a dropdown widget that they call "Combo box"? Dear IMGUI, Nuklear, this one does it too.

A dropdown list is not a combo box - a combo box is a text input box combined with a dropdown list. This "combo" aspect is missing in all these frameworks, but they still call their simple dropdowns "Combo box".

Re:Egui: An easy-to-use immediate mode GUI by joshmarinacci on Friday August 13, 2021 @12:02PM (#28170664)
Because in the 'olden days' (Win 3.0 era) there was only a combobox, not a separate dropdown. Over the years the names have stuck.
Re:Egui: An easy-to-use immediate mode GUI by mwcampbell on Friday August 13, 2021 @12:54PM (#28171438)
FWIW, Windows screen readers also refer to plain drop-downs as combo boxes. I didn't think anything of it until I read this thread.
Re:Egui: An easy-to-use immediate mode GUI by prewett on Friday August 13, 2021 @02:30PM (#28172524)
I think what happened is that a combobox and dropdown-list merged, because basically the combobox is an editable dropdown list. Qt's QComboBox definitely combines them. Apple does not (NSComboBox is editable, NSPopupButton appears to not be). Not sure what Windows or GTK do.
Re:Egui: An easy-to-use immediate mode GUI by badsectoracula on Friday August 13, 2021 @06:41PM (#28175679)
In some widely influential toolkits, like Win32[0], this is just a part of the style state and even comboboxes without text fields are called comboboxes.

So the name stuck. It isn't really much different than calling them "radio buttons" even though they have nothing to do with radios.

[0] https://docs.microsoft.com/en-us/windows/win32/controls/abou...

Re:Egui: An easy-to-use immediate mode GUI by grayrest on Friday August 13, 2021 @07:08PM (#28175952)
> It isn't really much different than calling them "radio buttons" even though they have nothing to do with radios.

The button set on the face of many dashboard radios would physically pop out the previously pressed button when you pushed a different one in so only one in the set would be selected. The name is pretty obvious if you've used the physical version but I haven't seen one since the 90s.

Re:Egui: An easy-to-use immediate mode GUI by badsectoracula on Friday August 13, 2021 @07:13PM (#28175997)
Yes, i know this backstory which is why i mentioned radio buttons: they called like that because of some historical reference, not because they have anything to do with radios.

Similarly comboboxes are called like that because of historical reference (to the combobox control on Win32 that provided the functionality) even though they aren't really a combination of input box and list.

(though one could claim that they are still a combination of a button and a drop-down list, so the name still has some relevance to what is displayed, unlike radio buttons)

Re:Egui: An easy-to-use immediate mode GUI by jagged-chisel on Saturday August 14, 2021 @12:41PM (#28182019)
> … not because they have anything to do with radios.

They work like radio buttons. How’s that having ‘nothing’ to do with radios?

Re:Egui: An easy-to-use immediate mode GUI by cjaybo on Friday August 13, 2021 @11:43AM (#28170381)
I use JUCE a lot and they have use the ComboBox name as well. Always reminds me of creating custom levels in THPS...
Re:Egui: An easy-to-use immediate mode GUI by hules on Friday August 13, 2021 @11:51AM (#28170511)
the juce combobox uses a texteditor widget, so it actually deserves that name.
Re:Egui: An easy-to-use immediate mode GUI by cobalt on Friday August 13, 2021 @02:17PM (#28172370)
Re:Egui: An easy-to-use immediate mode GUI by DonHopkins on Friday August 13, 2021 @04:33PM (#28174142)
Re:Egui: An easy-to-use immediate mode GUI by stagger87 on Friday August 13, 2021 @11:42AM (#28170357)
> Why does every IM UI library have a dropdown widget that they call "Combo box"?

They can call it whatever they want?

> A dropdown list is not a combo box

Who says?

Re:Egui: An easy-to-use immediate mode GUI by abraae on Friday August 13, 2021 @01:48PM (#28172084)
Parent has been down voted to oblivion but they make a good point - arguments over words and names seldom produce any interesting discussion or definitive conclusions.
Re:Egui: An easy-to-use immediate mode GUI by thrower123 on Friday August 13, 2021 @12:11PM (#28170777)
https://docs.microsoft.com/en-us/windows/win32/controls/comb...

The Win32 API is going to continue to drive naming conventions when all of us are dead.

But yeah, the difference between a combobox, a listbox, and a dropdownlist is just a flag value.

Re:Egui: An easy-to-use immediate mode GUI by karmakaze on Friday August 13, 2021 @12:29PM (#28171062)
There's actually a separate ListBox control. And I never thought of it at the time, but why does an option turn a ComboBox into a DropDownComboBox, but an option doesn't turn a ListBox into a DropDownListBox? Oh no, it's all coming back to me, because ComboBoxes were added later and rather than change ListBox they added DropDownList functionality to ComboBox.

I also don't see an option in ListBox to make it multi-select, was it all horribly done in the notification handling code?