?
Solved

What is best,   to put data on screen.. All kind of data .

Posted on 2011-03-20
4
Medium Priority
?
361 Views
Last Modified: 2013-11-22
I am wondering?
What is best,   to put data on screen.. All kind of data .
I am working in Delphi.

Shall I use: memo,  drawGrid, ListView, listbox
Or something else.
0
Comment
Question by:dabbiX
3 Comments
 
LVL 32

Assisted Solution

by:Ephraim Wangoya
Ephraim Wangoya earned 1000 total points
ID: 35180795

This depends on the data you are trying to display

TDrawGrid is awkward and a pain to use
TListBox is only good for displaying lists of one dimensional items
TMemo is good for showing notes or descriptions for items
TListView is good for showing tabular data, this is pretty simple to use and manipulate unlike the DrawGrid
0
 
LVL 21

Accepted Solution

by:
developmentguru earned 1000 total points
ID: 35181306
 It seems to me that this question comes down to user interface design (UI).  Different kinds of data need to be handled different ways.  Some data is just for viewing (read only).  Some data is simple text and can be handled by an edit or memo.  In the case of letting a user make a selection from a list of choices you may have a set list (week days) or a list of customers that can be added to.  With a set list it is easy to use a combo box.  My preference when editing a list that can grow is to use a multi button combo box (this allows me to use the simple list, or click an ellipsis button to bring up a form to edit the list).  Simple graphical data may require that the user be allowed to change the graphic.  If there is a list of photos involved then you will obviously need a more complex solution to handle that list.  Then there is compound data.  Generally this would be a record such as a customer.  In this case you would need to decide, based on what the user will be doing at the time, how to display this data.

  The question is VERY vague.  There are many versions of Delphi, which one are you using?  What OS are you targeting?  What type of program are you writing?  If you are writing a business application you might get one suggestion, if you are writing a video game you would get quite a different answer.  The last piece of missing information is the data.  What type of information are you working with?  If it is database records you may get one solution, if it is XML you would be likely to get another (XML is NOT restricted to using the same field list in general), it could even be free form data from a stream.  Giving us some example data to make work with our example is always a help to the experts... it gives us a starting point.

  The last bit of advice I can give you is how to ask questions on the site.  Anyone asking a question should let the experts know WHAT they are trying to accomplish, being as descriptive as possible.  Include everything you are trying to do, why you are taking your approach, what you expect out of it, etc.  Let the experts come up with the HOW.

  In this case... the nebulous nature of the question gives us almost nothing to work with.  If you have a form that you considered trying, post a screen shot of it.  If you have a request that was hand written on a napkin, type (or scan) it in and let us see it.

  There is no best control to use to display all information.
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 35452391
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question