Rav Posted May 7, 2016 Posted May 7, 2016 Hello, I tried to use table layout and found difficult to do it. Here is the modified sample: https://yadi.sk/d/hUYtg2CFrZ3Qd 1)UniGui doesn't pay attention to controls tab order or creation order and align them according to its own rules: first cells are for TUniEdits, then for TUniLabel and at last for TUniDateTimePickers. Is there a way to manually set the order? 2)TUnidateTimePickers do not extend to 100% width. Is this normal? Also some small questions that don't relate to layouts directly 3)TUniSpinEdit doesn't have FieldLabel property. Is there a particular reason for that? 4)What font is used for FieldLabel? Why does it differ from its owner - TUniEdit? On the sample it certainly differs from the font used for TUniLabel though the default fonts are the same.5)Is it possible to use images in the TUniCombobox items? 6)TUniDBGrid has two(!) event handlers for placing images on the grid items: OnFieldImage and OnFieldImageURL but cannot use TUniImageList items for them. That's not the question, just weird. 1 Quote
bugra Posted May 9, 2016 Posted May 9, 2016 Hi 1) You can change TabOrder or CreateOrder in component's properties. In your situation changing taborder should work. 2) Yes it's normal. UniDateTimePicker just a html table (If you look at browsers console you will see). When you extend 100%, table width extended but width of it's elements stay same. If you wanna change it you can use javascript code or css. 3) uniSpinEdit has FieldLabel property in uniGUI version 1298. Probably, this feature has not been added in your version. 5) Unfortunately you can't. But you can use UniMenuButton instead of using UniComboBox. Quote
Rav Posted May 9, 2016 Author Posted May 9, 2016 Thanks for you answers! 1) That doesn't work 2) Ok, got it. 3) That's nice! I found a small issue though - it doesn't work properly if FielLabelAlign is laTop but it really matters nothing. 5) That's too radical solution for me, but I will try. Quote
bugra Posted May 9, 2016 Posted May 9, 2016 If FieldLabelAlign is laTop, uniSpinEdit's height divide half. One of half has FieldLabel other uniSpinEdit. So if you can't change unispinedit height and do this, UniSpinEdit look weird. To avoid this you can increase doubled UniSpinEdit height. Also edited your sample for TabOrder. If it doesn't work probably your unigui version has an issue. So update to new version if it is. Clientside Alignment - Layout Table Span TabOrder.rar Quote
Rav Posted May 9, 2016 Author Posted May 9, 2016 I have checked your example and it looks as before - first cells at the top (1-1,1-2, 2-1) are filled with UniEdits no matter the Tab order as on the picture: https://yadi.sk/i/bE7J9-x-raT8r The UniGui is the latest (1298) and doesn't look to be broken As per the tips regarding UniSpinEdit, thanks, that works. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.