diff options
Diffstat (limited to 'backends/PalmOS/Src/forms/formtabs.cpp')
-rw-r--r-- | backends/PalmOS/Src/forms/formtabs.cpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/backends/PalmOS/Src/forms/formtabs.cpp b/backends/PalmOS/Src/forms/formtabs.cpp index dcf2419bf4..d862c9a8bb 100644 --- a/backends/PalmOS/Src/forms/formtabs.cpp +++ b/backends/PalmOS/Src/forms/formtabs.cpp @@ -26,7 +26,7 @@ void TabDeleteTabs(TabType *tabP) { delete tabP; } -Err TabAddContent(FormType **frmP, TabType *tabP, const Char *nameP, UInt16 rscID) { +Err TabAddContent(FormType **frmP, TabType *tabP, const Char *nameP, UInt16 rscID, TabProc *preInit) { FormType *srcP; UInt16 cnt; void *objP, **dstP; @@ -37,6 +37,11 @@ Err TabAddContent(FormType **frmP, TabType *tabP, const Char *nameP, UInt16 rscI dstP = (void **)frmP; srcP = FrmInitForm(rscID); + + if (preInit) { + preInit(srcP); + } + objNum = FrmGetNumberOfObjects(srcP); // save tab data @@ -49,7 +54,7 @@ Err TabAddContent(FormType **frmP, TabType *tabP, const Char *nameP, UInt16 rscI tabP->tabs[tabP->count].last = FrmGetObjectId(srcP, objNum - 1); tabP->count++; tabP->active = tabP->count; - + // create tab FntSetFont(stdFont); x = 4 + tabP->width; @@ -124,6 +129,13 @@ Err TabAddContent(FormType **frmP, TabType *tabP, const Char *nameP, UInt16 rscI FrmHideObject((FormType *)*dstP, FrmGetObjectIndex((FormType *)*dstP, id)); break; } + + case frmBitmapObj: { +/* UInt16 family = id + 1; + FrmNewBitmap((FormType **)dstP, id, id, x, y); + //FrmHideObject((FormType *)*dstP, FrmGetObjectIndex((FormType *)*dstP, id)); +*/ break; + } } } |