Autor Beitrag
Zimond
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 49



BeitragVerfasst: Fr 28.01.05 00:44 
Moin.

Ich habe in meinem Programm ein Skriptfenster welches ein Trichedit Feld beinhaltet.
Slovakische Nutzer meines Tools haben aber nun Probleme ihre besonderen Zeichen einzugeben (bzw. drin zu behalten)

Damit ich diesen Fehler beseitigen kann muss ich fähig sein selber in deren Kodierung Eingaben machen zu können.

Die Charset Einstellung des Richeditfeldes wird allerdings ignoriert und bei Tastatur eingaben stets das Windows Standard Layout benutzt.

Es muss doch möglich sein das Windows TastaturLayout aushebeln zu können so dass nur der in den Fontsettings des RichEdit Felds angegebene CharSet verwendet wird?
toms
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: Fr 28.01.05 01:20 
Hi,

Probiere mal diesen "Hack":

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
uses 
  RichEdit;

var 
  GetTextEx: TGetTextEx; s: array[0..4095] of Char; i: Integer;
begin
      GetTextEx.cb := 4096;
      GetTextEx.flags := GT_DEFAULT;
      GetTextEx.codepage := 1250; // codepage Slovak
      GetTextEx.lpDefaultChar := nil;
      GetTextEx.lpUsedDefChar := Pointer(False);
      i := SendMessage(RichEdit1.Handle, EM_GETTEXTEX, WParam(@GetTextEx),
LParam(@s[0]));
end;
toms
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: Di 01.02.05 08:03 
Hat dir das weiter geholfen?