Import from Clipboard disabled when it shouldn't
Posted: Wed Sep 18, 2013 10:10 am
0. Make sure that the Clipboard is empty or with a text in it (IOW a non-graphic content).
1. Start XnViewMP
2. Run another program (eg. MSPaint) in order to get a window open
3. Press Alt+PrtScr to copy the active window to the Clipboard
4. Go to XnViewMP
Expected:
The Edit | Import from Clipboard should be activated and the user has the ability to have the image of the captured window.
Actual:
The Edit | Import from Clipboard is disabled (grayed).
5. (optional) To test the capture go to Microsoft Paint and press Ctrl+V. The captured image should appear.
1000. (mandatory) Why I don't use the XnViewMP's Capture tool? Here's why: http://newsgroup.xnview.com/viewtopic.php?f=60&t=28452
Musings: Btw, why the Import from Clipboard is grayed???... IMHO this induces state management which is an unneeded burden/complication in the code. I would just leave it as is (always enabled) and I would check if I have a compatible Clipboard format only in OnClick handler.
1. Start XnViewMP
2. Run another program (eg. MSPaint) in order to get a window open
3. Press Alt+PrtScr to copy the active window to the Clipboard
4. Go to XnViewMP
Expected:
The Edit | Import from Clipboard should be activated and the user has the ability to have the image of the captured window.
Actual:
The Edit | Import from Clipboard is disabled (grayed).
5. (optional) To test the capture go to Microsoft Paint and press Ctrl+V. The captured image should appear.
1000. (mandatory) Why I don't use the XnViewMP's Capture tool? Here's why: http://newsgroup.xnview.com/viewtopic.php?f=60&t=28452
Musings: Btw, why the Import from Clipboard is grayed???... IMHO this induces state management which is an unneeded burden/complication in the code. I would just leave it as is (always enabled) and I would check if I have a compatible Clipboard format only in OnClick handler.