Solved

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

Posted on 2011-03-20
4
355 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 32

Assisted Solution

by:Ephraim Wangoya
Ephraim Wangoya earned 250 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 250 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 100

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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying 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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

749 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