Jump to content


Photo

How to work TUniForm.AlignmentControl


  • Please log in to reply
2 replies to this topic

#1 Freeman35

Freeman35

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 372 posts

Posted 13 June 2018 - 10:00 AM

Hello,

Can some one explain how to work "How to work TUniForm.AlignmentControl"

Because much(???) useful explain in help file....
Description
This is AlignmentControl, a member of class TUniForm.
 

First screenshot on designtime.

L_1 is TUniLabel.

"Header" is TUniLabel. Align := alTop; Alignment:= taCenter;

Two UniButtons on TUniSimplePanel. and Panel's Align := alBottom;

 

Here we go:

On Second screenshot (from left) TUniForm.AlignmentControl := uniAlignmentClient;

header label and buttons showing normal. But why UniLabel1 goes there ??? ıy's top is 40

 

On third Screenshot (TUniForm.AlignmentControl := uniAlignmentServer;=

UniLabel1 is now view normal, I mean where I put it on designtime. But at this time header label and buttons are not rigth place.

 

How can make design ?????

Attached Files


  • 0

#2 Freeman35

Freeman35

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 372 posts

Posted 13 June 2018 - 10:23 AM

Continue to first message.

First screenshot from design time. Added TUniPanel and Align := alClient. Color change to yellow. And Added unilabel1 on This panel

Second screenshot on runtime

You can see yellow area (Panel) why what is that white area ? and whyPanel.Caption print to Top ???

Form.AligmentControl is uniAlignmentClient

Is this bug or what is my mistake?

regards

Attached Files


  • 0

#3 Freeman35

Freeman35

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 372 posts

Posted 21 June 2018 - 01:24 PM

Hello,

In 1467 space area is fixed.

 

At this time, Right and Bottom space has a problem. Fallow to screenshot.

1-) On Top component is TUniLable and Align := alTop;

2-) On Bottom. color is lime. Its TUniSimplePanel. And Align:= alBottom;

3-) In TUniSimplePanel has two TUniBitBtn. And that's align alLeft and alRight

 

 
 

Attached Files


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users