Programmi demo
Inserita maschera di avvertimento Disabilitato il cambio ditta git-svn-id: svn://10.65.10.50/trunk@5686 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
909769349e
commit
202b3aea6c
23
ba/ba0.cpp
23
ba/ba0.cpp
@ -590,7 +590,11 @@ bool TMenuitem::perform_program() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (_firm && main_app().get_firm() == 0)
|
if (_firm && main_app().get_firm() == 0)
|
||||||
|
#ifdef _DEMO_
|
||||||
|
ok = main_app().set_firm(1);
|
||||||
|
#else
|
||||||
ok = main_app().set_firm();
|
ok = main_app().set_firm();
|
||||||
|
#endif
|
||||||
|
|
||||||
if (ok)
|
if (ok)
|
||||||
{
|
{
|
||||||
@ -792,8 +796,12 @@ bool TMenu::jumpto(TSubmenu* next)
|
|||||||
{
|
{
|
||||||
if (next->query_firm())
|
if (next->query_firm())
|
||||||
{
|
{
|
||||||
|
#ifdef _DEMO_
|
||||||
|
main_app().set_firm(1);
|
||||||
|
#else
|
||||||
if (!main_app().set_firm())
|
if (!main_app().set_firm())
|
||||||
next = NULL;
|
next = NULL;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
if (next)
|
if (next)
|
||||||
{
|
{
|
||||||
@ -1341,6 +1349,21 @@ bool TMenu_application::create()
|
|||||||
{
|
{
|
||||||
TApplication::create();
|
TApplication::create();
|
||||||
|
|
||||||
|
#ifdef _DEMO_
|
||||||
|
{
|
||||||
|
TMask w("Attenzione", 1, 80, 14);
|
||||||
|
|
||||||
|
w.add_static(DLG_NULL, 0 ,"@bAttenzione" , 35 , 1);
|
||||||
|
w.add_static(DLG_NULL, 0 ,"@bQuesto programma e' in versione dimostrativa." , 1 , 3);
|
||||||
|
w.add_static(DLG_NULL, 0 ,"@bNon si possono memorizzare date posteriori al 1992" , 1 , 5);
|
||||||
|
w.add_static(DLG_NULL, 0 ,"@bcon mese successivo a Marzo." , 1 , 7);
|
||||||
|
w.add_static(DLG_NULL, 0 ,"@bIl programma funziona per due ore ogni giorno." , 1 , 9);
|
||||||
|
w.add_static(DLG_NULL, 0 ,"@bIl numero di registrazioni e' stato limitato a circa 1000." , 1 , 11);
|
||||||
|
w.add_button(DLG_OK, 0, "", -11, -1, 10, 2);
|
||||||
|
w.run();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!check_user())
|
if (!check_user())
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user