上班遇到有趣的事
1. 为什么数值控件有时候称为“自旋控件”?
明明是数值控件,结果非要和自旋挂上钩,软件也没有旋转,自旋个啥呢?
后来在wxWidgets的相关说明里看到了解释:
(wxWidgets is a C++ library that lets developers create applications for Windows, macOS, Linux and other platforms with a single code base. )
A wxSpinButton has two small up and down (or left and right) arrow buttons.
意思就是说数值控件的两个按钮,数值增大、数值减小的两个按钮,按钮图案两个小箭头拼接在一起
发现很像一个自转的小陀螺,所以说这个按钮图案像是在自旋,
所以就叫成了“自旋按钮”,一开始可能是VB里这么写的,后来就流传开来。。。