Missing definitions

Have a question about our Software Developer Kit? Ask them here.
Post Reply
xenic
Posts: 1185
Joined: Sun Jun 19, 2011 12:06 am

Missing definitions

Post by xenic »

There is this item in SDK:Include/include_h/gadgets/layout.h:

#define LAYOUT_LabelColumn (LAYOUT_Dummy+34)
/* (ULONG) LABELTEXT_LEFT or LABELTEXT_RIGHT, the side where object
labels are placed in a vertical group. */

I can't find LABELTEXT_LEFT or LABELTEXT_RIGHT defined anywhere in the SDK. Can someone tell me what the values should be and add them to the SDK?
AmigaOne X1000 with 2GB memory - OS4.1 FE
User avatar
tonyw
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 1479
Joined: Wed Mar 09, 2011 1:36 pm
Location: Sydney, Australia

Re: Missing definitions

Post by tonyw »

Can't find those macro names anywhere so I suspect they are typos.

Have you tried using these values (from the end of layout.h) :

#define LALIGN_LEFT 0
#define LALIGN_RIGHT 1
#define LALIGN_CENTER 2
cheers
tony
User avatar
salass00
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 530
Joined: Sat Jun 18, 2011 3:12 pm
Location: Finland
Contact:

Re: Missing definitions

Post by salass00 »

xenic wrote:There is this item in SDK:Include/include_h/gadgets/layout.h:

#define LAYOUT_LabelColumn (LAYOUT_Dummy+34)
/* (ULONG) LABELTEXT_LEFT or LABELTEXT_RIGHT, the side where object
labels are placed in a vertical group. */

I can't find LABELTEXT_LEFT or LABELTEXT_RIGHT defined anywhere in the SDK. Can someone tell me what the values should be and add them to the SDK?
The correct names are PLACETEXT_LEFT and PLACETEXT_RIGHT and they are mentioned in the autodoc (the defines themselves are in <libraries/gadtools.h>).
xenic
Posts: 1185
Joined: Sun Jun 19, 2011 12:06 am

Re: Missing definitions

Post by xenic »

salass00 wrote: The correct names are PLACETEXT_LEFT and PLACETEXT_RIGHT and they are mentioned in the autodoc (the defines themselves are in <libraries/gadtools.h>).
Good to know. However, my primary reason for reporting problems here is to get them corrected in the SDK. The note in the LAYOUT_LabelColumn item in SDK:Include/include_h/gadgets/layout.h needs to be corrected to match the autodoc. Will you or Tony correct it?
AmigaOne X1000 with 2GB memory - OS4.1 FE
User avatar
salass00
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 530
Joined: Sat Jun 18, 2011 3:12 pm
Location: Finland
Contact:

Re: Missing definitions

Post by salass00 »

@xenic

I corrected the header file comment just after posting and committed it to the source repo.
xenic
Posts: 1185
Joined: Sun Jun 19, 2011 12:06 am

Re: Missing definitions

Post by xenic »

salass00 wrote:@xenic

I corrected the header file comment just after posting and committed it to the source repo.
Thanks.
AmigaOne X1000 with 2GB memory - OS4.1 FE
Post Reply