Jump to content

newsanti

uniGUI Subscriber
  • Posts

    323
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by newsanti

  1. On 11/11/2022 at 10:53 AM, Sherzod said:

    Hello,

    One possible solution:

    function painted(sender, eOpts)
    {
        sender.inputWrapElement.setStyle('border', 'none');
    }

     

    Event Painted...with Tunimemo...
    has effected flash white border. (2 step ..1. write white border then 2. remove border)

  2. On 3/2/2019 at 10:56 PM, Sherzod said:

    Hi,

    Can you try this approach?:

    procedure TMainForm.UniButton1Click(Sender: TObject);
    var
      needToMove: TUniPanel;
      indxToMove: Byte;
    begin
      needToMove := UniPanel2;
      indxToMove := 0;
    
      UniContainerPanel1.RemoveControl(needToMove);
      UniContainerPanel1.JSInterface.JSCall('insert', [indxToMove, needToMove.JSControl]);
      needToMove.JSInterface.JSCall('show', []);
    end;

     

    How to reorder TuniFrame because frame without JSInterfece?

  3. 28 minutes ago, Sherzod said:

    This post may help you:

    How to run-time applyStyle of TunimMemo?

          var oMemo:= oForm.UnimMemo1;
          oMemo.Color:= oTask.TagColor1;
          oMemo.Font.Color:= oTask.TagColor2;
          oMemo.Font.Size:= 20;
          oMemo.JSInterface
            .JSProperty('textAlign', ['center'], 'setTextAlign'); //'left', 'center', 'right'
          >> ??? for ApplyStyle

     

  4. 19 minutes ago, Sherzod said:

    This post may help you:

     

    constructor TsmswUnimWebSpaceWS666A100BodyItem78Frame101.Create(
      AOwner: TComponent);
    begin
      inherited Create(AOwner);
      var oMemo:= UnimMemo1;
      oMemo.JSInterface
      .JSAddListener('painted', 'function(me){'+
      'me.inputElement.applyStyles('''+oMemo.Font.ToString(True, False, True) +''');'+
      'me.inputElement.setStyle("line-height", me.inputElement.getStyle("font-size"));'+
      'me.inputWrapElement.setStyle("border", "none");'+
      '}');
    end;
     

    This code not working. for overlap.

    image.png.7ac92c2bb27cd7d5e4f02b42b42011f8.png

  5. 3 minutes ago, Sherzod said:
    procedure TMainmForm.UnimFormCreate(Sender: TObject);
    begin
      UnimMemo1.JSInterface.JSConfig('textAlign', ['center']); //'left', 'center', 'right'
    end;

     

    image.png.0cb52335169cf8aa7b1b676b1328221f.png

    Run-Time...

          var oMemo:= oForm.UnimMemo1;
          oMemo.Color:= oTask.TagColor1;
          oMemo.Font.Color:= oTask.TagColor2;
          oMemo.Font.Size:= 20;
          oMemo.JSInterface.
          JSConfig('textAlign', ['center']); //'left', 'center', 'right'

     

  6. 4 hours ago, Sherzod said:

    I modified the code. Move the code to the OnReady event, that's why I asked where you use the code...

    One possible solution:

    procedure TMainmForm.UnimFormReady(Sender: TObject);
    begin
      with UnimContainerPanel1 do
      begin
        JSInterface.JSCall('bodyElement.setStyle',
        ['background', 'url('+UnimImage1.CurrImgUrl+')']);
      end;
    end;

     

    Great. Thanks.

    image.png.8bf3063906fdc18c730ec8d82ca3a7d6.png

    • Thanks 1
  7. 14 minutes ago, Sherzod said:

    As I understand, you want to get the url from the UnimImage and assign this link as the background-image of the UnimPanel?

    If yes, when and where?

    Yes…

    I want to create panel as button with

    image background and Label on top

    And TunimImage.Visible= False

    for client side Menu application.

  8. 9 hours ago, Sherzod said:

    Hmm, are you sure? 

    Works for me.

    image.png.6f770af6b98d913d8ebf371e0e0421c1.pngimage.png.047b871919132056c88335a27b87725f.pngimage.png.d5718b8be9332f44fc27303f42e92e65.png

    function chart.beforeInit(sender, config)
    {
       config.series[1].renderer=function(sprite, config, rendererData, index){
           return {strokeStyle: '#FF8C00', 
                   label: ""  
                  };
       }
    }

    How to fix Border color for each part of Series2?

    I try with run-time code but error.

         JSCall('chart.getSeries()['+
         UnimChart1.SeriesList.IndexOf(UnimPieSeries2).ToString +']._setStrokeStyle',
         '"#FF8C00"');
     

  9. Sorry ... It worked. Thank. 

    I miss redraw.

    procedure TMainmForm.UnimLabel1Click(Sender: TObject);
    begin
      UnimPieSeries2.Colors[0]:= '#FF8C00';
      UnimPieSeries2.Colors[1]:= '#FFFFFF';
      UnimPieSeries2.Colors[2]:= '#FFFFFF';

      with UnimChart1.JSInterface do
        JSCall('chart.getSeries()['+
        UnimChart1.SeriesList.IndexOf(UnimPieSeries2).ToString +'].setColors',
         [JSArray(['#FF8C00','#FFFFFF','#FFFFFF'])]);

      UnimChart1.Redraw;
    end;
     

×
×
  • Create New...