Jump to content
uniGUI Discussion Forums

arilotta

uniGUI Subscriber
  • Content Count

    162
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by arilotta


  1. Hi Delphi Developer, I found this "old" thread because I wanted to add checkboxes to unilistbox with multiselect=true.

    Your solution works, the checkboxes are displayed. But, if inspecting the unilistbox selected property, no row

    is marked as selected:

     

    var
      I: Integer;
    begin
      for I := 0 to CHKIndicazione.Items.Count - 1 do
        if CHKIndicazione.Selected then
          showmessage(CHKIndicazione.items)
    end;
     

    What's the problem ?

    Thanks

    Andrea


  2. Thank you Delphi Developer, it works perfectly. With your support I was able to design an icon on a DbGrid and to popup a menu

    on the position of the cell, when it gets clicked.

     

    Andrea


  3. Hi Delphi Developer,

    your solution finds correctly the coordinates, but I am not able to send them to the server using the ajaxrequest command:

     

    function cellmousedown(sender, td, cellIndex, record, tr, rowIndex, e, eOpts)
    {
      var c = Ext.get(td).getXY();
      ajaxRequest(sender, 'CellXY', ['x='+c.x, 'y='+c.y]);   
    }
     
    The above event does not fire anything in the OnAjaxEvent Delphi event. How come ?
    Thanks
    Andrea

  4. Your solution works well Delphi developer.

    I use some images in a DbGrid as action icons, and I need to know the position of the mouse when the image gets clicked (left mouse button)

    because I need to popup a popupmenu with some choices in that position.

    In fact this solution gives me back the coordinates of the cell, and not the actual coordinates of the mouse.

    I would need to have the X,Y coordinates such as in the OnCellContextClick event.

    Why the OnCellClick event does not supply X,Y coordinates ?

     

    As always thank you.


  5. Thanks alot Delphi dev,

    I started yesterday following Mohammad's instructions finding the CSS styles to modify, and I managed to achieve something 

    using these:

     

    .x-grid-row-before-focused .x-grid-td {
      border-bottom: 1px hidden #FFFFFF;
    }
     
    .x-grid-row-focused .x-grid-td {
      border-bottom: 1px hidden #FFFFFF;
    }
     
    .x-grid-body .x-grid-table-focused-first {
      border-top: 1px hidden #FFFFFF;
    }

     

    But your solution works in fact very well and I'll use your style.

    I'm planning to use this solution with the grid indicator (remember the other post ?)

    In addition, thanks to your reply, I learnt how to apply a particular style (custom-grid in our case) to a specific grid,

    using the beforeInit event. 

    Thanks again !


  6. Hi Farshad, I needed too to know the position of a clicked cell.

    It seems that this solution does not work anymore, maybe the framework has changed meanwhile.

     

    function cellmousedown(sender, td, cellIndex, record, tr, rowIndex, e, eOpts)
    {
      var c = sender.getXY(e);
    alert("c.x"+c.x);
    }
     
    the above implementaion returns "undefined", which is the correct way to get the coordinates ?
    Thank you

  7. Hi, I'm trying to achieve the grid indicator feature by adding as the first column and image showing a triangle that resembles the well known standard Delphi 

    grid indicator.

    The problem I am facing here is that it has to be shown only on the selected row, while it should be hidden for all the other rows.

    Ideas on how to achieve this ?

    Thanks


  8. Hello,

    even though I enable the dgIndicator in UniDbgrid, and the relative column column is added, at runtime I don't see any indicator.

    Am I missing something ?

     

    Thanks

    Andrea


  9. Yes, that's the idea, and it works as you would expect in a mobile browser. No difference between a FireMonkey app with TWebBrowser component and Chrome mobile browser.

    Regarding the login form, I use a TUnimLoginForm form.

    Then if from the main form you specify "ModalResult:=mrOk;" you'd go back to login form. It works perfectly, as in the mobile browser.


  10. I'm unable to open a unigui mobile site from a FireMonkey app using the TWebBrowser component, I always get


    "Invalid session or session timeout. restart Application".


     


    If I open the website from a mobile browser (Chrome) everything works smoothly.


     


    Is there something I'm missing ?


     


    Thanks


    Andrea Arilotta



  11. First of all, I apologize for posting to this group, uniGUI Mobile is more appropriate but unfortunately I'm not allowed to add posts to that group...

    Is there any reason ? I've bought the complete version...

     

    Now, the issue. I'm unable to open a unigui mobile site from a FireMonkey app using the TWebBrowser component, I always get

    "Invalid session or session timeout. restart Application".

     

    If I open the website from a mobile browser (Chrome) everything works smoothly.

     

    Is there something I'm missing ?

     

    Thanks

    Andrea Arilotta


  12. Thank you Delphi Dev,

    it works using the "selectPathById" function. It is necessary to know in advance the node ID, and it is somehow tricky to get that value.

    However I managed to get that value directly from the query (using Oracle). For anyone that's interested in, the node index ranges

    from zero to N-1 (number of nodes minus 1).

    The first root node gets a 0 index, the second root node a 1 index, ...

    The first node at level 1 (child of a root node) gets a J index, given J the number of root nodes, and so on

    Maybe clearer with an example:

     

    N1                                                               Index 0

             N11                                                    Index 3

             N12                                                    Index 4

    N2                                                               Index 1

             N21                                                    Index 5

             N22                                                    Index 6

    N3                                                               Index 2

             N31                                                    Index 7

                         N311                                      Index 9

                         N312                                      Index 10

             N32                                                    Index 8


  13. Ok, I shared the tets case on Google Drive. Please download the test case from the following link:

     


     

    Steps to reproduce the issue:

    1. Click "1. Fill dataset" to populate the dataset

    2. Click "2. Locate root" to move the active record to the root

    3. Click "Expand Selected Node" to expand it --> it works

     

    4. Click "FullCollapse"

    5. Click "3. Locate Child1" to move the active record to Child1

    6. Click "Expand Selected Node" to expand it --> doesn't work, nothing happens

     

    Repeat steps 4..6 changing the node to locate, locating GrandChild1 and then GrandChil3:

    same behaviour the node is not made visible.

     

    If I change "cascadeBy" with "bubble", strangely, the behaviour is the same.

     

    Thank you
×