Xojo Conferences
XDCMay2019MiamiUSA

[MBS] Searchfield in Toolbar - continued (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] Re: Mbsplugins monkeybreadsoftware.info Digest, Vol 436, Issue 2
Next thread: Re: [MBS] Print PDF


Re: [MBS] Extra PrefItems?   -   Garth Hjelte
  [MBS] Searchfield in Toolbar - continued   -   Beatrix Willius
   Re: [MBS] Searchfield in Toolbar - continued   -   Marnaud
   Re: [MBS] Searchfield in Toolbar - continued   -   Beatrix Willius
   Re: [MBS] Searchfield in Toolbar - continued   -   Marnaud

[MBS] Searchfield in Toolbar - continued
Date: 09.04.13 17:10 (Tue, 9 Apr 2013 18:10:31 +0200)
From: Beatrix Willius
Hi,

this has been the most fun I've had since the transition to Cocoa:

- If there is a window constructor the searchfield doesn't show because this is too early. For starters, I've used a timer. Perhaps the paint event may work better.
- Whenever the window is redrawn the searchfield goes away. This means closing a database, opening one or searching. Every time I have to show the searchfield again.
- Starting the search gives a nice infinite loop. I'm enabling/disabling toolbar items base on different criteria. Whenever this is done the TextShouldEndEditing event is fired, which starts the search again. Until everything crashes.

Issue 1 is a PITA but most likely Cocoa. But what about issues 2 and 3: feature or bug?

Mit freundlichen Grüßen/Regards

Trixi Willius

http://www.mothsoftware.com
Mail Archiver X: The email archiving solution for professionals

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] Searchfield in Toolbar - continued
Date: 09.04.13 17:45 (Tue, 09 Apr 2013 18:45:50 +0200)
From: Marnaud
Le 9 avr. 2013 à 18:42, Beatrix Willius a écrit:

> Thanks for the idea! I think I never used this event.

You're welcome.
Yes, this is almost the only use I have for that event: set things once in the beginning. Just add a boolean property to your window so that you don't set the things more than once (e.g. when the user brings the window to the front) and this works like a charm.
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] Searchfield in Toolbar - continued
Date: 09.04.13 17:42 (Tue, 9 Apr 2013 18:42:16 +0200)
From: Beatrix Willius
On 09.04.2013, at 18:38, Marnaud <<email address removed>> wrote:

> Le 9 avr. 2013 à 18:10, Beatrix Willius a écrit:
>
>> - If there is a window constructor the searchfield doesn't show because this is too early. For starters, I've used a timer. Perhaps the paint event may work better.
>
> The Activate event is nice for this purpose.

Thanks for the idea! I think I never used this event.

Mit freundlichen Grüßen/Regards

Trixi Willius

http://www.mothsoftware.com
Mail Archiver X: The email archiving solution for professionals

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] Searchfield in Toolbar - continued
Date: 09.04.13 17:38 (Tue, 09 Apr 2013 18:38:50 +0200)
From: Marnaud
Le 9 avr. 2013 à 18:10, Beatrix Willius a écrit:

> - If there is a window constructor the searchfield doesn't show because this is too early. For starters, I've used a timer. Perhaps the paint event may work better.

The Activate event is nice for this purpose.

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info