![]() The component allows you to draw columns quickly and easy in the correct position, by using column bounds.Īlso there is a Customization dialog, allowing user to show/hide columns easily. The code for save button is: procedure TForm1.Button5Click (Sender: TObject) begin if SaveDialog1.Execute then SaveDialog1.InitialDir : 'C:\MyProjects' (SaveDialog1.FileName '.txt') end This is a picture of the project: my ini file after save look like this. To use the control, just insert it on the form, and then insert a ListBox inside the DzListHeader control. Let me introduce the DzListHeader control: So, why don’t you use a component to do that? To save the file, on the Standard toolbar, click the Save All button Save All Change the file name. That’s cool but takes a lot of time and you need to do that every single ListBox you need columns.Īssuming that, if you are like me, you gonna to this implementation only when you really need this functionalities, Otherwise, if it’s a simple ListBox, not worth the effort. A list box presents a list of items to choose from. There is an option to implement all this functionalities by your self. ![]() The thing is, how to organize all columns and allow user to reorder, resize, hide/show columns. To do that, you can use Canvas to paint anything into ListBox line. If you like to use ListBox to display some data, you have already needed to show more than one column. ![]() Delphi Listbox Save To File Code Above Puts If the file is, say, only 3 lines long, the write code above puts in too many blank spaces.Is there a way for it to know when the end of the file has been reached. Component, control, Delphi, header, listbox The txt file that is read into the listbox contains up to 7,000 lines.This is what ive come up with: IDCLIST1 is the listbox control. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |