-
Notifications
You must be signed in to change notification settings - Fork 41
Unexpected codes generated for ListBox when deleted, 'Add Scrollbar?' unselected #47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
assigned bug 124. Thanks for the info and I will investigate further. |
I identified the problem and it applies to most of our callbacks if you delete the full set of say any one UI type like buttons, sliders, spinners and or listboxes. Since the set is empty the builder wasn't examining any case 'ENUM' statements in the callbacks to see if some needed to be deleted. This will be fixed in version 0.13.b010 of the builder. I'll spin a build next weekend. NOTE: if you delete a full set of some UI element that requires a callback the builder as designed cannot remove the callback. It will now however generate correct code that removes the extra case statements. |
fixed in release 0.13.b010 |
This issue (or at least something closely related) seems to have reappeared in 0.16.b011, at least with respect to spinners. When all spinners are deleted, the following callback remains:
This causes the following error, because the file "elem/XSpinner.h" is no longer included: error: 'XSPINNER_CB_STATE_UPDATE' was not declared in this scope |
@trevorsmedley You should have noticed my NOTE I made on Dec 30, 2019. The Builder was a quick and dirty program I wrote for my own use a few years ago. I later realized other people might find it useful even given its limitations. I have worked to expand its functionality over time as Calvin @ImpulseAdventure has added new features. However, at its core the current design has some major holes can't be fixed without breaking existing projects or even worst without a major redesign of the code base. So, in some cases, the simple solution is for users to hand edit the code. In your case I would delete
Anyone that wants to address its limits is welcome to submit pull requests or contact me for consultations for how to make improvements. |
I found weird behavior of code generation when it comes to ListBox. Here are the two cases and how to reproduce the bug.
Delete the ListBox
bool CbSlidePos
are still there andE_LISTSCROLL1
gives undefined error)Unselect 'Add Scrollbar?'
//<Slider Enums !End!>
!case E_LISTSCROLL1:
.The text was updated successfully, but these errors were encountered: