Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 14 in printed book and digital formats -- plus a one-year subscription so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview


Buy Now

Issue 14.2 ('Cocoa Fonts')
Instant purchase and download via GumRoad!

FEATURE

Designing Data-Oriented Pop-ups

Subclassing the PopupMenu and ComboBox control widgets

Issue: 14.2 (March/April 2016)
Author: J.C. Cruz
Article Description: No description available.
Article Length (in bytes): 54,159
Starting Page Number: 50
Article Number: 14206
Resource File(s):

Download Icon 14206project.zip Updated: 2016-03-01 13:42:50

Related Web Link(s):

http://docs.xojo.com/index.php/PopupMenu
http://docs.xojo.com/index.php/ComboBox

Excerpt of article text...

Pop-up widgets present users with multiple item to choose from. These items may be predefined constants, or they may be specific record field values. When users choose an item, the widget applies that choice to the task on hand.

But the two pop-up widgets from Xojo have a handful of issues. In today's article, I shall explain how I tried to address those issues.

First, I dissect each pop-up widget, describing its structure and behaviour. Then I introduce the subclasses I used to extend and improve each widget. And I provide a couple of examples of the improved widget at work.

The demo project FooPop is available from the magazine's website. Readers must have a working knowledge of REALbasic.

Dissecting the PopupMenu Widget

The widget class PopupMenu presents its data items to the user in the form of a menu list (see Figure 1). A click on the widget expands the menu and displays its items. A click on an item selects it and raises a change event.

...End of Excerpt. Please purchase the magazine to read the full article.