comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Get IDLgrText size
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Get IDLgrText size [message #43469 is a reply to message #43403] Wed, 13 April 2005 09:14 Go to previous messageGo to previous message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
Antonio Santiago wrote:
>
>> Why not draw the text, get the dimensions, then draw the rectangle
>> based on those dimensions? Am I missing something?
>>
>
> Because I'm creating objects composed by two elements (or two objects
> more) a rectangle and a text. Then I can't draw one element and then the
> other because I need to draw both at a time (the complete object).

Unless I am missing something you can still draw twice. Create the
text, draw, create the box and add it to the model containing the text
and draw again. They will in effect be drawn at the same time since the
redraw would be so quick.

Another option would be to create a "boxed text" object which is a
subclass of IDLgrModel. Override the superclass draw method such that
if it is the first time being called (or text parameters have changed)
you modify your box dimensions. This would be the way to go if you were
going to use this often.


> I'm working with the previous IDLgrBuffer option.

This works too :)

-Rick
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: JPEG2000 compression ratios?
Next Topic: Re: problem with xroi continued....

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 11:22:13 PDT 2025

Total time taken to generate the page: 1.76040 seconds