Hi
There’s a problem when I use Pbuilder for:
1-Button, like:
and
2-ComboBox, like:
Item 1
Item 2
Item 3
Item 4
Item 5
The ComboBox is showed with none options and the button is showed much smaller. (view image)
Somebody know what’s happening?
Hi
There’s a problem when I use Pbuilder for:
1-Button, like:
and
2-ComboBox, like:
Item 1
Item 2
Item 3
Item 4
Item 5
The ComboBox is showed with none options and the button is showed much smaller. (view image)
Somebody know what’s happening?
I’ve found the error.
To put the button value I had to fill this:
Before: char Help_SystemStatus[] = “”;
After: char Help_SystemStatus[] = “Help”;
And ComboBox:
Before:
extern void *getChoice_LB_RefreshStatusEvery(Unsigned8 theItemNumber, Boolean *theOptionSelectedFlag, Unsigned32Ptr theValuePtr);
extern void *getChoice_LB_RefreshStatusEvery(Unsigned8 theItemNumber, Boolean *theOptionSelectedFlag, Unsigned32Ptr theValuePtr)
{
char * theResult;
if (theItemNumber == 10) { /* more OPTIONs? */
return (void *) 0; /* no */
}
else {
return (void *) theResult;
}
}
extern void setChoice_LB_RefreshStatusEvery(Unsigned32 theValue);
void setChoice_LB_RefreshStatusEvery(Unsigned32 theValue)
{
return;
}
After:
Unsigned32 u32LB_RefreshStatusEvery = 0;
char *cLB_RefreshStatusEvery[] = { “10 Seconds”, “20 Seconds”, “30 Seconds”, “”};
void *getChoice_LB_RefreshStatusEvery(Unsigned8 theItemNumber, Boolean *theOptionSelectedFlag, Unsigned32Ptr theValuePtr)
{
if (strlen(cLB_RefreshStatusEvery[theItemNumber]) == 0)
{
return (void *) 0;
}
else
{
if (theItemNumber == u32LB_RefreshStatusEvery)
{
*theOptionSelectedFlag = 1;
}
else
{
*theOptionSelectedFlag = 0;
}
*theValuePtr = theItemNumber;
return (void *) cLB_RefreshStatusEvery[theItemNumber];
}
}
void setChoice_LB_RefreshStatusEvery(Unsigned32 theValue)
{
u32LB_RefreshStatusEvery = theValue;
}
I don’t know if it’s right but works ![]()
Hello
relative to point one and the sue of the