Bizarrement, cela fonctionne sur les autres plateformes !!
La chaine que je lui passe est statique, donc pas de souci de ce côté.
Voilà un extrait du code:
CODE
static Boolean MainFormHandleEvent(EventPtr e)
{
FormPtr frm;
(...)
switch (e->eType) {
case frmOpenEvent:
frm = FrmGetActiveForm();
ControlSetLabel(frm, VersionLabel, palmvncVersion);
(...)
FrmDrawForm(frm);
(...)
{
FormPtr frm;
(...)
switch (e->eType) {
case frmOpenEvent:
frm = FrmGetActiveForm();
ControlSetLabel(frm, VersionLabel, palmvncVersion);
(...)
FrmDrawForm(frm);
(...)
et la fonction ControlSetLabel:
CODE
void ControlSetLabel(FormType *frmP, UInt16 ctlID, Char *label)
{
ControlType *control;
UInt16 idx;
idx = FrmGetObjectIndex(frmP, ctlID);
control = (ControlType *) FrmGetObjectPtr(frmP, idx);
CtlSetLabel(control, label);
}
{
ControlType *control;
UInt16 idx;
idx = FrmGetObjectIndex(frmP, ctlID);
control = (ControlType *) FrmGetObjectPtr(frmP, idx);
CtlSetLabel(control, label);
}