Author Topic: Color flash when wrap-searching  (Read 528 times)

Offline knn

  • Newbie
  • *
  • Posts: 45
  • Karma: +0/-0
    • View Profile
Color flash when wrap-searching
« on: August 11, 2010, 09:50:39 am »
When I quicksearch and press the "NEXT" button then there is a color flash that indicates end-of-file.

It would be nice if flashing would also occur when I press the keyboard shortcut (F3).

I would also like it if there could be a short beep.

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1712
  • Karma: +29/-2
    • View Profile
    • HippoEDIT
Re: Color flash when wrap-searching
« Reply #1 on: August 11, 2010, 02:36:26 pm »
Actually information message shown not than end of document reached, but when start of search reached (position from which user has started the search). And this is relatively complex to achieve for F3 search (Repeat Search) because it is very complex to find out what is start of search in this case (if user moves cursor, if he edits something, if he opens the find dialog and changes something, but have not executed search etc).  For Quick Search Bar and Find Dialog it is rather easy: start is when user sets focus to dialog or bar.

So the only feasible function here can be notification about wrap of search (depends on search direction). But small problem here, that this is already not in sync with interactive functionality. So the decision here is not obvious. I will mark the request in todo and will think further.

About the Beep at the end. This can be added also (as it is now for Quick Search Bar), but it can be annoying for other users.

Offline knn

  • Newbie
  • *
  • Posts: 45
  • Karma: +0/-0
    • View Profile
Re: Color flash when wrap-searching
« Reply #2 on: August 11, 2010, 07:14:29 pm »
About the Beep at the end. This can be added also (as it is now for Quick Search Bar), but it can be annoying for other users.

Hmm, I don't hear any beep. Is it possible to implement a .wav beep?

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1712
  • Karma: +29/-2
    • View Profile
    • HippoEDIT
Re: Color flash when wrap-searching
« Reply #3 on: August 11, 2010, 07:47:18 pm »
Quote
Hmm, I don't hear any beep.
Code: [Select]
if (pView->GetCursorPosReal() == SearchStart())
{
   m_pSettings->GetFrame()->SetMessage(CResString(IDS_MSG_SEARCH_WRAPPED), HE::eMessageTypeInfo);
   MessageBeep(MB_ICONASTERISK);
}
I hear it. You should also, if you have in your sound schema Asterisk sound assigned.

Quote
Is it possible to implement a .wav beep?
It is already wav beep. OS defined.

Offline knn

  • Newbie
  • *
  • Posts: 45
  • Karma: +0/-0
    • View Profile
Re: Color flash when wrap-searching
« Reply #4 on: August 11, 2010, 09:27:19 pm »
I hear it. You should also, if you have in your sound schema Asterisk sound assigned.
It is already wav beep. OS defined.


Aaaah, my bad. I had Asteriks turned off.

 

Related Topics

  Subject / Started by Replies Last post
4 Replies
457 Views
Last post April 03, 2009, 06:11:33 pm
by Arthur
1 Replies
324 Views
Last post July 29, 2009, 10:35:19 am
by alex
0 Replies
666 Views
Last post March 08, 2010, 05:38:53 pm
by alex
6 Replies
594 Views
Last post December 05, 2010, 12:21:10 pm
by alex
0 Replies
420 Views
Last post June 19, 2011, 01:05:34 pm
by Anonymous