Top position notation in report
Phil (OmnisList)
phil at pgpotter.co.uk
Fri Dec 9 14:52:14 UTC 2022
Hi Jef,
Something to do with sections within an omnis report, is probably where
you are having an issue.
I think it was Kelly who mentioned using something like
CalculatepPosition.$posmodeas kPosPaper
within a print method of an object to put whatever anywhere on the whole
page...
Your construct method is not a print method, so different, but will
probably still be constrained by the section it is in, giving you a
different top than expected.
maybe looking up kPosPaper will help, or someone else with more Omnis
report knowledge my know better.... I use oWrite more often these days.
regards
Phil Potter
Based in Chester in the UK.
On 09/12/2022 14:26, Jef Leys | Desim wrote:
> List,
>
> In Omnis 10.2 on Mac OS X I’m trying to draw rectangles and text fields in a report.
>
> I do this in the construct of that report.
>
> Do $cinst.$objs.$add(kRect,(0+ExtraVertical),0,rContentLine.LabelHeight,rContentLine.LabelWidth) Returns rObject
> Do rObject.$backcolor.$assign(kWhite)
> Do rObject.$backpattern.$assign(1)
> Do rObject.$linestyle.$assign(8)
>
> And
>
> Do $cinst.$objs.$add(kText,rContentLine.Line1PositonTop+ExtraVertical,rContentLine.TextPositionLeft,0.457,rContentLine.TextWidth) Returns rObject
> Do rObject.$text.$assign(rContentLine.Line1Text)
> Do rObject.$align.$assign(kCenterJst)
> Do rObject.$font.$assign('Geneva')
> Do rObject.$fontsize.$assign(rContentLine.Lijn1Size)
> Do rObject.$fontstyle.$assign(kItalic)
> Do rObject.$textcolor.$assign(kBlack)
>
>
> The problem is the vertical positioning
>
> The position the rectangle or text field is printed doesn’t reflect the ’top’ parameter.
> The other parameters (left, height an width) are correctly displayed.
>
> What am I doing wrong? Is there a better way?
>
> Jef Leys
>
>
>
>
>
>
>
>
>
>
>
> _____________________________________________________________
> Manage your list subscriptions athttps://lists.omnis-dev.com
> Start a new message ->mailto:omnisdev-en at lists.omnis-dev.com
More information about the omnisdev-en
mailing list