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.


need help on this


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-09-2007, 08:54 PM
Knows the basics
 
Join Date: May 2007
Posts: 60
Default need help on this

Hi guys,

Im trying to convert a text file including serveral pictures (names only), to an
format which shows in the panel, so that you have an document with text and pictures.
The trick so far i read each row and put in a label and when i read a picture (ext
jpg) then i convert it to an image (addimage).
It took a long way to sort it out, you need to recalculate every row length that it will fit nice to the screen size.
Because the large project were im working on, i use serveral panel which can show text only for the moment, because that it is not so easy to implement the conversie and put image's and text together on the screen.
What i say is , is there an nice smart simple solution herefor?

Below there is a piece of code which i tried, the thing on this that the aligment of the text is not correct also the image's will alow that the text is fall out below of the screen.

i'll hope to clear up my situation.

Thanks a lot again.



For Counter = pos1*30 To A1.Count - 2

rowdata = A1.item(Counter)

waarde = Int(StrLength(rowdata)/RowWidth)+1

For teller = 1 To waarde
data1 = SubString(rowdata,(teller-1)*RowWidth,teller+RowWidth)
row = row + 10

If row = 410 Then

'End of the page

Else If row < 410 Then

geen = StrIndexOf(rowdata,"gif",0)

If geen > -1 Then

rowdata = StrReplace(rowdata," ","")

Form1.FDrawImage(AppPath &" \pic1.gif",10,row,200,row*2)

row = row*2

End If

Form1.FDrawString(data1,7,10,row, form1.width,form1.height,255,255,255)

End If

Next

Next
Attached Files
File Type: zip testmetstring.zip (51.9 KB, 9 views)
__________________
Mojopac installed.
HTC-Touch , T-mobile AMEO.

Last edited by tvrman : 10-09-2007 at 08:59 PM.
Reply With Quote
  #2 (permalink)  
Old 10-09-2007, 09:06 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,134
Default

I recommend you to use dzt's HTMLView library: HTMLView Library
You can create an HTML page and show it in this control.
Reply With Quote
  #3 (permalink)  
Old 10-09-2007, 09:08 PM
Knows the basics
 
Join Date: May 2007
Posts: 60
Default

Quote:
Originally Posted by Erel View Post
I recommend you to use dzt's HTMLView library: HTMLView Library
You can create an HTML page and show it in this control.
Thanks Erel, i saw that before, the only thing is that it will not work
on the pc.
i'm thinking to use the internet explorer instead and on the ppc the HTMLView
.

Thanks
__________________
Mojopac installed.
HTC-Touch , T-mobile AMEO.
Reply With Quote
  #4 (permalink)  
Old 10-10-2007, 09:18 AM
dzt's Avatar
dzt dzt is offline
Basic4ppc Veteran
 
Join Date: May 2007
Location: Greece
Posts: 353
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default IE hosted

Hi,

I can't post an HTMLView for desktop because this control is a COM object and (as far as I can know) there is a threading issue with Basic4PPC.

Here http://www.terracom.gr/basic4ppc/files/IEhosted.zip is a solution for the desktop. Includes an updated version of dzHWdesktop.dll. It is not so elegant but I hope it can help.

PS.
Trying to attach it I get the message "Exceeds forum quota by 7.0 KB" although it is only 9KB
__________________
Dimitris Zacharakis
http://www.terracom.gr
Reply With Quote
  #5 (permalink)  
Old 10-10-2007, 11:21 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,134
Default

The quota is now fixed, so please try again.
Reply With Quote
  #6 (permalink)  
Old 10-10-2007, 07:12 PM
dzt's Avatar
dzt dzt is offline
Basic4ppc Veteran
 
Join Date: May 2007
Location: Greece
Posts: 353
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Hi Erel,

Thanks. There is no need to attach it now as I've provided an external link.
__________________
Dimitris Zacharakis
http://www.terracom.gr
Reply With Quote
  #7 (permalink)  
Old 10-11-2007, 12:02 AM
Knows the basics
 
Join Date: May 2007
Posts: 60
Default

Quote:
Originally Posted by dzt View Post
Hi,

I can't post an HTMLView for desktop because this control is a COM object and (as far as I can know) there is a threading issue with Basic4PPC.

Here http://www.terracom.gr/basic4ppc/files/IEhosted.zip is a solution for the desktop. Includes an updated version of dzHWdesktop.dll. It is not so elegant but I hope it can help.

PS.
Trying to attach it I get the message "Exceeds forum quota by 7.0 KB" although it is only 9KB

Hi Dzt,

This workarround works very nice.

Thanks.
__________________
Mojopac installed.
HTC-Touch , T-mobile AMEO.
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


All times are GMT. The time now is 06:50 PM.


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