Patch level : 10.0
Files correlati : fe0.exe Ricompilazione Demo : [ ] Commento : Aggiunto identificatore bottoni Copy & Paste git-svn-id: svn://10.65.10.50/branches/R_10_00@22525 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
c6b9f7d8db
commit
3ff0294297
@ -46,6 +46,8 @@
|
|||||||
#define DLG_PACKTMAG 42 /* TAG del bottone Pacco a magazzino */
|
#define DLG_PACKTMAG 42 /* TAG del bottone Pacco a magazzino */
|
||||||
#define DLG_SORT 43 /* TAG del bottone Sort */
|
#define DLG_SORT 43 /* TAG del bottone Sort */
|
||||||
#define DLG_BARCODE 44 /* TAG del bottone codice a barre */
|
#define DLG_BARCODE 44 /* TAG del bottone codice a barre */
|
||||||
|
#define DLG_COPY 45 /* TAG del bottone copia */
|
||||||
|
#define DLG_PASTE 46 /* TAG del bottone incolla */
|
||||||
|
|
||||||
#define DLG_USER 100 /* TAG del primo controllo definito dall'utente */
|
#define DLG_USER 100 /* TAG del primo controllo definito dall'utente */
|
||||||
|
|
||||||
|
@ -693,7 +693,7 @@ void TRecordset::parsed_text(TString& sql) const
|
|||||||
|
|
||||||
bool ask_variable(const char* name, TVariant& var)
|
bool ask_variable(const char* name, TVariant& var)
|
||||||
{
|
{
|
||||||
TMask m(TR("Richiesta variabile"), 1, 52, 4);
|
TMask m(TR("Richiesta variabile"), 1, 52, 5);
|
||||||
m.add_static(-1, 0, name, 1, 0);
|
m.add_static(-1, 0, name, 1, 0);
|
||||||
m.add_string(101, 0, "", 1, 1, 80, "", 50);
|
m.add_string(101, 0, "", 1, 1, 80, "", 50);
|
||||||
m.add_button(DLG_OK, 0, "", -12, -1, 10, 2);
|
m.add_button(DLG_OK, 0, "", -12, -1, 10, 2);
|
||||||
@ -703,6 +703,8 @@ bool ask_variable(const char* name, TVariant& var)
|
|||||||
if (ok)
|
if (ok)
|
||||||
{
|
{
|
||||||
const TString& str = m.get(101);
|
const TString& str = m.get(101);
|
||||||
|
if (str.match("??-??-2???"))
|
||||||
|
var = TDate(str); else
|
||||||
if (is_numeric(str))
|
if (is_numeric(str))
|
||||||
var = real(str);
|
var = real(str);
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user