next up previous contents index
Next: p->convert_units Up: Programming Previous: PopupMenu   Contents   Index


p->language

Figure 6.28: Creating a PopupMenu
p->language       // default = DEFAULT_LANGUAGE 
p->convert_units  // default = 0
You can now change p->language and overwrite the text in defineMask()
if(p->language == SPANISH)
{
  // overwrite text in spanish
}

Simply finish your mask as normal. Then copy pvSetText() and pvPrintf() from generated_defineMask() and translate.



Rainer Lehrig 2004-02-17