question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to set bk-color for button?

See original GitHub issue

Запуск

idd=dlg_proc(0, DLG_CREATE)

idc=dlg_proc(idd, DLG_CTL_ADD,"label");dlg_proc(idd, DLG_CTL_PROP_SET, index=idc, prop={
'name':'l1', 'x':0, 'y':33, 'w':50, 'h':17, 'cap':'label'
,'color': 65535})

idc=dlg_proc(idd, DLG_CTL_ADD,"edit");dlg_proc(idd, DLG_CTL_PROP_SET, index=idc, prop={
'name':'e1', 'x':50, 'y':30, 'w':150, 'h':25, 'cap':'Edit me'
,'val':'Edit me'
,'color': 65535})

idc=dlg_proc(idd, DLG_CTL_ADD,"button");dlg_proc(idd, DLG_CTL_PROP_SET, index=idc, prop={
'name':'b2', 'x':0, 'y':60, 'w':200, 'h':25, 'cap':'Click me'
,'color': 65535})

dlg_proc(idd, DLG_PROP_SET, prop={
'x':818, 'y':402, 'w':200, 'h':150, 'cap':'test_ag_repro'})
dlg_proc(idd, DLG_SHOW_MODAL)
dlg_proc(idd, DLG_FREE)

дает image

Почему кнопка не покрасилась?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
Alexey-Tcommented, Apr 26, 2019

добавлю в cudatext.py COLOR_DEFAULT.

0reactions
Alexey-Tcommented, Apr 27, 2019

не знаю какой цвет поможет с RO. (в лин edit не меняется от RO).

Read more comments on GitHub >

github_iconTop Results From Across the Web

CSS Buttons - W3Schools
Hoverable Buttons. Green Blue Red Grey Black Green Blue Red Grey Black. Use the :hover selector to change the style of a button...
Read more >
How to Change the Button Color in HTML - wikiHow
1. Type and tags. The body is where the visible elements of a web page are placed using HTML. 2. Type style= after...
Read more >
CSS Button Style – Hover, Color, and Background
To change the background color of the button, use the CSS background-color property and give it a value of a color of your...
Read more >
How to change button color in HTML? - Includehelp.com
1) Defining button styles with the tag ... <input type="button" style="background-color:black;color:white;width:150px; height:40px;" value="Click ...
Read more >
How to Change Button Color on Click in CSS - Linux Hint
To change the button color on click in CSS, you can use the “:active” pseudo-class. It can set different colors of a button...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found