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 08-09-2009, 12:26 PM
kricker's Avatar
kricker kricker is offline
Sage Icon
 
Join Date: Jan 2005
Location: Knoxville, TN
Posts: 1,137
Send a message via AIM to kricker Send a message via MSN to kricker
Force text to capitals

Is there a way to force text to be in all capitals? For example in SageMC's customizable menus. Can I do something in studio to force a font to be displayed in all caps, even if the user typed lower case letters?
Reply With Quote
  #2  
Old 08-09-2009, 12:35 PM
MeInMaui's Avatar
MeInMaui MeInMaui is offline
SageTVaholic
 
Join Date: Feb 2005
Location: Maui. HI
Posts: 4,203
Try:

Code:
java_lang_String_toUpperCase( string )
Aloha,
Mike
__________________
"Everything doesn't exist. I'm thirsty." ...later... "No, it's real!!! I'm full."
- Nikolaus (4yrs old)
Reply With Quote
  #3  
Old 08-09-2009, 12:40 PM
razrsharpe razrsharpe is offline
Sage Icon
 
Join Date: Sep 2008
Location: Boston, MA
Posts: 2,111
you should be able to use the java string functions

this: http://java.sun.com/j2se/1.5.0/docs/...l#toUpperCase()

something like this in studio:
java_lang_String_toUpperCase("userString")

EDIT: looks like mike beat me to it
__________________
Server 2003 r2 32bit, SageTV9 (finally!)
2x Dual HDHR (OTA), 1x HD-PVR (Comcast), 1x HDHR-3CC via SageDCT (Comcast)
2x HD300, 1x SageClient (Win10 Test/Development)
Check out TVExplorer
Reply With Quote
  #4  
Old 08-09-2009, 12:48 PM
kricker's Avatar
kricker kricker is offline
Sage Icon
 
Join Date: Jan 2005
Location: Knoxville, TN
Posts: 1,137
Send a message via AIM to kricker Send a message via MSN to kricker
Sorry to be dense, but exactly where do I put that. I'm still learning I want the dynamic menu that can be setup in SageMC to always be displayed in all capitals. I assume I can somehow do this in the "text theme" (If I am using the words correctly here) so it'll apply to all items using that theme.

Sample Code from the "Menu Theme":
Code:
   <Theme ID="1" Name="MenuTheme" Sym="PRQST-1200389">
    <BackgroundImage>=If( MenuType == "DynamicSubMenu" &amp;&amp; GetWidgetName( GetCurrentMenuWidget()) == "Dynamic Menu by nielm", java_util_Map_get(gMenuBackgrounds, "Dynamic Submenu by nielm"), java_util_Map_get(gMenuBackgrounds, GetWidgetName(GetCurrentMenuWidget())))</BackgroundImage>
    <TileBackgroundImage>false</TileBackgroundImage>
    <StretchBackgroundImage>true</StretchBackgroundImage>
    <ForegroundColor>=GetProperty("sagemc/heading_font_color", "0xf0f0f0")</ForegroundColor>
    <ForegroundAlpha>255</ForegroundAlpha>
    <ForegroundSelectedColor>0xf0f0f0</ForegroundSelectedColor>
    <FontFace>=GetProperty("sagemc/ui/heading_font_face", "Arial")</FontFace>
    <FontSize>=GetProperty("sagemc/ui/heading_font_size", 28)-10</FontSize>
    <FontStyle>=GetProperty("sagemc/ui/base_font_style", "Bold")</FontStyle>
    <FocusChangeSound>=If(PlaySounds, ROOTPATH + java_io_File_separator + "sounds" + java_io_File_separator + "focus.wav", null)</FocusChangeSound>
    <ItemSelectSound>=If(PlaySounds, ROOTPATH + java_io_File_separator + "sounds" + java_io_File_separator + "click.wav", null)</ItemSelectSound>
    <DisableFontScaling>false</DisableFontScaling>
    <Menu Ref="30103" Name="Menu THEME"/>

Last edited by kricker; 08-09-2009 at 01:17 PM.
Reply With Quote
  #5  
Old 08-09-2009, 02:19 PM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
You need set it to a variable and then pass that variable to uppercase.

Name="Menu THEME"

Name = java_lang_String_toUpperCase( Name )
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Force tuner SageGk SageTV Software 0 12-10-2008 10:57 PM
Favorites Force Recording? joe123 SageTV Software 37 03-07-2007 06:06 PM
SageMC - Numeric Entry Switching to Capitals? Alfiegerner SageMC Custom Interface 4 01-20-2007 03:18 PM
Force downmix to stereo from 5.1 drpixel SageTV Beta Test Software 2 10-16-2006 06:49 PM
Force EPG update? laurenglenn SageTV Software 4 03-30-2003 01:56 PM


All times are GMT -6. The time now is 02:25 AM.


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