How go away with Tab from Synedit? lazarus / 4-Ported from Delphi-Kylix ---------------------------------------------------------------------- Borneq · 2012-05-01 07:16 In form I have components ListView,TreeView and Synedit. I go with Tab key from other controls to Synedit control but when Synedit is focused it handles Tab and I don't go away from component. Which option I must set? ---------------------------------------------------------------------- Borneq · 2012-05-01 08:06 Default WantTabs is false. Regardless I set to true or false, tab is used to editor. Error in synedit? Code: [Select]procedure TCustomSynEdit.WMGetDlgCode(var Msg: TWMGetDlgCode); begin   inherited;   Msg.Result := DLGC_WANTARROWS or DLGC_WANTCHARS or DLGC_WANTALLKEYS;   if fWantTabs and (GetKeyState(VK_CONTROL) >= 0) then     Msg.Result := Msg.Result or DLGC_WANTTAB; end; ---------------------------------------------------------------------- Martin_fr · 2012-05-01 13:23 Remove the tab from SynEdit.KeyStrokes (pos 90/91) Then it will work. Note, the default for WantTab ay (or may not) change, in order to minimize impact of fixing this. If it changes this will affect your existing app(as it would follow the default. So in that case, you will have to update your SynEdits. More later.