While there is literature describing how to use .NET controls in PB (see for
example, past issues of this magazine), all are silent on how to set control
properties at runtime and how to persist them. This article will address both
Like regular OLE controls, you can allow your .NET control properties to be
set at design-time by means of property pages (see Figure 1).
Sample Code in PB12 Resource Page
The ideas in this article have been implemented in source code available at
the PB12 Resource (http://www.sybase.com/powerbuilder12). Look for "Writing A
COM Control for PB using C# Part 6." This article will reference it.
Required COM Interfaces
The COM interfaces required for OLE Control property pages are the same as
those required by .NET controls. The only difference being that you can
implement them in C# (or VB.NET).
The interfaces required are ISpecifyPro... (more)
With all the attention in PB12 focused on .NET and WPF, some of you may be
wondering about the future of Win32 targets in what is now being called PB
Classic. Those hoping to still continue to work with Win32 targets in PB
Classic can rest assured, PB Classic is not going away and we are backing
that statement up with the features we are going to introduce in PB12.5.
Controls in DataWindow and Outside Converging in Capabilities
In this major release you are going to find two long-asked-for features
Autowidth for the Grid DataWindow Tab order, enabled, and focus... (more)
In my previous article for PowerBuilder Developer's Journal (Vol. 18 issue
8), I gave a sneak preview of some of the things we were working on for PB15
Classic. This is a closer look at one of them - Tabs and Docking in MDI
Recall that in the article we mentioned adding two new WindowType values -
mdidock! and mdidockhelp! - to the window object. Like values mdi! and
mdihelp!, respectively, they allow child windows (sheets) to be opened with
the OpenSheet functions. But these sheets will behave differently: they can
dock, float and be tabbed like the windows you see in ... (more)
PowerBuilder 11 introduces the WebForms target, which lets you transform an
existing PowerBuilder application into a Web application with relative ease.
While the deployed application will be remarkably faithful to the original
client/server deployment in terms of application behavior, the degree of
faithfulness is limited by the fact that your application is running as a Web
application. The PowerBuilder component where this poses the greatest
challenge is the DataWindow.
The aim of this article is to point out where the transformed application
will differ in terms of latency, ... (more)
In PowerBuilder 11.5 we introduce features that allow you to easily give your
existing DataWindows a new look and feel. New properties are added to columns
and controls to allow you to add tooltips. You no longer have to settle for
single-colored backgrounds. We have introduced properties to control color
gradients and translucency for the background of columns, and most controls
and bands. For the DataWindow background, in addition to color gradients, you
can use bitmaps as wallpaper, giving you control over how the image is tiled.
Since these new properties are DataWindow prope... (more)