No refresh on device

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

  1. rosmalen

    rosmalen New Member


    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
    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?

    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.

  3. rosmalen

    rosmalen New Member

    @ RandomCoder


    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?).

  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.

    I tried this problem in NS-Basic but i stil prefer Basic4ppc, great program.
  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