View Single Post
  #25 (permalink)  
Old 04-07-2010, 04:48 PM
Nimdock's Avatar
Nimdock
Halfway to VIP Status
Offline
 
Join Date: Jan 2009
Posts: 645
Reputation: 1045
Nimdock is halfway to VIP status based on repNimdock is halfway to VIP status based on repNimdock is halfway to VIP status based on repNimdock is halfway to VIP status based on repNimdock is halfway to VIP status based on repNimdock is halfway to VIP status based on repNimdock is halfway to VIP status based on repNimdock is halfway to VIP status based on rep
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Tab Control

Quote:
Originally Posted by rstoyguy View Post
Here is a little something I've been working on. I added Facebook and fixed the issues with the messaging tab. Remove the one directory, and copy in the attached directory in the locations. It is important that this is added AFTER all your other manila files, that's why I have done it this way... Enjoy! This should work on other roms as well!


17 Tabs
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Home, Messages, Mail, Internet, Stocks, Weather,
Photos&Videos, Music, Calendar, Call History, People, Reader,
Documents, Facebook, Footprints, Twitter, Settings

Delete: ..\rstg_hd2_TMOUS_Sense25\EXT\LEO\COMMON\Packages_ Sense25_Tweaks

Add: ..\rstg_hd2_TMOUS_Sense25\EXT\LEO\COMMON\Packages_ Sense25_Tabs

New packages:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Manila Tabs - 2.5 - Dutty_E-Reader_Manila_tab_[WWE_]
Manila Tabs - 2.5 - FaceBook v1.0 24Mar10 ReleaseC
Manila Tabs - 2.5 - Uzeb_CallHistory(Non_ManilaTV)
Tab_Control

How to Modify "Tab_Control:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
I'm gonna briefly describe how to change the tab order...

Ok, there are 2 key files here.
26948339_manila -=- Tabs in Manila, must be cooked in. Edit with NotePad...

A look inside:



To Move the face book tab, cut and paste that line and renumber the tabs like so...


Turning Tabs On/Off:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Here is how you turn tabs on/off in a rom... In the attached file, look for the "Tab_Control" EXT. In the app.reg file will need to find your tab. Once you get your tabs ordered above export a registry key from:

[HKEY_LOCAL_MACHINE\Software\HTC\Manila\Configurati on]

Find your tab and modify the "Enabled" key. I'll show the before and after for turning off the Facebook tab
Hello there... :P

I think I am doing something wrong... Or for some reason this is not agreeing with me...

I added a Tab Control ext right after all the manila files...

In that folder this is the file hierarchy:

+Tab_Control
--files
---26948339_manila
--app.reg
--_skip


The contents of 26948339_manila are:

