Be Book Komunikaty Indeks komunikatów

Komunikaty ogólne


B_ABOUT_REQUESTED

Zamiar: Dostarczenie
¬ródło: System lub Twoja aplikacjas.
Adresat: Zdefiniowany przez aplikację; zwykle be_app.
Hak: BApplication::AboutRequested() je¶li adresatem jest be_app.

Ten komunikat powinien być przypisany do pozycji menu About..., takiej, że ten komunikat jest wysyłany, kiedy użytkownik klika na tej pozycji. Twoja aplikacja oczekuje, że wy¶wietlisz panel "About This Application" gdy otrzyma ona ten komunikat.


B_ACQUIRE_OVERLAY_LOCK , B_RELEASE_OVERLAY_LOCK

¬ródło: Sterownik grafiki.
Adresat: Zespół posiadaj±cy możliwo¶ć nakładania (ang. overlay).

B_ACQUIRE_OVERLAY_LOCK jest wysyłany przez sterownik grafiki gdy nakładanie jest uzyskane. B_RELEASE_OVERLAY_LOCK jest wysyłany gdy nakładanie jest zwolnione (zwrócone).


B_APP_ACTIVATED

Zamiar: Dostarczenie
¬ródło: System.
Adresat: be_app
Hak: BApplication::AppActivated()

Wysyłane gdy aplikacja staje się aktywna lub nieaktywna.

Pole Kod tyu Opis
"active" B_BOOL_TYPE true je¶ aplikacja stała się aktywna; w przeciwnym wypadku false.


B_ARCHIVED_OBJECT

Zamiar: Dostarczenie i formatowanie
¬ródło: Przeci±gany replikant lub Twoja aplikacja.
Adresat: (Zdalna) aplikacja.
Hak: BShelf::CanAcceptReplicantMessage()

Jak do dostarczenia: System replikantów używa tego komunikatu jak do dostarczenia. Je¶li używasz obiektów BDragger i BShelf, ten komunikat jest tworzony i dostarczany za Ciebie. Możesz również symulować przeci±gany replikant przez archiwizowanie widoku, ustawienie polecenia komunikatu archiwizowania na B_ARCHIVED_OBJECT i wysłania komunikatu do zdalnej aplikacji. Je¶li zdalna aplikacja ma obiekt BShelf, ten BShelf będzie brał ten komunikat (poprzez BMessageFilter) i przekazywał do funkcji przechwytuj±cej.

Do utworzenia symulowanego komunikatu replikanta, wywołaj Archive() na widoku który chcesz zreplikować i dodaj (co najmniej) pole "add_on" (wtyczka) do tego komunikatu archiwizacji.

Patrz do sekcji BShelf i BDragger aby uzyskać więcej informacji o replikantach.

Jak do formatowania: B_ARCHIVED_OBJECT powinien być użyty jako stała polecenia dla wszystkich komunikatów archiwizacji. Gdy archiwizujesz obiekt, pole "class" (klasa) jest automatycznie dodawane do komunikatu archiwizacji. Wszystkie inne pola musza być dodane przez Twój kod archiwizuj±cy.

Pole Kod typu Opis
"class" [ ] B_STRING_TYPE Tablica nazw klasy, która przekazuje hierarchię klas archiwizowanego obiektu.
"add_on" B_STRING_TYPE Sygnatura biblioteki lub aplikacji, która wie jak utworzyć archiwizowany obiekt.
"be:add_on_version" B_INT32_TYPE Wersja wtyczki (add_on).
"be:load_each_time" B_BOOL_TYPE true: Wtyczka jest ładowana za każdym razem gdy obiekt jest rozarchiwizowany.
false: Wtyczka jest ładowana tylko je¶li je¶li nie jest ona już załadowana.
"be:unload_on_delete" B_BOOL_TYPE Czy wtyczka jest odł±czona (usunięta) gdy archiwizaowany obiekt jest usunięty?
"shelf_type"
(replicants only; optional)
B_STRING_TYPE "type" (typ) półki, któr± chcesz zastosować do wy¶wietlenia replikanta. Typ półki jest jego nazw±, jak± przypisano gdy był on tworzony.


