Jade 7

listBoxBooks_click Method

Notifications are stopped for a previously selected book.

Notifications are started for the book selected from the list box.

The status line color is changed to white, and a message reserving the book is displayed.

Instructions

  1. Select the ReservationForm.
  2. In the properties window, select listBoxBooks.
  3. In the methods window, select click.
  4. Copy and compile the code on the right.

listBoxBooks_click(listbox : ListBox input) updating;

vars
    bk : Book;
begin
    endNotificationForSubscriber(self);
    bk := listbox.listObject.Book;
    beginNotification(bk, Object_Update_Event,
                      Response_Continuous, 0);
    statusLine.backColor := White;
    statusLine.caption := "Reserve '" & bk.title & "'";
end;

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 Contents
 

For maximum reliability, security and performance of your JADE solution, JADE Care24 is our fully comprehensive systems management offering.