Thomas Ward wrote:
> 
> Two questions related to forms:
> 
> 1. What is the difference between FrmPopupForm and FrmDoDialog (i.e., why
> would I use one and not the other)?

   FrmPopupForm opens a new form without closing the current form.
FrmDoDialog opens a _modal_ form (usually a small dialog box asking
a question or presenting an otion) that spawns its own event loop
and doesn't return until a button is pressed.

> 2. Why is there a CtlSetValue and a FrmSetControlValue? What is the
> difference? Same question for CategorySetTriggerLabel
> andFrmSetCategoryLabel?

   FrmSetControlValue is just a stub for CtlSetValue.  It lets you
use a form object index instead of a control pointer.  If you already
have a pointer to the control then use CtlSetValue; it'll be faster.

   AFAICT CategorySetTriggerLabel and FrmSetCategoryLabel essentially
do the same thing, but the Frm... version only draws the label while
the Cat... version draws the entire control.

Regards,
Daniel.

   p.s.  It'd be worth your while to sign the NDA and get the OS
sources.  For debugging and information purposes they're worth
their weight in gold.  Okay, well, since they're stored electron-
ically that's not much weight, but they're still worth a lot IMO.

Reply via email to