Denis Molchanov Posted October 27, 2020 Share Posted October 27, 2020 GetFormInstance создает новую форму указанного класса или возвращает существующую (ранее созданную)? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 27, 2020 Share Posted October 27, 2020 2 hours ago, Denis Molchanov said: GetFormInstance создает новую форму указанного класса или возвращает существующую (ранее созданную)? Добрый вечер, Возвращает правильный экземпляр, для текущего сеанса. Если второй аргумент не указан как False, если не создан, то также создаёт. function GetFormInstance(InClass: TClass; AutoCreate: Boolean = True): TComponent; Quote Link to comment Share on other sites More sharing options...
x11 Posted October 27, 2020 Share Posted October 27, 2020 По идее, не надо использовать напрямую GetFormInstance. И не надо использовать uniForm1.Create. Достаточно вызвать uniForm1.Show; а если перед показом надо что-то сделать с формой, то uniForm1.uniEdit1.Text := 'бла-бла-бла'; uniForm1.Show; вроде бы так. Quote Link to comment Share on other sites More sharing options...
Denis Molchanov Posted October 28, 2020 Author Share Posted October 28, 2020 Спасибо. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.