Priest of the Order of the Butterfly
Posts: 543 from 2007/8/6
From: Pending...
How do you add tabs to strings for MUI? C style tabs ( \t ) don't do anything and \033t does not seem to be valid.
Anyway, I experimented and came up with this -
http://postimg.org/image/67j46xfnx/
Code:
/* Compile thusly:
> vc +morphos -o spanning_columns spanning_columns.c -lauto -lamiga
*/
#include <clib/alib_protos.h>
#include <proto/exec.h>
#include <proto/intuition.h>
#include <proto/muimaster.h>
Object *App, *Win;
Object* build_gui(void)
{
return(MUI_NewObject(MUIC_Application, MUIA_Application_Window,
(ULONG)(Win = MUI_NewObject(MUIC_Window,
MUIA_Window_Title, (ULONG)"spanning columns",
MUIA_Window_RootObject, MUI_NewObject(MUIC_Group, /* defaults to vertical display of Child entries */
MUIA_Group_Child, MUI_NewObject(MUIC_Group, MUIA_Group_Horiz, TRUE, /* contains three vertical groups */
/* each containing a MUIC_Text object & MUIC_Group object */
MUIA_Group_Child, MUI_NewObject(MUIC_Group, MUIA_Frame, MUIV_Frame_Group, /* vertical group 1 */
MUIA_Group_Child, MUI_NewObject(MUIC_Text, MUIA_Text_Contents, (ULONG)"