Jump to content

shawdown

uniGUI Subscriber
  • Posts

    142
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by shawdown

  1. Good morning friends.

    Today to select a checkbox inside the ComboBox I use the following code.

    UniSession.AddJS (UniComboBox1.JSName + '. SetValue (["Item 1", "Item 2"]);');

    The above code unchecks any other selection leaving only "Item 1" and "Item 2".

    This way I have "Item 1" and "Item 2" selected.

    Now I would like to select "Item 3" but I want to just pass the "Item 3" name and select it.

    Without deselecting "Item 1" and "Item 2".

  2. I currently use a TUniFrame to display my Menu.
    For this frame to be over all items it is necessary to use the "z-index" but Farshad Mohajeri warned me about possible conflicts with ext.js architecture.


    For this reason I'm abandoning using the z-index and putting my menu in a TUniForm.

    Since then, thank you very much for your attention.

  3. 14 hours ago, Sherzod said:
    
    procedure TfrmBorder.UniFormShow(Sender: TObject);
      function ColorToHex(Color : TColor) : string;
      begin
        Result := '#' +
        IntToHex(GetRValue(Color), 2) +
        IntToHex(GetGValue(Color), 2) +
        IntToHex(GetBValue(Color), 2) ;
      end;
    var
      tmpColor: TColor;
    begin
      tmpColor := Self.Color;
      if tmpColor = -1 then
        tmpColor := RGB(240,240,240);
    
      UniSession.AddJS(Self.WebForm.JSName + '.el.setStyle("background-color","' + ColorToHex(tmpColor) + '");');
    end;

     

    Using the given code decreases the size of the border / shadow but I still do not have the expected result see image below.

    borda_resultado.jpg.008281d9ae20cbd393e4028d5bba5733.jpg

     

    Using a "nonexistent class" in beforeInit I have a result that solves my problem.
    But I'm afraid I'll have future trouble.

    function window.beforeInit(sender, config)
    {
        config.baseCls = 'class_nonexistent';
    }

    borda_com_beforeinit.jpg.3592ad1955709287c404476f1f305419.jpg

     

     

×
×
  • Create New...