Posted: Sat Jul 11, 2009 2:14 pm Post subject: Search
My friend and i are making a Paint program and wanted a graphical interface to allow the user to save / load an image.
the program starts by listing current directory and allows you to move up and such.
the name of file text box would be used to store the name of what the user wants to save the picture as.
once the user has navigated to where they want to save the pic .. or load hit okay!
the program then gives the current file path.
this along with the name of the user has put in the text box is how the paint program saves.
the biggest problem is once you move up to the root ( eg. C: ) you cannot move to another drive ... ill work on that later
Posted: Sun Jul 12, 2009 11:18 am Post subject: RE:Search
It seems pretty good. I found no bugs. A suggestion to implement the drive changing. Do something like this:
Turing:
for i :'A' .. 'Z' if Dir.Exists (i + ":/")then put i + " drive exists" endif endfor
It basically goes through every drive letter and sees if it exists or not.
Ava.Gabe.182
Posted: Sun Jul 12, 2009 1:32 pm Post subject: Re: Search
yepp thats wat i plan to do
i was going to make a button for each drive that exists then the user could click the button which would basically do .. Dir.Change("D:/") or which ever drive button they click
but then i would need an array of buttons and procedures for each button (A-Z for each possible drive) which seems stupid ... maybe ill add something like "Enter the drive you want to search : " and then check if they're input is a drive that exists