VBA - How to use a drawing tablet with inkPicture control? - excel

It's been a while that I'm trying to find a solution through Microsoft documents and on the internet in general with no success...
what i want to do is:
when the userform that has the inkPicture control is activated, detect if there is a drawing tablet connected to the computer. If yes, then match the drawing area of the tablet to the inkPicture control rectangle (used for signatures)
N.B: Don't want to install a drawing tablet driver (if possible)
Your help will be much appreciated, thanks in advance.

Related

VBA Horizontal Scrolling Not Working In Coding Window

Just a quick question.
I am unable to horizontally (left to right) scroll using either my; touchpad or mouse, within the VBA coding window at all. Manually selecting the scroll bar works fine, I am just unable to use the touchpad or a external mouse. Horizontal scrolling works in every other program and in Windows, just not in VBA. :(
I have tried both online and offline repairs of office, as well as reimagining the system using both the OME (Dell) image and then also a Image directly from Microsoft.
If anyone has any ideas or imput all all, it would be greatly appreciated and many thanks in advance!

Matlab linux GUI glitches

I've been having this problem with the Matlab GUI (linux) that has been annoying me for over a year but I still haven't found a solution.
Basically, the autofix hints are not displayed. When I move the mouse cursor over a potential warning/suggestion, a gray-background pop-up appears but the text inside is missing. The same happens when I hover over those little warning bars on the right hand side of the editor. Does anyone have any clue what might be causing this?
Screenshot: http://i58.tinypic.com/4veu.png
This happens only on my linux machine (Ubuntu 14.04 LTS, NVidia GeForce with nvidia driver).
Thanks!
For those interested, this issue appears to be related to the Unity Desktop. Mathworks does not provide a fix but suggests using a different XServer instead. Here is the answer I received from support:
This issue is known to occur due to a windowing system used with
"linux" on which MATLAB has not been tested. It has been observed that
if you are using "Unity desktop" in "linux", then the tooltips are
displayed as blanks.
To work around this issue, you may try switching off "Unity desktop".
You can refer to the following links for more information on this
issue:
http://www.mathworks.com/matlabcentral/answers/116987-empty-tooltips-in-code-analyzer
matlab code analyzer produces empty tooltips
Indeed, I tried lubuntu and XUbuntu (Xfce) and the tooltips in Matlab were working in both cases. I find Unity very handy because I got used to it, so for now, I will probably simply not use this Matlab feature. Hopefully this will be fixed eventually.
It's an old post but some people may be still looking for a solution or a hack. Well, I also had this issue on R2015a when using two monitors and hiding Ubuntu 14.04 sidebar seems to do the trick. This link explains how to do it: http://www.howtogeek.com/198218/how-to-easily-hide-the-unity-launcher-in-ubuntu-14.04/. Hope it helps!
This is accomplished, in the article, by:-
1) Select “System Settings” from the drop-down menu.
2) The “System Settings” dialog box displays. In the “Personal”
section, click “Appearance.”
3) On the “Appearance” screen, click the “Behavior” tab.
4) On the right side of the “Behavior” tab, there’s an ON/OFF switch.
Click the switch so it reads ON.
5) The ON/OFF switch also turns orange. Additional options for how to
show the hidden Unity Launcher become available in the “Auto-hide the
Launcher” section of the “Behavior” tab. Under “Reveal location,”
select whether you want to move the mouse to any location on the “Left
side” or just to the “Top left corner” of the screen to reveal the
Unity Launcher. Use the “Reveal sensitivity” slider to change the
sensitivity of the reveal location.
6) Once you have chosen your settings, close the “Settings” dialog box
by clicking the “X” button in the upper-left corner of the dialog box.
This happens to me in Ubuntu 15.10 using xfce, with two monitors connected to an Nvidia GeForce 8600 GT, one of which is rotated to portrait orientation. The "workaround", from the page Anton linked, is to resize my matlab desktop such that the red underlined text or red scrollbar annotation is in the bottom third of my left monitor. Unbelievable.
My preferred workaround is to use Python+Scipy+Matplotlib instead of Matlab.

WPF - Flahing button with a icon on it

How do I place two icons on a WPF button, one in the middle (static icon) and one on the top left (based on a condition)? Also need to Flash the same WPF Button based on a condition?
(While flasing it switches between two background colors, the icons remains same).
Not sure if anyone will want to help you develop super annoying flashing advertising ad style buttons :)
But to point you in the right direction the answer is in learning how to override default control template for the button then for flashing - work on Animation. Once you try that and encounter problems, then post your code and someone will help.
P.S. 'Adam Nathan's WPF Unleashed' is a good start. Good luck!

How to make image to move on blackberry screen

I'm using Blackberry 9800 simulator on Eclipse IDE. my problem is that i really don't know how to make an image to move for my plam game application. Can somebody can help me.. I will really appreciate it.!!thanks in advance gys.!!
Check this BB article: The BlackBerry Graphical User Interface: Part 2 - Direct Screen Drawing.
you have to implement paint method for the field in which you want to draw image.
And note that you have to extent the field with full height & width to move the image all over the screen.

J2ME, LWUIT (V. 1.2) - Menu bar from bottom to the right of the screen!

I'm working with the mobile graphic framework LWUIT (V. 1.2) to develop an application for Nokia N97.
Results are striking and elegant but I have a problem: when I rotate mobile screen, menu bar doesn't switch from bottom to the right of screen. Commands remain on the bottom while correspondent mobile buttons are now on the right...
Is there an event that I can intercept when the user open or rotate mobile screen? Or I have to extend some library class to make this behaviour automatic? Or anithing else?
Anyone of you can describe a solution?
Thanks in advance
I didn't use LWUIT much, but you can insert following parameter to jad:
Nokia-MIDlet-App-Orientation: portrait
This should disable auto-rotating on Nokia S60 5th.
If you want to catch an event when the screen rotates, you can check canvas.getWidth() and canvas.getHeight(). If device's screen is not square, its width and height should change.

Resources