/* Copyright 1997 Acorn Computers Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /***************************************************/ /* File : Find.c */ /* */ /* Purpose: Functions relating to the Find */ /* dialogue box. */ /* */ /* Author : A.D.Hodgkinson */ /* */ /* History: 17-Apr-97: Created. */ /***************************************************/ #include #include #include "swis.h" #include "wimp.h" #include "wimplib.h" #include "event.h" #include "toolbox.h" #include "window.h" #include "svcprint.h" #include "Global.h" #include "Utils.h" #include "Windows.h" #include "Find.h" /*************************************************/ /* find_to_be_shown() */ /* */ /* Called when the EOpenFindWindow event is */ /* generated, typically when the Find window is */ /* about to be shown. Handles any icon */ /* processing commands in the writable. */ /* */ /* Parameters are as standard for a Toolbox */ /* event handler. */ /*************************************************/ int find_to_be_shown(int eventcode, ToolboxEvent * event, IdBlock * idb, void * handle) { char text[Limits_FindWrit]; ChkError(windows_process_component_text(idb->self_id, FindWrit, text, sizeof(text), 0, 1)); return 1; }