06-16-2023, 12:30 AM
(06-15-2023, 11:52 PM)Jack Wrote: hello a740g
when you launch UiEditor it asks for the QB64pe directory and after navigating to the folder and doing some stuff and then exit, when later you launch UiEditor it asks for the QB64pe folder again, it does not remember.
I compiled TerryRitchie's calculator and noticed that the last button pressed remains focused. so I opened the project with UiEditor and unchecked has focus I did that for all the buttons and then saved the project, when QB64pe opened Calculator.bas there were numerous duplicated symbols, I deleted the duplicates and compiled only to discover that the changes that I thought I had made had no effect, I reopened the project and the buttons had the has focus checked, so the only thing that my editing did was to produce a bunch of duplicate symbols
the reason for unchecking the has focus is that for example if the Clear was the last button clicked then if you use the keypad to do some operations, it displays the result and quickly clears the display
Thank you for reporting. I was able to reproduce all three issues.
1. UiEditor not remembering the QB64-PE locations once selected is a miss from my end. My plan was to save the location in InForm.ini so that it does not prompt again. But I think I did not implement the save to INI part. That should be an easy fix.
2. InFrom creating duplicates could be how it reads the existing source. My guess is it expects the keywork to be in a certain case and is not doing case-insensitive compares. Therefore, it ends up writing the declarations again. I'll have to check this. And if it is true, then this too should be an easy fix.
3. The "Can have focus" setting for buttons is obviously not being retained which looks like a bug to me. I'll investigate a little more to see if I am able to reproduce this with new forms and other controls.