Jump to content

GUI Treebox Expand/collapse double click


photo

Recommended Posts

Hello,

 

Double clicking on the expand and collapse cross/minus inside a treebox causes the containing Window to minimize (the floatable=1 behavior).

 

This doesn't seem like intended behavior.

 

 

 

 

Michael Zhang

Link to comment

Can't reproduce. In what Window do you click on the cross/minus?

Try this:

 

WidgetWindow w = new WidgetWindow(engine.getGui());
WidgetTreeBox t = new WidgetTreeBox(engine.getGui());
w.setMoveable(1);
w.setSizeable(1);
w.setTitleable(1);
w.setBlendable(0);
w.setFloatable(1);
int parent = t.addItem("Root");
int child1 = t.addItem("Child1");
int child2 = t.addItem("Child2");
t.addItemChild(parent, child1);
t.addItemChild(parent, child2);
w.addChild(t, GUI_ALIGN_LEFT);
engine.gui.addChild(w);

Link to comment
×
×
  • Create New...