I am in need of some various help dealing with a listbox.
I am altering code already created, because what i want is more that i am able to program from scratch.
I am trying to create an adding machine from a listbox already listed from the forums source code section.
Erik Christensen place some code along with help received from Borje Hagsten and Lance Edmonds.
here is where the original posting is.
I wanted a simple adding machine that is clean, fast and small. After not finding what i wanted, i figured that a listbox would make a good display.
This code is a in the works program, and i feel it will provide a nice program for myself as well as others.
I have changed the code some from the original code trying to make the display smaller and make the program faster to work with.
I have worked with the input variables to where a user can only put in a number, positive or negative.
The program will only perform addition and subtraction.
My problem right now is.
Getting the numbers in the listbox to line up correctly.
I am not sure whether it is a font problem or how i am saving the string variables back inside the string arrary for the listbox. I guess all listbox's display only strings. I am adding spaces to the left of the string variables in the array as an attempt to right justify the strings.
I am not worried about printing anything just yet, just getting the basics into the program.
Later i will add a button to clear the arrray variables and have the program startup requesting inputs by somekind of msgbox to get the first numeric figures from the user before displaying a listbox with numbers, but right now the values in the listbox are empty when started and the program goes straight to the list box.
But i need to some help with the numbers lining up first in the listbox.
Also without trying out the program on some other monitors, i believe the gui is to large right now.
I have place the exe with bas source on the website for a short time at
program name is paulcalc.exe
thanks for any help.
If anybody sees a nicer way to work with the user interface please let me know. There are a few other things i want to incorporate into he program, like automatic block movement and edit when you press a down arrow key or a up arrow key while editing a cell.
where i made changes or additions to the original program, i tried to make a remark using my name paul purvis, with few exceptions my name is beside all changes made
I am altering code already created, because what i want is more that i am able to program from scratch.
I am trying to create an adding machine from a listbox already listed from the forums source code section.
Erik Christensen place some code along with help received from Borje Hagsten and Lance Edmonds.
here is where the original posting is.
I wanted a simple adding machine that is clean, fast and small. After not finding what i wanted, i figured that a listbox would make a good display.
This code is a in the works program, and i feel it will provide a nice program for myself as well as others.
I have changed the code some from the original code trying to make the display smaller and make the program faster to work with.
I have worked with the input variables to where a user can only put in a number, positive or negative.
The program will only perform addition and subtraction.
My problem right now is.
Getting the numbers in the listbox to line up correctly.
I am not sure whether it is a font problem or how i am saving the string variables back inside the string arrary for the listbox. I guess all listbox's display only strings. I am adding spaces to the left of the string variables in the array as an attempt to right justify the strings.
I am not worried about printing anything just yet, just getting the basics into the program.
Later i will add a button to clear the arrray variables and have the program startup requesting inputs by somekind of msgbox to get the first numeric figures from the user before displaying a listbox with numbers, but right now the values in the listbox are empty when started and the program goes straight to the list box.
But i need to some help with the numbers lining up first in the listbox.
Also without trying out the program on some other monitors, i believe the gui is to large right now.
I have place the exe with bas source on the website for a short time at
program name is paulcalc.exe
thanks for any help.
If anybody sees a nicer way to work with the user interface please let me know. There are a few other things i want to incorporate into he program, like automatic block movement and edit when you press a down arrow key or a up arrow key while editing a cell.
where i made changes or additions to the original program, i tried to make a remark using my name paul purvis, with few exceptions my name is beside all changes made
Code:
'paulcalc.bas 'compiled with pbwin 8.04 'for the source code please see the link above 'the zipped file should have an exe the bas source code
Comment