10-28-2008 06:15 AM
1) Press and hold ctrl+R keys.
2) In few seconds, the font dialog window popups immediately.
Why this happens? Is this a bug?
Am using LabVIEW 8.5 and Windows XP SP2
Solved! Go to Solution.
10-28-2008 06:28 AM - edited 10-28-2008 06:30 AM
10-28-2008 06:30 AM - edited 10-28-2008 06:31 AM
10-28-2008 06:34 AM - edited 10-28-2008 06:34 AM
Could somebody please explain me the highlighted portion of the attached image? I don't know how to set it?
10-28-2008 06:35 AM
Hi,
You have called this dialog yourself from your code 😉
You have sent 0x30 Virtual Key code directly to keyboard via keybd_event function from user32.dll.
So, now you run your VI with Ctrl+R. So, control is pressed, then keybd_event call coming (with 0x30, which is actually key code for 0), so, now you have shortcut Ctrl+0, which is font dialog. No magic and no bug. On my PC its sometimes appeared, sometimes not (race condition between events from keyboard and keybd_event call).
best regards,
Andrey.
10-28-2008 06:38 AM
10-28-2008 07:02 AM
Because this "trouble" depends from timing. When Ctrl+R keys pressed, then this key combination will be entered into Windows messaging queue. Now your call for keybd_event coming. This call should be entered also in the queue, and then Ctrl+0 combination will be simulated or not depends from the interference keybd_event call with windows keyboard queue.
I am able to reproduce this behaviour only when Ctrl+R pressed AND block diagram is active. Then Diagram Font Dialog appeared.
Andrey.