| View previous topic :: View next topic |
| Author |
Message |
X-Tools Valued Contributor

Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Wed Mar 31, 2004 8:18 am Post subject: window settext on status element |
|
|
Hi,
why doesn't window settext work on status elements ?
I want to set the statusbar of my main window through child applications. Editboxes and Buttons are working fine, but statusbar not.
Thanks for your help.
Bye, Fabian |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Wed Mar 31, 2004 12:04 pm Post subject: |
|
|
Dunno, really. Probably because it is quite a complex control (you can have multiple text parts on a status.) Window settext just sends a windows message to the control, which worked fine with the controls that existed in the early days of Windows. So the problem is Microsoft not implementing the functionality to respond to this message in the newer controls that came out with Win95. There may be some other message you can use, specific to this control, which would do it. _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Wed Mar 31, 2004 1:36 pm Post subject: |
|
|
X-Tools,
What is wrong with using Dialog Set? To set multiple panels on the Status bar use this.
| Code: | Dialog Add,STATUS,STATUS1,<Panel 1 text>[25]|<Panel 2 text>[25]...
Dialog Set,STATUS1,<Panel 1 text>@tab()<Panel 2 text>... |
_________________ Home of
Give VDS a new purpose!

Last edited by vdsalchemist on Wed Mar 31, 2004 1:40 pm; edited 1 time in total |
|
| Back to top |
|
 |
X-Tools Valued Contributor

Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Wed Mar 31, 2004 1:38 pm Post subject: |
|
|
Hi,
I want other apps (my child applications, mdi childs) to set the status element of the main application.
Until now I use memorymap for this, but it's too buggy.
Bye, Fabian |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
X-Tools Valued Contributor

Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Wed Mar 31, 2004 3:08 pm Post subject: |
|
|
Hi Skit,
seems not to work.
| Code: | DIALOG CREATE,Neuer Dialog,-1,0,240,160
DIALOG ADD,STATUS,STATUSBAR,STATUS1
DIALOG SHOW
%a = The text of your choose
%%hwnd = @winexists(~statusbar)
%z = @sendmsg(%%hwnd,@sum($400,1),0,@addr("%a"))
:loop
wait event
goto @event()
:close
stop
|
|
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Wed Mar 31, 2004 4:27 pm Post subject: |
|
|
| X-Tools wrote: | Hi,
I want other apps (my child applications, mdi childs) to set the status element of the main application.
Until now I use memorymap for this, but it's too buggy.
Bye, Fabian |
In that case you can use Gadget to do that. It has commands to set the StatusBar. I will get with you offline to implement this... _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
|