Jump to content

Layout table and some other issues


Rav

Recommended Posts

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.

  • Like 1
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...