Code:
<Manila Mode9Path="HTC\Manila\manila.mode9">
	<Navigation>
		<PageGroup Name="Root">
			<Page Order="0" Name="home.page" PackageName="HTC" Default="true" Title="[[IDS_HOMETITLE]]">
				<ComponentReference Name="page" Mode9Path="HTC\Home\FakeHome.mode9?testParam=1" Component="GizmoRoot" SmartComponent="true"/>
				<ComponentReference Name="icon_normal" Mode9Path="HTC\Manila\icons.mode9" Component="Home_Off"/>
				<ComponentReference Name="icon_selected" Mode9Path="HTC\Manila\icons.mode9" Component="Home_On"/>
				<ComponentReference Name="icon_preview" Mode9Path="HTC\Manila\icons.mode9" Component="Home_Preview"/>
			</Page>
			<Page Order="1" Name="messaging.page" PackageName="HTC" Title="[[IDS_MESSAGESTITLE]]">
				<ComponentReference Name="page" Mode9Path="HTC\Messaging\messaging.mode9" Component="MessagesTopLevelPage" SmartComponent="true"/>
				<ComponentReference Name="icon_normal" Mode9Path="HTC\Manila\icons.mode9" Component="Messaging_Off"/>
				<ComponentReference Name="icon_selected" Mode9Path="HTC\Manila\icons.mode9" Component="Messaging_On"/>
				<ComponentReference Name="icon_preview" Mode9Path="HTC\Manila\icons.mode9" Component="Messaging_Preview"/>
			</Page>
			<Page Order="2" Name="email.page" PackageName="HTC" Title="[[IDS_EMAILTITLE]]">
				<ComponentReference Name="page" Mode9Path="HTC\Email\email.mode9" Component="GizmoRoot" SmartComponent="true"/>
				<ComponentReference Name="icon_normal" Mode9Path="HTC\Manila\icons.mode9" Component="Email_Off"/>
				<ComponentReference Name="icon_selected" Mode9Path="HTC\Manila\icons.mode9" Component="Email_On"/>
				<ComponentReference Name="icon_preview" Mode9Path="HTC\Manila\icons.mode9" Component="Email_Preview"/>
			</Page>
			<Page Order="3" Name="twitter.page" PackageName="HTC" Title="[[IDS_TWITTER]]">
				<ComponentReference Name="page" Mode9Path="HTC\Twitter\Twitter.mode9" Component="GizmoRoot" SmartComponent="true"/>
				<ComponentReference Name="icon_normal" Mode9Path="HTC\Manila\icons.mode9" Component="Twitter_Off"/>
				<ComponentReference Name="icon_selected" Mode9Path="HTC\Manila\icons.mode9" Component="Twitter_On"/>
				<ComponentReference Name="icon_preview" Mode9Path="HTC\Manila\icons.mode9" Component="Twitter_Preview"/>
			</Page>
			<Page Order="4" Name="internet.page" PackageName="HTC" Title="[[IDS_INTERNETPORTALTITLE]]">
				<ComponentReference Name="page" Mode9Path="HTC\Internet\internetportal.mode9" Component="GizmoRoot" SmartComponent="true"/>
				<ComponentReference Name="icon_normal" Mode9Path="HTC\Manila\icons.mode9" Component="Internet_Off"/>
				<ComponentReference Name="icon_selected" Mode9Path="HTC\Manila\icons.mode9" Component="Internet_On"/>
				<ComponentReference Name="icon_preview" Mode9Path="HTC\Manila\icons.mode9" Component="Internet_Preview"/>
			</Page>
			<Page Order="5" Name="calendar.page" PackageName="HTC" Default="true" Title="[[IDS_CALENDAR]]">
				<ComponentReference Name="page" Mode9Path="HTC\Calendar\Calendar.mode9" Component="CalendarComponent" SmartComponent="true"/>
				<ComponentReference Name="icon_normal" Mode9Path="HTC\Manila\CalendarIcon.mode9" Component="Calendar_Off"/>
				<ComponentReference Name="icon_selected" Mode9Path="HTC\Manila\CalendarIcon.mode9" Component="Calendar_On"/>
				<ComponentReference Name="icon_preview" Mode9Path="HTC\Manila\CalendarIcon.mode9" Component="Calendar_Preview"/>
			</Page>
			<Page Order="6" Name="weather.page" PackageName="HTC" Title="[[IDS_WEATHER]]">
				<ComponentReference Name="page" Mode9Path="HTC\Weather\weather.mode9" Component="GizmoRoot" SmartComponent="true"/>
				<ComponentReference Name="icon_normal" Mode9Path="HTC\Manila\icons.mode9" Component="Weather_Off"/>
				<ComponentReference Name="icon_selected" Mode9Path="HTC\Manila\icons.mode9" Component="Weather_On"/>
				<ComponentReference Name="icon_preview" Mode9Path="HTC\Manila\icons.mode9" Component="Weather_Preview"/>
			</Page>
			<Page Order="7" Name="album.page" PackageName="HTC" Title="[[IDS_PHOTOSANDVIDEOS]]">
				<ComponentReference Name="page" Mode9Path="HTC\Album\album.mode9" Component="GizmoRoot" SmartComponent="true"/>
				<ComponentReference Name="icon_normal" Mode9Path="HTC\Manila\icons.mode9" Component="Album_Off"/>
				<ComponentReference Name="icon_selected" Mode9Path="HTC\Manila\icons.mode9" Component="Album_On"/>
				<ComponentReference Name="icon_preview" Mode9Path="HTC\Manila\icons.mode9" Component="Album_Preview"/>
			</Page>
			<Page Order="8" Name="music.page" PackageName="HTC" Title="[[IDS_MUSICTITLE]]">
				<ComponentReference Name="page" Mode9Path="HTC\Music\music.mode9" Component="GizmoRoot" SmartComponent="true"/>
				<ComponentReference Name="icon_normal" Mode9Path="HTC\Manila\icons.mode9" Component="Music_Off"/>
				<ComponentReference Name="icon_selected" Mode9Path="HTC\Manila\icons.mode9" Component="Music_On"/>
				<ComponentReference Name="icon_preview" Mode9Path="HTC\Manila\icons.mode9" Component="Music_Preview"/>
			</Page>
			<Page Order="9" Name="people.page" PackageName="HTC" Title="[[IDS_FAVORITEPEOPLETITLE]]">
				<ComponentReference Name="page" Mode9Path="HTC\People\people.mode9" Component="GizmoRoot" SmartComponent="true"/>
				<ComponentReference Name="icon_normal" Mode9Path="HTC\Manila\icons.mode9" Component="People_Off"/>
				<ComponentReference Name="icon_selected" Mode9Path="HTC\Manila\icons.mode9" Component="People_On"/>
				<ComponentReference Name="icon_preview" Mode9Path="HTC\Manila\icons.mode9" Component="People_Preview"/>
			</Page>
			<Page Order="10" Name="inforwidget.page" PackageName="HTC" Title="[[IDS_STOCK]]">
				<ComponentReference Name="page" Mode9Path="HTC\Stock\infor.mode9?page=MyPortfolio" Component="DetailPage" SmartComponent="true"/>
				<ComponentReference Name="icon_normal" Mode9Path="HTC\Manila\inforicon.mode9" Component="infor_tray_icon"/>
				<ComponentReference Name="icon_selected" Mode9Path="HTC\Manila\inforicon.mode9" Component="infor_tray_icon_selected"/>
				<ComponentReference Name="icon_preview" Mode9Path="HTC\Manila\inforicon.mode9" Component="infor_tray_icon_preview"/>
			</Page>
			<Page Order="11" Name="settings.page" PackageName="HTC" Title="[[IDS_SETTINGSTITLE]]">
				<ComponentReference Name="page" Mode9Path="HTC\Settings\settings.mode9" Component="SettingsPageComponent" SmartComponent="true"/>
				<ComponentReference Name="icon_normal" Mode9Path="HTC\Manila\icons.mode9" Component="Settings_Off"/>
				<ComponentReference Name="icon_selected" Mode9Path="HTC\Manila\icons.mode9" Component="Settings_On"/>
				<ComponentReference Name="icon_preview" Mode9Path="HTC\Manila\icons.mode9" Component="Settings_Preview"/>
			</Page>
		</PageGroup>
	</Navigation>
