x11 Posted December 21, 2020 Share Posted December 21, 2020 How to specify (select) a color (UniColorButton1.Color := ... ) in advance so that the palette will drop down already with the selected color? Thanx. Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted December 21, 2020 Share Posted December 21, 2020 47 minutes ago, x11 said: How to specify (select) a color (UniColorButton1.Color := ... ) in advance so that the palette will drop down already with the selected color? Thanx. Hi, It is already working like that. I can't reproduce this issue Quote Link to comment Share on other sites More sharing options...
x11 Posted December 22, 2020 Author Share Posted December 22, 2020 But there is no event OnBeforDropDown... Quote Link to comment Share on other sites More sharing options...
x11 Posted December 22, 2020 Author Share Posted December 22, 2020 procedure TfrdParentRefTree.btnSelecColorClick(Sender: TObject); begin if qRef.RecordCount > 0 then TUniColorButton(Sender).Color := qRef.FieldByName('STATEINDEX').AsInteger; end; Not work. The picture shows that the selected color is black: event OnClick Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 22, 2020 Share Posted December 22, 2020 26 minutes ago, x11 said: The picture shows that the selected color is black Hello, Color picker provides a simple color palette for choosing colors. The available default to a standard 40-color palette. Quote Link to comment Share on other sites More sharing options...
x11 Posted December 22, 2020 Author Share Posted December 22, 2020 I still don't understand if my problem can be solved or not? If so, how? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 22, 2020 Share Posted December 22, 2020 26 minutes ago, x11 said: if my problem can be solved or not? If so, how? I will try to give you a solution. Quote Link to comment Share on other sites More sharing options...
x11 Posted July 1, 2021 Author Share Posted July 1, 2021 On 12/22/2020 at 9:58 AM, Sherzod said: I will try to give you a solution. Вы часто пишите, что проверите, но потом ничего не проверяете. Вопрос: как программно присвоить цвет кнопке? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 1, 2021 Share Posted July 1, 2021 55 minutes ago, x11 said: но потом ничего не проверяете. Это не правда. Quote Link to comment Share on other sites More sharing options...
x11 Posted July 1, 2021 Author Share Posted July 1, 2021 Не всегда, но бывает Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 14, 2021 Share Posted July 14, 2021 On 7/1/2021 at 5:33 PM, x11 said: Вопрос: как программно присвоить цвет кнопке? Здравствуйте, Простите, вопрос все еще актуален? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 14, 2021 Share Posted July 14, 2021 Just now, Sherzod said: Простите, вопрос все еще актуален? Если да, пожалуйста, можете уточнить вопрос еще раз, более подробно? Quote Link to comment Share on other sites More sharing options...
x11 Posted July 14, 2021 Author Share Posted July 14, 2021 Вы обещали сделать нормальную компоненту выбора цвета. Ни в мобильной версии, ни в десктопной такой компоненты до сих пор нет. Чтобы был какой-то выпадающий список и чтобы было визуально видно - какой цвет выбран. Вот пара примеров, как оно могло бы быть. Картинка 1 - видно, какой цвет выбран. Картинка 2 - выпадающий список с огромным количеством цветов с названиями. Картинка 3 - можно выбрать не готовый цвет из списка, а выбрать любой. Quote Link to comment Share on other sites More sharing options...
x11 Posted July 14, 2021 Author Share Posted July 14, 2021 9 minutes ago, x11 said: Ни в мобильной версии, ни в десктопной такой компоненты до сих пор нет. В мобильной версии вообще нет. В десктопной версии версии выбор оооочень ограничен (картинка 1) и не видно - какой цвет выбран (картинка 2). К тому же нет кнопки "очистить" или "Цвет не выбран", чтобы можно было задать значение NULL. Ноль нельзя, ведь ноль - это же тоже цвет. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 14, 2021 Share Posted July 14, 2021 8 minutes ago, x11 said: Вы обещали сделать нормальную компоненту выбора цвета. Ни в мобильной версии, ни в десктопной такой компоненты до сих пор нет. Да, я помню. 2 minutes ago, x11 said: В десктопной версии версии выбор оооочень ограничен (картинка 1) Да, там 40 цветов. 11 minutes ago, x11 said: Ну эту ссылку, просто вспомнил, было похожее решение. Quote Link to comment Share on other sites More sharing options...
x11 Posted July 14, 2021 Author Share Posted July 14, 2021 как скоро? http://forums.unigui.com/index.php?/topic/15846-tunicolorbutton-как-выбрать-пустой-цвет/&tab=comments#comment-87107 Quote Link to comment Share on other sites More sharing options...
x11 Posted July 14, 2021 Author Share Posted July 14, 2021 4 minutes ago, Sherzod said: Да, там 40 цветов. где "там"? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 14, 2021 Share Posted July 14, 2021 1 minute ago, x11 said: где "там"? 14 minutes ago, x11 said: Quote Link to comment Share on other sites More sharing options...
x11 Posted July 14, 2021 Author Share Posted July 14, 2021 6 minutes ago, Sherzod said: было похожее решение. там в коде 1. MainForm -> Script: но у меня приложение построено на фреймах, которые открываются внутри страниц TPageControl Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 14, 2021 Share Posted July 14, 2021 5 minutes ago, x11 said: как скоро? http://forums.unigui.com/index.php?/topic/15846-tunicolorbutton-как-выбрать-пустой-цвет/&tab=comments#comment-87107 Исходники потерялись (были проблемы с винчестером). Quote Link to comment Share on other sites More sharing options...
x11 Posted July 14, 2021 Author Share Posted July 14, 2021 Хотелось бы готовые компоненты. 1 Quote Link to comment Share on other sites More sharing options...
x11 Posted July 14, 2021 Author Share Posted July 14, 2021 Упс... сожалению но я очень удивлен, что программисты вашего уровня не делают резервные копии.. ведь из-за этого страдаете не только вы, но и все ваши покупатели, в свою очередь страдают покупатели наших программ, что очень отрицательно сказывается на нашей репутации и на вашей 1 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 14, 2021 Share Posted July 14, 2021 2 minutes ago, x11 said: но у меня приложение построено на фреймах, которые открываются внутри страниц TPageControl OK. 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.