| 181 | int s = FindSection(name); |
| 182 | if (s >= 0) |
| 183 | { |
| 184 | _currentSection = s; |
| 185 | float mouseX = 0.5 + InputSubsystem::Instance().GetCursorX() * 0.5; |
| 186 | float mouseY = 0.5 + InputSubsystem::Instance().GetCursorY() * 0.5; |
| 187 | _activeField = FindField(mouseX, mouseY); |
| 188 | } |
| 189 | } |
| 190 | |
| 191 | int CHTMLContainer::ActiveBookmark() |
| 192 | { |
| 193 | if (_sections.Size() <= 0) |
| 194 | { |
| 195 | return -1; |
| 196 | } |
| 197 | HTMLSection& section = _sections[_currentSection]; |
| 198 | int n = section.names.Size(); |
| 199 | int m = _bookmarks.Size(); |
| 200 | for (int i = 0; i < n; i++) |
| 201 | { |
| 202 | RString name = section.names[i]; |
| 203 | for (int j = 0; j < m; j++) |
| 204 | { |
| 205 | if (stricmp(name, _bookmarks[j]) == 0) |
| 206 | { |
| 207 | return j; |