merlinvn / controlp5

Automatically exported from code.google.com/p/controlp5
0 stars 0 forks source link

ListBox doesn't have a setWindow(ControlWindow) method #42

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Trying to create a ListBox in a ControlWindow  
2. Returns "The function setWindow(controlWindow) does not exist.

What is the expected output? What do you see instead?
Would love to be have a Listbox in a Control Window. :)

What version of the product are you using? On what operating system?
ControlP5 0.7.2, Processing 1.5

Please provide any additional information below.
I've seen it is marked @Deprecated in your code, but it works for bangs, 
sliders and number boxes. :)

Original issue reported on code.google.com by juego.video on 22 Apr 2012 at 10:16

GoogleCodeExporter commented 8 years ago
Oops. Filed an issue too quickly.
Found out it works with a moveTo(controlWindow) function instead.
Is it the prefered method than setWindow() and the reason why it's being 
deprecated?
Thx

Original comment by juego.video on 22 Apr 2012 at 10:44

GoogleCodeExporter commented 8 years ago
setWindow has been deprecated and replaced by moveTo. I kept setWindow() for 
backwards compatibility, now that reminds me that I should deprecated setTab 
and setGroup as well to keep the changing of parents in controllers consistent.

Original comment by soj...@gmail.com on 23 Apr 2012 at 1:24

GoogleCodeExporter commented 8 years ago

Original comment by soj...@gmail.com on 18 May 2012 at 5:20