No refresh on device

Discussion in 'Bug Reports' started by rosmalen, Jun 16, 2007.

  1. rosmalen

    rosmalen New Member

    Hi,

    I seem to have trouble refreshing "text" info on imagebuttons.

    When i use the following code:

    Sub Button1_Click
    imagebutton1.Text = imagebutton1.Text+1
    button4.Text = button4.text + 1
    form1.Refresh
    End Sub


    On de desktop this is no problem.
    The same code on de device wil not change the text on de imagebutton.
    After showing a different form end closing it the imagebutton.text is oke.

    Can you help me on this?

    PS,
    see attached code, run it on desktop/device and see the diverence
     

    Attached Files:

  2. RandomCoder

    RandomCoder Well-Known Member Licensed User

    I experienced the same thing on my Axim X51v.
    As a work around just add ImageButton1.Refresh after changing its value then all works as it should.

    Regards,
    Randomcoder
     
  3. rosmalen

    rosmalen New Member

    @ RandomCoder

    Hi,

    I understand the workaround you talked about but it is still very strange
    that a Form.Refresh doesn’t include al of its components on the device
    while it is oke on the desktop.

    I have tried the same in "NS Basic" and there was no problem.

    Is this a bug in Basic4ppc ?
     
  4. RandomCoder

    RandomCoder Well-Known Member Licensed User

    What you say is probably right and Erel may or may not feel it necessary to modify his code. One of the other quirks I've come across is that the Form MouseDown doesn't work on labels when running on the desktop but on the device it does (this may have been sorted in version 5?).

    Regards,
    RandomCoder
     
  5. Erel

    Erel Administrator Staff Member Licensed User

    The problem here is that the text property requires a refresh after it is changed.
    RandomCoder gave a good solution.
    It will be fixed in the next update.
     
  6. rosmalen

    rosmalen New Member

    @ RandomCoder and Erel

    Thanks for the info and the quick reply.

    I will use the workaround and wait for the fix.

    PS,
    I tried this problem in NS-Basic but i stil prefer Basic4ppc, great program.
     
Loading...