Discussion:
T5 - Hiding the Control Bar
(too old to reply)
steele johnson
2005-06-28 18:31:46 UTC
Permalink
Hello,
I've noticed a problem with the T5 that causes the Control Bar (Status
Bar) to reappear after hiding it with StatHide(). This doesn't happen
on the T3, so I'm wondering if any of you have solved this problem.
What's happening is after I call StatHide(), the OS enables the Control
Bar at the start of the next event loop cycle. If I continue to call
StatHide() for every cycle it causes some relaly bad UI flashing.

Does anyone know a better way to completely disable the Control Bar on
the T5?

Thank you
Kartmhaan
2005-06-30 16:29:27 UTC
Permalink
Hi, i have a similar problem but i have no flashing effect. I'm on
LifeDrive PDA and on all other form except the first, the control bar
cannot be hide with StatHide (but return errnone).

See my code, may be it will help you.

FormPtr pForm;
Err eErr;
WinHandle hWindow;

pForm = FrmGetActiveForm();
eErr = FrmSetDIAPolicyAttr(pForm, frmDIAPolicyCustom);
if (eErr != errNone) return false;

hWindow = FrmGetWindowHandle(pForm);
WinSetConstraintsSize(hWindow, 240, 240, 240, 160, 160, 160);

eErr = PINSetInputTriggerState(pinInputTriggerDisabled);
if (eErr != errNone) return false;

eErr = PINSetInputAreaState(pinInputAreaClosed);
if (eErr != errNone) return false;

eErr = StatHide();
if (eErr != errNone) return false;

return true;

Loading...