Small questions on Table component and Help window

Discussion in 'Questions (Windows Mobile)' started by dan kabestan, Apr 11, 2008.

  1. dan kabestan

    dan kabestan Member Licensed User

    hello,
    _1_____TABLE_______
    Is there any scroll to caret for Table component ? or any near way to do it ?

    _2_____TABLE________
    The "addrow" seems to refuse argument variable as parameters like :
    table2.addrow( 11 ,22 ,33) 'which add correctly each value in each cell

    but if i would use any parameter variable like :
    var1 = 11
    folk = var1 & "," & 22 & "," & 33
    table2.addrow(folk) '==> all arrived in the first cell !

    I'm obliged to use a cell by cell function. Is there an other way ?

    _3_____help window_______
    Anybody could do something to forbidde the crazzy go-hidden below current windows (with a twice click action) of the small help result window ! Keeping it in front as the master help-window could be great !

    _4____ Hopes
    In the designer form window, near the name, a small box given the component "TYPE"
    will be very interresting. I know few space on the poquet, but maybe.....

    thanks for help
     
  2. agraham

    agraham Expert Licensed User

    1) Try setting the SelectCell property. I think this might bring the cell into view but I don't have time to try it (my turn to cook this evening :().

    2) You are effectively passing only one parameter - a string. Use "table2.addrow(var1, 22, 33) "

    3) Sorry, I don't understand - which Help window are you referring to and are we on the desktop or device and are we in the IDE or runnig an app :confused:

    4) Erel's job :)
     
  3. dan kabestan

    dan kabestan Member Licensed User

    Ok I try to be more synthetic

    1___scroll to caret on TABLE = > all i try => nothing run

    2___ addrow() does not accept variable :
    addrow( 11, 22 ) ==> affect (in one shot) first cell with 11 and second cell with 22 ==> Right
    BUT
    var_sun = 11 & "," & 22
    addrow( var_sun ) does not run ==> it affect "11,12" to the first cell !!!

    Is there a work around 'one shot' (other than cell to cell functions) to solve it ?

    3___"Help" answer window
    on bp4 standard window, for example :
    click help / main help ==> "Help" window comes
    click controls / table ==> right half-window "Table" comes
    on the rigt half window : click once a selected hyperlink choice
    ==> the small answer window appears
    << BUT >>
    DOUBLE click on the same selected hyperlink choice
    ==> the windows go rear, is hidden !!! WHY ??

    The main help window run always in front ....
    the answer could be the same. No?

    Could be change this....please...

    Thanks for your fast answers
     
  4. klaus

    klaus Expert Licensed User

    Sorry I don't understand your 1st point?

    Concerning point 2, use simply

    Table2.addrow(var1,va2r,var3...)

    You should not inset the commas.
    In your example there is only ONE variable and it is put into the 1st cell.

    Point 3
    If I understood well, it's the secondary Help window when clicking on Properties or Methods in the Main Help window, it's up to Erel.

    Best regards
     
    Last edited: Apr 11, 2008
  5. dan kabestan

    dan kabestan Member Licensed User

    Right for Addrow, but 'Table focus' is a problem

    Thanks to Agraham and Klaus
    As you know, in Textbox we have a scrolltocaret function to focus on the LAST lines. Each line you add you can focus on END of text
    So I would do the same process with the Table component.
    Actually each Table modify goes the table focus on Table top. It's usefull to see the END of table .
    Any idea ?
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    1. The only way to do it is by selecting the last row:
    Code:
    table1.SelectCell(table1.ColName(0),table1.RowCount-1)
    2. This is not possible. The code is only parsed once (during compilation) and the parser can't know the value of each variable.
    3 & 4. I will check these issues.
     
Loading...