Font Rotation In conventional Jade controls

For questions and postings not covered by the other forums
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Font Rotation In conventional Jade controls

Postby ConvertFromOldNGs » Fri Aug 07, 2009 1:09 pm

by Martin Breitland >> Mon, 6 Aug 2007 5:09:00 GMT

Does anyone know if it possible to rotate text using any of the standard Jade controls? (JadeRichText, label etc..)

The requirement is to use a barcode font (Intel code39) and allow the barcode to be printed down the side of the page.

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Font Rotation In conventional Jade controls

Postby ConvertFromOldNGs » Fri Aug 07, 2009 1:09 pm

by Allistar >> Mon, 6 Aug 2007 6:23:41 GMT

You can use the drawing primitives to rotate the text you draw. You could create a subclass from BaseControl to wrap this up in a reusable control.

Allistar.

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Font Rotation In conventional Jade controls

Postby ConvertFromOldNGs » Fri Aug 07, 2009 1:09 pm

by Martin Breitland >> Tue, 7 Aug 2007 5:13:44 GMT

Thanks Allistar, I found the methods you were referring to and they were exactly what I needed. Much easier than trying to manipulate the standard label control...

My first implementation was done using a new control class and the window level primitive methods. It was working ok but I then realised the same drawing methods were also present on the printer class, and that resulted in a solution less dependent on frame placement when melded onto a report 'controller' class.

Thanks again.


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 47 guests