Questions on Table component

Discussion in 'Questions (Windows Mobile)' started by dan kabestan, Jun 23, 2008.

  1. dan kabestan

    dan kabestan Member Licensed User

    hello,
    1 - What is the good way to "directly" edit in a Table cell (with keyboard).
    (i'm actually obliged to catch keys on a textbox and copy to cell)
    2 - why i cant change focus from Table to a textbox ? see next :
    '---------------- with table1 and textbox1...
    sub Table1_SelectionChanged (ColName, Row)
    textbox1.focus
    end sub
    '----------------------------------------------------------
    the focus doesnt go to textbox !
    Thanks for help
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    1. I've attached one possible way.
    2. The focus returns to the Table control at the end of SelectionChanged event.
    The solution is to use a timer which will set the focus:
    Code:
    Sub Globals
        
    'Declare the global variables here.

    End Sub

    Sub App_Start
        Form1.Show
        AddTimer(
    "Timer1")
        Timer1.Interval = 
    5 'ms
    End Sub
    Sub Timer1_Tick
        Timer1.Enabled = 
    false
        TextBox1.Focus
    End Sub

    Sub Table1_SelectionChanged (ColName, Row)
        Timer1.Enabled = 
    True
    End Sub
     

    Attached Files:

  3. dan kabestan

    dan kabestan Member Licensed User

    table cell access

    1 - I'm sorry but i had seen this on your forum and as i said, i already use that kind of undirect solution.
    I would find a DIRECT solution to catch keys in the Table cell. (without use an external textbox)
    We only dispose of ONE event for this component and its really short !
    Is there any work around ?

    2 - Your interesting Timer solution seems to run only IF the clic-on-cell doesnt select the cell content (blue).

    3 - Returning to my old idea : put a textbox exactly in front of selected cell,
    the problem is to know the selected cell position in Form, with big Table and scroll use.
    My first solution was to hidde the Table , catch mouse values on Form and finaly put 'visible' the Table :
    it's not working well. (tried also with your timer-focus).
    Is there any better way to find those coordinates ?

    4 - Before your new ideas my alone solution is to put a virtual Table made with a same number of textbox
    as number of items(row) of arraylists(col).A good idea ?
     
  4. Erel

    Erel Administrator Staff Member Licensed User

  5. dan kabestan

    dan kabestan Member Licensed User

    Edit in cell Table, learning door.dll

    A power library ! which call somme tutorials !
    Using your EnhancedTable, i propose this first edit in a cell .
    (attached file).
    But i dont know how manage the scroll, for kill the edit-box
    when move or better : follow the move...
    (Havent found a 'o.GetProperty("Type")' == 'scrollbar' to use )
    What is the good way to made an 'addScrollChangeEvent(TableName)' ?
    Actualy have not enougth information/method on this super Dll.
    Is there any other sample-document which describes it ?
     

    Attached Files:

  6. Erel

    Erel Administrator Staff Member Licensed User

    This is the documentation of the Door library: Door
    The Door library is a special library as it exposes the functionality of the .Net Framework (or .Net Compact Framework).
    Unlike all other features of Basic4ppc it requires some knowledge of the .Net.
     
  7. Erel

    Erel Administrator Staff Member Licensed User

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice