Jump to content

Luis Devis

uniGUI Subscriber
  • Posts

    45
  • Joined

  • Last visited

Posts posted by Luis Devis

  1. Hi, thanks for your interest in my topic.

    I need to use a tUnipanel that changes its color when it is pressed (mousedown) and go back to its original back color when the mouse/finger releases (mouseup).
    I don't want to use Delphi code because it is too slow, I'd rather use  ClientEvents but I'm not yet used to them. Can you lend me a hand?

    Thanks a lot for your help

  2. Hello, I'm really new to UNIGUI and web developement and I don't really understand how sessions work. 

    Please tell me what am doing wrong. I have developed a program with UNIGUI on ISAPI that works really good until one of the connected devices crashes or quits the app.
    When one connection is cancelled (web browser closes or the user closes my app tab) and tries to connect again the server seems to be lost for it, it cannot connect again. The other connections work fine but others can not connect again.

    Besides, the server icon disappears in the system.

    Please tell what do you suspect I am doing wrong.

    Thank you.

  3. Its very easy , just use a CSS instruction and apply it to Attribs.style in the ondrawcell event.

    In the event ondrawcell just put this :

    Attribs.Style.Style := 'border-bottom: 2px solid black' ;

    Obvously it depends on where do you want to draw the line, how thick do you want the line and what colour.

     

  4. Solución en dos pasos : El tUniStringgrid se llama Grid

    1º En Grid.ClientEvents.UniEvents -> AfterCreate   Escribir

    function afterCreate(sender)
    {
      let me = sender;
        me.scrollToEnd = function() {
            me.ensureVisible(me.getStore().last())
        }
    }

     

    2º En el momento deseado (yo lo hago después de haber insertado un nuevo row al final)

          UniSession.Synchronize();
          grid.JSInterface.JSCall('scrollToEnd', []);

     

    ¡¡ Así de simple !!

  5. Hola , mi problema es que a medida que voy añadiendo rows a mi unistringgrid la pantalla no cambia, necesito que el usuario pueda ver la última línea que ha insertado , puedo situar el row en la ultima línea pero en pantalla no se hace scroll y no puede verse esa ultima línea.

    ¿Alguna sugerencia?

    Gracias

  6. Hola, estoy desarrollando una aplicación UNIGUI, usa controles IBX porque conecta con una base de datos interbase (con servidor Firebird).

    Todo muy bien y funcionando sin errores ni problemas en modo DEBUG pero cuando quiero generar la version RELEASE todo son errores, errores de memoria, runtime errores y ahora error al compilar la unit IBX.Services.pas ->  E2217 Published field 'ServerVersion' not a class or interface type

    Me desespera que en un modo todo vaya bien en el definitivo todo sean problemas que no puedo controlar.

    ¿Alguna sugerencia para solucionar el problema de error de compilación en IBX.Services.pas ?

    Gracias sabios. 😃

  7. Al final me pasaron la solución y funciona muuuuy bien.

    1º  En el ServerModule pon en su CustomCSS:

    *.unselectable {
       -moz-user-select: -moz-none;
       -khtml-user-select: none;
       -webkit-user-select: none;
       -ms-user-select: none;
       user-select: none;
    }

    2º Ya en la aplicación 

      FLbl := TUniLabel.Create(Self);
      FLbl.Parent := Self;
      FLbl.Font.Size := 20;
      FLbl.Left := 10;
      FLbl.Text := 'Hello There';
      FLbl.JSInterface.JSCall('addCls', ['unselectable']); //<---------
  8. Hola, soy completamente nuevo con UNIGUI y en el desarrollo web, (vengo de Delphi 6 !!!).

    Una cosa muy molesta cuando desarrollo mi aplicacion con UNIGUI es que los captions de los paneles, botones, labels... son seleccionables, el cursor pasa a modo editor y se puede seleccionar su texto, no quiero que eso se pueda hacer  pero... ¿cómo lo evito?

     

    Gracias😅

×
×
  • Create New...