NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 12 13 14 15 16 … 93 Next »
Embed Custom UserControl?

 
  • 0 Vote(s) - 0 Average
Embed Custom UserControl?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,787
Threads: 769
Joined: Nov 2003
#11
2011-10-02, 08:51 PM
Combining that window handle with something like this: http://pinvoke.net/default.aspx/user32/G...wRect.html
cncb
Offline

Senior Member

Posts: 729
Threads: 112
Joined: Aug 2011
#12
2011-10-02, 09:00 PM
Yeah, I should be able to figure out the position of the app window pretty easily but I think you would have to give me the sizing/scaling of the elements on the screen.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,787
Threads: 769
Joined: Nov 2003
#13
2011-10-02, 09:06 PM
With the window location and size, you can use the SkinHelper's GetRelativeElementRectangle() to give the relative size. ie, the values are percentages, and the actual size/offset would be calculated based on the window size.
cncb
Offline

Senior Member

Posts: 729
Threads: 112
Joined: Aug 2011
#14
2011-10-02, 09:57 PM
Ok, thanks. I'll give that a go.
cncb
Offline

Senior Member

Posts: 729
Threads: 112
Joined: Aug 2011
#15
2011-10-03, 06:21 PM
Assuming I'm not misunderstanding it, I think I may have found a bug in the way the "UI Zoom Percent" works. It doesn't seem to center the UI on the screen. For example, if I use a value of -10 for the zoom there is 26mm of black border on the left and 21mm on the right (on my LCD monitor). It is not centered vertically as well. This is not a huge deal but does cause the placement of my Form to seem noticeably off.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,787
Threads: 769
Joined: Nov 2003
#16
2011-10-03, 06:25 PM
Ok, I'll check it out. Bit busy with day job stuff right now though.
cncb
Offline

Senior Member

Posts: 729
Threads: 112
Joined: Aug 2011
#17
2011-10-04, 09:06 PM
Thanks. Could you also consider broadcasting an event when the screensaver kicks in? I need to hide my Form and now I just have it disable the screensaver instead.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,787
Threads: 769
Joined: Nov 2003
#18
2011-10-04, 09:13 PM
Ok, I've added SCREENSAVER_STARTING/SCREENSAVER_STOPPING for the next build of NextPVR.exe
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): « Previous 1 2


Possibly Related Threads…
Thread Author Replies Views Last Post
  Custom recording tomx 2 685 2025-02-07, 09:14 AM
Last Post: tomx
  custom creation of a recurring error p37307 2 2,376 2017-12-19, 03:45 AM
Last Post: mvallevand
  Custom recording rules mvallevand 58 22,515 2014-12-08, 03:28 AM
Last Post: mvallevand
  Attention Sub: Open TV / Custom Data Grabber plugin Benoire 2 2,981 2014-11-14, 02:05 AM
Last Post: Benoire
  How to display custom plugin names and descriptions. whurlston 29 7,673 2010-01-03, 08:48 PM
Last Post: whurlston
  Custom popups? bgowland 2 1,809 2008-05-11, 12:26 AM
Last Post: bgowland
  custom screen saver, returning to last plugin reven 2 1,737 2006-05-17, 09:21 PM
Last Post: sub
  skins and custom tasks stp 8 3,551 2004-05-09, 05:42 PM
Last Post: stp

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode