www.sdlsuite.com Forum Index www.sdlsuite.com
Discussion of technical aspects of the SDL Component Suite
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

NTabEd: missing published property

 
Post new topic   Reply to topic    www.sdlsuite.com Forum Index -> GuiPack
View previous topic :: View next topic  
Author Message
mpaetzold



Joined: 23 Nov 2011
Posts: 1

PostPosted: Thu Nov 24, 2011 11:42 am    Post subject: NTabEd: missing published property Reply with quote

Hello!

As I recently discovered there is a published property missing in the component NTabEd: LeftCol.

LeftCol and TopRow are needed to determine the indices of the column and the row in the grid, where the mouse is pointing at.

As long as the table fits completely into the display, determining the indices by the mouse coordinates is simple. But if the table is larger and you need to scroll the view, you need the indices of the uppermost row and the leftmost column to calculate the indices of the selected row and column respectively. The base class TCustomGrid provides these indices as the protected properties TopRow and LeftCol. In order to make them available for a developer, the derived class, here TNtabEd, has to publish them.

This has been done with TopRow, but not with LeftCol.

We need to determine the column and row to allow the user to manually and selectively add and delete rows and columns from the table. The implemented popup menus do not provide these functionalities, so we had to build our own popup menu, which implement these features. But since the functions RemoveCol, RemoveRow, etc. require the index as argument, we need to calculate it by the method described above. This works fine for the row, but not for the column, because LeftCol is not published and thus not accessible.

Since we were not able to find any workaround to solve the problem, we would greatly appreciate if you could correct this, either by publishing the LeftCol property, by implementing "Add Row", "Delete Row", "Add Column", "Delete Column" to the implemented standard popup menus of NTabEd or by providing methods to retrieve the indices of a selected row and column (e.g. "GetSelectedRow()", "GetSelectedCol()", which return the properties Row and Col, implemented by the base class) or all of those.

And we would greatly appreciate if you could then provide us with an update, which we are in dire need of.

Thanks for any help in advance.

Matthias Pätzold
FLUIDON GmbH, Aachen
Back to top
View user's profile Send private message
hlohning



Joined: 08 Sep 2006
Posts: 277
Location: Austria

PostPosted: Fri Nov 25, 2011 6:13 am    Post subject: Reply with quote

Thanks for the hint! We will implement all your requirements with the next release, which is scheduled to be available by end of the year.

In order to provide a quick fix, I can offer to publish LeftCol and send you the compiled package by mail. Please let me know the compiler you are working with by sending me a mail to "hans at epina dot at".

Regards,

Hans
_________________
Hans Lohninger
Software Development Lohninger
http://www.lohninger.com/
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    www.sdlsuite.com Forum Index -> GuiPack All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group