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.


different behavior Desk and PPC


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-26-2007, 08:42 PM
Knows the basics
 
Join Date: May 2007
Posts: 87
Default different behavior Desk and PPC

Hi,

On Desk : text in a label will return at the end of the label...
On PPC : text in a label will NOT return at the end of the label...
Than, I have only one line with missing the rest behind the label edge.
Is there a workaround so I have a label-looking textfield with all my text in it on PPC?
No multiline textbox please, because of the vertical scrolbar.

Put Claude Belgium
Reply With Quote
  #2 (permalink)  
Old 07-27-2007, 09:27 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,132
Default

If I remember correctly, labels do wrap the text if it is longer than the label width (assuming that the height is enough).
You can also use Form.DrawString to draw the text in a specific box.
Reply With Quote
  #3 (permalink)  
Old 07-29-2007, 08:56 PM
Knows the basics
 
Join Date: May 2007
Posts: 87
Default

Hi Erel,

On my pocket Ipaque hx2110 mobile 3SE, the labeltext will not wrap...
Also on my Acer n300 mobile 5 , the labeltext will not wrap...
On Desktop , the labeltext always wrap...
There is no workaround to get something like a label with wrapped text in it.
So, I use the multiline textbox...

Put Claude Belgium
Reply With Quote
  #4 (permalink)  
Old 07-29-2007, 09:05 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,132
Default

I've checked it again (on a WM5 device with .Net CF 1.0 and with .Net CF 2.0) and the label's text do wrap.
Can you upload a simple application that demonstrates the wrong behavior?
Reply With Quote
  #5 (permalink)  
Old 07-30-2007, 09:39 AM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 636
Default

Hi Erel,

my uploaded file shows the different behaviour.

The difference is:
- on the desktop, the word wrap is done even in the middle of a very long word
- on the device, the word wrap is only done AFTER a word (when a space is reached)

So if there is a very long word to show, the long word may be truncated on the device


specci48
Attached Files
File Type: sbp Wrap.sbp (578 Bytes, 7 views)
Reply With Quote
  #6 (permalink)  
Old 07-30-2007, 12:18 PM
Knows the basics
 
Join Date: May 2007
Posts: 87
Default Label Wrap

Hi Erel,

Modify a little (only a button) so you can easy test the thing.
I first put text in 'SerBuf', that is the buffer that hold the NMEA sentence or hold a text string of choise, from this point: in the program,
You can get a sentence from GPS into the buffer, by then, the buffer in the label will not wrap on pocket.
Putting text in the buffer by testbutton, buffer will wrap on pocket...
Try many things... even placed label filling on other places, also disconnect OnCom and close Comport before Label filling, nothing... I wil be damed to use the multiline textbox :-)

Put Claude Belgium
Reply With Quote
  #7 (permalink)  
Old 07-30-2007, 01:06 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,132
Default

I guess (I didn't check it yet) that the label doesn't wrap the text that comes from the gps because it do not include any spaces.
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
Different behavior in desktop vs. device on AddEvent willisgt Bug Reports 4 01-13-2008 01:29 PM
behavior of bin.WriteBytes(array()) Put Claude Bug Reports 2 05-21-2007 10:09 AM


All times are GMT. The time now is 11:07 AM.


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