No refresh on device

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
 

Attachments

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
 

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 ?
 

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
 

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.
 

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.
 
Top