![]() |
|
|||||||
| 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 |
|
#1
|
||||
|
||||
|
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?
|
|
#2
|
||||
|
||||
|
Try:
Code:
java_lang_String_toUpperCase( string ) Mike
__________________
"Everything doesn't exist. I'm thirsty." ...later... "No, it's real!!! I'm full." - Nikolaus (4yrs old) |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
||||
|
||||
|
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" && 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. |
|
#5
|
|||
|
|||
|
You need set it to a variable and then pass that variable to uppercase.
Name="Menu THEME" Name = java_lang_String_toUpperCase( Name ) |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
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 |