forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


window settext on status element

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
X-Tools
Valued Contributor
Valued Contributor


Joined: 20 Sep 2001
Posts: 296
Location: Germany

PostPosted: Wed Mar 31, 2004 8:18 am    Post subject: window settext on status element Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Wed Mar 31, 2004 12:04 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Wed Mar 31, 2004 12:06 pm    Post subject: Reply with quote

There is a sendmessage to change the value of a statusbar, but I don't have it right here. I once used it while making my autocomplete code for the VDS IDE, so I could display extra information... Smile
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Wed Mar 31, 2004 1:36 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
X-Tools
Valued Contributor
Valued Contributor


Joined: 20 Sep 2001
Posts: 296
Location: Germany

PostPosted: Wed Mar 31, 2004 1:38 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Wed Mar 31, 2004 2:55 pm    Post subject: Reply with quote

I think this should work... Smile

Code:
%a = The text of your choose
%%hwnd = @winexists("nameofthestatusbarelement?")
%z = @sendmsg(%%hwnd,@sum($400,1),0,@addr("%a"))

_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
X-Tools
Valued Contributor
Valued Contributor


Joined: 20 Sep 2001
Posts: 296
Location: Germany

PostPosted: Wed Mar 31, 2004 3:08 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Wed Mar 31, 2004 3:15 pm    Post subject: Reply with quote

Strange, it does work when you enter the window identifier of the VDS IDE statusbar... Confused
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Wed Mar 31, 2004 4:27 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group