Click here to get back home

HTML Control problem (device only)

 HomeNewsGroups | Search

microsoft.public.smartphone.developer - Developing software for MS Smartphone? This is your group! 

get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
HTML Control problem (device only) Dogs 06-09-2005
Posted by Dogs on June 9, 2005, 5:48 am
Please log in for more thread options
Hi,

I have a HTML Control sitting on a dialog.

I pass it a big chunk (more than a screens worth) of HTML which
displays properly formatted etc. But, for some reason when the control
is displayed, it is scrolled to the bottom of the content.

have any of you seen this?

Any ideas what I am doing wrong

Thanks

A



Posted by Dogs on June 10, 2005, 5:43 am
Please log in for more thread options
I think I have discoverd what the symptoms to the problem are.

the HTML that I am passing to the control is being formatted into a
string.

the code to do this is

show/hide quoted text

//if a thumbnail was passed in then use it
if( m_hThumbnailBitmap )
{
show/hide quoted text
}

show/hide quoted text
l_sHTML += _T("<FONT COLOR=");
l_sHTML += l_sColour;
show/hide quoted text
l_sHTML += m_strHeading;
show/hide quoted text
l_sHTML += _T("<FONT COLOR=");
l_sHTML += l_sColour;
show/hide quoted text
l_sHTML += m_strTime;
show/hide quoted text
l_sHTML += m_strBody;
show/hide quoted text

It seems that this HTML is causing the scroll bar to bounce to the
bottom.

I dont see anything wrong with the HTML.

Can any of you guys?

Is this a bug.

Cheers

A
Dogs wrote:
show/hide quoted text



Posted by Dogs on June 10, 2005, 8:30 am
Please log in for more thread options
It seems that the HTML that I am putting into the control is causing
the problem, alhough the HTML seems ok.

its basically a table with a couple of rows and after that its a para
graph.

I have ripped the HTML that the string gets and put it in IE and it
seems ok?????

here is the HTML

show/hide quoted text

As Soon as I rip out the formatting tags from the string the control
behaves as I want it to, and leaves my content unscrolled.

Please help I am baffled..

Cheers

A

Dogs wrote:
show/hide quoted text



Similar ThreadsPosted
HTML control problem July 7, 2005, 5:09 am
HTML control July 10, 2005, 8:40 am
Wrapping the HTML Control April 8, 2009, 10:24 am
HTML control / PIE and list boxes July 14, 2005, 3:04 am
How to get IWebBrowser2 from the HTML Control on SP2005 December 5, 2005, 5:25 am
reading contents of an HTML control December 9, 2008, 3:57 pm
Browser Errors from HTML Control February 20, 2009, 2:30 pm
Strange HTML control behaviour on Smartphones April 17, 2006, 5:58 pm
Access all HTML Control items with native code July 16, 2005, 2:00 am
DestroyWindow() hangs if called for an HTML control window October 11, 2005, 7:20 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Driving a better car - Fuelzilla.com

Cabling site for homeowners and pros alike - Cabling-Design.com

Friends:

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap
Privacy Policy