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 » I want to change a position of the cell which did a selection of plural ranges Collapse All
Subject Author Date
tera t Sep 4, 2007 - 11:27 PM

Hello.

I want to change a position of the cell which did a selection of plural ranges
I do a selection of plural ranges.
From the inside done a selection of, I want to change a cell focus and a cell position.

Thanks,

Technical Support Sep 5, 2007 - 12:48 PM

Unfortunately it is not completely clear what you want to achieve. The CExtGridCell::OnGbwAdjustRects() virtual method allows you to change the cell location inside the grid control. It can be used for implementing such visual effects like cell joining demonstrated in the following sample:

JoinedCells.zip

tera t Sep 5, 2007 - 6:28 PM

Hello.

ttp://profuis0.tripod.com/20070906/image01.jpg

In domains done a selection of, I want to change a position of a focus and a selection of a selection
Is not it made?

Technical Support Sep 6, 2007 - 5:30 AM

Your screenshot displays a range of selected cells. We guess you made the selection in this way:

1) You selected the top left cell ("Peacock, Margaret").

2) You selected the bottom right cell ("1996/07/15") text by mouse click with the Shift key pressed or using arrow keys with the Shift key pressed.

As a result, the bottom and right cell becomes both selected and focused. The selection range is described by two cell coordinates first (top/left) and second(bottom/right). The focus in such case is automatically moved to the second cell both in our grid and in all known other grids. If you need focus on top/left cell, you should invert the sequence of selection actions. You should select the bottom right cell first and the top left cell second. If you want to change the grid behavior and make it keeping the selection on first cell, you should remove the __EGBS_AUTO_FOCUS_BOTTOM_RIGHT style from the grid window using its SiwModifyStyle() method.

tera t Sep 6, 2007 - 10:27 PM


I try to test it in this a little.
Thanks,