B_ARGV_RECEIVED

¬ródło: System.
Adresat: be_app
Hak: BApplication::ArgvReceived()

Przesyłane argumenty, które (a) użytkownik przekazuje podczas uruchamiania aplikacji z wiersza poleceń (konsoli) lub (b) s± przekazywane do BRoster::Launch(). Większo¶ć aplikacji traktuje argumenty wiersza wiersza poleceń jako nazwy plików, które powinny zostać otwarte. Je¶li nazwa pliku jest względna (je¶li nie rozpoczyna się "/"), powiniene¶ dodać j± do pola "cwd", by zrekonstruować pełn± ¶cieżkę dostępu.

Pole Kod typu Opis
"argc" B_INT32_TYPE Liczba argumentów.
"argv" [argc] B_STRING_TYPE Argumenty.
"cwd" B_STRING_TYPE ¶cieżka dostępu do bież±cego katalogu roboczego.


B_CANCEL

Zamiar: Dostarczenie
¬ródło: Application Kit.
Adresat: Application Server.

Używany do anulowania trwaj±cej operacji. Application Kit wysyła ten komunikat do Application Server'a aby odwołać zamknięcie, je¶li okno odmawia zakończenia.


B_CLIPBOARD_CHANGED

Zamiar: Dostarczenie
¬ródło: Application Server.
Adresat: Wybrany BMessenger.

Je¶li chcesz wywołać BClipboard::StartWatching() do monitorowania (obserwowania) zmian w schowku, ten komunikat jest wysyłany do okre¶lonego BMessenger'a gdy zawarto¶ć schowka się zmieni.


B_CONTROL_INVOKED

Zamiar: Dostarczenie
¬ródło: BControl.
Adresat: Wybrany BMessenger.

