Salty, I've used wxformbuilder and found it very useful. I've changed the plugin to show as attached in the first screenshot (which no longer has a horizontal bar) and to permit dragging the window to expand to a larger size as shown in the second screenshot.
I'd like to get the screen to expand down and to show as many additional lines as the space permits, and as have been entered, and to allow moving up and down with keyboard arrows up and down. I assume the cursor always stays at the bottom?
Do you have any suggestions?
Also attached is the calculate_pi C++ file as doc that was saved by form builder.
Also attached is the calculate_pi-revised.dll if someone wants to try it.
Thank you for playing with the formbuilder. when I build with your version, the interface on linux does not look great. I have therefore now split the interface for windows and linux. The buildfile and c++ files automatically picks the right files depending on which OS you are building.
I just spend some time playing in the formbuilder working on your suggestion (i.e. adding a flexgridbagsizer and a richtextctrl) before I realised you are probably not looking for a giant input box. Am I correct in that you would see different answers+results on the different lines below?
As the textctrl is currently used as both input and output, I would be hard to work with multiple lines while also taking input. What I could do is cannibalise the help text section, and use this to show the historic lines. The tickbox would switch between single line, and history mode. I could then show a seperate pop-up window for help. How does this sound?
Dear salty paws, What you suggest sounds good. I will paraphrase below.
what I was trying to do was to see some of the most recent history, (to see results and variables etc,) and one way I thought this could happen, would be to grab and pull down the window, so that appears.
So I see one line of text input using textctrl and the historic lines below (say 3-5 lines or whatever, maybe expandable by dragging?
Then this history is enacted by a tick box for history mode when checked. (single line when not checked). Just a small ? icon popup for help sounds good.
Why don't we try using your revised linux interface and see what happens to simplify it? Then I could adjust if needed?
I have implemented historic mode. give it a spin and let me know what you think. NB on linux the window resizes ok, all answers are visible if it is a big window, smaller window makes colums out of it, and even smaller gives you a scroll bar.
The windows interface is now the same as the linux interface. Lets see if we can live with one gui
Next step is perhaps a help button that shows the old help menu (and option to disable this button in the settings).
Salty, that was very quick. Compiled it and it runs as you describe with input &output on top and history below, each entry is a column up to about 5 columns, then it goes to the next line. As you say the help check is not working right now and will be a popup?.
For use Windows users there is a horizontal scroll, which I intend to live with to keep the two interfaces the same.
Thanks very much, I find this to be a good improvement!
I open the plugin in debug mode and there's a break with output (attached.)
I also Continue through the break and the plugin loads.
There are screen shoots folloowing of what it looks like
Also when check the Information
I have just updated the plugin. Attached is how the calculator looks under ubuntu. with regards to the scroll, please use the wxformbuilder, to optimise the layout. will try to make it work under linux as well.
What did you do to break the history? Did you just load the plugin or did you do something else?
That looks good SaltyP.! Will try it. In answer, I just loaded the plugin and it broke immediately. Then recorded the screen and output and hit "Continue" and it continued and worked fine. More later after I git clone
Changes in wxFormBuilder:
A. m_result:wxTextCtrl style wxTE_DONTWRAP unchecked
B. Switched order of commands in window.
Could not do these changes/Improvements:
C. Would like the ? box to be smaller in width and less real estate. Did not know how to do this.
D. Did not know how to adjust height of overall window and text input/output line but might want it a little shorter, depends on display I suppose.
E. First load is a very minimal window and needs stretching. Perhaps that is fine. Maybe could make it small with just minimum size.
Attached are Release type Windows version dll as doc.
Windows wxFormBuilder fb
(A/B) Thank you for fixing the windows interface . I have updated the repo with your changes in formbuilder. Things look fine in linux as well .
I have updated the settings window. You can pick and choose which buttons are shown. which should take care of C. After changing the settings, disable and enable the plugin to make sure the settings are propagated. I have added command line options (history, and help) so you don’t need the buttons (enter makes it calculate). I have also added showcalculate, showhelp and showhistory so you can add/remove the buttons without using settings.
I have added a fit window command, that should take care of point E. I have deleted my opencpn settings file, and after opening OpenCpn, the window was a good size.
For point D, I am able to resize the window by dragging the corners. Removing the buttons also gives you more space.
Let me know what you think - I think we are closing in on the next release.
Attached: new settings menu, minimalist calculator window with buttons removed from settings.
SaltyPaws this is working great with the output being put in the history window when history is checked. Thank you. I really like the showcalculate, showhistory and showhelp commands. Here is the most recent dll Please remove the doc and put in your plugin directory.
I think the current version is quite useful as a calculator, more powerful than the standard OS calculator, and taking up less screen space. In the next version I am planning to implement coordinate conversion. In terms of GUI I am planning to introduce an additional screen with tabs. Each tab can then be explaining a formula, showing input boxes and a calculate button for that formula. I have attached a screenshot of how the menu cool look like. Let me know what you think.
Looks good. I think the tabs may need to become major categories of calculations (Navigation, Rig, Conversion, etc) with an added drop down selector for the actual calculation. There are some spreadsheets of common Sailing calcs I could send you. Rig and sail loads, water characteristics, etc.