BeginY  BoldSelectedText

Chapter 3: Property Descriptions and Usage

Body

Applies to

NotificationBubble objects

Description

Defines the main text for the notification bubble. Text must be in HTML format.

Usage


In a painter

StepsTo add text for the body of a notification bubble:

  1. Enter the text you want in the Body text box on the General page of the NotificationBubble object’s Properties view.


In scripts

The Body property takes a string in HTML format. The following example sets the text for a notification bubble:

STRING ls_body

NotificationBubble myBubble 

Integer li_return


ls_body = "<html><body><form method=~"POST~" action=>"& +"<p>This is <font color=~"#0000FF~"><b>HTML</b>" &

+"</font>notification coming from "


ls_body += "<font color=~"#FF0000~"><i>Pocket</i>"&   +"PowerBuilder</font></p><p align=right><input "&   +"type=button name='cmd:10' value='My Ok'>&nbsp;"&
  +"<input type=button name='cmd:2' value='Cancel'>"&

  +"</p></body></html>"

myBubble = CREATE NotificationBubble
myBubble.caption = "My Title"

li_return = myBubble.icon ("bubble.ico")
myBubble.body = ls_body

li_return = myBubble.update()





Copyright © 2004. Sybase Inc. All rights reserved. BoldSelectedText

View this book as PDF