Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Word wrap fails on label control (device only)


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-16-2007, 05:26 PM
willisgt's Avatar
Senior Member
 
Join Date: Aug 2007
Location: Nacogdoches, Texas USA
Posts: 154
Default Word wrap fails on label control (device only)

I've written a program which creates a large number of controls (radiobuttons and checkboxes) dynamically.

On the desktop, when the control text is too long to fit on one line, the text wraps around to a second line (or third, etc.). The control is tall enough to show all of the lines of text.

However, on the device, the text does not wrap. The control has the exact same height as on the desktop (e.g., all of the text would fit and be visible *if* it wrapped).

I would swear that this was working properly not very long ago. Now, for some reason, it's now working.

Oh, and I am setting the control's top, left, width, height, and font size *before* I plug in the text.

What am I doing wrong? Is there a workaround for this?

Many thanks,

Gary


Last edited by willisgt : 11-16-2007 at 05:40 PM.
Reply With Quote
  #2 (permalink)  
Old 11-16-2007, 05:37 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 638
Default

Hi willisgt,

Quote:
Originally Posted by willisgt View Post
I would swear that this was working properly not very long ago. Now, for some reason, it's now working.
sorry, but you are wrong...
See this post different behavior Desk and PPC

It's a "nomal" difference between the .Net and the .Net CF version. Line breaking on the desktop starts within an word, on the device it starts after a blank.


specci48
Reply With Quote
  #3 (permalink)  
Old 11-16-2007, 05:59 PM
willisgt's Avatar
Senior Member
 
Join Date: Aug 2007
Location: Nacogdoches, Texas USA
Posts: 154
Default Hmmmmm... don't think that's it...

Specci, I checked the thread you referred to... my problem is with radio buttons and checkboxes, not labels. (I am also creating labels dynamically which contain text which require a wrap; the labels work perfectly on both the desktop and the device.)

Just a little more information...

The text of one of the controls is: "Requires use of a device (e.g., cane, walker) to walk alone or requires human supervision or assistance to negotiate stairs or steps or uneven surfaces."

I'm using Basic4ppc 5.8. The device is an AT&T 8525 running WM5.

Last edited by willisgt : 11-16-2007 at 06:08 PM.
Reply With Quote
  #4 (permalink)  
Old 11-17-2007, 07:34 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,134
Default

You can leave the checkbox empty and add a label with the text.
Reply With Quote
  #5 (permalink)  
Old 11-18-2007, 01:46 AM
willisgt's Avatar
Senior Member
 
Join Date: Aug 2007
Location: Nacogdoches, Texas USA
Posts: 154
Default

That was my backup plan... I just could have sworn that this was working properly prior to now. I was hoping to find a solution without changing the code... again... *sigh*

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Word wrap problem agraham Beta Versions 1 08-27-2008 11:02 AM
Tab control behaves differently on device than desktop AHeroMenKill Questions & Help Needed 2 06-24-2008 11:46 AM
Label/Text Control text centering TWELVE Basic4ppc Wishlist 1 06-04-2008 04:20 PM
Button Control text label word wrap TWELVE Basic4ppc Wishlist 0 06-04-2008 06:55 AM
FTP file download fails on device willisgt Questions & Help Needed 3 01-31-2008 12:45 PM


All times are GMT. The time now is 06:15 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0