|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T m
Length: 973 (0x3cd) Types: TextFile Names: »msgsw.c«
└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987 └─⟦this⟧ »EUUGD18/Sun/Mines/msgsw.c«
/* * message subwindow handling * * Copyright (c) 1987 Tom Anderson; 20831 Frank Waters Road; * Stanwood, WA 98282. All rights reserved. */ static char copyright[] = "Copyright 1987 Tom Anderson"; #include <stdio.h> #include <ctype.h> #include <suntool/tool_hs.h> #include <suntool/panel.h> #include <strings.h> #include "mines.h" struct toolsw * MessageSW; Panel MessagePanel; Panel_item MessageItem; /* * set up the message subwindow */ void InitMsgSW() { if ((MessageSW = panel_create(MinesTool, 0)) == NULL) { fprintf(stderr, "Can't create message panel\n"); exit(1); } MessagePanel = MessageSW->ts_data; /* create the message panel item */ MessageItem = panel_create_item(MessagePanel, PANEL_MESSAGE, PANEL_LABEL_STRING, MineWarningMessage(), PANEL_SHOW_ITEM, TRUE, 0); panel_fit_height(MessagePanel); } void Message(cp) char * cp; { panel_set(MessageItem, PANEL_LABEL_STRING, cp, PANEL_SHOW_ITEM, TRUE, 0); }