//////////////////////////////////////////////////////////////// TEditorClient ------------- Hightlight the previous object (by number)
| 2705 | // Hightlight the previous object (by number) |
| 2706 | // |
| 2707 | void TEditorClient::CmSearchPrev () |
| 2708 | { |
| 2709 | // Ignore if "insert object" mode |
| 2710 | if ( InsertingObject ) |
| 2711 | return; |
| 2712 | |
| 2713 | TMapDC dc (this); |
| 2714 | |
| 2715 | // Unhighlight current object |
| 2716 | if (CurObject >= 0 ) |
| 2717 | HighlightObject (dc, EditMode, CurObject, HL_COLOR); |
| 2718 | |
| 2719 | if (CurObject > 0) |
| 2720 | CurObject--; |
| 2721 | else |
| 2722 | CurObject = GetMaxObjectNum (EditMode); |
| 2723 | |
| 2724 | // Highlight new current object |
| 2725 | if (CurObject >= 0 ) |
| 2726 | { |
| 2727 | HighlightObject (dc, EditMode, CurObject, HL_COLOR); |
| 2728 | DisplayObjectInfo (EditMode, CurObject); |
| 2729 | } |
| 2730 | } |
| 2731 | |
| 2732 | |
| 2733 | ///////////////////////////////////////////////////////////////////// |
nothing calls this directly
no test coverage detected