Dyanamically adjust the positions of the contols.

caster (Programmer)
8 Nov 03 2:34
Hi all,
I'm using ACTUATE 6
In my report I'm displaying several controls one below another in a frame.
This frame is in the Before Section of a group.
What I want is if some control is having value 0 or null or spaces then that control shouold not be displayed..and accordingly the controls generated below it should be moved up so that there won't be any white space.
This is very urgent
Again---I'm using ACTUATE 6
Thanks in advance
You'll probably need to use the AdjustSize method for each control.  I know you can change the height in this method, and I assume you can change the upper position as well.

You might need 2 global variables: MyOffset and MyHeight.  MyHeight will be the height of each control, if you want to display it.  MyOffset will be the Y position of the control within the frame.

In each control:
Sub AdjustSize()
   Position.Y = MyOffset
   If DataValue = 0 Then
      Size.Height = 0
   Else
      Size.Height = MyHeight
   End If
   MyOffset = MyOffset + MyHeight
End Sub

You'll have to assign MyOffset = 0 somewhere in the group component, and assign MyHeight = 15 * OnePoint (or something else that you see fit) in the Start method of the main app.  Also, make sure that the components are in the correct order in the Report Structure on the left side.  You might need to use the Scratch Pad to help with this.

This certainly isn't the best solution, but in a pinch, it should work ok.

I hope this at least points you down the right path.
Regards,
Michael
caster (Programmer)
11 Nov 03 22:28
Hi Miche
Thanks for your reply.
But the problem is different.
In my GroupBefore section I show different Counts.
Then there is Group Page header section in which I show labels.
What I want is if I reduce the height of the Group Before section, the page header should shift up so that no blank space appears between the GroupBefore and GroupPageHeader.
I not only want to reduce the size of the Controls in GroupBefore but want to reduce the Size of the GroupBefore component it self.

Thanks In Advance
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值