Jump to content

likemike

uniGUI Subscriber
  • Posts

    356
  • Joined

  • Last visited

  • Days Won

    7

Posts posted by likemike

  1. Hello!

    I've tried to change my programming from UnimFileUploadButton to UnimFileUpload, but the popup-window of UnimFileUploadButton looks much better and if you chose one item, you are directly for ex. in the camera mode (and not in an "ugly" file upload window).

    So it would be very nice, if I could integrate the microphone capture in the menu of UnimFileUploadButton.

    BTW: none of both ways show the possibility to use the microphone on Apple smartphones. Is there a solution?

     

    Regards

    Mike

  2. Here it isUnigui.rarUnigui.rar

    If you start it, some panels and memos will be created. Because of the painted-function in ExtEvents the height of the scrollbox ist exactly what is necessary to fit all objects.

    If you press the button, 2 more objects are added. If you scroll down, now there is a blank space at the bottom (because here the painted-function has no effect).

    So I need to call the function "painted" after inserting new objects.

  3. Hello Sherzod!

    Here you helped x11 with an UnimScrollbox:

    Especially this part:

    function painted(sender, eOpts)
    {
        sender.bodyElement.dom.setAttribute('style', 'overflow-y:auto !important'); 
        sender.bodyElement.select('.x-dock .x-dock-vertical').setStyle('overflow-y', 'auto');
        
        if (sender.floating) {
            sender.floating.element.setStyle('height', 'auto');
        }
    }

    I need this too, but the problem is, that I add objects on the scrollbox at runtime and the "painted" script doesn't fire. After that the problem comes back.

    I've tried to call this after adding objects, 

    WITH UnimScrollBox1.JSInterface DO BEGIN
      JSCode(#1'.bodyElement.dom.setAttribute("style", "overflow-y:auto !important");');
      JSCode(#1'.bodyElement.select(".x-dock .x-dock-vertical").setStyle("overflow-y", "auto"); ');
      JSCode('if ('#1'.floating) {'#1'.floating.element.setStyle("height", "auto");}');
    END;

    but there is a syntax-error in the 3rd line (Unexpected token '.'). 

    I'm sure, you'll see my fault immediately!

    Regards

    Mike

  4. Hello!

    I've tried this with my Uni(m)Scrollbox, but I get an error message. Is there a solution for mobile, too?

    with UnimScrollBox1.JSInterface do
        JSCall('getDragEl().applyStyles', [JSObject(['background-color', 'transparent', 'frame', 'false', 'border', 'none'])]);

    Regards

    Mike

  5. I've got the solution:
     

    ALTER TABLE "T_Table" ALTER COLUMN TEXT_FIELD TYPE VARCHAR(8192) CHARACTER SET OCTETS COLLATE OCTETS

    The “trick” is to use character set OCTETS. Because OCTETS is a special character set that blindly stores only what you poke into it—without transliteration—it is ideal for making the character codes neutral with respect to code page.

  6. Hello!

    Does anyone knows a way how to save Emojis, which are entered in an UnimEdit to database and to display them later f.ex. in an UnimMemo?

    When I use an UnimEdit, you can insert Emojis on Smartphones. When I save the UnimEdit.Text in a database field and load it back to a memo field there are ???? displayed instead of the emojis. I figuered out, that the Emojis are represented by 2 hex values each. When saving it to a database field the hex pairs are replaced to ?-signs.

    Regards

    Mike

  7. @Sherzod:

    Here you helped pro_imaj with a similar problem:

    I tried this with UnimScrollBox instead of UniFieldSet, but this doesn't work:

            JSInterface.JSCallDefer('items.items.sort', [JSInterface.JSStatement('function(a, b) {a = a.uname;b = b.uname;if (a === b) {return 0;}return a < b ? -1 : 1;}')], 5, UnimScrollBox1.JSControl);
            JSInterface.JSCallDefer('updateLayout', [], 10, UnimScrollBox1.JSControl);

     What do I wrong?

  8. Thx Sherzod, but I've forgot to mention, that the UnimMemo are created during runtime. I've tried this, but it has no effect:

                s:= 'painted=function painted(e, eOpts)'#13#10 +
                '{ e.inputWrapElement.setStyle("border-radius", "20px"); '#13#10 +
                '  e.inputWrapElement.setStyle("border-color", "clGreen"); } ';
                unimMemo.ClientEvents.ExtEvents.Add(s);

     

  9. Hello!

    I'm wondering how to get a TunimMemo with rounded corners and without frame.

    I've tried this:

                unimMemo.JSInterface.JSCode(#1'.bodyElement.dom.style.setProperty("border-radius","20px");');
                unimMemo.JSInterface.JSCode(#1'.bodyElement.setStyle("border-radius","20px");');

    The result is a frame, which has a nice rounded corner and the text area with a different and smaller angle. 

    snap.jpg.b00e6536085f33d41fbfc194d7ab3c14.jpg

    So I don't need a frame, but the text area with higher degrees of rounding.

    Another question: Is it possible to get TUnimMemo transparent? 

    Regards

    Mike

  10. The problem is the new behaviour of iOS. Apple replaced the doubleclick by a tripleclick.

    I open the UniSweetAlert by choosing a line in an UnimDBGrid. The doubleclick don't work here anymore - so the user has to tripleclick or use the "hold"-function.

    Both methods remove the focus from the UniSweetAlert input field.

  11. There's an interesting difference between iOS and Android in respect of the apperance of the virtual keyboard:

    on iOS the UnimSweetAlert appears without opening the virtual keyboard (only when you click in the input field, the keyboard appears too)

    on Android the UnimSweetAlert appears with opening the virtual keyboard simultaneously

×
×
  • Create New...