gesulmino Posted May 27, 2019 Share Posted May 27, 2019 Hi, When I use a TUniMemo object in a TUniFieldSet with layout setted to "form" there is no way to set the number of lines displayed, so TUniMemo displays a single line. In fact, the rows attribute of TextArea is setted to 1. Can I set the rows attribute to any number? Link to comment Share on other sites More sharing options...
Sherzod Posted May 27, 2019 Share Posted May 27, 2019 6 hours ago, gesulmino said: When I use a TUniMemo object in a TUniFieldSet with layout setted to "form" there is no way to set the number of lines displayed, so TUniMemo displays a single line. In fact, the rows attribute of TextArea is set to 1. Can I set the rows attribute to any number? Hi, Can you please explain in more details? Link to comment Share on other sites More sharing options...
gesulmino Posted May 28, 2019 Author Share Posted May 28, 2019 13 hours ago, Sherzod said: Hi, Can you please explain in more details? Hi, the matter is that at runtime the TUniMemo object has a height of a few pixels, practically a single line of text. this is an example: object UniFieldSet1: TUniFieldSet AlignWithMargins = True Left = 20 Top = 10 Width = 746 Height = 387 Hint = '' Margins.Left = 20 Margins.Top = 10 Margins.Right = 0 Margins.Bottom = 10 BodyRTL = False Title = ' Invio mail ' Align = alTop Layout = 'form' LayoutConfig.Width = '100%' TabOrder = 1 Font.Height = -16 ParentFont = False DesignSize = ( 746 387) object UniComboBox1: TUniComboBox Left = 120 Top = 44 Width = 601 Height = 27 Hint = '' Text = '' Items.Strings = ( 'Assistenza tecnica' 'Informazioni commerciali') Anchors = [akLeft, akTop, akRight] TabOrder = 1 ForceSelection = True LayoutConfig.Padding = '15' LayoutConfig.Height = '27' LayoutConfig.Width = '100%' FieldLabel = 'Argomento' FieldLabelWidth = 150 FieldLabelAlign = laRight FieldLabelSeparator = ' ' FieldLabelFont.Height = -16 end object UniEdit1: TUniEdit Left = 120 Top = 92 Width = 601 Height = 27 Hint = '' Text = '' Anchors = [akLeft, akTop, akRight] TabOrder = 2 FieldLabel = 'Indirizzo' FieldLabelWidth = 150 FieldLabelAlign = laRight FieldLabelSeparator = ' ' FieldLabelFont.Height = -16 LayoutConfig.Padding = '15' LayoutConfig.Height = '27' LayoutConfig.Width = '100%' end object UniMemo4: TUniMemo Left = 120 Top = 140 Width = 601 Height = 221 Hint = '' Anchors = [akLeft, akTop, akRight, akBottom] TabOrder = 3 LayoutConfig.Padding = '15' LayoutConfig.Height = '100%' LayoutConfig.Width = '100%' FieldLabel = 'Messaggio' FieldLabelWidth = 150 FieldLabelAlign = laRight end end and this is the result <div class="x-panel x-abs-layout-item x-panel-default" style="border: none; left: 250px; top: 0px; width: 749px; height: 500px;" role="presentation" id="O182_id"><div id="O182_id-bodyWrap" data-ref="bodyWrap" class="x-panel-bodyWrap" role="presentation"><div id="O182_id-body" data-ref="body" class="x-panel-body x-panel-body-default x-abs-layout-ct x-panel-body-default x-noborder-trbl" role="presentation" style="padding: 0px; height: 500px; width: 749px; left: 0px; top: 0px;"><div id="O182_id-outerCt" data-ref="outerCt" class="x-autocontainer-outerCt" role="presentation" style="width: 100%; table-layout: fixed; height: 100%;"><div id="O182_id-innerCt" data-ref="innerCt" style="padding:0px 0px 0px 0px" role="presentation" class="x-autocontainer-innerCt"><fieldset class="x-fieldset x-fieldset-with-title x-fieldset-with-legend x-abs-layout-item x-fieldset-default" style="font-size: 16px; left: 20px; top: 10px; width: 729px; height: 387px;" role="group" aria-hidden="false" aria-disabled="false" aria-label=" Invio mail Gruppo" aria-expanded="true" id="O18A_id"><legend class="x-fieldset-header x-fieldset-header-default" id="O18A_id-legend"><div class="x-component x-fieldset-header-text x-component-default" role="presentation" id="O18A_id-legendTitle"> Invio mail </div></legend><div id="O18A_id-body" data-ref="body" class="x-fieldset-body x-fieldset-body-default " role="presentation" style="height: 366px; width: 707px;"><div id="O18A_id-outerCt" data-ref="outerCt" class="x-autocontainer-outerCt" role="presentation" style="width: 100%; table-layout: fixed; height: 100%;"><div id="O18A_id-innerCt" data-ref="innerCt" style="" role="presentation" class="x-autocontainer-innerCt"><div id="O18A_id-formWrap" data-ref="formWrap" class="x-form-layout-wrap x-form-layout-auto-label"><div class="x-field x-form-item x-form-item-default x-form-type-text x-form-text-heighted x-field-default x-form-form-item" style="width: 100%; margin: 15px;" role="presentation" id="O192_id"><label id="O192_id-labelEl" data-ref="labelEl" class="x-form-item-label x-form-item-label-default x-form-item-label-right x-unselectable" style="padding-right: 5px; width: 155px; font-size: 16px;" for="O192_id-inputEl"><span class="x-form-item-label-inner x-form-item-label-inner-default" style="width:150px"><span id="O192_id-labelTextEl" data-ref="labelTextEl" class="x-form-item-label-text">Argomento </span></span></label><div id="O192_id-bodyEl" data-ref="bodyEl" role="presentation" class="x-form-item-body x-form-item-body-default x-form-text-field-body x-form-text-field-body-default "><div id="O192_id-triggerWrap" data-ref="triggerWrap" role="presentation" class="x-form-trigger-wrap x-form-trigger-wrap-default"><div id="O192_id-inputWrap" data-ref="inputWrap" role="presentation" class="x-form-text-wrap x-form-text-wrap-default"><input id="O192_id-inputEl" data-ref="inputEl" type="text" size="1" name="O192" tabindex="15" style="font-size:16px" aria-hidden="false" aria-disabled="false" role="combobox" aria-haspopup="true" aria-expanded="false" aria-owns="O192_id-inputEl O192_id-picker-listEl" aria-autocomplete="list" aria-invalid="false" aria-readonly="false" aria-describedby="O192_id-ariaStatusEl" aria-required="false" class="x-form-field x-form-text x-form-text-default x-form-empty-field x-form-empty-field-default" autocomplete="off" data-componentid="O192_id"></div><div id="O192_id-trigger-picker" class="x-form-trigger x-form-trigger-default x-form-arrow-trigger x-form-arrow-trigger-default " role="presentation"></div></div><span id="O192_id-ariaStatusEl" data-ref="ariaStatusEl" aria-hidden="true" class="x-hidden-offsets"></span><span id="O192_id-ariaErrorEl" data-ref="ariaErrorEl" aria-hidden="true" aria-live="assertive" class="x-hidden-clip"></span></div><div id="O192_id-errorWrapEl" data-ref="errorWrapEl" class="x-form-error-wrap x-form-error-wrap-default x-form-error-wrap-side" style="display:none"><div role="presentation" id="O192_id-errorEl" data-ref="errorEl" class="x-form-error-msg x-form-invalid-icon x-form-invalid-icon-default" data-anchortarget="O192_id-inputEl"></div></div></div><div class="x-field x-form-item x-form-item-default x-form-type-text x-form-text-heighted x-field-default x-form-form-item" style="width: 100%; margin: 15px;" role="presentation" id="O198_id"><label id="O198_id-labelEl" data-ref="labelEl" class="x-form-item-label x-form-item-label-default x-form-item-label-right x-unselectable" style="padding-right: 5px; width: 155px; font-size: 16px;" for="O198_id-inputEl"><span class="x-form-item-label-inner x-form-item-label-inner-default" style="width:150px"><span id="O198_id-labelTextEl" data-ref="labelTextEl" class="x-form-item-label-text">Indirizzo </span></span></label><div id="O198_id-bodyEl" data-ref="bodyEl" role="presentation" class="x-form-item-body x-form-item-body-default x-form-text-field-body x-form-text-field-body-default "><div id="O198_id-triggerWrap" data-ref="triggerWrap" role="presentation" class="x-form-trigger-wrap x-form-trigger-wrap-default"><div id="O198_id-inputWrap" data-ref="inputWrap" role="presentation" class="x-form-text-wrap x-form-text-wrap-default"><input id="O198_id-inputEl" data-ref="inputEl" type="text" size="1" name="O198" tabindex="16" style="font-size:16px" aria-hidden="false" aria-disabled="false" role="textbox" aria-invalid="false" aria-readonly="false" aria-describedby="O198_id-ariaStatusEl" aria-required="false" class="x-form-field x-form-text x-form-text-default x-form-empty-field x-form-empty-field-default" autocomplete="off" data-componentid="O198_id"></div></div><span id="O198_id-ariaStatusEl" data-ref="ariaStatusEl" aria-hidden="true" class="x-hidden-offsets"></span><span id="O198_id-ariaErrorEl" data-ref="ariaErrorEl" aria-hidden="true" aria-live="assertive" class="x-hidden-clip"></span></div><div id="O198_id-errorWrapEl" data-ref="errorWrapEl" class="x-form-error-wrap x-form-error-wrap-default x-form-error-wrap-side" style="display:none"><div role="presentation" id="O198_id-errorEl" data-ref="errorEl" class="x-form-error-msg x-form-invalid-icon x-form-invalid-icon-default" data-anchortarget="O198_id-inputEl"></div></div></div><div class="x-field x-form-item x-form-item-default x-form-type-text x-form-text-heighted x-field-default x-form-form-item" style="width: 100%; height: 100%; margin: 15px;" role="presentation" id="O19C_id"><label id="O19C_id-labelEl" data-ref="labelEl" class="x-form-item-label x-form-item-label-default x-form-item-label-right x-unselectable" style="padding-right:5px;width:155px;" for="O19C_id-inputEl"><span class="x-form-item-label-inner x-form-item-label-inner-default" style="width:150px"><span id="O19C_id-labelTextEl" data-ref="labelTextEl" class="x-form-item-label-text">Messaggio:</span></span></label><div id="O19C_id-bodyEl" data-ref="bodyEl" role="presentation" class="x-form-item-body x-form-item-body-default x-form-text-field-body x-form-text-field-body-default x-form-textarea-body"><div id="O19C_id-triggerWrap" data-ref="triggerWrap" role="presentation" class="x-form-trigger-wrap x-form-trigger-wrap-default"><div id="O19C_id-inputWrap" data-ref="inputWrap" role="presentation" class="x-form-text-wrap x-form-text-wrap-default"><textarea id="O19C_id-inputEl" data-ref="inputEl" rows="1" name="O19C" tabindex="17" class="x-form-field x-form-text x-form-text-default x-form-textarea x-form-empty-field x-form-empty-field-default" style="font-size:16px" aria-hidden="false" aria-disabled="false" aria-multiline="true" role="textbox" aria-invalid="false" aria-readonly="false" aria-describedby="O19C_id-ariaStatusEl" aria-required="false" autocomplete="off" data-componentid="O19C_id" wrap="SOFT"></textarea></div></div><span id="O19C_id-ariaStatusEl" data-ref="ariaStatusEl" aria-hidden="true" class="x-hidden-offsets"></span><span id="O19C_id-ariaErrorEl" data-ref="ariaErrorEl" aria-hidden="true" aria-live="assertive" class="x-hidden-clip"></span></div><div id="O19C_id-errorWrapEl" data-ref="errorWrapEl" class="x-form-error-wrap x-form-error-wrap-default x-form-error-wrap-side" style="display:none"><div role="presentation" id="O19C_id-errorEl" data-ref="errorEl" class="x-form-error-msg x-form-invalid-icon x-form-invalid-icon-default" data-anchortarget="O19C_id-inputEl"></div></div></div><div class="x-form-layout-colgroup"><div id="O18A_id-labelColumn" data-ref="labelColumn" class="x-form-layout-column x-form-layout-label-column"></div><div class="x-form-layout-column"></div></div></div></div></div></div></fieldset><div class="x-container x-abs-layout-item x-container-default x-abs-layout-ct x-scroller" style="left: 488px; top: 410px; width: 265px; height: 71px; overflow: hidden;" role="presentation" id="O1A0_id"><div id="O1A0_id-outerCt" data-ref="outerCt" class="x-autocontainer-outerCt" role="presentation" style="width: 100%; table-layout: fixed; height: 100%;"><div id="O1A0_id-innerCt" data-ref="innerCt" style="" role="presentation" class="x-autocontainer-innerCt"><a class="x-btn x-unselectable x-abs-layout-item x-btn-default-medium" style="left:137px;top:15px;width:105px;height:41px;" hidefocus="on" unselectable="on" role="button" aria-hidden="false" aria-disabled="false" id="O1A8_id" tabindex="18" data-componentid="O1A8_id"><span id="O1A8_id-btnWrap" data-ref="btnWrap" role="presentation" unselectable="on" style="table-layout:fixed;" class="x-btn-wrap x-btn-wrap-default-medium "><span id="O1A8_id-btnEl" data-ref="btnEl" role="presentation" unselectable="on" style="height:auto;" class="x-btn-button x-btn-button-default-medium x-btn-text x-btn-button-center "><span id="O1A8_id-btnIconEl" data-ref="btnIconEl" role="presentation" unselectable="on" class="x-btn-icon-el x-btn-icon-el-default-medium " style=""></span><span id="O1A8_id-btnInnerEl" data-ref="btnInnerEl" unselectable="on" class="x-btn-inner x-btn-inner-default-medium">Invia</span></span></span></a></div></div></div></div></div></div></div></div> Link to comment Share on other sites More sharing options...
Sherzod Posted May 28, 2019 Share Posted May 28, 2019 Hi, Can you make a simple testcase for this and attach? Link to comment Share on other sites More sharing options...
gesulmino Posted May 28, 2019 Author Share Posted May 28, 2019 1 minute ago, Sherzod said: Hi, Can you make a simple testcase for this and attach? Yes I can, here it is, the matter form is frm_contact. YouShop.zip Link to comment Share on other sites More sharing options...
Sherzod Posted May 29, 2019 Share Posted May 29, 2019 On 5/28/2019 at 12:24 PM, gesulmino said: Yes I can, here it is, the matter form is frm_contact. YouShop.zip Hi, Can you try this?: procedure TFrmContact.UniFrameCreate(Sender: TObject); begin UniMemo4.JSInterface.JSConfig('minHeight', [UniMemo4.Height]); end; Link to comment Share on other sites More sharing options...
gesulmino Posted May 30, 2019 Author Share Posted May 30, 2019 15 hours ago, Sherzod said: Hi, Can you try this?: procedure TFrmContact.UniFrameCreate(Sender: TObject); begin UniMemo4.JSInterface.JSConfig('minHeight', [UniMemo4.Height]); end; Yes, it works... thanks. Do you think that it is going to be integrate in the object? Link to comment Share on other sites More sharing options...
Recommended Posts