no event changingselected cell in a table?

Discussion in 'Bug Reports' started by moharj, Feb 1, 2008.

  1. moharj

    moharj Member Licensed User

    hi
    i think i found a bug in the optimise compiler.
    i change the selected cell in a table in order to scroll up or down
    to the begining or the and (AM PM) of the table
    like the example below.
    it worked with the usual compiler it does'nt work on the device
    with opitimisation.
    the event doesnt shoot ?

    Sub BtnPMW_Click
    swdontask = 2
    swampm = 2
    TableWeek.SelectCell("Hour",TableWeek.RowCount - 1)
    swdontask = 0
    End Sub

    j. mohar
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    I've checked it and it seems to work properly.
    Can you upload a small example that demonstrates the problem?
     
  3. moharj

    moharj Member Licensed User

    changing selected cell

    hi erel
    it work at first but after changing once and adding a new lesson it doesnt react until you scroll the table "manually"
    you can check it by compiling the lessons program :
    http://www.basic4ppc.com/forum/showthread.php?t=670
    i'm attaching the device exe with the files needed to run on the device
    the bug is after addin new lesson in diary or week screens
    the scroll bar does not react to AM PM controls but react after
    you move the scroll bar manually back
    it might be a bug in the program but it worked fine with the usual compiler
    i hope this will help
    thanks
    j mohar
     
  4. moharj

    moharj Member Licensed User

    the attach file

    i think i missed the file
     
  5. Erel

    Erel Administrator Staff Member Licensed User

    It appears like a different behavior between .Net CF 2.0 and .Net CF 1.0.
    For some reason the Table control doesn't refresh properly.
    You can add the following lines in Sub BtnDayLes_Click:
    Code:
    tableday.Width = tableday.Width + 1
        tableday.Width = tableday.Width - 
    1
    This will refresh the scroll bars.

    BTW, there is a syntax error in line 437 (the msgbox should be in a new line).
     
  6. moharj

    moharj Member Licensed User

    no event changing selected cell

    thanks erel
    it's unbelievable what you are doing
     
Loading...