Color Folder-Tab // Border for Folder
Sebastian Schweer
Hallo Everybody,i created a new Window with to Folders(Tabs) on it which shown different, but very similar, buttons and fields.
To differentiate between this two folders, i want to color then, like Business One did, so that the selected folder has a different color. In Version it is dark blue instead of normal blue.
Did anybody know, how to color the Folder-Tabs? I tried with Background and Foreground Color but nothing works.
And did anybody knew how i can create a Border for my Pane? So that there is a line around my fields and Labels witch are related to this Folder.
Best regards,
Sebastian
// Form create
Form form = Form.CreateNewForm("NewUser", "NewUser");
form.Height = 220;
form.Width = 250;
form.Top = 160;
form.Left = 400;
form.Value = "Add User";
form.Load();
Folder f1 = Folder.CreateNew("Folder1");
f1.Top = 15;
f1.Width = 180;
f1.Left = 10;
f1.Height = 10;
f1.Value = "Add User";
f1.Description = "add user";
f1.AffectsFormMode = false;
f1.Pane = 1;
Paolo Manfrin
Hi Sebastian,the function you're looking for is the Folder.GroupWith(...).
Only when folders are grouped together you can have the "dark blue" for the selected folder.
Something like:
folder = SwissAddonFramework.UI.Components.Folder.CreateNew();
refFolder = Form.Items["158"];
folder.UniqueID = "COR_Fol";
folder.Value = LanguageManager.T(Global.ADDON_KEY, "My Folder");
//folder.Top = refFolder.Top;
folder.Left = refFolder.Left + refFolder.Width;
folder.Height = refFolder.Height;
folder.FromPane = 0;
folder.ToPane = 0;
folder.Pane = paneLevel;
folder.AffectsFormMode = false;
folder.LinkTo = refFolder.UniqueID;
Form.AddItem(folder);
folder.GroupWith("158");
0
Please sign in to leave a comment.
Comments
0 comments