Patrick1968 Posted October 11, 2021 Share Posted October 11, 2021 Добрый день. В приложении использую UniCombobox object cbDocTypes: TUniComboBox Left = 162 Top = 20 Width = 303 Height = 27 Hint = '' Style = csDropDownList MaxLength = 5 Text = '' ParentFont = False Font.Height = -16 TabOrder = 7 ClientEvents.UniEvents.Strings = ( 'beforeInit=function beforeInit(sender, config)'#13#10'{'#13#10' config.li' + 'stConfig = {'#13#10' maxHeight: 100 //default 300'#13#10' }'#13#10'}') RemoteQuery = True IconItems = <> end при создании формы заполняю список, там всего 3 позиции cbDocTypes.Items.Clear; if fMChild.UniPageControl1.ActivePage = fMChild.uniTabSheet2 then begin cbDocTypes.Items.AddObject('Обращение', Pointer(0)); cbDocTypes.Items.AddObject('Ответ филиала', Pointer(1)); cbDocTypes.Items.AddObject('Договор', Pointer(2)); end else begin cbDocTypes.Items.AddObject('Обращение', Pointer(0)); cbDocTypes.Items.AddObject('Ответ филиала', Pointer(1)); cbDocTypes.Items.AddObject('Соглашение', Pointer(3)); end; В режиме Runtime, раскрывая список его высота слишком велика (примерно на 20 позиций.) Непонятно, почему так - ведь при создании объекта указывается принудительно maxHeight: 100, но не работает. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 11, 2021 Share Posted October 11, 2021 Добрый день, 3 minutes ago, Patrick1968 said: В приложении использую UniCombobox ОК. Пожалуйста, укажите сборку и издание UniGUI. Quote Link to comment Share on other sites More sharing options...
Patrick1968 Posted October 11, 2021 Author Share Posted October 11, 2021 1.90.0.1510 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 11, 2021 Share Posted October 11, 2021 Just now, Patrick1968 said: 1.90.0.1510 Триальная версия? Quote Link to comment Share on other sites More sharing options...
Patrick1968 Posted October 11, 2021 Author Share Posted October 11, 2021 нет, полная, купленная Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 11, 2021 Share Posted October 11, 2021 5 minutes ago, Patrick1968 said: нет, полная, купленная Пожалуйста, настройте Ваш email форума: Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 11, 2021 Share Posted October 11, 2021 Этот пост может Вам помочь: Quote Link to comment Share on other sites More sharing options...
Patrick1968 Posted October 11, 2021 Author Share Posted October 11, 2021 Я в этом посте принимал участие, ничего не помогло Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 11, 2021 Share Posted October 11, 2021 Пожалуйста, настройте email и прикрепите тестовый случай. Проанализируем. Quote Link to comment Share on other sites More sharing options...
Patrick1968 Posted October 11, 2021 Author Share Posted October 11, 2021 Я что-то видно не до конца понял, у меня же прикреплен email к account'у или это следует сделать еще где-то - не могу найти Manage->Account Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 11, 2021 Share Posted October 11, 2021 1 hour ago, Patrick1968 said: Я в этом посте принимал участие, ничего не помогло Только что проверил, приведенное выше решение работает отлично. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 11, 2021 Share Posted October 11, 2021 8 minutes ago, Patrick1968 said: Я что-то видно не до конца понял, у меня же прикреплен email к account'у или это следует сделать еще где-то - не могу найти Manage->Account https://prime.fmsoft.net/userv/mportal.dll Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 11, 2021 Share Posted October 11, 2021 27 minutes ago, Patrick1968 said: Я что-то видно не до конца понял, у меня же прикреплен email к account'у или это следует сделать еще где-то - не могу найти Manage->Account Какой Ваш email? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 11, 2021 Share Posted October 11, 2021 OrderID? Quote Link to comment Share on other sites More sharing options...
Patrick1968 Posted October 12, 2021 Author Share Posted October 12, 2021 MemberID 01226 Quote Link to comment Share on other sites More sharing options...
Patrick1968 Posted October 12, 2021 Author Share Posted October 12, 2021 Нашел OrderID FMS210927-1523-32119 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 12, 2021 Share Posted October 12, 2021 10 minutes ago, Patrick1968 said: Нашел OrderID FMS210927-1523-32119 Укажите здесь Ваш email форума, так как у Вас они разные, я имею в виду email'ы. Quote Link to comment Share on other sites More sharing options...
Patrick1968 Posted October 12, 2021 Author Share Posted October 12, 2021 Заполнил 1 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 12, 2021 Share Posted October 12, 2021 5 minutes ago, Patrick1968 said: Заполнил Теперь прикрепите тестовый случай пожалуйста. Проверим. Quote Link to comment Share on other sites More sharing options...
Patrick1968 Posted October 12, 2021 Author Share Posted October 12, 2021 Что именно прикрепить. Форма является составной частью проекта с применением баз данных SQL. Работоспособность всего проекта вам проверить не удастся, приложил основные формы AddData.dfm AddData.pas Main.dfm Main.pas MainChild.dfm MainChild.pas Quote Link to comment Share on other sites More sharing options...
x11 Posted October 12, 2021 Share Posted October 12, 2021 Правильно - это сделать один тестовый проект, который можно самостоятельно собрать на другом ПК, а не отдельная форма. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 12, 2021 Share Posted October 12, 2021 10 minutes ago, Patrick1968 said: Что именно прикрепить. Ок, тогда для начала создайте простой тестовый проект. Кидайте на форму UniComboBox, настройте config и проверьте. Quote Link to comment Share on other sites More sharing options...
Patrick1968 Posted October 12, 2021 Author Share Posted October 12, 2021 Проверил, всё работает корректно, причем в UniCombobox скопировал из своего проекта (где некрасиво), а в тестовом приложении - то что надо. Где же тогда посмотреть проблему в проекте? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 12, 2021 Share Posted October 12, 2021 8 minutes ago, Patrick1968 said: Проверил, всё работает корректно, причем в UniCombobox скопировал из своего проекта (где некрасиво), а в тестовом приложении - то что надо. Где же тогда посмотреть проблему в проекте? В консоли браузера, ошибок нет? Quote Link to comment Share on other sites More sharing options...
Patrick1968 Posted October 12, 2021 Author Share Posted October 12, 2021 Спасибо, направили на решение проблемы, забыл что CustomCSS был назначен, попутно сразу вопрос, а как указать размер шрифта в списке ComboBox или к примеру PopupMenu 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.