AddStatusBarField()

Everything else that doesn't fall into one of the other PB categories.
Tranquil
Addict
Addict
Posts: 952
Joined: Mon Apr 28, 2003 2:22 pm
Location: Europe

AddStatusBarField()

Post by Tranquil »

Why does this command do not need a StatusBar Object number? Is this threadsave?
Tranquil
va!n
Addict
Addict
Posts: 1104
Joined: Wed Apr 20, 2005 12:48 pm

Post by va!n »

Before using AddStatusBarField() you are using CreateStatusBar() and here you are defining the StatusBarID and on which Window the StatusBar should be created. So AddStatusBarField know where to draw the stuff. (same like when doing it with API only) I think it should make no problems in threads.
va!n aka Thorsten

Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,
Tranquil
Addict
Addict
Posts: 952
Joined: Mon Apr 28, 2003 2:22 pm
Location: Europe

Post by Tranquil »

Most APIs relay on the "calling thread". Sure, I will never add a statusbarfield in a thread but as I used this command today I thought about ist.

@Vain:
What do you think happens if your mainloop adds statusbarfields to your firstly created statusbar while your thread is doing the same on another window. Get the point?
Tranquil
va!n
Addict
Addict
Posts: 1104
Joined: Wed Apr 20, 2005 12:48 pm

Post by va!n »

yeah, i got the point ^^ i dont know what happens, if two threads are trying to modify/change the DIM where the Fields and its width are stored.
va!n aka Thorsten

Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,
Post Reply