Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#173 closed enhancement (fixed)

Autodocs for Title class

Reported by: Guillaume Boesel Owned by: Thore Böckelmann
Priority: normal Milestone: 4.0-2015R2
Component: Title.mui Version: 4.0-nightly build
Severity: minor Keywords:
Cc: OS Platform: All
Blocked By: Blocking:
Release Notes:

Description

Does an Autodoc for the Title class exist ?

I didn't find one in the latest MUI svn SDK drawer.

Thank you

Change History (8)

comment:1 Changed 4 years ago by Thore Böckelmann

Currently there is just the NewStuff demo. I will compose a suitable autodoc ASAP. A very basic guide will follow soon. It is too hard to type all necessary information on a mobile phone.

comment:2 Changed 4 years ago by Thore Böckelmann

Milestone: 4.0-2015R2
OS Platform: AmigaOS4All
Priority: undecidednormal
Status: newaccepted

comment:3 Changed 4 years ago by Guillaume Boesel

Thank you by advance.

comment:4 Changed 4 years ago by Guillaume Boesel

For information, I implemented Title object without pain (to replace an RegisterGroup object)

I just had to add a

"#define TitleObject MUI_NewObject(MUIC_Title"

in my source as it is missing in include/libraries/mui.h

comment:5 Changed 4 years ago by Thore Böckelmann

Owner: set to Thore Böckelmann
Status: acceptedassigned

The most basic way to make use of Title.mui looks like this:

	VGroup,
		Child, TitleObject,
			Child, TextObject, MUIA_Text_Contents, "page 1", End,
			Child, TextObject, MUIA_Text_Contents, "page 2", End,
			Child, TextObject, MUIA_Text_Contents, "page 3", End,
			End,

		Child, [page 1 contents],
		Child, [page 2 contents],
		Child, [page 3 contents],
		End

This will create a register with 3 tabs/pages. Note that the titles are no longer plain strings but real objects.

comment:6 Changed 4 years ago by Thore Böckelmann

Resolution: fixed
Status: assignedclosed

In 4571:

  • doc/Title: added Autodocs for Title.mui. This closes #173.

comment:7 Changed 4 years ago by Guillaume Boesel

Thank you for the AutoDoc and for the inclusion of TitleObject in MUI/C/include/libraries/mui.h

Nevertheless, it seems that you add an extra "," at the end

With you new
#define TitleObject MUI_NewObject(MUIC_Title,

my code is no more compilable.

By removing the extra "," at end
#define TitleObject MUI_NewObject(MUIC_Title
it works.

comment:8 Changed 4 years ago by Thore Böckelmann

In 4578:

  • mui.h: removed superflous trailing comma. This refs #173.
Note: See TracTickets for help on using tickets.