TUI generation library for C on Windows.
This repository has been archived on 2021-03-14. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Kai S. K. Engelbart b46ce7a4ea
Added instructions for linking the library to an existing project
2020-01-09 08:32:04 +01:00
.gitignore Changed cpp files to c files, removed unnecessary file 2019-12-21 20:13:38 +01:00
LICENSE Initial commit 2019-12-19 14:43:20 +01:00
MenuLib.sln Removed dependency to local testing project 2019-12-21 20:19:42 +01:00
MenuLib.vcxproj Changed cpp files to c files, removed unnecessary file 2019-12-21 20:13:38 +01:00
MenuLib.vcxproj.filters Changed cpp files to c files, removed unnecessary file 2019-12-21 20:13:38 +01:00
MenuLib.vcxproj.user Added existing project 2019-12-19 14:51:51 +01:00
README.md Added instructions for linking the library to an existing project 2020-01-09 08:32:04 +01:00
framework.h Added existing project 2019-12-19 14:51:51 +01:00
menu.c Merge pull request #3 from CyB3RC0nN0R/dev_Simon 2019-12-21 20:15:59 +01:00
menu.h - Added different style options 2019-12-21 19:53:19 +01:00
pch.c Changed cpp files to c files, removed unnecessary file 2019-12-21 20:13:38 +01:00
pch.h Added existing project 2019-12-19 14:51:51 +01:00

README.md

MenuLib

CUI generation library for C on Windows

Einbindung in eine Visual Studio Projektmappe:

Repository klonen und das Projekt "MenuLib" zur Projektmappe hinzufügen:

Rechtsklick auf Projektmappe -> Hinzufügen -> Vorhandenes Projekt...

Verweis auf die Bibliothek im Aufruferprojekt anlegen:

Rechtsklick auf Aufruferprojekt -> Hinzufügen -> Verweis... Haken bei "MenuLib" setzen.

Zusätzliches Includeverzeichnis hinzufügen:

Rechtsklick auf Aufruferprojekt -> Eigenschaften -> Linked -> Eingabe -> Zusätzliche Abhängigkeiten -> Bearbeiten... Ordner, der "menu.h" enthält, auswählen

Headerdatei einbinden:

Zeile #include "menu.h" zur Quelldatei hinzufügen

Anwendungsbeispiel

struct MenuItem items[] = {
		{"Euklidscher Algorithmus",	'1', (void*)&euklid},
		{"Gerstenkorn",			'2', (void*)&gerste},
		{"Osterdatum ausrechnen",	'3', (void*)&ostern},
		{"ASCII Tabelle",		'4', (void*)&ascii},
		{"DB-Pruefziffer",		'5', (void*)&db},
		{"Modulo 11",			'6', (void*)&mod11},
		{"BLANK",			NULL, (void*)NULL},
		{"Namen TEST",			'a', (void*)&namen},
		{"Strings",			'b', (void*)&strHeader},
		{"BLANK",			NULL, (void*)NULL},
		{"Exit",			'q', (void*)&exit}
	};
	show_menu(sizeof(items) / sizeof(struct MenuItem), items, "Vorlesungsaufgaben", true, true, NO_BORDER);