Jump to content

Recommended Posts

Posted

Hi,

 

It would really be good (i think) if there would be FieldCaption, FieldCaptionWidth,... for components TUniTagField and TUniDBTagField

 

Best regards!

  • Upvote 1
Posted

Hi,

21 minutes ago, skafy said:

It would really be good (i think) if there would be FieldCaption, FieldCaptionWidth,... for components TUniTagField and TUniDBTagField

Use this approach for now:

 

  • Like 1
Posted
On 5/13/2022 at 8:41 AM, Sherzod said:

Hi,

Use this approach for now:

 

Tnx, it worked! Hw about border. 

folowing command don't seem to work: UniTag.BorderStyle:= ubsSolid;

It makes it somehow transparent...?

Posted
38 minutes ago, skafy said:

folowing command don't seem to work: UniTag.BorderStyle:= ubsSolid;

It makes it somehow transparent...?

procedure TMainForm.UniFormCreate(Sender: TObject);
begin
  with UniTagField1 do
    if BorderStyle = ubsSolid then
      JSInterface.JSAddListener('afterrender', 'function(me){me.setStyle("border", "thin solid gray")}')

end;

 

  • Like 1
Posted
17 minutes ago, Sherzod said:
procedure TMainForm.UniFormCreate(Sender: TObject);
begin
  with UniTagField1 do
    if BorderStyle = ubsSolid then
      JSInterface.JSAddListener('afterrender', 'function(me){me.setStyle("border", "thin solid gray")}')

end;

 

This does not read the FieldWidth value.  Above command also bordered fieldcaption wich is not OK.

Posted
19 minutes ago, skafy said:

This does not read the FieldWidth value.  Above command also bordered fieldcaption wich is not OK.

procedure TMainForm.UniFormCreate(Sender: TObject);
begin
  with TUniEdit(UniTagField1) do
  begin
    FieldLabelWidth := 70;
    FieldLabelAlign := laLeft;
    FieldLabel := 'LabelText';
  end;

  with UniTagField1 do
    if BorderStyle = ubsSolid then
      JSInterface.JSAddListener('afterrender', 'function(me){me.bodyEl.setStyle("border", "thin solid gray")}')
end;

 

  • Like 1
Posted
7 minutes ago, Sherzod said:
with UniTagField1 do
    if BorderStyle = ubsSolid then
      JSInterface.JSAddListener('afterrender', 'function(me){me.bodyEl.setStyle("border", "thin solid gray")}')

me.bodyEl - Please note this is a modified code.

  • Like 1
Posted
2 minutes ago, Sherzod said:

me.bodyEl - Please note this is a modified code.

Yeees. It worked.

Sorry... I didn't see the changed code :S ( i thought you just merged two codes. :))

 

Thank you!

  • Like 1
×
×
  • Create New...