Thoughts from Dan Miser RSS 2.0
# Saturday, October 22, 2005
This post doesn't contain any actual technical information. I'm making this post in order to help a Borland R∓D person to debug a very minor, but somewhat irritating problem with the Welcome Page. The problem pops up if you have a post that has <pre> and <code > tags in a post that gets summarized. Here's a sample.


procedure ScrollToLineCol(AMemo: TCustomMemo; Line, Col: integer);
var
  Len: integer;
  AdjCol: integer;
  CharNum: integer;
begin
  if AMemo = nil then
    Exit;

  // Find the character number of the line requested
  CharNum := AMemo.Perform(EM_LINEINDEX, Line, 0);

   // Make sure we keep the column in this line
   Len := AMemo.Perform(EM_LINELENGTH, CharNum, 0);
   if Len > Col then
     AdjCol := Col
   else
     AdjCol := Len;

  // Add the column to the caret position
  AMemo.SelStart := CharNum + AdjCol;
  AMemo.Perform(EM_ScrollCaret, 0, 0);
end;

Hopefully, this makes it easy to debug now! :-)

Saturday, October 22, 2005 7:06:00 PM (GMT Daylight Time, UTC+01:00)  #    Comments [2] -

Tracked by:
http://9nk-information.info/14210142/power-quest-bootmagic-software.html [Pingback]
http://9np-information.info/75412781/index.html [Pingback]
http://9na-information.info/34066311/index.html [Pingback]
http://9nt-information.info/67227196/apollo-theater-in-oxford.html [Pingback]
http://9nw-information.info/73600544/index.html [Pingback]
http://9nl-information.info/35721720/index.html [Pingback]
http://9nu-information.info/83349499/satellite-saver.html [Pingback]
http://9nc-information.info/45366239/index.html [Pingback]
http://9ns-information.info/93936661/thunderbird-international-business-review-2... [Pingback]
http://9nf-information.info/30448584/index.html [Pingback]
http://9of-information.info/58038600/index.html [Pingback]
http://9qd-information.info/42328439/index.html [Pingback]
http://9or-information.info/03982391/6-stars-review-internet-security.html [Pingback]
http://9oh-information.info/29716887/public-domain-christmas-songs.html [Pingback]
http://9of-information.info/78215547/verizon-treo-internet-connection.html [Pingback]
http://9ov-information.info/43041592/ocotillo-internet-community.html [Pingback]
http://9si-information.info/85834069/istituto-aste.html [Pingback]
http://9si-information.info/88887979/index.html [Pingback]
http://9rt-information.info/08786676/netscape-mail-security-settings.html [Pingback]
http://9sc-information.info/52676919/index.html [Pingback]
http://9rx-information.info/00785376/index.html [Pingback]
http://9rg-information.info/87071006/index.html [Pingback]
http://9rm-information.info/96129500/new-york-city-hotel-celebrity.html [Pingback]
http://9rj-information.info/86749306/divorce-and-i-don-t-want-to-sell-my-home.ht... [Pingback]
http://9rg-information.info/41536764/index.html [Pingback]
http://9uafq-le-informazioni.info/46360597/index.html [Pingback]
http://9uaej-le-informazioni.info/43307209/index.html [Pingback]
http://9uaef-le-informazioni.info/71020472/index.html [Pingback]
http://9uafo-le-informazioni.info/80986119/index.html [Pingback]
http://9uaes-le-informazioni.info/90542851/sell-scrap-plastics.html [Pingback]
http://9uahh-le-informazioni.info/30226333/ebony-nuda-beach.html [Pingback]
http://9uahm-le-informazioni.info/09384185/index.html [Pingback]
http://9uaha-le-informazioni.info/74984211/index.html [Pingback]
http://9uaga-le-informazioni.info/70400345/sito-ufficiale-film-ragazza-porta-acc... [Pingback]
http://9uaha-le-informazioni.info/05978073/marinella-zardi.html [Pingback]
http://9uahc-le-informazioni.info/57379580/index.html [Pingback]
http://9uagf-le-informazioni.info/75363155/offerte-disneyland-paris.html [Pingback]
http://9uahr-le-informazioni.info/61838341/bando-operatore-socio-sanitario-it.ht... [Pingback]
http://9uahe-le-informazioni.info/51428930/index.html [Pingback]
http://9uahf-le-informazioni.info/24928918/index.html [Pingback]
Navigation
Archive
<November 2014>
SunMonTueWedThuFriSat
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456
Blogroll
About the author/Disclaimer

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2014
Dan Miser
Sign In
Statistics
Total Posts: 388
This Year: 0
This Month: 0
This Week: 0
Comments: 630
Themes
Pick a theme:
All Content © 2014, Dan Miser
DasBlog theme 'Business' created by Christoph De Baene (delarou)