Jump to content

likemike

uniGUI Subscriber
  • Posts

    356
  • Joined

  • Last visited

  • Days Won

    7

Posts posted by likemike

  1. It seems to be a general problem with OnClick-events. So my solution is:
     

    USES DateUtils;
    
    VAR LastClicked : TDateTime;
    
     :
    
    PROCEDURE TFProjektInfo.UnimFormTitleButtonClick(Sender : TUnimTitleButton);
    BEGIN
        IF MilliSecondsBetween(Now, LastClicked)<500 THEN Exit;
        LastClicked:=Now;
        // your code
    END;

     

  2. Hello!

    I often use titlebuttons on forms.
    But I've discovered, that you can use a doubleclick instead of a simple click. In that case the UnimFormTitleButtonClick event fires twice.
    For ex.: if the UnimFormTitleButtonClick event is used to add a record in a database, with a doubleckick there are 2 records written.
    Any idea how to prevent this from happening?

    Regards

    Mike

  3. Hello!

    I want to change some simple properties in the navigation bar of an UnimDBGrid:

    test.thumb.jpg.301d5349148ba959dc4cd8b2e15c8911.jpg

    I want to change the font color, background color, height of the bar and the font size.

    I've tried some CSS with .x-scroller and .x-nativescroller, but that had no effect.

    Any help would be appreciated!

    Mike

  4. Hello!

    I use this topic, because my question is nearly the same.

    I have a TUnimComboBox, which sometimes has "Enabled" set to false. With the solution above the fieldlabel is black as I want it (and not blur), but the text of the field is nevertheless blur. How can I prevent the text from getting blur, when the field is disabled?

    Regards

    Mike

  5. Hi Sherzod!

    I don't know, how to use GetText to change the content of a UnimDBGrid during runtime.

    You gave this answer in that post too, 

     

    but it seems, that Denton didn't understand this, too, because he solved his problem with calculated fields.
    What I need is the method OnSetCellValue like it already exists in the non mobile version of TUnimDBGrid - or a workaround.

    Regards

    Mike

  6. Sure!

    I have a TunimDBGrid connected to a query.

    Under certain circumstances I want to hide some fields from displaying. But there's only one method (OnDrawColumnCell) in TunimDBGrid which effects the display in a grid. 

    Example (a grid of Name, Sex and Age):

    Name      Sex     Age
    ----------------------------
    Peter       M       44
    John        M       40
    Cindy       F       

    Although the age of Cindy is stored in the table, it shouldn't be displayed (women don't like that 😉

     

  7. Hello!

    I want do change a field content in a TUnimDBGrid when certain circumstances arise.
    In TUniDBGrid there is a method called OnSetCellValue. This method is missing in TUnimDBGrid.
    I've tried to use OnDrawColumnCell. I used a dirty workaround to hide some content: 

    Attribs.Font.Color:=Attribs.Color;

    But this is not perfect, because the user could make the content visible by mouse-marking.
    I've searched in the forum but I couldn't find anything that helps.

    Any suggestions would be appreciated!

    Regards

    Mike

  8. On 12/22/2021 at 7:23 PM, Hayri ASLAN said:

    Hi

    Did you try with new version of ZXING?

    Hello Hayri!
    I've tried some other Zxing-files, but the problem on iOS (iPhones) is still there. 
    The 1st try opening the cameralist only shows one device, while the 2nd try works perfect.

    I guess, the problem has to do with the permission to use the camera. The 1st time the permission isn't set, so the cameralist is not loaded. The 2nd time the permission from the 1st try is active, so the cameralist could be loaded.
    One solution is, to give access to the camera in the App-option-menu to Safari permanently.

     

  9. On 12/22/2021 at 1:02 PM, likemike said:

    Sorry for pushing, but the problem with UnimBarcodeScanner1.CameraList is still actual.

    The UnimBarcodeScanner1.CameraList; doesn't load all video devices on Android devices (only the front cameras are listed).

    Another problem: on iOS-devices the 1st try gives only "Video device 1 =", while the 2nd try loads front and rear camera correctly.

    Maybe there is a new version of ZXING.min.js?

    Hello!

    I'm still having this problem with the UnimBarcodescanner component. Especially the problem with iOS devices, which are working only when I call the barcodescanner the 2nd time.

    Is there nothing, I can do?

    Regards

    Mike

×
×
  • Create New...