Getting the glue library to work together decently with PODS is pretty easy. However, users of the OnBoardC suite were out of luck so far(and still are AFAIK).

However, OnBoardC users can need glue calls, too – and a bit of tinkering and searching brought along a simple concept for creating “replacement functions” for many of the glue calls that change specific object properties like the used font. The method behind it is simple – create it using dynamic UI, and simply remove&recreate it whenever you need to.

The code below is a “replacement” for CtlGlueSetFont – I used it to create a font selector for FontBucket in a soon-to-come project!


static void createDynaCmdFont(FormPtr* pForm,FontID font, char* fName)
{
CtlNewControl(pForm,DynaCmdFont,selectorTriggerCtl,fName,30,85,0,0,font,2,true);
FrmDrawForm(*pForm);
}

OnBoardC coders, please speak up! How do you handle PalmOSGlue?

Related posts:

  1. Compiling FontBucket with PODS Part 4
  2. Using FontBucket with OnBoardC
  3. Compiling FontBucket with PODS 1.2
  4. ZLauncher Plug-In API for OnBoardC
  5. ARM assembler for OnBoardC is now available