Browse Source

make items be inactive by default

David Rose 24 years ago
parent
commit
f63a1f74c2
3 changed files with 4 additions and 1 deletions
  1. 2 0
      panda/src/pgui/pgButton.cxx
  2. 1 0
      panda/src/pgui/pgEntry.cxx
  3. 1 1
      panda/src/pgui/pgItem.cxx

+ 2 - 0
panda/src/pgui/pgButton.cxx

@@ -38,6 +38,8 @@ PGButton(const string &name) : PGItem(name)
 {
   _button_down = false;
   _click_buttons.insert(MouseButton::one());
+
+  set_active(true);
 }
 
 ////////////////////////////////////////////////////////////////////

+ 1 - 0
panda/src/pgui/pgEntry.cxx

@@ -60,6 +60,7 @@ PGEntry(const string &name) : PGItem(name)
 
   _cursor_keys_active = true;
 
+  set_active(true);
   update_state();
 }
 

+ 1 - 1
panda/src/pgui/pgItem.cxx

@@ -53,7 +53,7 @@ PGItem(const string &name) : NamedNode(name)
   _frame.set(0, 0, 0, 0);
   _region = new PGMouseWatcherRegion(this);
   _state = 0;
-  _flags = F_active;
+  _flags = 0;
 }
 
 ////////////////////////////////////////////////////////////////////