delphi 2009 Keyboard layout changes to default when exiting dbgrid

Hi,
i'm having the same problem as  Georgi Georgiev in this [thread |https://forums.codegear.com/thread.jspa?messageID=284928&tstart=0].
When i use a dbgrid in a form then when the dbgrid lose focus then the keyboard languages changes from the greek language that the user is typing to the default(English). This is very annoying to the user as he has to change the language again and again when the dbgrid loses focus. As Georgi Georgiev stated in DBGrids.pas the code that causes this behaviour is

procedure TCustomDBGrid.WMKillFocus(var Message: TMessage);
begin
ImeName := Screen.DefaultIme;
ImeMode := imDontCare;
inherited;

{Commented by G Georgiev to avoid keyboard swithching to default}
// if not ((InplaceEditor <> nil) and
// (HWND(Message.WParam) = InplaceEditor.Handle)) then
// ActivateKeyboardLayout(Screen.DefaultKbLayout, KLF_ACTIVATE);
end;

So commenting this lines you don't receive this behaviour. 

But this has no effect when using runtime packages as TDBGrid is already compiled in vcldb120.bpl and you cannot recompile it using the modified dbgrid.pas. Also i don't know if there is a way to force the application use the modified dbgrid module instead ofvcldb120.bpl when using runtime packages. Does anybody know an alternative to this case? I have an application with about 50-60 dbgrid that i use runtime packages and i cannot overcome this behaviour.

Thanks in advance
John
0
John
10/2/2010 7:47:39 AM
embarcadero.dev.qualitycentral 255 articles. 0 followers. Follow

0 Replies
1156 Views

Similar Articles

[PageSpeed] 46

Reply:

Similar Artilces:

Keyboard language changes to default when editing a DBgrid with Delphi XE2
Default input language in Windows is English US. If I change to another language (in my case Greek) and then try to edit a cell on a dbgrid it automatically changes to default (English) either just by positioning the mouse on the cell or after exiting the grid. Same happens if default is Greek, changing to English and then editing the Grid it changes back to Greek! I tried to workaround by changing the keyboard at runtime with LoadKeyboardLayout(klId, KLF_ACTIVATE) but with same results. Damien Styloglou wrote: > Default input language in Windows is English US. If I change to > ...

Keyboard layout switching when exiting DBGrid control
Hi everybody, I recently upgraded from DELPHI 5 to RAD Studio 2010 PRO. I receive very annoying problem: When I have dbgrid control in my form, when dbgrid lose focus, keyboard layout turns to "default". My programs are used in Bulgaria, where normaly default layout is English and alternative (but mostly used!) is Bulgarian, it present annoyng problem. In older version i haven't such problem. If someone has solution to this problem, please post it here or send me message at: office@promsoft.bg Best regards Georgi Hello, you might want to report this in the QC ...

Keyboard layout swtching when exiting dbgrid control
Hi everybody, I recently upgraded from DELPHI 5 to RAD Studio 2010 PRO. I receive very annoying problem: When I have dbgrid control in my form, when dbgrid lose focus, keyboard layout turns to "default". My programs are used in Bulgaria, where normaly default layout is English and alternative (but mostly used!) is Bulgarian, it present annoyng problem. In older version i haven't such problem. If someone has solution to this problem, please post it here or send me message at: office at promsoft dot bg Best regards Georgi Well, I found this function in DBGrids modu...

Delphi 2009: DBGrid column sizes changed in Windows 7
I have a problem with our application made with Delpi 2009 (in XP) when I deliver it to Windows 7 PC. It seems that width of columns are for some reason changed in windows 7 so that now the size of DBGrid itself is bigger than all columns together (empty space in right side of DBGrid). In XP PC all objects are in correct size. The problem is that our SW development environment is XP and we are doing application version for W7 so the actual problem comes visible only after application is installed into W7 PC. We have tried several different methods without success yet. If somebody has faced s...

