Creating a custom dropdown menu/Combobox.
-
Trying to make a custom dropdown/Combobox , so using one "hideShow"button to open a panel with numerous buttons.
How can I make the "hideShow" button reset when I make a selection on one of the radio buttons in the panel?HiseSnippet 1400.3ocyX9zSiaDE.2FvTRnY0tR8T6dvJmBBJ3DBgcKc0R4eqnsAh1.zJgPnA6IjQ3Liq8DVxtB09AnRU8xdtG68doZOT0i8X+lz8a.8MdrimXxRIQZaHJG779yL+duY7aFO07Y13f.luldl853g0z+Pi5cn7lq2DQnZaugl98LphB3XeSon053gBBvNZ55i+Lg.8LSnE96sOcMjKhZiSDooc.iXi+ZRKBOQZsU+Jhq6VHG7djVJVWd0ssYz0Ytr1.OiaXo4grOCcJdGjvrwLzzmbSGBm4Wmi33.M8IVi4zodS1KnR6OfDPNwEKZTTqNzQRwawbcDDKdVa8lDWmZwwcfFzK0RxBiKyBejQUhCoq7jrw8CUXl3gZ9PeraBuhCId5J3MgDuGXT21m3wSzHXaZisovDUCDLEnhkzVswtbBi0YfET97sPmg2xGZz0iBUrrlybIKqYVIW1bYgIh.t44HeSODE6Vz7Ilw9hbbpIjUHuTU94LKtD3a4PWSbbm8qd7Z6u2d6tScv6kWQQ0Is4bnAH9viV4ZCVW4YWXAyC+x56tSDDGAhhoH.KhdOrOmfCfPokvNEjdUVSy7uf3val+yB4SztIlbZSNHnjkT.giaIWvABKW5wVUdziKVY4T5J0ixrWJSQKrPB2MINXwDcuoo0BCyB4i0lu2DTeb5TLecVKOFEZjxubYITWBEa1nM0lSXTSFM1.g69L2Bz1sNA6OGz6tswyjK6qxAAh7mLwLefh0RqVwLW1KEcebmIRsQlrNx08D3cvBWanjD0f4aVf.7ashIw7yUmxAAyN6LwDDMgeH4n2YvJSV4MmE5wYKNiX.5x8M5X3hwq4WxH1+3QNbcilrW12DbOVUvNdP6ICmwkYibMINW.HFMrySnN3K1sQhKBtx.+Smxjw27tX5o7lxjlL.RO2ICEkouvA7IlD.dgQWF1+Wp.+NLNdWZAXRHaFH9LSqpQi9pKp+cw98Usnls+M4XpUgwFBEu5s53z2tpi1xIcECYzsoD9td3n1I0OE5jQcrVKstAqpnjXTUZXn0GyRDc8xyZQKJgB0SEYNXJOrL88hJSKWEoQ.FyZD+hjVX5QcuRsag+YLjMJF6tg9f5Zog20EGdWKmNde6SGD2WZ3G4JCuqKmx082dCDGI1SNZVOYKHP1F3ygC6H2gNiwF3fy3LO3wt0pfyubaVXbQ2jzedxpcRxXVqFtelflWCMkalIZ8wxvp6nLsbTxEeJAQ4ivAYJC41.hgP1IcDOT.dHpqyL4qiVLF28Yl7uhjjrgnP5O86+wU8Jsjp3SX9NX+mibHsCTWjKkWm7xdV5ed769vgn9.kHYpawKBgwx3wwhQRrXn+y8jl9DnkGxG5X0QHNk3CnxdlOqsmrRh1.gQoTXXNZvXwTXrxnAixov3fQCFKkBiuazfQkTX7iiFLVNEF+56CLx9tK8Tqaom326KnTcy57jpaU6Al5hpFmlT3YlY9sqtd4nG9v+wpOkidyaxakp.yffaIEb+gu4NOtKpfqYiQNtY9OvsrBtq58+GtCRJcIEF8ZemeEPEEb+kWdmG2kUv8u+9QCtW+5UtuQUlSaWDu2a9QbcWQJfO3omqXQbMJz.Bui54aGfqCxpuWGTw988F2RbefQMB2tY+4cr9vKbp1227Fc4Z4L1rQCrMOA1IL15aG1aRa.P44r1bB8zpHtOQrW3NsaUGVYXiARnhOwVr9ZLQ8AYaq3C9WGScBabE7KRYQQa8HkEiUp0BY6yN1V9MFhquapPI.SzvawLiQUQayjOfyvZdKsVDGxw11hTwmBr2eeJMD9r3P3S4gvmkFBepLD9r7P3yitQeDWn6WzlyZIeMADTayvOySWeSJBVkEthT6eA.pSRbA
-
inline function onButtonControl(component, value) { local idx = buttons.indexOf(component); for (i = 0; i < panels.length; i++) { panels[i].showControl(idx == i); } hideShow.setValue(0); hideShow.changed(); }
-
@d-healey said in Creating a custom dropdown menu/Combobox.:
hideShow.setValue(0);
hideShow.changed();Excellent ,thanks !!
Btw, going through all of your videos , took a couple of days off to learn , hopefully I will be slightly better after this week.
-
This post is deleted!