TActionToolBar和TActionClients [],相对位置图标和标题

时间:2016-09-13 12:49:48

标签: delphi

如何更改TActionClients中标题的位置。我需要在图标下面加上标题。

1 个答案:

答案 0 :(得分:1)

TActionManager有一个属性ActionBars,其中每个ActionBar都是TActionBarItem,而GlyphLayout又有一个属性 public class Task { [BsonId(IdGenerator = typeof(CombGuidGenerator))] public Guid ID { get; set; } [BsonElement("Artist")] public string Name { get; set; } [BsonElement("Song")] public string Song { get; set; } } public void CreateTask(Task task) { MongoCollection<Task> collection = GetTaskCollection(); try { collection.Insert(task); } catch(MongoCommandException ex) { string message = ex.Message; } } private void insert_Click(object sender, EventArgs e) { string name = txtBxName.Text; string song = txtBxSong.Text; Task t = new Task { Name = name, Song = song }; Dal d = new Dal(); List<Task> list = new List<Task>(200); list.Add(t); data.DataSource = list; }