using a firemonkey listbox. with align set to alnone, anchors set to aktop & akright. When I display the listbox using listbox.visible := true the align anchors seem to have no affect. I want the listbox to appear at the top just below the toolbar and align to the right side of the application. What I am looking for is more like an alignment that aligns to the top right just below the tool bar at the top and above the status bar at the bottom. FYI I am using Delphi Berlin.
using a firemonkey listbox. with align set to alnone, anchors set to aktop & akright. When I display the listbox using listbox.visible := true the align anchors seem to have no affect. I want the listbox to appear at the top just below the toolbar and align to the right side of the application. What I am looking for is more like an alignment that aligns to the top right just below the tool bar at the top and above the status bar at the bottom. FYI I am using Delphi Berlin.
Align your toolbar to most top. Align your status bar to bottom and align the listbox to right.
ReplyDeleteWill this make my list box height increase? I only have 2 or 3 items in the listbox currently.
ReplyDeleteIt will be the height of your form/device screen. The other way to do it is to put a TLayout aligned Right and then put the TListBox inside it aligned to Top.
ReplyDelete