Page 1 of 1
Marquee line's alignment ...

Posted:
August 9th, 2010, 1:31 pm
by actalk
Hello
Thank you for new relese of the Marquee component.
New properties are very good.
While vertical movemet (orientation = moVertical)
I think TMarqueeItem should have an additional property (Alignment Property).
As I can see Drawtext- DT_CENTER, DT_RIGHT, DT_LEFT canges may be enough for text style item.
Thanks.
Re: Marquee line's alignment ...

Posted:
August 10th, 2010, 2:28 am
by Kambiz
Good suggestion, thanks!
Re: Marquee line's alignment ...

Posted:
August 13th, 2010, 10:00 am
by Kambiz
The update is ready to download now.
Re: Marquee line's alignment ...

Posted:
August 15th, 2010, 10:02 am
by HPW
Hello Kambiz,
Thanks for the new version with the nice additions.
However I have a problem with the new Alignment-property of TMarqueeCollection.
When I open the demo and run it, I see the horzontal scroll centered in the vertical.
Then I go back in the IDE and changed to maLeftOrTop or maRightOrBottom.
In the IDE I see the change happen. It scrolls an the top od bottom.
But when I compile and run it it reverts back to maCenter.
In the demo code I did not find any code about setting it to maCenter in formcreate or somewhere.
I have the same problem in my neobook-plugin-code.
Can you check this problem?
Regards
Hans-Peter
Re: Marquee line's alignment ...

Posted:
August 15th, 2010, 10:57 am
by Kambiz
Alignment is a property of TMarqueeItem, therefore each item can have its own alignment value. The default value of Alignment property is maCenter.
In the demo, each time the application starts or user clicks on "Apply Text" button, the marquee items are recreated. That means, the item you see at design time, will be deleted at runtime by the demo application.
Re: Marquee line's alignment ...

Posted:
August 15th, 2010, 3:45 pm
by HPW
Ah, a misunderstanding on my side.
So got it working.
I have released a update of my neobook-plugin here:
http://www.neosoftware.com/forum/viewto ... 9#11199169Thanks again for the ongoing development.
Hans-Peter