forlano Messages: 1185 Registered: March 2006 Location: Italy
Senior Contributor
Hello,
in my toolbar I've added an editstring. In it I want to show the filename currently in use. I know the status bar is better place for this but I want save space in my page.
First I engaged a terrible struggle with the editstring that appeared microscopic. When I lost the hope I've found a hint on the forum:
bar.Add(edts, edts.AddFrameSize(200,15));
and I won the battle.
But then I lost the war because it refused to adjourn its content. I mean it is unsensitive to the command <<= like in this snippet:
void VegaTab4::Load(const String& name)
{
editor.Set(LoadFile(name));
//edts <<= name; //doesn't work
//edts.SetText(name); //doesn't work
edts <<= "prova"; //doesn't work
editor.ClearModify();
}
So, is it possible to send a string in the editstring embeded in a toolbar?
Luigi
PS: the editstring is seteditable to false, but it doesn't work even it it set to true.