MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Help on Development » General Development (no feature request here!)


General Development (no feature request here!) You were able to fix an issue, or improved a feature? Post it here.

Reply
 
Thread Tools Display Modes
Old 2006-12-03, 09:24   #11 (permalink)
Portal Member
 
Join Date: Nov 2006
Posts: 60
Thanks: 0
Thanked 7 Times in 4 Posts


Default

I just tried it and I don't see allowed zoom modes, not in design mode and not in compiled version.
The code for controls you added is inside InitializeComponent(), which is special method:
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
As I understand this code is generated by designer, which stores it's data in .resx files. May be something more need to be done before compilation?
cpp2005 is offline   Reply With Quote
Old 2006-12-03, 09:53   #12 (permalink)
Portal Developer
 
ziphnor's Avatar
 
Join Date: Aug 2005
Location: Copenhagen
Age: 29
Posts: 709
Thanks: 0
Thanked 9 Times in 6 Posts

Country:

My System

Default

InitializeComponent is in for example Television.cs (starting on line 126) , not in an resx file.

Just to be sure you took the files from the patch and applied them to an updated SVN checkout and you see no mention of allowed zoom modes?

Among the member fields you should see:
private MediaPortal.UserInterface.Controls.MPGroupBox gAllowedModes;
private MediaPortal.UserInterface.Controls.MPCheckBox cbAllowNormal;
private MediaPortal.UserInterface.Controls.MPCheckBox cbAllowZoom149;
private MediaPortal.UserInterface.Controls.MPCheckBox cbAllowOriginal;
private MediaPortal.UserInterface.Controls.MPCheckBox cbAllowZoom;
private MediaPortal.UserInterface.Controls.MPCheckBox cbAllowLetterbox;
private MediaPortal.UserInterface.Controls.MPCheckBox cbAllowStretch;
private MediaPortal.UserInterface.Controls.MPCheckBox cbAllowPanScan;

And in initialize component you should have:
this.gAllowedModes = new MediaPortal.UserInterface.Controls.MPGroupBox();
this.cbAllowNormal = new MediaPortal.UserInterface.Controls.MPCheckBox();
this.cbAllowZoom149 = new MediaPortal.UserInterface.Controls.MPCheckBox();
this.cbAllowOriginal = new MediaPortal.UserInterface.Controls.MPCheckBox();
this.cbAllowZoom = new MediaPortal.UserInterface.Controls.MPCheckBox();
this.cbAllowLetterbox = new MediaPortal.UserInterface.Controls.MPCheckBox();
this.cbAllowStretch = new MediaPortal.UserInterface.Controls.MPCheckBox();
this.cbAllowPanScan = new MediaPortal.UserInterface.Controls.MPCheckBox();
etc...
ziphnor is offline   Reply With Quote
Old 2006-12-03, 10:49   #13 (permalink)
Portal Developer
 
ziphnor's Avatar
 
Join Date: Aug 2005
Location: Copenhagen
Age: 29
Posts: 709
Thanks: 0
Thanked 9 Times in 6 Posts

Country:

My System

Default

You must be doing something wrong. I checked out a fresh SVN copy, applied my batch, executed 'Build Release.bat" and ran xbmc/bin/Release/Configuration.exe and the allowed zoom modes where there.
ziphnor is offline   Reply With Quote
Old 2006-12-03, 10:56   #14 (permalink)
Portal Member
 
Join Date: Nov 2006
Posts: 60
Thanks: 0
Thanked 7 Times in 4 Posts


Default

Yes I did it as you said and I see these members in Television.cs, but I don't see the controls in design mode.
You didn't add this code directly, you used designer which added it (between other things) to InitializeComponents, right? I mean something need to be done to synchronize between designer view and C# code, I think those are resx files. May be I'm wrong and it's something on my computer, let's see what other people say.
cpp2005 is offline   Reply With Quote
Old 2006-12-03, 11:15   #15 (permalink)
Portal Member
 
Join Date: Nov 2006
Posts: 60
Thanks: 0
Thanked 7 Times in 4 Posts


Default

Ok I did some tests and you are right, designer should synchronize automatically, so I did something wrong, sorry!
cpp2005 is offline   Reply With Quote
Old 2006-12-03, 12:43   #16 (permalink)
Portal Developer
 
ziphnor's Avatar
 
Join Date: Aug 2005
Location: Copenhagen
Age: 29
Posts: 709
Thanks: 0
Thanked 9 Times in 6 Posts

Country:

My System

Default

Quote:
Originally Posted by cpp2005 View Post
Ok I did some tests and you are right, designer should synchronize automatically, so I did something wrong, sorry!
You probably want to do a complete rebuild, the designer is a bit weird at times.
ziphnor is offline   Reply With Quote
Old 2006-12-04, 21:49   #17 (permalink)
Portal Developer
 
ziphnor's Avatar
 
Join Date: Aug 2005
Location: Copenhagen
Age: 29
Posts: 709
Thanks: 0
Thanked 9 Times in 6 Posts

Country:

My System

Default

Hmm, still hasnt entered SVN..

If it hasnt made it to SVN yet because there is something wrong with it, could someone maybe fill me in on the problem so i can solve it?
ziphnor is offline   Reply With Quote
Old 2006-12-05, 08:25   #18 (permalink)
Portal Member
 
Join Date: Jun 2005
Location: Copenhagen
Age: 29
Posts: 21
Thanks: 2
Thanked 2 Times in 1 Post

Country:


Default

It would be nice to have this code added to SVN. Its a feature that have been requested numerous times, and now that somebody took the time to do it, please add it into SVN.
chrholm is offline   Reply With Quote
Old 2006-12-06, 09:09   #19 (permalink)
Portal Member
 
Join Date: Nov 2006
Posts: 60
Thanks: 0
Thanked 7 Times in 4 Posts


Default

I did a rebuild and it's working perfectly, thanks ziphnor!
cpp2005 is offline   Reply With Quote
Old 2006-12-08, 19:16   #20 (permalink)
Portal Developer
 
Join Date: Apr 2006
Location: Chicago
Posts: 513
Thanks: 2
Thanked 13 Times in 9 Posts

Country:


Default

If I had to guess, the developers probably allow people who are familiar with the code to add it. I wrote a patch for the firefly remote and it was added by mpod. I would think that frodo would monitor tv patches, and he is busy these days. I have a patch that I too would like added.
diehard2 is offline   Reply With Quote
Reply

Bookmarks

Tags
disabling, modes, patch, unwanted, zoom

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Zoom : adding 'no aspect ratio change' in general settings miljbee Improvement Suggestions 61 2006-11-10 14:54
AverTV Purity-3D Dual MCE 500 Drivers Technifide General Support 10 2006-10-17 14:54
Choose your own screen modes (zoom modes) maysider Improvement Suggestions 2 2006-09-29 10:34
BUG: Recordings in powerscheduler Glith The old Bugreport Forum 8 2006-07-13 12:38
user definable zoom modes MrSensitive Improvement Suggestions 5 2005-01-28 01:17


All times are GMT +1. The time now is 01:20.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress