2
コンボボックスは、ノーマル、無効にすることができComboBoxStateは、、またはホットを押しました。ComboBoxが「ホット」であることは何を意味しますか?
最初の3つは明らかですが、「ホット」とは何ですか?
コンボボックスは、ノーマル、無効にすることができComboBoxStateは、、またはホットを押しました。ComboBoxが「ホット」であることは何を意味しますか?
最初の3つは明らかですが、「ホット」とは何ですか?
マウスがコントロール上にあるときにです:
protected override void OnPaint(PaintEventArgs e) {
int top = 16;
foreach (ComboBoxState cbs in new ComboBoxState[] { ComboBoxState.Normal,
ComboBoxState.Disabled,
ComboBoxState.Pressed,
ComboBoxState.Hot}) {
Rectangle r = new Rectangle(16, top, 84, 21);
ComboBoxRenderer.DrawTextBox(e.Graphics, r, cbs);
TextRenderer.DrawText(e.Graphics, cbs.ToString(), this.Font, r, Color.Black);
ComboBoxRenderer.DrawDropDownButton(e.Graphics,
new Rectangle(16 + 84, top, 21, 21), cbs);
top += 23;
}
}
ああ、そうです。完璧。ありがとうございました! – Athena
[VisualStyleElement.ComboBox.DropDownButton.Hotプロパティ](https://msdn.microsoft.com/en-us/library /system.windows.forms.visualstyles.visualstyleelement.combobox.dropdownbutton.hot(v=vs.110).aspx) – Fabio
このリンクに従うことができます:http://stackoverflow.com/questions/36287605/hot-tracking-list -item-selection-in-a-combo-boxそれが参考になることを願っています。 –
しかし、この "ホットな状態"とは何ですか?それはどのように見えるのですか? – Athena