</Manila>
And the contents of app.reg are:

Code:
REGEDIT4

[HKEY_LOCAL_MACHINE\Software\HTC\Manila\Configuration]

[HKEY_LOCAL_MACHINE\Software\HTC\Manila\Configuration\11]
"Title"="[[IDS_SETTINGSTITLE]]"
"PageName"="Manila://settings.page"
"Enable"=dword:00000001

[HKEY_LOCAL_MACHINE\Software\HTC\Manila\Configuration\10]
"Title"="[[IDS_STOCK]]"
"PageName"="Manila://inforwidget.page"
"Enable"=dword:00000000

[HKEY_LOCAL_MACHINE\Software\HTC\Manila\Configuration\9]
"Enable"=dword:00000000
"Title"="[[IDS_FAVORITEPEOPLETITLE]]"
"PageName"="Manila://people.page"

[HKEY_LOCAL_MACHINE\Software\HTC\Manila\Configuration\8]
"Enable"=dword:00000001
"Title"="[[IDS_MUSICTITLE]]"
"PageName"="Manila://music.page"

[HKEY_LOCAL_MACHINE\Software\HTC\Manila\Configuration\7]
"Title"="[[IDS_PHOTOSANDVIDEOS]]"
"PageName"="Manila://album.page"
"Enable"=dword:00000001

[HKEY_LOCAL_MACHINE\Software\HTC\Manila\Configuration\6]
"Title"="[[IDS_WEATHER]]"
"PageName"="Manila://weather.page"
"Enable"=dword:00000001

[HKEY_LOCAL_MACHINE\Software\HTC\Manila\Configuration\5]
"Title"="[[IDS_CALENDAR]]"
"PageName"="Manila://calendar.page"
"Enable"=dword:00000001

[HKEY_LOCAL_MACHINE\Software\HTC\Manila\Configuration\4]
"Title"="[[IDS_INTERNETPORTALTITLE]]"
"PageName"="Manila://internet.page"
"Enable"=dword:00000001

[HKEY_LOCAL_MACHINE\Software\HTC\Manila\Configuration\3]
"Title"="[[IDS_TWITTER]]"
"PageName"="Manila://twitter.page"
"Enable"=dword:00000001

[HKEY_LOCAL_MACHINE\Software\HTC\Manila\Configuration\2]
"Title"="[[IDS_EMAILTITLE]]"
"PageName"="Manila://email.page"
"Enable"=dword:00000001

[HKEY_LOCAL_MACHINE\Software\HTC\Manila\Configuration\1]
"Title"="[[IDS_MESSAGESTITLE]]"
"PageName"="Manila://messaging.page"
"Enable"=dword:00000001

[HKEY_LOCAL_MACHINE\Software\HTC\Manila\Configuration\0]
"Title"="[[IDS_HOMETITLE]]"
"PageName"="Manila://home.page"
"Enable"=dword:00000001

I don't have a Facebook, Footprints or any of the other new tabs. When I activate this ext in the kitchen the boot starts normally but Sense never starts. When I cook without it Sense starts fine... Do you have any idea what am I doing wrong?

Any help would be appreciated.

Last edited by Nimdock; 04-07-2010 at 05:00 PM.