From 478f0092907f77b1d295e4cea50899d3c16e26b3 Mon Sep 17 00:00:00 2001 From: alexs75 Date: Wed, 13 Jan 2021 05:39:51 +0000 Subject: [PATCH] RxFPC:after add item in RxTextHolderEditor set focus to text editor git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7963 8e941d3f-bd1b-0410-a28a-d453659cc2b4 --- components/rx/trunk/dcl_rxtools.lpk | 5 +- .../trunk/dcl_rxtools/rxtextholder_editor.lfm | 86 +++++++++--------- .../trunk/dcl_rxtools/rxtextholder_editor.pas | 3 + .../rx/trunk/demos/RxLookup/project1.lpi | 13 ++- components/rx/trunk/demos/RxMDI/project1.res | Bin 139092 -> 139100 bytes components/rx/trunk/demos/RxMDI/unit1.lfm | 20 ++-- .../rx/trunk/languages/rxdconst.pt_BR.po | 29 ++++-- components/rx/trunk/rxnew.lpk | 2 +- 8 files changed, 89 insertions(+), 69 deletions(-) diff --git a/components/rx/trunk/dcl_rxtools.lpk b/components/rx/trunk/dcl_rxtools.lpk index cb7d1f657..4963a795f 100644 --- a/components/rx/trunk/dcl_rxtools.lpk +++ b/components/rx/trunk/dcl_rxtools.lpk @@ -1,6 +1,6 @@ - + @@ -12,7 +12,7 @@ - + @@ -25,6 +25,7 @@ + diff --git a/components/rx/trunk/dcl_rxtools/rxtextholder_editor.lfm b/components/rx/trunk/dcl_rxtools/rxtextholder_editor.lfm index e6ebff84f..dfe919aeb 100644 --- a/components/rx/trunk/dcl_rxtools/rxtextholder_editor.lfm +++ b/components/rx/trunk/dcl_rxtools/rxtextholder_editor.lfm @@ -14,8 +14,8 @@ object RxTextHolder_EditorForm: TRxTextHolder_EditorForm LCLVersion = '2.1.0.0' object ButtonPanel1: TButtonPanel Left = 6 - Height = 42 - Top = 570 + Height = 46 + Top = 566 Width = 730 OKButton.Name = 'OKButton' OKButton.DefaultCaption = True @@ -30,11 +30,11 @@ object RxTextHolder_EditorForm: TRxTextHolder_EditorForm end object Panel1: TPanel Left = 0 - Height = 564 + Height = 560 Top = 0 Width = 267 Align = alLeft - ClientHeight = 564 + ClientHeight = 560 ClientWidth = 267 Constraints.MinWidth = 215 TabOrder = 1 @@ -45,7 +45,7 @@ object RxTextHolder_EditorForm: TRxTextHolder_EditorForm AnchorSideRight.Side = asrBottom AnchorSideBottom.Control = BitBtn1 Left = 1 - Height = 531 + Height = 525 Top = 1 Width = 265 Anchors = [akTop, akLeft, akRight, akBottom] @@ -62,9 +62,9 @@ object RxTextHolder_EditorForm: TRxTextHolder_EditorForm AnchorSideBottom.Control = Panel1 AnchorSideBottom.Side = asrBottom Left = 1 - Height = 31 - Top = 532 - Width = 38 + Height = 33 + Top = 526 + Width = 40 Action = itemAdd Anchors = [akLeft, akBottom] AutoSize = True @@ -77,10 +77,10 @@ object RxTextHolder_EditorForm: TRxTextHolder_EditorForm AnchorSideRight.Side = asrBottom AnchorSideBottom.Control = Panel1 AnchorSideBottom.Side = asrBottom - Left = 39 - Height = 31 - Top = 532 - Width = 65 + Left = 41 + Height = 33 + Top = 526 + Width = 64 Action = itemRemove Anchors = [akLeft, akBottom] AutoSize = True @@ -92,10 +92,10 @@ object RxTextHolder_EditorForm: TRxTextHolder_EditorForm AnchorSideRight.Side = asrBottom AnchorSideBottom.Control = Panel1 AnchorSideBottom.Side = asrBottom - Left = 116 - Height = 31 - Top = 532 - Width = 30 + Left = 117 + Height = 33 + Top = 526 + Width = 33 Action = itemUp Anchors = [akLeft, akBottom] AutoSize = True @@ -108,9 +108,9 @@ object RxTextHolder_EditorForm: TRxTextHolder_EditorForm AnchorSideRight.Side = asrBottom AnchorSideBottom.Control = Panel1 AnchorSideBottom.Side = asrBottom - Left = 146 - Height = 31 - Top = 532 + Left = 150 + Height = 33 + Top = 526 Width = 51 Action = itemDown Anchors = [akLeft, akBottom] @@ -120,28 +120,28 @@ object RxTextHolder_EditorForm: TRxTextHolder_EditorForm end object Splitter1: TSplitter Left = 267 - Height = 564 + Height = 560 Top = 0 Width = 5 end object Panel2: TPanel Left = 272 - Height = 564 + Height = 560 Top = 0 Width = 470 Align = alClient - ClientHeight = 564 + ClientHeight = 560 ClientWidth = 470 TabOrder = 3 object Panel3: TPanel Left = 1 - Height = 43 - Top = 520 + Height = 44 + Top = 515 Width = 468 Align = alBottom AutoSize = True BevelOuter = bvNone - ClientHeight = 43 + ClientHeight = 44 ClientWidth = 468 TabOrder = 0 object Label2: TLabel @@ -149,9 +149,9 @@ object RxTextHolder_EditorForm: TRxTextHolder_EditorForm AnchorSideBottom.Control = ComboBox1 AnchorSideBottom.Side = asrBottom Left = 6 - Height = 19 - Top = 18 - Width = 74 + Height = 17 + Top = 21 + Width = 69 Anchors = [akLeft, akBottom] BorderSpacing.Left = 6 Caption = 'Highlighter' @@ -163,10 +163,10 @@ object RxTextHolder_EditorForm: TRxTextHolder_EditorForm AnchorSideTop.Control = Panel3 AnchorSideRight.Control = Panel3 AnchorSideRight.Side = asrBottom - Left = 86 - Height = 31 + Left = 81 + Height = 32 Top = 6 - Width = 376 + Width = 381 Anchors = [akTop, akLeft, akRight] BorderSpacing.Around = 6 ItemHeight = 0 @@ -177,8 +177,8 @@ object RxTextHolder_EditorForm: TRxTextHolder_EditorForm end inline SynEdit1: TSynEdit Left = 1 - Height = 476 - Top = 44 + Height = 469 + Top = 46 Width = 468 Align = alClient Anchors = [akTop, akLeft, akRight] @@ -629,6 +629,10 @@ object RxTextHolder_EditorForm: TRxTextHolder_EditorForm SelectedColor.ItalicPriority = 50 SelectedColor.UnderlinePriority = 50 SelectedColor.StrikeOutPriority = 50 + ScrollOnEditLeftOptions.ScrollExtraPercent = 20 + ScrollOnEditLeftOptions.ScrollExtraMax = 10 + ScrollOnEditRightOptions.ScrollExtraPercent = 30 + ScrollOnEditRightOptions.ScrollExtraMax = 25 BracketHighlightStyle = sbhsBoth BracketMatchColor.Background = clNone BracketMatchColor.Foreground = clNone @@ -678,13 +682,13 @@ object RxTextHolder_EditorForm: TRxTextHolder_EditorForm end object Panel4: TPanel Left = 1 - Height = 43 + Height = 45 Top = 1 Width = 468 Align = alTop AutoSize = True BevelOuter = bvNone - ClientHeight = 43 + ClientHeight = 45 ClientWidth = 468 TabOrder = 2 object Edit1: TEdit @@ -693,10 +697,10 @@ object RxTextHolder_EditorForm: TRxTextHolder_EditorForm AnchorSideTop.Control = Panel4 AnchorSideRight.Control = Panel4 AnchorSideRight.Side = asrBottom - Left = 63 - Height = 31 + Left = 60 + Height = 33 Top = 6 - Width = 399 + Width = 402 Anchors = [akTop, akLeft, akRight] BorderSpacing.Around = 6 OnExit = Edit1Exit @@ -707,9 +711,9 @@ object RxTextHolder_EditorForm: TRxTextHolder_EditorForm AnchorSideBottom.Control = Edit1 AnchorSideBottom.Side = asrBottom Left = 6 - Height = 19 - Top = 18 - Width = 51 + Height = 17 + Top = 22 + Width = 48 Anchors = [akLeft, akBottom] BorderSpacing.Left = 6 Caption = 'Caption' diff --git a/components/rx/trunk/dcl_rxtools/rxtextholder_editor.pas b/components/rx/trunk/dcl_rxtools/rxtextholder_editor.pas index 588f6e440..da6364cc0 100644 --- a/components/rx/trunk/dcl_rxtools/rxtextholder_editor.pas +++ b/components/rx/trunk/dcl_rxtools/rxtextholder_editor.pas @@ -140,6 +140,9 @@ begin ListBox1.Items.Add(FCurrentItem.Caption); ListBox1.ItemIndex:=ListBox1.Items.Count-1; ListBox1Click(nil); + + if SynEdit1.Enabled then + SynEdit1.SetFocus; end; procedure TRxTextHolder_EditorForm.itemUpExecute(Sender: TObject); diff --git a/components/rx/trunk/demos/RxLookup/project1.lpi b/components/rx/trunk/demos/RxLookup/project1.lpi index ba28cb90b..6d6f901e1 100644 --- a/components/rx/trunk/demos/RxLookup/project1.lpi +++ b/components/rx/trunk/demos/RxLookup/project1.lpi @@ -1,9 +1,11 @@ - + - + + + @@ -17,9 +19,6 @@ - - - @@ -55,7 +54,8 @@ - + + @@ -125,7 +125,6 @@ - diff --git a/components/rx/trunk/demos/RxMDI/project1.res b/components/rx/trunk/demos/RxMDI/project1.res index 4133fe048bfc96eac220bd2dbc2c6057417f565b..55653795630f092e02e316c1398baeab0ab25dbd 100644 GIT binary patch delta 37 tcmcbzkK@ihjtL5k4>v0AXJb^De22|}nSp_!S%$q`hMjS{3_FvB1ONg93cLUS delta 31 ncmcb!kK@WdjtL5kcQz{SXPf+#&8As}y'" msgstr "Valor nulo habilitado em '=' e '<>'" #: rxdconst.sexprexpected +#, object-pascal-format msgid "Error %s" msgstr "Erro %s" @@ -183,6 +187,7 @@ msgid "Error in filter expression" msgstr "Erro na expressão do filtro" #: rxdconst.sexprinvalidchar +#, object-pascal-format msgid "Error symbol in expression: '%s'" msgstr "Erro símbolo na expresión: '%s'" @@ -193,10 +198,12 @@ msgid "Error in filed name" msgstr "Erro no nome" #: rxdconst.sexprnorparen +#, object-pascal-format msgid "Error ')', error: %s" msgstr "Erro ')', error: %s" #: rxdconst.sexprnotboolean +#, object-pascal-format msgid "Field '%s' is not boolean" msgstr "Campo '%s' não é booleano (verdadeiro/falso)" @@ -209,14 +216,17 @@ msgid "Error in filter end" msgstr "Erro na terminação do filtro" #: rxdconst.sfieldreadonly +#, object-pascal-format msgid "SFieldReadOnly %s" msgstr "SCampoApenasLeitura %s" #: rxdconst.sfieldrequired +#, object-pascal-format msgid "Field '%s' must have a value" msgstr "O campo '%s' deve ter um valor" #: rxdconst.sfieldtypemismatch +#, object-pascal-format msgid "Type mismatch for field '%s', expecting: %s actual: %s" msgstr "Tipo não corresponde para o campo '%s', esperado: %s atual: %s" @@ -512,6 +522,10 @@ msgstr "Diferenciar maiúsculas de minúsculas" msgid "Direction" msgstr "Direção" +#: rxdconst.srxdbgridfindinallfileds +msgid "Find in all fields" +msgstr "" + #: rxdconst.srxdbgridfindonfield msgid "Find on field" msgstr "Buscar no campo" @@ -609,10 +623,6 @@ msgctxt "rxdconst.srxfilterformapply" msgid "Apply" msgstr "Aplicar" -#: rxdconst.srxfilterformcancel -msgid "Cancel" -msgstr "Cancelar" - #: rxdconst.srxfilterformcaption msgid "Filter conditions" msgstr "Condicionais de filtro" @@ -728,6 +738,10 @@ msgstr "Mostrar cor do rodapé" msgid "Show grid color" msgstr "Mostrar cor da grade" +#: rxdconst.sshowpreview +msgid "Show preview" +msgstr "" + #: rxdconst.sshowreporttitle msgid "Show report title" msgstr "Mostrar título do relatório" @@ -761,6 +775,7 @@ msgid "Top" msgstr "Início" #: rxdconst.sunknownfieldtype +#, object-pascal-format msgid "SUnknownFieldType %s" msgstr "Tipo de campo desconhecido %s" @@ -775,10 +790,8 @@ msgid "Unlock" msgstr "Desbloquear" #: rxdconst.sunlockhint -#, fuzzy -#| msgid "Enter you password" msgid "Enter your password" -msgstr Digite sua senha" +msgstr "" #: rxdconst.suserawjpeg msgid "Use raw JPEG" diff --git a/components/rx/trunk/rxnew.lpk b/components/rx/trunk/rxnew.lpk index e4c8c704f..1ba17ce51 100644 --- a/components/rx/trunk/rxnew.lpk +++ b/components/rx/trunk/rxnew.lpk @@ -25,7 +25,7 @@ Copyright (c) 1998 Master-Bank translate to Lazarus by alexs in 2005 - 2020"/> - +