Hiya,
well, i have TLabels in a list, I can create them,
I can change their attributes, I can call their methods,
but I can't make them visible!
wtf??? I tried everything I could imagine, first->Visible=true;
first->Show(); first->Update(); set almost all attributes
manually (which i think shuld be done by the contructor),
but nothing happened, they stay invisible :-(
please help me!
THNX
________
bit[b][red]WISE[/red][/b]r
Comments
________
bit[b][red]WISE[/red][/b]r
[code][code=000000][color=21C6FF]
object::object()
{
first = new TLabel (...);
first->Show(); // will not work, because HWND is NULL yet
}
[/color][/code][/code]
and this will be ok:
[code][code=000000][color=21C6FF]
void object::OnWmCreate()
{
first = new TLabel (...);
first->Show(); // will work, because HWND is valid
}
[/color][/code][/code]
The code I presented here is not real code from BCB, but it gives the idea that construction of the window object and having actual creation of HWND is not the same thing. The WM_CREATE will not be received until 'CreateWindow()' is called.
you are my rescue, as usual, AsmGuru :-)
I really feel like a newbie beside you (okay,
to BCB and Windows I am more or less a newbie)
THNX
________
bit[b][red]WISE[/red][/b]r