Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Settings for User's selected 'theme'

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-19-2008, 04:13 PM
willisgt's Avatar
Senior Member
 
Join Date: Aug 2007
Location: Nacogdoches, Texas USA
Posts: 162
Default Settings for User's selected 'theme'

I'm wondering two things:

1.) What sort of information is stored in a Windows Mobile 'theme'? By that, I mean the theme a user can select in Start > Settings > Today.

2.) How can I get to that information?

My goal is to have my application mirror the user's selected theme, especially with respect to color, font, and font size.

Strange to think I'm even worried about such a thing... I recall having more than one discussion on the virtues of green vs. amber monochrome displays, back in the day...

Gary
__________________
PC: Windows XP Pro SP3 / Basic4PPC v6.5
PPC: HTC 8925 (AT&T Tilt) / Windows Mobile 6
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 04:27 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by willisgt View Post
Strange to think I'm even worried about such a thing... I recall having more than one discussion on the virtues of green vs. amber monochrome displays, back in the day...
Green, every time, and driven by a Hercules card!
Reply With Quote
  #3 (permalink)  
Old 02-21-2008, 04:06 PM
willisgt's Avatar
Senior Member
 
Join Date: Aug 2007
Location: Nacogdoches, Texas USA
Posts: 162
Default What I've learned on this...

For those who may be wondering, here's what I've learned on this:

1.) The data is stored in a kind of a CAB file. These are stored in either the Windows or My Documents folders. The files have an extension of *.tsk.

2.) The registry entries which store the data are:

HKEY_CURRENT_USER\Software\Microsoft\Today
HKEY_LOCAL_MACHINE\Software\Microsoft\Color

I'm using an altered version of the code Erel uses in GPS4PPC to locate the COM ports to try to resolve the values for these, but I'm doing something wrong. Admittedly, I know almost nothing about the Windows registry.

Code:
Sub Globals

    
'Declare the global variables here.

    
Dim subKeys(0As String    
    
Dim values(0As String

End Sub


Sub App_Start

    registry.New1

    Form1.Show
    
    
'Gets the list of active drivers.

    al.Clear
    lb.Clear
    
    
If CPPC Then

        registry.RootKey( registry.rtCurrentUser )

        
'Gets the list of active drivers.
        subKeys() = registry.GetSubKeyNames( "Software\Microsoft\Today" )    ' "Drivers\Active"

        subkeycount = ArrayLen( SubKeys() )

        al.Add( 
"subkeys: " & subkeycount )

        
For i = 0 To subkeycount - 1

            values() = registry.GetValueNames( 
"Software\Microsoft\Today\" & subKeys(i) ) ' Drivers\Active\

            
For i2 = 0 To ArrayLen( values() ) - 1

                
If values( i2 ) = "Name" Then 'Checks if Name value exists.

                    name = registry.GetValue( 
"Software\Microsoft\Today\" & subKeys(i), "Name" )    ' Drivers\Active\

                    key = registry.GetValue( 
"Software\Microsoft\Today\" & subKeys(i),"Key" )    ' Drivers\Active\
                    al.Add( name & "" & registry.GetValue( key, "FriendlyName" ) ) 'Gets the FriendlyName value.

                    
Exit

                
Else

                    al.Add( values(i2) & 
": (no name)" )

                
End If


                
For j = 0 To registry.ValueCount( subKeys(i) ) - 1
                    al.Add( 
"value: " & registry.GetValue( subKeys(i), values(i2) ) )
                
Next

            
Next

        
Next


        
For i = 0 To al.Count-1
    
            lb.Add( al.Item(i) ) 
'Adds the values to the ListBox.

        
Next

    
Else

        lb.Add( 
"Please run this program on a mobile device." )

    
End If

End Sub
As always, any help on this is greatly appreciated.


Gary

__________________
PC: Windows XP Pro SP3 / Basic4PPC v6.5
PPC: HTC 8925 (AT&T Tilt) / Windows Mobile 6
Reply With Quote
Reply


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

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Save program settings ( file or registry ?) TWELVE Questions (Windows Mobile) 7 05-11-2008 06:12 PM
Get and update selected cell in ListView tsteward Questions (Windows Mobile) 5 04-29-2008 03:45 PM
Port & Baud GPS settings for TytnII colin9876 Questions (Windows Mobile) 9 11-17-2007 10:54 AM
Tablecell 0 not selected Scubaticus Bug Reports 4 07-30-2007 09:03 PM
Regional Settings: Error loading program. Exception mtse Bug Reports 0 05-24-2007 01:40 AM


All times are GMT. The time now is 07:01 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0