Posted: Wed Nov 12, 2003 2:58 am Post subject:
help
If you would like any help on any Delphi application just ask.
Here are some suggestions:
1. Use a menu insted of buttons, it simplifys it alot for the user.
2. When you have alot of information like on the ai editor use a tabcontrol or a pagecontrol (can't rememebr which is better) to seperate the information in sections (which is easyer for the user)
3. anything that requires a file to be loaded should be disabled until a file is used, this will stop any errors
4. when you make a reference to an array always check the number fo the array you are tryign to access does exist(use try except end or use an if statement to work out if your numeber is above the actual numeber int he array). You always ahve ti guess what could go wrong any put in place safeguards to try n stop as meny possible errors from happening.
Thanks for your help. I've been programming for some 1,5 years, but ... we only had the basics of Turbo Pascal at school, and I have to learn everything beyond the scope of
for a:=0 to x do ...
myself, which is pretty hard I know about try...except..end you mentioned, I'll put it in soon.
However, I have no idea about what data type is the most efficient for storing the sectioned INI file, so far I've been using TMemINIFile, b/c it has so much pre-made stuff What type of storage would you suggest?
And I think a menu is equally useful as the toolbar, namely it speeds up working... so I'll add menu instead of replacing the toolbar with it.
I made all the sections into one window so I could link them to each other automatically, at saving time. And I could save the whole action (all 4 pieces) at once, which is easier for adding new actions. And I like the way it is now, so I can see all the action at once, without looking at several tabs. However, if people think that tabs are better, I might add them, time will tell.
Good idea about disabling stuff, my friend first said it was called idiot-proofing, and it's not necessary unless it's gonna be used by lamers (no offense to anyone, it's just a quote). At the time it looked logical, but now that I rethink it, it hardly looks so QUICK_EDIT
i havn't given any yet..... (only given suggestions so far)
Nobody wrote:
However, I have no idea about what data type is the most efficient for storing the sectioned INI file, so far I've been using TMemINIFile, b/c it has so much pre-made stuff What type of storage would you suggest?
Iv never used TmemINIFile, does it come with Delphi 7 or is it 3rd party?
IMO you should use your own storage device (for the actal data) and a premade component for showing the data nicly to the user.
Nobody wrote:
And I think a menu is equally useful as the toolbar, namely it speeds up working... so I'll add menu instead of replacing the toolbar with it.
PPL mainly use menu's over tool bars, but a tool bars good to have with the most important stuff.
Nobody wrote:
I made all the sections into one window so I could link them to each other automatically, at saving time. And I could save the whole action (all 4 pieces) at once, which is easier for adding new actions. And I like the way it is now, so I can see all the action at once, without looking at several tabs. However, if people think that tabs are better, I might add them, time will tell.
They can still b "linked" you would just be seperating the data into a more friendly way.
Nobody wrote:
Good idea about disabling stuff, my friend first said it was called idiot-proofing, and it's not necessary unless it's gonna be used by lamers (no offense to anyone, it's just a quote). At the time it looked logical, but now that I rethink it, it hardly looks so
[/quote]
Its more to simplify your job, programs look bad when they give errors, disabling stuff means you don't have to add error checking stuff to the button, if you did add error checkign stuff insted of disabling the user may spend hours wondering why this button thats not disabled is enabled and doing nothing.
Nobody wrote:
we only had the basics of Turbo Pascal at school
Same, i have tough myself Delphi(4 or 5 yrs), started b4 school got to Pascal so i had a head start .
P.S
when you load a file make sure it exists first! If it doesnt; exist show a message and exit the current procedure.
Quote:
If fileexists(loacation of file) then
begin
it exists do something with the file
end
else
begin
showmessage(0,'Error file bla doesn't exist!!!','Error',0);
exit; // laves current procedure or function
end;
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum