This is the second part of a two-part article. In the last article we learned
how to use the tag property to create our own microhelp and automate it. In
this article we are going to go one step further and use the tag property for
The list of items that I used the tag property for has shrunk over the years
as Sybase has tried to give us more tools. Apart from the microhelp the most
common use I had was to implement a tool tip. Now Sybase gives us a tool tip
without our having to code a pop-up window.
Luckily I don't have to have a long list of items; one more is sufficient to
show you the technique that I desire. I want to show you how to use the tag
property for more than one thing. We have the microhelp, how about something
else such as automatically bolding the static text that is associated with
What I mean is that we can set it up s... (more)
One of the most useful custom objects that I've ever written is my
master_detail object. It holds a prominent place in my toolkit. This article
will take you through the steps of how to write one and in the process
de-mystify the object.
First we want something that looks like Figure 1. Selecting a row in the top
DataWindow will display the details in the bottom. I'm sure that you've seen
this kind of DataWindow and you've probably written many of them. The key
here is not to tell you how to write this but how to simplify every one that
you will write in the future. For our exam... (more)
This is the third and final part of a series presenting a proposal for the
use of the tag property of DataWindow columns. My original thought was to
provide a means to automatically set a microhelp for each column. Of course,
if you are using an MDI application you have a function to set the microhelp,
but that function is only available in MDI. If you are using any other
application type, then this is not available to you.
Even if you do have an MDI, I have found that the microhelp is not as useful
as I would like. The microhelp is always on the frame, nowhere near the
column. ... (more)
This article provides a means of automating the sorting of DataWindows... not
just grid DataWindows as discussed in last month's article, but all
DataWindows, regardless of display format.
Bear in mind that we are writing programmer tools. When writing for
programmers we want to give the programmer the maximum number of options
while minimizing the programmer effort. In other words, default as much as
possible but allow the programmer to move beyond the defaults.
We have several action items to implement:
Do the housekeeping to get an application going Create a window for sorting.... (more)
In my last article we explored what I call Advanced DataWindow Sorting. We
covered everything that we need for the DataWindow. In this article we are
going to polish what we did last month and make it look professional.
The main area of concern is our sort selector window as seen in Figure 1. It
does the job. It's just amateurish and doesn't provide the full flexibility
that we really need.
You may recall that the text of the sortable column is specified in the tag
property of the column in the DataWindow. (huh?)
We open the sort selector window with a parameter, something like t... (more)