SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Studio
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-04-2006, 09:32 AM
Morgan111's Avatar
Morgan111 Morgan111 is offline
Sage Fanatic
 
Join Date: Nov 2003
Location: Oak Ridge, Tennessee
Posts: 762
Scaling Text widget size within image widget area

I have been trying to figure out how to limit the width of text widgets to be that of an image widget which preserves its aspect ratio. The text is to be displayed on top of the image. At different screen aspect rations, the image has a changing percentage of screen width, while the text widget does not size proportionally to the image at all screen aspect ratios.

How can I have the text objects always size to the area of the image widget?
Reply With Quote
  #2  
Old 12-04-2006, 12:12 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
The visible size of the image is not necessarily the same as the screen area allocated to the image. You can see this if you select the image widget in Studio: the yellow box is often taller or wider than the actual image (if you have "preserve aspect ratio" checked). As far as I know there's no way to query the image to find out its actual visible size.

Your best bet is probably going to be to calculate the size you want the image to be and then enforce that size on both widgets. To make it work at different screen aspect ratios, you're probably going to have to factor the aspect ratio into your calculation. In V6 there's an API function for GetDisplayAspectRatio.
__________________
-- Greg
Reply With Quote
  #3  
Old 12-04-2006, 02:16 PM
Morgan111's Avatar
Morgan111 Morgan111 is offline
Sage Fanatic
 
Join Date: Nov 2003
Location: Oak Ridge, Tennessee
Posts: 762
Thanks Greg. The aspect ratio will work for me. I wish there was something that would work for v5, but I am using the background component anyway so I guess it doesn't matter.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 01:37 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.