Jump to content

NizamUlMulk

uniGUI Subscriber
  • Posts

    72
  • Joined

  • Last visited

Posts posted by NizamUlMulk

  1. image.png.7f006e73bd82a2506d94e97a37e8cacf.png  When key press over the list box (multiselect and ordered), the item is selected, but the scroll doesn´t move to that item.

    Ex. Press G words from the keyboard and listbox stays same as before, but, if manually scroll the list until found an item beginning with G, that item seems selected!
    image.png.3643f7c939166f7405841dab9de06cb2.png

    How move the scroll programatically until the selected item?

     

     

  2. I've 4 Series series in UniChart, with data for 4 years, each one is 1 year. (for anything type: area, bar, pie, scatter, radar, etc.)
    When mouse move over the series, and values triggers 

    SeriesMouseOver(Sender: TUniCustomChart; Series: TUniChartSeries; Index: Integer; Value: Variant; X, Y, PageX,   PageY: Integer);

    But always the series and Index are same, never changes. Only first serie is recognizing. I need the others too.!
     

    I try with tooltips in javascript (from Delphi):

    //graphic1 is TuniChart component

        graphic1.ClientEvents.UniEvents.Add(
            'chart.beforeInit=function chart.beforeInit(sender, config){'+
            '  config.innerPadding = {left: 4,right: 5};'+
            '  if (config.series.length) { '+
            '    for (i = 0; i < config.series.length; i++) {'+
            '      config.series[i].tooltip = {'+
            '        trackMouse: true,'+
            '        width: 150,'+
            '        renderer: function(tip, item) {'+
            '          tip.setTitle(item.get(''LL''));'+
            '          tip.update(''Valor: '' + item.get(String.fromCharCode(65+i)));'+
            '        }'+
            '      }'+
            '    }'+
            '  }'+
            '}');                                          

    But when mouse moves over the graphic... only values from 1 serie shows, and same value when moving over anothers series.

    How can catch de current serie and current value?


     


     

  3. On 5/16/2019 at 6:00 PM, Skepsis IT said:

    I've created a new application and your code works fine.

    However at my app that opens a frame to a tab at mainform does not work.

    Works only if I created unilineseries at designtime, and have Unichart1.SeriesList.Clear; at the start of your code.

    And you have to create the number of series that you want at design time.... Perhaps it is a bug!

    I see only works on FormCreate event.
    Normally want to create series at runtime, by clicking a button, for example.  It doesn't work there.

    I found that the only way to do it is to create the chart also at runtime which is extremely laborious, crazy.

    Is there any method that makes the graph "refresh" the series that are created at runtime, such as a reInit, or Init, or destroy and init ... what would be the solution?

  4. I need change the hint, too. 
    Which is the resourcestring file for change the resourcestring value?

    I take example from http://www.delphibasics.info/home/delphibasicssnippets/changeresourcestringsatruntime

    And put that procedure HookResourceString(rs: PResStringRec; newStr: PChar); 

    I was tested on ServerModuleCreate, MainModuleCreate and MainFormCreate and nothing ....

    using Vcl.Consts,  Vcl.VDBConsts

    procedure TUniServerModule.UniGUIServerModuleCreate(Sender: TObject);
    begin
      HookResourceString(@SFirstRecord,          'Primer registro');
      HookResourceString(@SPriorRecord,          'Registro anterior');
      HookResourceString(@SNextRecord,           'Siguiente registro');
      HookResourceString(@SLastRecord,           'Último registro');
      HookResourceString(@SInsertRecord,         'Agregar');
      HookResourceString(@SDeleteRecord,         'Eliminar');
      HookResourceString(@SEditRecord,           'Editar');
      HookResourceString(@SPostEdit,             'Grabar');
      HookResourceString(@SCancelEdit,           'Cancelar edición');
      HookResourceString(@SConfirmCaption,       'Confirmar');
      HookResourceString(@SRefreshRecord,        'Refrescar');
      HookResourceString(@SDeleteRecordQuestion, 'Eliminar registro?');
    end;

    it still showing in English 

    image.png.2c57b8659a5b9f5bf1af7af68c54424b.png

  5. Hi!.
    I am same problems with UniImage. That component doesn´t show any image (jpg, png, gif, anything).

    The cache folder has writing permissions. The PNG's files are there!!  with names CQVQXZ190322121647573.png  and UMPUUA190322121647573.png .. but doesn´t show them!

    UniguiUniImageFault.png

  6. How is possible define areas or regions in a TUniImage?

    Ex.. Show some flags in an unique picture, and when click in each flag do something ... as redirect to another form, or another website ... 

     

    Or better, show a image map (as attached), and click in a country for do something

    In HTML is there map and area tags ... but ... never must change size of controls to make it works

    post-2027-0-17840000-1516361705_thumb.jpg

  7. I'm using TUniPDFFrame to show PDF files, but this component doesn't show the advertisement about digital sign.

    The client need to see that notice. (adj. images)

     

    Also, I need to know if an uploaded pdf is digitally signed before save on BD.

    Could there be any property that indicates whether it is signed or not?.
    Ex.
    
      bool hasSig = false;
                for (int i = 1; i <= QP.FormFieldCount(); i++)
                    if (QP.GetFormFieldType(i) == 6)     // FormFieldType = Signature
                        hasSig = true;

    taken from  http://www.quickpdf.org/forum/how-do-i-detect-that-a-pdf-has-a-digital-signature_topic2529_post10489.html?KW=FormFieldType#10489

     
     
     

     

    post-2027-0-10154200-1511369050_thumb.png

    post-2027-0-59716000-1511369364_thumb.png

    post-2027-0-32984700-1511369378_thumb.png

  8.  Ejemplo al presionar el botón ok

    procedure btnOKClick(Sender: TObject);
      procedure Imprimir;
      begin
        UniMainModule.CrearWebFilePath;
        UniSession.AddJS('window.open('+QuotedStr(UniMainModule.WebFilePath)+',"_blank", "status=no,location=no,resizable=no,dependent=yes,toolbar=no,menubar=no", "false");' );
      end;
    begin
      UniScreenMask1.AttachedControl := btnOk;
      UniScreenMask1.TargetControl   := Self;
      Self.MessageDlg('Desea imprimir el contenido?', mtConfirmation, mbYesNo,
            procedure (Sender: TComponent; Res: Integer)
            var cerrarModal: boolean;
            begin
              cerrarModal := Res = mrNo;
              if not cerrarModal then
                Imprimir
              else
                CloseModal;
            end);
    end;
    
    

    En ese ejemplo no sale nunca el mensaje, y mucho menos se abre la nueva ventana que contendría el archivo pdf a imprimir.

    La prueba fue hecha sobre Chrome.
    Porqué puede ser que no dispare el messagedlg?. Tampoco cierra el form porque nunca se ejecuta el callback

×
×
  • Create New...