mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
restrict drop down menu closing conditions
This commit is contained in:
@@ -37,7 +37,8 @@ private:
|
|||||||
if ( t == wxEVT_LEFT_DOWN || t == wxEVT_RIGHT_DOWN
|
if ( t == wxEVT_LEFT_DOWN || t == wxEVT_RIGHT_DOWN
|
||||||
|| t == wxEVT_MOVE
|
|| t == wxEVT_MOVE
|
||||||
|| t == wxEVT_MENU_HIGHLIGHT || t == wxEVT_MENU_OPEN || t == wxEVT_MENU_OPEN
|
|| t == wxEVT_MENU_HIGHLIGHT || t == wxEVT_MENU_OPEN || t == wxEVT_MENU_OPEN
|
||||||
|| t == wxEVT_ACTIVATE || t == wxEVT_CLOSE_WINDOW || t == wxEVT_KILL_FOCUS
|
|| t == wxEVT_CLOSE_WINDOW || t == wxEVT_KILL_FOCUS
|
||||||
|
//|| t == wxEVT_ACTIVATE
|
||||||
|| t == wxEVT_COMMAND_TOOL_CLICKED)
|
|| t == wxEVT_COMMAND_TOOL_CLICKED)
|
||||||
{
|
{
|
||||||
// close the list, and pass on the event
|
// close the list, and pass on the event
|
||||||
|
|||||||
@@ -293,7 +293,7 @@ bool ChoiceValueEditor::onChar(wxKeyEvent& ev) {
|
|||||||
return drop_down->onCharInParent(ev);
|
return drop_down->onCharInParent(ev);
|
||||||
}
|
}
|
||||||
void ChoiceValueEditor::onLoseFocus() {
|
void ChoiceValueEditor::onLoseFocus() {
|
||||||
drop_down->hide(false);
|
//drop_down->hide(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ChoiceValueEditor::draw(RotatedDC& dc) {
|
void ChoiceValueEditor::draw(RotatedDC& dc) {
|
||||||
|
|||||||
@@ -138,7 +138,7 @@ bool ColorValueEditor::onChar(wxKeyEvent& ev) {
|
|||||||
return drop_down->onCharInParent(ev);
|
return drop_down->onCharInParent(ev);
|
||||||
}
|
}
|
||||||
void ColorValueEditor::onLoseFocus() {
|
void ColorValueEditor::onLoseFocus() {
|
||||||
drop_down->hide(false);
|
//drop_down->hide(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ColorValueEditor::draw(RotatedDC& dc) {
|
void ColorValueEditor::draw(RotatedDC& dc) {
|
||||||
|
|||||||
@@ -135,7 +135,7 @@ bool MultipleChoiceValueEditor::onChar(wxKeyEvent& ev) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
void MultipleChoiceValueEditor::onLoseFocus() {
|
void MultipleChoiceValueEditor::onLoseFocus() {
|
||||||
if (drop_down) drop_down->hide(false);
|
//if (drop_down) drop_down->hide(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MultipleChoiceValueEditor::onValueChange() {
|
void MultipleChoiceValueEditor::onValueChange() {
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ bool PackageChoiceValueEditor::onChar(wxKeyEvent& ev) {
|
|||||||
return drop_down->onCharInParent(ev);
|
return drop_down->onCharInParent(ev);
|
||||||
}
|
}
|
||||||
void PackageChoiceValueEditor::onLoseFocus() {
|
void PackageChoiceValueEditor::onLoseFocus() {
|
||||||
if (drop_down) drop_down->hide(false);
|
//if (drop_down) drop_down->hide(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void PackageChoiceValueEditor::draw(RotatedDC& dc) {
|
void PackageChoiceValueEditor::draw(RotatedDC& dc) {
|
||||||
|
|||||||
Reference in New Issue
Block a user