Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Syntax Edit
  New Posts New Posts RSS Feed - Have a problem with Xtreme SyntaxEdit. BUG?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Have a problem with Xtreme SyntaxEdit. BUG?

 Post Reply Post Reply
Author
Message
GeorgeBuzykin View Drop Down
Newbie
Newbie
Avatar

Joined: 19 March 2007
Location: Russian Federation
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote GeorgeBuzykin Quote  Post ReplyReply Direct Link To This Post Topic: Have a problem with Xtreme SyntaxEdit. BUG?
    Posted: 19 March 2007 at 4:26pm

I have the Retail version of Xtreme ToolkitPro v10.4.1.
I'd like to use SyntaxEdit view in my application the same (or similar) way
as it has been done in the MDITextEditor demo, but I have several problems.


I) A problem with scroll bars and splitters:

To see a BUG (or may be a feature :) ) you can do the following steps:

1) Run MDITextEditor demo.
2) Call Tools->Options...
3) Turn off horizontal scroll bar.
4) Press 'OK' button.
5) Call Window->Split and click in the center of SyntaxEdit view
 (or drag vertical splitter to the center of SyntaxEdit view)

You see? We have horizontal scroll bars in right-hand panes. Why?
It is not very good :(

Then:

6) Call Tools->Options... again.
7) Turn on horizontal scroll bar.
8) Press 'OK' button.

You see? We have two horizontel scroll bars in right-hand panes.
It is funny, isn't it?

Then, if we will perform thees steps with vertical scroll bar we
would have INTEGER ZERO DIVISION error in line 1. in the following
section of XTPSyntaxEditCtrl.cpp (RecalcScrollBars() method):

//---------------------------------------------------------

...

 if (::IsWindow(m_hWnd))
 {
  CXTPClientRect rcWnd(this);

-> line 1. iPageX = rcWnd.Width() / m_tm.tmAveCharWidth;
  iPageY = rcWnd.Height() / m_tm.tmHeight;

  iMax += iPageX/2;
 }

...

//---------------------------------------------------------


So, I need help.
How can I fix this problem in Xtreme ToolkitPro v10.4.1 sources I have?
It would be very good to fix this problem in future releases.


II) A problem with syntax coloring schemes:

If I have only one syntax coloring scheme then all color and font changes in Editor
Options dialog does not take place just after 'Ok' or 'Apply' button is pressed.

I think, that the reason of this problem is in this section of
XTPSyntaxEditSectionManager.cpp souce file:

//---------------------------------------------------------
POSITION CXTPSyntaxEditSchemaFileInfoList::LookupName(const CString& csName, XTP_EDIT_SCHEMAFILEINFO& info)
{
 for (POSITION pos = GetHeadPosition(); pos;)
 {
-> line 1. info = GetNext(pos);
  if (csName.CompareNoCase(info.csName) == 0)
  {
-> line 2.  return pos;
  }
 }
 return NULL;
}
//---------------------------------------------------------

The line 1. changes 'pos' and the next list position is returned in the line 2!
So, if we have only one syntax coloring schemes this method returns NULL every time!

Method LookupValue(), LookupDesc(), etc. have the same problems.

III) Resource string with ID XTP_IDS_EDIT_MSG_WARN_RELOAD
"File \\""%s\\"" is modified by outside source!\nDo you want to reload?"
has useless backslashes. It would be better to fix it.

Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post Posted: 22 March 2007 at 6:04pm
Thanks for your notes. All those 4 bugs will be fixed in the next coming release.

--
WBR,
Serge
Back to Top
GeorgeBuzykin View Drop Down
Newbie
Newbie
Avatar

Joined: 19 March 2007
Location: Russian Federation
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote GeorgeBuzykin Quote  Post ReplyReply Direct Link To This Post Posted: 23 March 2007 at 3:10pm
Thanks for you reply.
When can I expect to see this (v11.1 ?) release on your site and/or to buy it?
 
George.
 
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.