NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 26 27 28 29 30 … 93 Next »
wiztool WizUiButtonList behavior

 
  • 0 Vote(s) - 0 Average
wiztool WizUiButtonList behavior
pastro
Offline

Posting Freak

Posts: 1,885
Threads: 128
Joined: Jul 2006
#1
2009-01-14, 10:32 PM (This post was last modified: 2009-01-14, 10:37 PM by pastro.)
JW,
I just upgraded to the latest version of the dll and now I have an issue leaving the WizUiButtonList.

Previously ( I think) if you hit the down arrow when you were at the bottom of the list that key would be passed on to:







private bool Form_OnKeyDown(KeyEventArgs e)
....

switch (e.KeyCode)
{
case System.Windows.Forms.Keys.Up:
...

By:
public bool OnKeyDown(KeyEventArgs e)
{
// If there is a popup, process it.
if (this.activePopup != null)
{

return this.activePopup.OnKeyDown(e);
}

// Allow controls to handle keystroke
bool handled = Controls_OnKeyDown(e); //BY THIS

// If keystroke not handled, deal with it from the form level
if (!handled)
{
handled = Form_OnKeyDown(e); //and on bottom of list I think it used to be not handled
}
return handled;
}

Now I don't get the down arrow keypress when I am at the bottom of the list which I assume means you handle it in the buttonlist where previously you did not.
Was this change intentional?
GBpvr PC: Intel Celeron 1.8 Ghz. 768 Mb WinXp Home Sp2
Video: Diamond 128 Mb 9550
Capture Cards: PVR-150 & PVR-150 MCE w/fm + 2x MVP
Author of: BurnDVDX2 and Skiptool
pastro
Offline

Posting Freak

Posts: 1,885
Threads: 128
Joined: Jul 2006
#2
2009-01-14, 11:25 PM
I have a code workaround that reads the current buttonlist text and if it is the bottom value and the down key is pressed, it returns handled as false which then works ok.

However, it seems like there should be a more elegant way to handle this.
GBpvr PC: Intel Celeron 1.8 Ghz. 768 Mb WinXp Home Sp2
Video: Diamond 128 Mb 9550
Capture Cards: PVR-150 & PVR-150 MCE w/fm + 2x MVP
Author of: BurnDVDX2 and Skiptool
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#3
2009-01-15, 03:00 AM
No, that was not intentional. Try this version, see if it works as you expect.
pastro
Offline

Posting Freak

Posts: 1,885
Threads: 128
Joined: Jul 2006
#4
2009-01-15, 03:52 AM
JavaWiz Wrote:No, that was not intentional. Try this version, see if it works as you expect.


That fixed it. Can I go ahead and distribute this dll?
GBpvr PC: Intel Celeron 1.8 Ghz. 768 Mb WinXp Home Sp2
Video: Diamond 128 Mb 9550
Capture Cards: PVR-150 & PVR-150 MCE w/fm + 2x MVP
Author of: BurnDVDX2 and Skiptool
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#5
2009-01-15, 03:55 AM
pastro Wrote:That fixed it. Can I go ahead and distribute this dll?
Grab the version I just uploaded on the wiki (v1.0.20.0).
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



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

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

Linear Mode
Threaded Mode