Delphi 2010: AV when switching from Default to debug layout and when closing Delphi
Hello, I experience strange AVs in rtl140.bpl when switching from the Default to the Debug Layout (e.g. when starting the application) or when closing Delphi 2010. I have a bunch of Addins (Modelmaker Code Explorer, EurekaLog, DDevExtensions, JCL, etc...), components installed. Any ideas/tools to possibly track down where the culprit is? Possibly simply an addin in combination with docked windows etc. Thanks, Thomas > {quote:title=Thomas Steinmaurer wrote:}{quote} > I experience strange AVs in rtl140.bpl when switching from the Default > to the Debug Layout (...

Changing keyboard layout
I can't change the keyboard layout, when I add second layout in YaST. The switching key combinations doesn't work. When I add second layout in "Configure Desktop", I can change layouts but often I should first mouse click the flag icon in the tray, before keyboard combination begins to work. -- Linux novice ----- openSUSE 11.1 64 Bit, KDE 3.5.10, -ASUS M3A78-EMH HDMI, Athlon X2 4000+ 2.1 GHz 65nm, Ice Hammer 4400 B, Corsair XMS2 2x1Gb 800 MHz, Radeon HD 3200 Int, LG L2000C, Seagate 500 GB- --------------------------------------------------------------------...

How we can change the keyboard layout ??
Dear AllIs there any way to change the keyboard layout when a TextBox on an ASPX page gets the focus?   Regards??   Hi, keyboard layout means? give some more details?VasanthakumarSoftware Engineer. Thanks for your repaly i mean if you have textbox1 and textbox2 when you focus the textbox1 the keyboard  language is EN (en-us) and when you focus the next textbox (textbox2) the keyboard  language change automatically to AR(ar-ae)....   thanks Hi, try this.... <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Defaul...

Changing the default IDE layout
So... I installed Visual Studio 2008 on my laptop, and it asked me to choose a default layout. I chose Web Designer layout, however I want to change it back to the C# Developer layout but can't figure it out.How do I do this? I have been all over the options menu.Thanks! Tools | Import/Export Settings...Thanks------------------------------------------------------------This posting is provided "AS IS" with no warranties, and confers no rights.  Thank you!...

How to Change Keyboard Layout Programmatically ?
  Hi There  I have a website with multiple languages on of them is arabic which is right to left .   I have many text boxes and i could manage to set the cursor on the right via css . The problem is i want the user to start writting in arabic directly without the need to change the writting language from keyboard. are there any way to simulate the left alt + shift click which is used to change to arabic or any code to change the direction of the cursor in the textboxes automatically in arabic page .   i have read many posts before but none of them is useful fo...

Keyboard layout changing unwantedly
Hi, A French user has his keyboard layout set to "AZERTY" (French Keyboard), and his physical keyboard is the same. Whenever he launches our program (or activates it) the keyboard changes to US QWERTY. This is very annoying as he has to change it each time back to french keyboard. Any ideas of cause of problem and how to solve? Developed in D7pro on WinXP. (User is on Windows 7 x64) Thank you, Rael > {quote:title=Rael Bauer wrote:}{quote} > Hi, > > A French user has his keyboard layout set to "AZERTY" (French Keyboard), > and ...

Change Keyboard Layout in LXDE
Hello, I am using openSuSE 11.3 and LXDE. How can I switch between British-English layout and Greek layout in LXDE? Thanks alot. -- Leonardo12 ------------------------------------------------------------------------ Geia sou Leonardo, It's pretty straightforward. Login as root, and edit (with vim, gedit, whatever) the file /etc/xdg/lxsession/LXDE/autostart Add the following row to the file: @setxkbmap -option grp:switch,grp:alt_shift_toggle,grp_led:scroll us,gr Then, logout root and log off your LXDE session. The next time you log in, the left Alt-Shif...

superreview requested: [Bug 242564] Default p3p cookie action changed to reject : [Attachment 147631] revert default action, change cookieBehavior default
Daniel Veditz <dveditz@cruzio.com> has asked Darin Fisher (IBM) <darin@meer.net> for superreview: Bug 242564: Default p3p cookie action changed to reject http://bugzilla.mozilla.org/show_bug.cgi?id=242564 Attachment 147631: revert default action, change cookieBehavior default http://bugzilla.mozilla.org/attachment.cgi?id=147631&action=edit ...

Check if a user has changed the default layout
    Example:User A logs in and closes a webpart. They leave. Several days later they return and the webpage is returned to where they customized it as it should be. What can I check to know that when this person logs in they have changed the default layout of the page?Thanks in advance for the answer or input. You could derive from SqlPersonalizationProvider, and override SavePersonalizationBlob.  In your derived provider, each time the method was called with a non-null username, you could store information off to the side in your own custom table structure that indicat...

How to change the default GroupWise view/layout
Hi. Is there a way to change the default GroupWise view/layout "What default colon is showing on a users mail etc" for some or all users on Domain/postoff, Best regards Michael Hej Michael. No way I know to do this. It's in the UserDB, and Novell hasn't provided a metode to push the settings out, and I don't know any 3.party that can do that either :-( Sorry -- Best Regards Tommy Mikkelsen IT Quality A/S Denmark Novell Support Forums SYSOP Please Report back any success or failure, That way we all learn Sorry,...

Web resources about - delphi 2009 Keyboard layout changes to default when exiting dbgrid - embarcadero.dev.qualitycentral

Pro Tools Keyboard Shortcuts
Every shortcut you ever wanted. ∞ Read this on The Loop

Keyboard technology - Wikipedia, the free encyclopedia
There are two types of membrane-based keyboards, flat-panel membrane keyboards and full-travel membrane keyboards: Flat-panel membrane keyboards ...

Facebook Adds Keyboard Shortcuts To Messages Inbox
Facebook added a list of keyboard shortcuts to the inbox where users retrieve their messages . continued… New Career Opportunities Daily: The ...

Facebook rolls out messages update with new layout, photo sharing, emoticons, keyboard shortcuts and ...
... continues to roll out its redesigned messages product it announced in August , including a two-paned layout, improved photo uploads and keyboard ...

9to5Toys Lunch Break: Logitech keyboards/mice up to 60% off, 15″ Retina MacBook Pro from $1,650, more ...
... , Google+ and Safari push notifications . TODAY’S CAN’T MISS DEALS: Amazon Gold Box – Logitech Accessories up to 60% off : Wireless Keyboards ...

OmniFocus 2 has new icons, keyboard shortcuts, and more
In early November , we saw OmniFocus 2 add keyboard shortcuts for external keyboard users. In another update today, Jan. 5, a couple more shortcuts ...

Review: Battery life and keyboard problems hinder HP Envy 13 Ultrabook
It's a good laptop, but it's competing against some great laptops.

Amazon’s 12 best deals of the day include a virtual laser keyboard, a big 4K TV and more
... there, and today we have some awesome deals for you to check out. Included in the best deals we've found on Monday are a very cool laser keyboard, ...

Keyboard Waffle Iron
Features and Details: • Heat-resistant curved Bakelite handle • Lightweight die-cast aluminum • Easy-to-clean nonstick surface • Thin design ...

R2-D2, you're our only hope for a droid projector keyboard
Instead of a hologram of Princess Leia pleading for help, this beloved "Star Wars" astromech projects a virtual keyboard.

Resources last updated: 1/7/2016 9:31:00 AM