Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Fri Apr 19, 2024 11:47 am
All times are UTC + 0
help
Moderators: Community Tools Developpers
Post new topic   Reply to topic Page 1 of 1 [3 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
stucuk
Geek


Joined: 27 Aug 2002

PostPosted: Wed Nov 12, 2003 2:58 am    Post subject:  help Reply with quote  Mark this post and the followings unread

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.

Anyway, GL, and if you need any help just ask.

P.S how long have you been programming?

_________________
Free Map Editor - Game Requirements - Stucuk.Net

Back to top
View user's profile Send private message Visit poster's website
John Galt
Commander


Joined: 01 Aug 2003
Location: Galt's Gulch

PostPosted: Wed Nov 12, 2003 6:49 am    Post subject: Reply with quote  Mark this post and the followings unread

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 Crying or Very sad 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 Smile 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 Smile

Back to top
View user's profile Send private message Visit poster's website Skype Account
stucuk
Geek


Joined: 27 Aug 2002

PostPosted: Wed Nov 12, 2003 2:17 pm    Post subject: Reply with quote  Mark this post and the followings unread

Nobody wrote:
Thanks for your help.


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 Smile 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 Smile

[/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 #Tongue.

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;

_________________
Free Map Editor - Game Requirements - Stucuk.Net

Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
Quick Reply
Username:


If you are visually impaired or cannot otherwise answer the challenges below please contact the Administrator for help.


Write only two of the following words separated by a sharp: Brotherhood, unity, peace! 

 
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


Powered by phpBB © phpBB Group

[ Time: 0.1734s ][ Queries: 11 (0.0081s) ][ Debug on ]