2011-10-02, 08:51 PM
Combining that window handle with something like this: http://pinvoke.net/default.aspx/user32/G...wRect.html
2011-10-02, 08:51 PM
Combining that window handle with something like this: http://pinvoke.net/default.aspx/user32/G...wRect.html
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.
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.
2011-10-02, 09:57 PM
Ok, thanks. I'll give that a go.
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.
2011-10-03, 06:25 PM
Ok, I'll check it out. Bit busy with day job stuff right now though.
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.
2011-10-04, 09:13 PM
Ok, I've added SCREENSAVER_STARTING/SCREENSAVER_STOPPING for the next build of NextPVR.exe
|
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
custom creation of a recurring error | p37307 | 2 | 2,048 |
2017-12-19, 03:45 AM Last Post: mvallevand |
|
Custom recording rules | mvallevand | 58 | 20,223 |
2014-12-08, 03:28 AM Last Post: mvallevand |
|
Attention Sub: Open TV / Custom Data Grabber plugin | Benoire | 2 | 2,752 |
2014-11-14, 02:05 AM Last Post: Benoire |
|
How to display custom plugin names and descriptions. | whurlston | 29 | 6,682 |
2010-01-03, 08:48 PM Last Post: whurlston |
|
Custom popups? | bgowland | 2 | 1,660 |
2008-05-11, 12:26 AM Last Post: bgowland |
|
custom screen saver, returning to last plugin | reven | 2 | 1,566 |
2006-05-17, 09:21 PM Last Post: sub |
|
skins and custom tasks | stp | 8 | 3,201 |
2004-05-09, 05:42 PM Last Post: stp |