Ten komunikat jest wysyłany do docelowego posłańca (messenger'a) gdy jest wywoływany pochodny obiekt BControl.


B_INPUT_DEVICES_CHANGED

Zamiar: Dostarczenie
¬ródło: Input Server.
Adresat: Wyszczególniony adresat wtyczki.
Hak: BInput::Control()

Ten komunikat jest wysyłany przez Input Server aby wysłać powiadomienie do Ciebie gdy jakie¶ urz±dzenie wystartuje lub się zatrzyma albo gdy zbiór zarejestrowanych urz±dzeń się zmieni. Te komunikaty s± wysyłane tylko je¶li chcesz użyć funkcji watch_input_devices() do zaż±dania takiego powiadomienia. Te komunikaty s± wysył±ne do adresata wskazywanego w wywołaniu funkcji.

Pole Kod typu Opis
"code" B_INT32_TYPE Kod operacji dla urz±dzenia klawiatury steruj±cy wyemitowanym ż±daniem. Jeden z:
B_INPUT_DEVICE_ADDED
B_INPUT_DEVICE_STARTED
B_INPUT_DEVICE_STOPPED
B_INPUT_DEVICE_REMOVED
"device" B_STRING_TYPE Nazwa urz±dzenia. Je¶li to pole nie istnieje, zamiast niego urz±dzenie jest identyfikowane przez pole "type".
"type" B_INT32_TYPE Typ urz±dzenia. Je¶li to pole nie istnieje, to urz±dzenie identyfikuje pole "device".
"message" B_MESSAGE_TYPE Komunikat sterowania. Żaden ze standardowych komunikatów BeOS'a nie używa tego pola.


B_INPUT_METHOD_EVENT

Zamiar: Dostarczenie
¬ródło: Input Server.
Adresat: Wej¶ciowa metoda wtyczki BLooper'a.

Ten komunikat jest wysyłany przez Input Server do wej¶ciowej metody wtyczki, aby dać jej znać, że wyst±piło zdarzenie metody. Pole "be:opcode" tego komunikatu wskazuje które zdarzenia wyst±piło.

S± one omawiane bardziej szczegółowo w rozdziale Input Server.


B_KEY_DOWN , B_KEY_UP , B_UNMAPPED_KEY_DOWN , B_UNMAPPED_KEY_UP

¬ródło: System.
Adresat: Widok ogniska BWindow.
Hak: BView::KeyDown() (B_KEY_DOWN), BView::KeyUp() (B_KEY_UP)
(Te ...UNMAPPED... komunikaty nie s± mapowane do funkcji przechwytuj±ch.)

B_KEY_DOWN jest wysyłany gdy użytkownik naci¶nie (lub przytrzymuje) klawisz, który jest mapowany na znak; B_KEY_UP jest wysył±ny gdy użytkownik zwolni klawisz. B_UNMAPPED_KEY_DOWN i B_UNMAPPED_KEY_UP s± wysyłane je¶li klawisz nie jest mapowany na znak. Nie zawiera on modyfikatora klawiszy, który jest zgłaszany w komunikacie B_MODIFIERS_CHANGED.

Pole Kod typu Opis
"when" B_INT64_TYPE Czas zdarzenia, w mikrosekundach od 01-01-1970 (data pocz±tkowa dla systemów Unix i pokrewnych).
"key" B_INT32_TYPE Kod dla fizycznego klawisza który był przyci¶nięty. Patrz do <x> na mapę kalwiszy.
"be:key_repeat"
(B_KEY_DOWN only)
B_INT32_TYPE "Numer iteracji" naci¶niętego klawisza. Gdy użytkownik przytrzymuje klawisz, s± wysłane następuj±ce po sobie komunikaty ze zwiększaniem warto¶ci powtarzania klawisza. To pole nie jest obecne w pocz±tkowym zdarzeniu; pierwszy komunikat powtórki (i.e., drugi komunikat naci¶nięcia klawisza) ma warto¶ć powtórki klawisza równ± 1.
"modifiers" B_INT32_TYPE Modyfikator klawiszy, który faktycznie istniał w czasie wyst±pienia tego zdarzenia. Zobacz do< x > na listę warto¶ci.
"states" B_UINT8_TYPE Stan wszystkich klawiszy w czasie wyst±pienia zdarzenia. Patrz do <x>.
"byte" [3]
(B_KEY_DOWN and B_KEY_UP only)
B_INT8_TYPE Dane w kodzie UTF8, które sa generowane.
"bytes"
(B_KEY_DOWN and B_KEY_UP only)
B_STRING_TYPE Łańcuch znaków, który jest generowany. (Łańcuch znaków zwykle zawiera pojedynczy znak.)
"raw_char"
(B_KEY_DOWN and B_KEY_UP only)
B_INT32_TYPE Kodu dla znak ASCI niezależny od modyfikatora.


B_KEY_UP patrz B_KEY_DOWN


B_KEYBOARD_DEVICE

Zamiar: Dostarczenie
¬ródło: Input Server.
Adresat: Wtyczka urz±dzenia klawiatury.
Hak: BInput::Control()

Ten komunikat jest używany przez Input Server do wysył±nia ż±dania do wtyczki urz±dzenia klawiatury.

Pole Kod typu Opis
"code" B_INT32_TYPE Kod operacji dla urz±dzenia klawiatury steruj±cy wyemitowanym ż±daniem. Jeden z:
B_KEY_MAP_CHANGED
B_KEY_LOCKS_CHANGED
B_KEY_REPEAT_DELAY_CHANGED
B_KEY_REPEAT_RATE_CHANGED
"device" B_STRING_TYPE Nazwa urz±dzenia. Je¶li to pole nie istnieje, zamiast tego urz±dzenie jest identyfikowane przez pole "type".
"type" B_INT32_TYPE Typ urz±dzenia. Je¶li to pole nie istnieje, urz±dzenie identyfikuje pole "device".
"message" B_MESSAGE_TYPE Komunikat sterowania. Żaden ze standardowych komunikatów BeOS'a nie używa tego pola.


B_UNMAPPED_KEY_UP patrz B_KEY_DOWN


B_MEDIA_BUFFER_CREATED , B_MEDIA_BUFFER_DELETED

Zamiar: Deliverable
¬ródło: The media server.
Adresat: Target specified to BMediaRoster::StartWatching().

Sent to indicate that a media buffer has been created or deleted.

B_MEDIA_BUFFER_CREATED's message has the following fields:

Field Type Code Description
"clone_info" B_RAW_TYPE An area_info structure describing the buffer's location in memory. This is an array, one entry per buffer created.

B_MEDIA_BUFFER_DELETED looks like this:

Field Type Code Description
"media_buffer_id" B_INT32_TYPE The buffer ID number of the buffer being deleted. This is an array, one entry per buffer deleted.


B_MEDIA_BUFFER_DELETED see B_MEDIA_BUFFER_CREATED
B_MEDIA_CONNECTION_BROKEN see B_MEDIA_CONNECTION_MADE


B_MEDIA_CONNECTION_MADE , B_MEDIA_CONNECTION_BROKEN

Zamiar: Deliverable
¬ródło: The media server.
Adresat: Target specified to BMediaRoster::StartWatching().

Sent to indicate that a connection between media nodes has been made or broken.


B_MEDIA_FLAVORS_CHANGED

Zamiar: Deliverable
¬ródło: The media server.
Adresat: Target specified to BMediaRoster::StartWatching().

Sent by the media server to indicate that the flavors supported by a particular add-on have changed.

Field Type Code Description
"be:addon_id" B_INT32_TYPE The add-on ID of the add-on whose flavors have changed
"be:new_count" B_INT32_TYPE How many new flavors have been added.
"be:gone_count" B_INT32_TYPE How many flavors have been removed.


B_MEDIA_FORMAT_CHANGED

Zamiar: Deliverable
¬ródło: The media server.
Adresat: Target specified to BMediaRoster::StartWatching().

Sent by the media server to indicate that the format used on a particular connection has changed.

Field Type Code Description
"be:source" B_RAW_TYPE A media_source structure describing the source of the connection whose format changed.
"be:destination" B_RAW_TYPE A media_source structure describing the source of the connection whose format changed.
"be:format" B_RAW_TYPE A media_format structure describing the new format.


B_MEDIA_NODE_CREATED , B_MEDIA_NODE_DELETED

Zamiar: Deliverable
¬ródło: The media server.
Adresat: Target specified to BMediaRoster::StartWatching().

Sent to indicate that a node has been created or deleted in the media system.

Field Type Code Description
"media_node_id" B_INT32_TYPE The ID of the media_node that was created or deleted.


B_MEDIA_NODE_DELETED see B_MEDIA_NODE_CREATED


B_MEDIA_NODE_STOPPED

Zamiar: Deliverable
¬ródło: The media server.
Adresat: Target specified to BMediaRoster::StartWatching().

Indicates that a media node has stopped.


B_MEDIA_PARAMETER_CHANGED , B_MEDIA_NEW_PARAMETER_VALUE

Zamiar: Deliverable
¬ródło: The media server.
Adresat: Target specified to BMediaRoster::StartWatching().

Sent by the media server to indicate that the value of a parameter has changed. B_MEDIA_PARAMETER_CHANGED only tells you which parameter changed (media_node and parameter ID). B_MEDIA_NEW_PARAMTER_VALUE also tells you which parameter changed, and what the new value is.

The B_MEDIA_PARAMETER_CHANGED message looks like this:

Field Type Code Description
"be:node" B_RAW_TYPE A media_node structure indicating which node's parameter web has changed.
"be:parameter" B_INT32_TYPE The ID number of the parameter whose value has changed.

The B_MEDIA_NEW_PARAMETER_VALUE message is:

Field Type Code Description
"node" B_RAW_TYPE A media_node structure indicating which node is reporting a changed parameter value.
"parameter" B_INT32_TYPE The parameter ID of the changed parameter.
"when" B_INT64_TYPE The performance time at which the change took effect.
"value" B_RAW_TYPE The parameter's new value.


B_MEDIA_WEB_CHANGED

Zamiar: Deliverable
¬ródło: The media server.
Adresat: Target specified to BMediaRoster::StartWatching().

Sent by the media server to indicate that a particular node's BParameterWeb has.

Field Type Code Description
"node" B_RAW_TYPE A media_node structure indicating which node's parameter web has changed.


B_MEDIA_WILDCARD

Zamiar: Constant only.
¬ródło: Your application.
Adresat: The media server.

When calling BMediaRoster::StartWatching() or BMediaRoster::StopWatching(), you can use this constant to match all media messages. This message has no actual format.

(No Be-defined fields)


B_MINIMIZE

¬ródło: The system or your app.
Adresat: The BWindow that's hidden/unhidden.
Hak: BWindow::Minimize()

Sent when the user double-clicks a window's title bar (to hide the window), or selects a window from the DeskBar's window list (to unhide the window).

Field Type code Description
"when" B_INT64_TYPE Event time, in microseconds since 01/01/70.
"minimize" B_BOOL_TYPE true if the window is being hidden; false if it's being unhidden.


B_MODIFIERS_CHANGED

¬ródło: The system.
Adresat: The focus view's window.

Sent when the user presses or releases a modifier key.

Field Type code Description
"when" B_INT64_TYPE Event time, in microseconds since 01/01/70
"modifiers" B_INT32_TYPE The current modifier keys. See <x>
"be:old_modifiers" B_INT32_TYPE The previous modifier keys.
"states" B_UINT8_TYPE The state of all keys at the time of the event. See <x>.


B_MOUSE_DOWN

¬ródło: The system.
Adresat: The BWindow of the view the mouse is pointing to.
Hak: BView::MouseDown()

Sent when the user presses a mouse button. This message is only sent if no other mouse button is already down.

Field Type code Description
"when" B_INT64_TYPE Event time, in microseconds since 01/01/70
"where" B_POINT_TYPE Mouse location in the view's coordinate system.
"modifiers" B_INT32_TYPE The modifier keys that were in effect at the time of the event.
"buttons" B_INT32_TYPE The mouse button that was pressed, one of:
B_PRIMARY_MOUSE_BUTTON
B_SECONDARY_MOUSE_BUTTON
B_TERTIARY_MOUSE_BUTTON
"clicks" B_INT32_TYPE 1 for a single-click, 2 for double-click, 3 for triple-click, and so on. The counter is reset if the time between clicks exceeds the "Double-click speed" set by the user in the Mouse preferences. Note that the counter is not reset if the mouse moves between clicks.


B_MOUSE_MOVED

¬ródło: The system.
Adresat: The BWindow of the view the mouse is pointing to.
Hak: BView::MouseMoved()

Sent when the user moves the mouse.

Field Type code Description
"when" B_INT64_TYPE Event time, in microseconds since 01/01/70
"where" B_POINT_TYPE The mouse's new location in window coordinates.
"buttons" B_INT32_TYPE The mouse buttons that are down. Zero or more of:
B_PRIMARY_MOUSE_BUTTON
B_SECONDARY_MOUSE_BUTTON
B_TERTIARY_MOUSE_BUTTON


B_MOUSE_UP

¬ródło: The system.
Adresat: The BWindow of the view the mouse is pointing to.
Hak: BView::MouseUp()

Sent when the user releases a mouse button. It's only sent if no other mouse button remains down.

Field Type code Description
"when" B_INT64_TYPE Event time, in microseconds since 01/01/70
"where" B_POINT_TYPE Mouse location in the view's coordinate system.
"modifiers" B_INT32_TYPE The modifier keys that were in effect at the time of the event. See <x> for a list of modifier values.


B_MOUSE_WHEEL_CHANGED

¬ródło: The system.
Adresat: The BWindow of the view the mouse is pointing to.

Sent when the user moves the mouse wheel (on mice that have them).

Field Type code Description
"when" B_INT64_TYPE Event time, in microseconds since 01/01/70
"be:wheel_delta_x" B_FLOAT_TYPE How much the Y value of the wheel has changed.
"be:wheel_delta_y" B_FLOAT_TYPE How much the Y value of the wheel has changed.

The standard mouse driver that comes with BeOS only supports a Y-oriented wheel.


B_NODE_MONITOR

¬ródło: The Node Monitor.
Adresat: App-defined.

Sent when a monitored file changes. All Node Monitor messages contain an int32 "opcode" field that tells you what happened (a file was removed, an attribute changed, etc.). The format of the rest of the message depends on the opcode. The formats are given under individual entries in this appendix, listed by opcode value:

These are discussed in the section "Node Monitor Messages".


B_OBSERVER_NOTICE_CHANGE

¬ródło: The system.
Adresat: Application-defined target.

Sent by BHandlers to all targets that have been registered with the BHandler's StartWatching() or StartWatchingAll() function.

Field Type code Description
"be:observe_change_what" B_INT32_TYPE The "what" code of the message being broadcast.
"be:observe_orig_what" B_INT32_TYPE The original "what" code of the message, before it was altered by the broadcasting mechanism.

The message may have other fields, depending on what the broadcast message is. Messages are sent to targets in response to the BHandler::SendNotices() function. The logic is:

The resulting message is then sent to all interested parties.

See also: BHandler::SendNotices(), BHandler::StartWatching()


B_OPEN_IN_WORKSPACE

¬ródło: The system.
Adresat: BApplication.

Sent to an application when it's first launched to tell it to open in a specific workspace. The message will be handled during the construction of the BApplication object.

Field Type code Description
"be:workspace" B_INT32_TYPE Workspace number into which the application should open.


B_POINTING_DEVICE

Zamiare: Deliverable
¬ródło: The input server.
Adresat: A pointing device add-on.
Hak: BInput::Control()

This message is used by the input server to send a request to a pointing device add-on.

Field Type code Description
"code" B_INT32_TYPE Operation code for the pointing device control request being issued. One of:
B_MOUSE_TYPE_CHANGED
B_MOUSE_MAP_CHANGED
B_MOUSE_SPEED_CHANGED
B_CLICK_SPEED_CHANGED
B_MOUSE_ACCELERATION_CHANGED
"device" B_STRING_TYPE The name of the device. If this field doesn't exist, the device is identified by "type" instead.
"type" B_INT32_TYPE The device type. If this field doesn't exist, the "device" field identifies the device.
"message" B_MESSAGE_TYPE The control message for the request. None of the BeOS standard messages use this field.


B_PRINTER_CHANGED

¬ródło: The Print Server.
Adresat: Everyone.

Sent whenever the user changes printers. Applications that support printing should watch for this message, and if they receive it, they should suggest that the user check their page setup the next time they choose to print.


B_PULSE

Source: The system.
Adresat: be_app or BWindow object.
Hak: BApplication::Pulse() and BView::Pulse()

Sent at regular intervals, but with no particular intent. You can implement Pulse() to do whatever you want. The message is to the BWindow only if a BView within the window declares B_PULSE_NEEDED in its constructor flags.


B_QUERY_UPDATE

¬ródło: The system.
Adresat: App-defined.

Sent when the results of a live query change: If a new file meets the query requirements, B_ENTRY_CREATED is sent. If a file that previously passed the query requirements no longer does, B_ENTRY_REMOVED is sent.


B_QUIT_REQUESTED

¬ródło: The system or your app.
Adresat: be_app, BWindow closed by the user, or other BLooper object.
Hak: BLooper::QuitRequested().

Automatically sent (a) to be_app when the user types Command+q, and (b) to a BWindow when the user clicks the window's close box. Applications can also manufacture and send the message themselves. A looper that receives this message is expected to quit, or at least consider quitting.

Field Type code Description
"shortcut" B_BOOL_TYPE true if the user typed Command+q.


B_READY_TO_RUN

¬ródło: The system.
Adresat: be_app
Hak: BApplication::ReadyToRun()

Sent when an application has finished configuring itself and is ready to start running.

(No Be-defined fields)


B_REFS_RECEIVED

¬ródło: The system or your app.
Adresat: be_app, or other app-defined target.
Hak: BApplication::RefsReceived()

Automatically sent to be_app when (a) the user double-clicks a file that has a type that's supported by the app, and (b) when the user confirms some files (or directories) in an Open File panel (the target is be_app by default; it can be changed in BFilePanel::SetTarget()). You can also create, stuff, and send a B_REFS_RECEIVED message yourself. When it receives this message, an app is expected to open the files that the message refers to.

Field Type code Description
"refs" [i] B_REF_TYPE entry_ref items, one for each file or directory.

A BStatusBar object can be controlled synchronously by calling its Reset() and Update() functions. It can also be controlled asynchronously by sending it messages corresponding to the two functions; the object calls the function when it receives the message. Each message contains fields for the arguments passed to the function.


B_RELEASE_OVERLAY_LOCK see B_ACQUIRE_OVERLAY_LOCK


B_RESET_STATUS_BAR

¬ródło: Your app.
Adresat: The BStatusBar you're resetting.
Hak: BStatusBar::Reset()

You construct and send this message to a BStatusBar object to tell it to (asynchronously) reset itself. The message also lets you reset the object's labels. To send the message, invoke BWindow's PostMessage() naming the target BStatusBar as the handler:

statusBar->Window()->PostMessage(theMessage, statusBar);

Field Type code Description
"label" B_STRING_TYPE The object's new label (NULL-terminated).
"trailing_label" B_STRING_TYPE The object's new trailing label (NULL-terminated)..


B_SCREEN_CHANGED

¬ródło: The system.
Adresat: Every BWindow in the screen that changed (even hidden windows).
Hak: BWindow::ScreenChanged()

Sent when the screen's dimensions or color space changes—because the user played with the Screen preferences app, for example.

Field Type code Description
"when" B_INT64_TYPE Event time, in microseconds since 01/01/70
"frame" B_RECT_TYPE The screen's dimensions.
"mode" B_INT32_TYPE The screen's color space: B_CMAP8, B_RGB15, B_RGB15, or BRGB32.


B_SILENT_RELAUNCH

¬ródło: The system.
Adresat: be_app

Sent to a single-launch application when it's activated by being launched (for example, if the user double-clicks its icon in Tracker).

(No Be-defined fields)


B_SOME_APP_ACTIVATED , B_SOME_APP_LAUNCHED , B_SOME_APP_QUIT

¬ródło: The Roster Monitor.
Adresat: App-defined.

Sent as apps are launched, activated, or quit. You get these messages by invoking BRoster::StartWatching() passing a one or more of B_REQUEST_ACTIVATED, B_REQUEST_LAUNCHED, and B_REQUEST_QUIT.

Field Type code Description
"mime_sig" B_STRING_TYPE The ap signature.
"team" B_INT32_TYPE The app's team id.
"thread" B_INT32_TYPE The id of the app's main thread.
"flags" B_INT32_TYPE The app's app flags (B_SINGLE_LAUNCH, B_BACKGROUND_APP, etc).
"ref" B_REF_TYPE The entry_ref of the app's executable.


B_UPDATE_STATUS_BAR

¬ródło: Your app.
Adresat: The BStatusBar you're updating.
Hak: BStatusBar::Update()

You construct and send this message to a BStatusBar object to tell it to (asynchronously) update its progress. To send the message, invoke BWindow's PostMessage() naming the target BStatusBar as the handler:

statusBar->Window()->PostMessage(theMessage, statusBar);

Field Type code Description
"delta" B_FLOAT_TYPE An increment to the object's current value.
"text" B_STRING_TYPE The object's new text (NULL-terminated).
"trailing_text" B_STRING_TYPE The object's new trailing text (NULL-terminated)..


B_VALUE_CHANGED

¬ródło: The system.
Adresat: The manipulated scrollbar's BWindow.
Hak: BScrollBar::ValueChanged()

Sent when the user plays with a scrollbar.

Field Type code Description
"when" B_INT64_TYPE Event time, in microseconds since 01/01/70
"value" B_INT32_TYPE The scrollbar's new value.


B_VIEW_MOVED

¬ródło: The system.
Adresat: The moved view's BWindow.
Hak: BView::FrameMoved()

Sent when a view's origin (left top corner) changes relative to the origin of its parent. The message isn't sent if the view doesn't have the B_FRAME_EVENTS flag set.

Field Type code Description
"when" B_INT64_TYPE Event time, in microseconds since 01/01/70
"where" B_POINT_TYPE The view's new origin in the coordinate system of its parent.


B_VIEW_RESIZED

¬ródło: The system.
Adresat: The resized view's BWindow.
Hak: BView::FrameResized()

Sent when the size of the view's frame changes. The message isn't sent if the view doesn't have the B_FRAME_EVENTS flag set.

Field Type code Description
"when" B_INT64_TYPE Event time, in microseconds since 01/01/70
"width" B_INT32_TYPE The view's new width.
"height" B_INT32_TYPE The view's new height.
"where" B_POINT_TYPE The view's new origin expressed in the coordinate system of its parent. This field is only included if the view actually moved while being resized, and can always be ignored: If the view did move, you'll hear about it in a separate B_VIEW_MOVED BMessage.


B_WINDOW_ACTIVATED

¬ródło: The system.
Adresat: The activated/deactivated BWindow.
Hak: BWindow::WindowActivated() and BView::WindowActivated()

Sent just after a window is activated or deactivated. Note that the BWindow invokes WindowActivated() on each of its views.

Field Type code Description
"when" B_INT64_TYPE Event time, in microseconds since 01/01/70
"active" B_BOOL_TYPE true if the window is now active; false if not.


B_WINDOW_MOVE_BY

Zamiar: Deliverable.
¬ródło: Your application.
Adresat: The BWindow to be moved.

You can send this message to a window to resize it by the specified deltas.

Field Type code Description
"data" B_POINT_TYPE The amount by which to move the window's X and Y coordinates.


B_WINDOW_MOVE_TO

Zamiar: Deliverable.
¬ródło: Your application.
Adresat: The BWindow to be moved.

You can send this message to a window to resize it to the specified size.

Field Type code Description
"data" B_POINT_TYPE The width and height (in X and Y) to resize the window to.


B_WINDOW_MOVED

¬ródło: The system.
Adresat: The BWindow that moved.
Hak: BWindow::FrameMoved()

Sent when a window's origin (left top corner) changes within the screen coordinate system.

Field Type code Description
"when" B_INT64_TYPE Event time, in microseconds since 01/01/70
"where" B_POINT_TYPE The window's new origin in screen coordinates.


B_WINDOW_RESIZED

¬ródło: The system.
Adresat: The resized BWindow.
Hak: BWindow::FrameResized()

Sent when the size of the window's frame changes. Note that the "width" and "height" fields measure the window's content area—they don't include the window border or window tab.

Field Type code Description
"when" B_INT64_TYPE Event time, in microseconds since 01/01/70
"width" B_INT32_TYPE The width of the window's content area.
"height" B_INT32_TYPE The height of the window's content area.


B_WORKSPACE_ACTIVATED

¬ródło: The system.
Adresat: Every BWindow in the activated and deactivated workspaces.
Hak: BWindow::WorkspaceActivated()

Sent when the active workspace changes.

Field Type code Description
"when" B_INT64_TYPE Event time, in microseconds since 01/01/70
"workspace" B_INT32_TYPE The index of the window's workspace.
"active" B_BOOL_TYPE true if the workspace is now active; false if not.


B_WORKSPACES_CHANGED

¬ródło: The system.
Adresat: The BWindow whose set of workspaces changed.
Hak: BWindow::WorkspacesChanged()

Sent when there's a change to the set of workspaces in which a window can appear.

Field Type code Description
"when" B_INT64_TYPE Event time, in microseconds since 01/01/70
"old" B_INT32_TYPE The window's old workspace set, given as a vector of workspace indices.
"new" B_INT32_TYPE The window's new workspace set, given as a vector of workspace indices.


B_ZOOM

¬ródło: The system.
Adresat: The BWindow that was zoomed.
Hak: BWindow::Zoom()

Sent when the user clicks a window's zoom button.

The message has just one data field:

Field Type code Description
"when" B_INT64_TYPE Event time, in microseconds since 01/01/70


Be Book Komunikaty Indeks komunikatów

Be Book,
...w ¶licznym HTML...
dla BeOS wydanie 5

Copyright © 2000 Be, Inc. Wszelkie prawa zastrzeżone.