Home » Community » Newbie corner » EditField ctrl and StaticText ctrl in a StatusBar crtl
EditField ctrl and StaticText ctrl in a StatusBar crtl [message #27662] |
Wed, 28 July 2010 16:20  |
281264
Messages: 272 Registered: June 2010 Location: Spain
|
Experienced Member |
|
|
Hi,
Is it possible to add a StaticText ctrl and a EditField ctrl to a StatusBar, at the bottom of an application? The target is to allow user to input commands through the EditField ctrl.
Thanks,
Javier
|
|
|
|
|
|
|
|
|
Re: EditField ctrl and StaticText ctrl in a StatusBar crtl [message #27723 is a reply to message #27715] |
Fri, 30 July 2010 14:41   |
 |
ratah
Messages: 107 Registered: July 2010
|
Experienced Member |
|
|
That's great! thanks
Only I have the default message in my statusbar that I can't initialize
Here is my code:
StaticText infobar1, infobar2;
...
AddFrame(status);
infobar1.SetRect(0,2,200,15);
infobar1.SetFrame(RightSeparatorFrame());
infobar2.SetRect(0,2,200,15);
infobar2.SetFrame(RightSeparatorFrame());
status.Add(infobar1.LeftPos(0,300));
status.Add(infobar2.LeftPos(300,300));
status.Add(editCommand);
...
infobar1.SetText(infos1);
infobar2.SetText(infos2);
Ratah
|
|
|
|
|
|
|
Re: EditField ctrl and StaticText ctrl in a StatusBar crtl [message #27777 is a reply to message #27764] |
Tue, 03 August 2010 11:02  |
 |
ratah
Messages: 107 Registered: July 2010
|
Experienced Member |
|
|
Hello,
Here is the correct code:
StaticText infobar1, infobar2;
...
status.Set(0, "", 0);
AddFrame(status);
infobar1.SetRect(0,2,200,15);
infobar1.SetFrame(RightSeparatorFrame());
infobar2.SetRect(0,2,200,15);
infobar2.SetFrame(RightSeparatorFrame());
status.Add(infobar1.LeftPos(0,300));
status.Add(infobar2.LeftPos(300,300));
status.Add(editCommand);
...
infobar1.SetText(infos1);
infobar2.SetText(infos2);
I don't know why these codes do not work
status.Set("");
status.SetDefault("");
Thas 's all
[Updated on: Tue, 03 August 2010 11:03] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sun Apr 27 00:29:08 CEST 2025
Total time taken to generate the page: 0.01067 seconds
|