hi,
i'm using lazarus 2.0.6 under linux. while i've been using delphi 5 for many years, this is my first foray into lazarus and writing applications for linux.
the problem: i want to display a short list of information consisting of pairs of data - each line being a device handle, followed by a driver name. i'm having a devil of a time trying to figure out how to do this nicely! the application i'm creating does not have ANY user input, it just sits there in the corner of the desktop quietly doing its thing. fyi, the purpose is to display the list of usable/live serial ports on a linux machine.
1. I started with a TMemo, but found that i couldn't change the tab width. now the data in the first column is of an inconvenient width (6-10 characters) such that the default tab width isn't usable.
2. next, i moved on to a TListBox. this looked hopeful, but then i discovered that while delphi supports setting a TabWidth value, lazarus does NOT.
3. then i tried a TStringGrid, but it rapidly got far too complex. what i'm wanting to do is pretty basic stuff, after all.
4. finally i moved on to a TValueListEditor, which can be massaged to almost do what i want... except i can't seem to get rid of, or hide, the dotted red focus box. there user will in no way interact with the control, and the dotted red box irks me. i have already set the GridLineWidth to zero to produce something that looks close to a simple TMemo.
without wanting to add custom components to lazarus, or use a sledge-hammer to put in what is really just a thumb-tack, can anyone suggest a SIMPLE solution? at the moment i'm leaning slightly towards a TMemo with a monospaced font, and just pack the columns with space characters!
btw: it would be really handy if the IDE could display a list of ALL the GUI widgets, or at least allowed you to somehow type in the name of a widget to find it. this would save having to slowly search through all the tabs every time you want to use something new - or is this already there?
cheers,
Rob :-)