[PLUGIN] ComboBox & ListBox

0 favourites
From the Asset Store
Adventure Quiz interactive (Questions and answers via Json)
  • Awesome plugin. Downloading now since I need a combo box for this website I am doing. The coolest part is, this box does nothing... it's just there for customer satisfaction or some rubbish (advertising at it's best!), so this will work wonderfully. :D

    Looking forward to the final version though, since I can see this being very handy in practical situations :D


    Small issue... there seems to be no way to set the size of the box at runtime, or make it visible/invisible. Either one of these options would be nice, since I either need to be able to hide and show it when needed, or to be able to create it and define the size I want (not just the default size).

    Any chance of a quick addition?


  • SoldjahBoy

    Changelog v1.13

    [Add] Size and visibility flags added.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hey, that was fast. Thanks a lot, Septeven :D

    I did figure out a way around it, simply by destroying and creating the boxes again. I managed to work the default size into the design... but fantastic :D That will certainly be useful in the future.


  • Discovered a bug while using ComboBox plugin...

    Changing layouts causes a debug window error, which stops things from working, such as the layout change itself or even mouse input. It has to do specifically with "getValueSelected"

    I can post my capx if you like, however it should be fairly easy to reproduce in such a way:

    1. Create two layouts

    2. On layout one make an event "mouse is clicked, change to layout2"

    3. On layout 2 create a combobox and make some event that calls the getValueSelected expression.

    4. Test preview

    5. ????

    6. PROFIT!


  • SoldjahBoy

    What's the browser you're using ? In firefox, I can't reproduce this bug.

    Send me your capx please, I'll take a look.

  • 5. Check firebug it raises a "Index or size is negative or greater than the allowed amount" in l.246

    exps.getValueSelected = function (ret)


    var optionID = this.elem.options[this.elem.selectedIndex].id;



    Depending on the context, it appears to be freezing the appli and preventing the passage to another layout.

    I haven't been able to reproduce the freezing from a blank capx, but in soldjah's it clearly freezes and prevents to go to a second layout.

    Example that raises the error, but still goes to layout1 (starting from layout2)

  • Changelog v1.14

    [Fix] Expression getValueSelected occurs a bug when comparing.

    <font color=red>Be aware that the first line's ID of a comboBox is 1, not 0.</font>


    OK, I looked your capx. I don't understand why you compare the getValueSelected without any options added in your comboBox... ? Maybe that's only for the example, but it's a part that occurs the issue.

    Firstly, you have to add at least one line.

    getValueSelected return the ID of the selected line, BUT, it starts from 1 (not from 0).

    So you have to compare with '1' if you want to know if the first line is selected.

    Let me know if it solved the bug.


  • Will have to let you know tomorrow when I get up. Since you mention it I think I know what may be causing it. Might be easily fixed.

    I'll let you know.

    Thanks for the super fast updates :D


  • septeven

    That was Kyatric's example, not mine. I was aware that it was indexed from 1 not 0, but it didn't seem to make any difference to the error.

    My error seemed to be existing since I was trying to retrieve the index selection from the object, whatever it was (I was using EVERY TICK -> SET TEXTBOX.TEXT to COMBOBOX VALUE SELECTED) at the time. The problem was that the box did not exist in the layout yet.

    I can fix the problem by making a new condition "COMBOBOX.VISIBLE = VISIBLE" as part of the conditions for checking. This only returns the value when the object exists.

    Hopefully that helps.


  • SoldjahBoy

    No it doesn't help, please send me YOUR capx.

    I need it. Thx :)

  • Great plugin septeven though I am having a bit of trouble. Take a look here:

    <img src="http://img854.imageshack.us/img854/4378/clipboard01ey.jpg" border="0" />

    I'm trying to get the textbox to say Ogre when selecting Ogre from the list but I can't seem to do it, I've tried both 1 and 0 for the selected line and ID. I can get the text box to say Ogre when selecting Dragon, the second line, but not the first.

    What thing am I stupidly missing? <img src="smileys/smiley5.gif" border="0" align="middle" />

  • SoldjahBoy

    No it doesn't help, please send me YOUR capx.

    I need it. Thx :)

    I can't send you my capx, unfortunately. It belongs to a advertising company under intellectual rights property.

    I will see if I can reproduce the bug in a new cpax file, once this project has been completed. Might be a few days.


  • SoldjahBoy

    You may take off all things in relation with your client.

  • SoldjahBoy

    You may take off all things in relation with your client.

    It would be easier to remake the error. There are over 300 events spread over 20+ groups.

    It's a little bit... involved.

    I'll get a new capx and see if I can reproduce.


  • Nickydude

    I fixed it. Can you wait still I fix the SoljahBoy's bug to release a corrected version ?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)