SageTV Community  

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


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.

Thread Tools Search this Thread Display Modes
Old 02-12-2007, 02:30 AM
GKusnick's Avatar
GKusnick GKusnick is offline
Join Date: Dec 2005
Posts: 5,083
Right-to-left panel layout

I have a situation in which I want to lay out panels in a horizontal arrangement starting from the right end. For simplicity let's consider the case of just two child panels contained in a parent panel. The right-hand panel has some desired width, there's a small gap between panels, and the left-hand panel gets whatever space is left over. So we have:

WP = width in pixels of parent panel
WL = width in pixels of left-hand panel
WR = width in pixels of right-hand panel
WG = width in pixels of gap

So far this looks easy: WL = WP - WR - WG. The catch is that I don't know the value (in pixels) of WP. If I could express WR and WG as fractions of WP (call them FR and FG), then I could set FL = 1.0 - FR - FG. But that doesn't work either because I want WR to scale with the size of the entire UI, not the size of the parent panel. So I can't calculate FR without knowing WP.

If this were a left-to-right layout, I could do it with a Horizontal arrangement in the parent panel, and just specify a size of 1.0 for the leftovers. But there doesn't seem to be an easy way to do it the other way round, i.e. putting the leftovers on the left (so to speak).

Any ideas? Am I missing something obvious for getting the value of WP?
-- Greg
Reply With Quote

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 11:44 AM.

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