Click here to Skip to main content
15,896,726 members

Comments by Steve Thresher (Top 4 by date)

Steve Thresher 27-Mar-14 9:51am View    
I'm talking about a windows service (services.msc). I've written a test service that just runs the following code when started:

protected override void OnStart(string[] args)
{
IntPtr hkl = GetKeyboardLayout(0);

string output = String.Format("GetKeyboardLayout: 0x{0:x} \n",unchecked((short)((uint)hkl >> 16)));

System.Diagnostics.Debug.WriteLine(output);

StringBuilder layoutName = new System.Text.StringBuilder(new string(' ', 256)); ;
GetKeyboardLayoutName(layoutName);

output = String.Format("GetKeyboardLayoutName: {0} \n", layoutName);

System.Diagnostics.Debug.WriteLine(output);
}

The output on the problem server looks like this:

GetKeyboardLayout: 0x409
GetKeyboardLayoutName: 00000409

They should both show 809 on a server configured for English UK.
Steve Thresher 7-Aug-11 11:31am View    
We have a few bespoke apps that are designed to run on the previous version of these units. The problem is the manufacturer has changed screens from QVGA to VGA.

http://www.motorola.com/Business/US-EN/Business+Product+and+Services/Mobile+Computers/Handheld+Computers/MC55A0

The rest of the software is designed to run on standard monitors which means it can be resized as required.
Steve Thresher 4-Aug-11 9:26am View    
Those functions are device context specific. I was looking for some kind of option to apply scaling to the whole app (windows, fonts, standard dialogs).
Steve Thresher 4-Aug-11 9:11am View    
Thanks for the suggestion but I was hoping for something much simpler to give us the time to re-work our UI libraries to support scaling.