Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Basic4ppc Wishlist > Bug Reports
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Bug Reports Post about errors or bugs encountered.

No refresh on device

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-16-2007, 01:29 PM
Newbie
 
Join Date: May 2007
Posts: 3
Default No refresh on device

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
File Type: sbp buttontest.sbp (1.2 KB, 11 views)
Reply With Quote
  #2 (permalink)  
Old 06-16-2007, 01:52 PM
RandomCoder's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire, UK
Posts: 622
Awards Showcase
Beta Tester 
Total Awards: 1
Default

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
__________________
"Defeat never comes to any man until he admits it."Josephus Daniels
Reply With Quote
  #3 (permalink)  
Old 06-16-2007, 05:05 PM
Newbie
 
Join Date: May 2007
Posts: 3
Exclamation @ 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 ?
Reply With Quote
  #4 (permalink)  
Old 06-16-2007, 05:18 PM
RandomCoder's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire, UK
Posts: 622
Awards Showcase
Beta Tester 
Total Awards: 1
Default

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
__________________
"Defeat never comes to any man until he admits it."Josephus Daniels
Reply With Quote
  #5 (permalink)  
Old 06-16-2007, 05:55 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,713
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

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.
Reply With Quote
  #6 (permalink)  
Old 06-16-2007, 09:10 PM
Newbie
 
Join Date: May 2007
Posts: 3
Smile @ 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.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bad screen refresh with sound command pmu5757 Questions (Windows Mobile) 6 05-09-2008 08:53 PM
Draw and Refresh faster hung Questions (Windows Mobile) 3 08-01-2007 01:00 PM


All times are GMT. The time now is 03:39 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0