www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - DFL Button.backColor

reply "Zhenya" <zheny list.ru> writes:
Hi!

Explain me please,why this code doesn't work

import dfl.all;

void main()
{
	auto form = new Form;
	auto button = new Button;
	button.backColor = Color(0,0,0);
	button.foreColor = Color(0,0,0);
	form.controls.add(button);
	Application.run(form);
}

It displays usualy button in system style,but should display 
black button
Oct 30 2012
parent "Zhenya" <zheny list.ru> writes:
On Tuesday, 30 October 2012 at 13:34:21 UTC, Zhenya wrote:
 Hi!

 Explain me please,why this code doesn't work

 import dfl.all;

 void main()
 {
 	auto form = new Form;
 	auto button = new Button;
 	button.backColor = Color(0,0,0);
 	button.foreColor = Color(0,0,0);
 	form.controls.add(button);
 	Application.run(form);
 }

 It displays usualy button in system style,but should display 
 black button

Oh,sorry,I should check it http://wiki.dprogramming.com/Dfl/BugList Thank you:)
Oct 30 2012