Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Scrolling Problem with CExtTreeGridWnd Collapse All
Subject Author Date
Krustys Donuts May 15, 2008 - 10:24 AM

I have a CExtTreeGridWnd object functioning fine except the scrolling feature. The scrollbars function fine except when I select a cell that is horizontally scrolled onto the screen. In this case, the scrollbars automatically reset such that the first column is displayed. For example, there are 20 columns in the grid. When viewing (done by scrolling) the 20th column, the 1st column is no longer visible. If I click on a cell in column 20, the H-scrollbar is set to the far left so that the 1st column is visible (and the 20th column is not visible.) I would like to prevent this auto-scrolling. I am using the __EGBS_SFB_FULL_ROWS feature. See grid styles below.


 


On a different note, I would like to fix the first three columns in grid. That is, when scrolling horizontally, only the last 17 columns scroll. Is this possible?


 


Thanks,


Gil


 



 



//Enable

SiwModifyStyle( __ESIS_STH_PIXEL


|__EGBS_SUBTRACT_SEL_AREAS


|__ESIS_STV_ITEM


|__EGBS_SFB_FULL_ROWS


// | __EGBS_SFM_CELLS_HV

|__EGBS_RESIZING_CELLS_OUTER_H


|__EGBS_DYNAMIC_RESIZING


|__EGBS_MULTI_AREA_SELECTION


|__EGBS_NO_HIDE_SELECTION


|__EGBS_GRIDLINES


|__EGBS_LBEXT_SELECTION,


0,


 


false);//Enable

SiwModifyStyleEx( __EGWS_EX_PM_COLORS,



// |__EGBS_EX_CELL_TOOLTIPS_OUTER_T


// |__EGBS_EX_CELL_TOOLTIPS_INNER,



0,


 


false);//Disable

SiwModifyStyleEx(0, __EGBS_EX_CELL_EXPANDING_INNER


|__EGBS_EX_CELL_EXPANDING,


 


 


false);//Enable

BseModifyStyle( __EGWS_BSE_EDIT_CELLS_INNER


|__EGWS_BSE_EDIT_DOUBLE_LCLICK


|__EGWS_BSE_EDIT_RETURN_CLICK,


0,


 


 


false);//Disable

BseModifyStyle(0, __EGWS_BSE_EDIT_SINGLE_LCLICK


|__EGWS_BSE_EDIT_SINGLE_FOCUSED_ONLY


|__EGWS_BSE_EDIT_AUTO


|__EGWS_BSE_SORT_COLUMNS_T,


 


false);

Krustys Donuts May 16, 2008 - 3:10 PM

After further testing, I found that overriding  the OnGbwDataDndIsAllowed method and returning a value of true causes the scrolling problem described in the initial email.  If I comment out this function, clicking on a cell in the far right column does not auto-scroll to the 1st column of the grid. Any thoughts?


As well, my tree grid has two layers of nodes. As it is now, when I double-click anywhere on the row of the top node, the node is collapsed or expanded. It there any way to limit the collapse/expand functionallity to the plus/minus button?


 


Gil

Technical Support May 15, 2008 - 1:15 PM

We believe the scrolling problem depends on some particular grid styles and/or overridden virtual methods. Could you try to re-produce it using this test project?

v.2.83, which is to be released in a few days supports, introduces frozen columns/rows. You can mark one column as frozen and it will not be scrollable.