DAS  3.1.6 - 18/09/2017
Functions | Variables
DOASTools1.h File Reference

Go to the source code of this file.

Functions

MOBJECT MDCreate_shell000 (void)
 

Variables

MOBJECT dmenu
 
MENU_ITEM id_menu
 
MOBJECT menu
 
MOBJECT mnuhlp
 
MOBJECT mnurtf
 
MOBJECT mnuutil
 

Function Documentation

§ MDCreate_shell000()

MOBJECT MDCreate_shell000 ( void  )

Definition at line 70 of file REQ.C.

References HELV_MEDIUM, LARGE_FONT, MCreateLabel(), MCreatePButton(), MCreateRowForm(), MCreateShell(), MDQuitCB(), MObjectSetBackgroundRGB(), MObjectSetFont(), MObjectSetForegroundRGB(), MObjectSetResize(), MPButtonSetCallback(), MShellRealize(), MShellSetWMCloseCallback(), and True.

71 {
72  MOBJECT _dshell000;
73  MOBJECT _drowform000;
74  MOBJECT _dpbutton000;
75  MOBJECT dlbl;
76  _dshell000 = MCreateShell("", 0);
77  MObjectSetForegroundRGB(_dshell000, 96, 133, 149);
78  MObjectSetBackgroundRGB(_dshell000, 96, 133, 149);
79 
80  _drowform000 = MCreateRowForm(_dshell000);
81  MObjectSetBackgroundRGB(_drowform000, 96, 133, 149);
82  MObjectSetResize(_drowform000, True, True);
83 
84  dlbl = MCreateLabel(_drowform000, "Questa e' una versione SHAREWARE del Software LISDAS,\nquindi NON tutte le funzioni sono attivate.\nPer ottenere la versione completa \nprovvedere all'avvio della pratica per un contratto \nd'opera a favore di DanBo.\nPensaci bene prima di premere CANCEL\n Le conseguenze potrebbero essere terribili!!!!", HELV_MEDIUM);
85  MObjectSetForegroundRGB(dlbl, 255, 255, 255);
86  MObjectSetBackgroundRGB(dlbl, 0, 0, 0);
88 
89  _dpbutton000 = MCreatePButton(_drowform000, "OK - Sono d'accordo", HELV_MEDIUM);
90  MObjectSetBackgroundRGB(_dpbutton000, 160, 112, 112);
91  MPButtonSetCallback(_dpbutton000, MDQuitCB, (void *) 0L);
92 
93  _dpbutton000 = MCreatePButton(_drowform000, "Cancel - Non lo faro' mai!!!", HELV_MEDIUM);
94  MObjectSetBackgroundRGB(_dpbutton000, 160, 112, 112);
95  MPButtonSetCallback(_dpbutton000, MDQuitCB, (void *) 1L);
96 
97 
98  MShellRealize(_dshell000);
99  MShellSetWMCloseCallback(_dshell000, MDQuitCB, 0L);
100 
101  return 0;
102 }
void MObjectSetBackgroundRGB(MOBJECT obj, int r, int g, int b)
void MShellRealize(MOBJECT obj)
MOBJECT MCreateLabel(MOBJECT parent, const char *text, MTFont font)
void MObjectSetResize(MOBJECT obj, int resize_w, int resize_h)
#define LARGE_FONT
Definition: Mguidefs.h:895
MOBJECT MCreatePButton(MOBJECT parent, const char *text, MTFont font)
MOBJECT MCreateShell(const char *title, int flags)
void MDQuitCB(MOBJECT shell, void *od, void *ad)
callback for closing a generic MGUI shell
Definition: REQ.C:40
void MPButtonSetCallback(MOBJECT button, MGUI_CB cb, void *data)
void * MOBJECT
Definition: Mguidefs.h:192
#define True
Definition: Mguidefs.h:235
void MObjectSetFont(MOBJECT obj, MTFont font, int resize)
#define HELV_MEDIUM
Definition: Mguidefs.h:882
void MObjectSetForegroundRGB(MOBJECT obj, int r, int g, int b)
void MShellSetWMCloseCallback(MOBJECT p, WM_CLOSE_CB cb, void *a_data)
MOBJECT MCreateRowForm(MOBJECT parent)
+ Here is the call graph for this function:

Variable Documentation

§ dmenu

MOBJECT dmenu

Referenced by ViewPlot().

§ id_menu

MENU_ITEM id_menu

Definition at line 8 of file DOASTools1.h.

§ menu

MOBJECT menu

Definition at line 9 of file DOASTools1.h.

Referenced by MDCreateDOAS_MainSh(), and ViewPlot().

§ mnuhlp

MOBJECT mnuhlp

§ mnurtf

MOBJECT mnurtf

§ mnuutil

MOBJECT mnuutil
______________________________________________________________________________________
Generated on Mon Sep 18 2017 11:46:06 for DAS - Rel. 3.1.6 - 18/09/2017.