in PowerBuilder - sys-con.com's archive of magazines - SYS-CON ...
in PowerBuilder - sys-con.com's archive of magazines - SYS-CON ...
in PowerBuilder - sys-con.com's archive of magazines - SYS-CON ...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
extended at the base W<strong>in</strong>dow class with an “oe_command” user eventto allow the capture <strong>of</strong> the communicae from the notification bubbleto the issu<strong>in</strong>g w<strong>in</strong>dow <strong>in</strong>stance. This allowed a full communication circlefrom the W<strong>in</strong>dow <strong>in</strong>stance to the notification bubble <strong>in</strong>stance andback aga<strong>in</strong>. If we now couple the automatic population <strong>of</strong> the Tagproperty from the comment text <strong>in</strong> the ASA database with the STD FCs’easy use <strong>of</strong> the notification bubble feature, the <strong>con</strong>text sensitive helpwas an easy reach. The only question was how to <strong>in</strong>itiate the helprequest, as the Pocket PC does not support any function keys or the use<strong>of</strong> the <strong>con</strong>text-help question mark on response dialogs.To help with the <strong>con</strong>text-help <strong>in</strong>itiation, the STD FCs were extendedat the base PopUp menu class level to <strong>in</strong>clude a “Help” menu item.This can be easily activated by the Pocket PC stylus with a “Tap andhold” action. The popup menu understands the <strong>con</strong>trol that <strong>in</strong>stantiatedit and the help menu redirects a “oe_help” user event back to the<strong>con</strong>trol. The GUI <strong>con</strong>trol <strong>in</strong> turn can extract the <strong>con</strong>trol’s tag properties(or the DataW<strong>in</strong>dow object’s current column’s tag) and redirect a notificationbubble request to the parent w<strong>in</strong>dow. Ancestor code <strong>in</strong> the basew<strong>in</strong>dow class takes care <strong>of</strong> the notification bubble <strong>in</strong>stantiation andHTML message text wrapp<strong>in</strong>g. In the STD FCs, the only action requiredby the Pocket PC developer to allow this behavior is to set the“ib_help_required” property <strong>of</strong> any <strong>con</strong>trol to TRUE. This makes thehelp menu item appear on the pop-up and the notification bubble<strong>con</strong>text help feature enabled at runtime. The developer can set thisproperty <strong>in</strong> the W<strong>in</strong>dow pa<strong>in</strong>ter or at runtime under script <strong>con</strong>trol. ▼FIGURE 13 |ble is also able to communicate to its issu<strong>in</strong>g w<strong>in</strong>dow class (see Figure13). To accomplish this, the notification bubble sends a “pbm_command”message to the <strong>in</strong>stantiat<strong>in</strong>g w<strong>in</strong>dow class. The STD FCs wereAUTHOR BIOChris Pollach is the president <strong>of</strong> S<strong>of</strong>tware Tool & Die Inc. (a <strong>con</strong>sult<strong>in</strong>g company based <strong>in</strong> Ottawa,Ontario, Canada) and has been us<strong>in</strong>g PB s<strong>in</strong>ce November 1989 (version 0.8). When not develop<strong>in</strong>g <strong>in</strong> PB,Chris enjoys fish<strong>in</strong>g and martial arts.cpollach@travel-net.comPBDJ ADVERTISER INDEXADVERTISER URL PHONE PAGEActive Endpo<strong>in</strong>ts, Inc. www.active-endpo<strong>in</strong>ts.com 203-929-9400 2Amyuni Technologies www.amyuni.com 866-926-9864 21ClearNova www.clearnova.com/th<strong>in</strong>kcap 770-442-8324 19E.crane www.ecrane.com 603-226-4041 36iAnywhere www.ianywhere.com 800-801-2069 35ISSJ www.ISSJournal.com 888-303-5282 27Sybase www.sybase.com/pocketbuilder 877-230-6771 7Sybase www.sybase.com/pbextension 877-230-6771 11Sybase www.sybase.com/powerbuilder 877-230-6771 5, 13Sybase www.sybase.com/dataw<strong>in</strong>dow.net 800-8-SYBASE 9Sybase www.dataw<strong>in</strong>dow.com 800-667-9936 15<strong>SYS</strong>-<strong>CON</strong> repr<strong>in</strong>ts www.<strong>sys</strong>-<strong>con</strong>.com 201-802-3026 17<strong>SYS</strong>-<strong>CON</strong> Website www.<strong>sys</strong>-<strong>con</strong>.com 201-802-3000 25Web Services Edge/Open Source www2.<strong>sys</strong>-<strong>con</strong>.com/events 201-802-3066 23Advertiser is fully responsible for all f<strong>in</strong>ancial liability and terms <strong>of</strong> the <strong>con</strong>tract executedby their agents or agencies who are act<strong>in</strong>g on behalf <strong>of</strong> the advertiser. This <strong>in</strong>dex isprovided as an additional service to our readers. The publisher does not assumeany liability for errors or omissions.22 PBDJ volume12 issue11pbdj.<strong>sys</strong>-<strong>con</strong>.com