My favorites | Sign in
Project Home Downloads Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#include <CtrlLib/CtrlLib.h>

NAMESPACE_UPP

LineEdit *dlog = NULL;
int dlev = 0;

static int pos = 0;

void LogCon(const char *fmt, ...)
{
char buffer[1024];
va_list argptr;
va_start(argptr, fmt);
vsprintf(buffer, fmt, argptr);
va_end(argptr);
LOG(buffer);
}

void LogCon(int level, const char *fmt, ...)
{
char buffer[1024];
va_list argptr;
va_start(argptr, fmt);
vsprintf(buffer, fmt, argptr);
va_end(argptr);
LOG(buffer);
}

void LogGui(const char *fmt, ...)
{
if(!dlog)
return;

pos = dlog->GetLength();
char buffer[1024];
va_list argptr;
va_start(argptr, fmt);
int l = vsprintf(buffer, fmt, argptr);
va_end(argptr);

dlog->Insert(pos, buffer);
pos += l;
dlog->Insert(pos, "\n");
pos++;
dlog->SetCursor(pos);
}

void LogGui(int level, const char *fmt, ...)
{
if(!dlog || level < dlev)
return;

pos = dlog->GetLength();
char buffer[1024];
va_list argptr;
va_start(argptr, fmt);
int l = vsprintf(buffer, fmt, argptr);
va_end(argptr);

dlog->Insert(pos, buffer);
pos += l;
dlog->Insert(pos, "\n");
pos++;
dlog->SetCursor(pos);
}

END_UPP_NAMESPACE

Change log

r4454 by cxl on Jan 21, 2012   Diff
*GridCtrl: StdGridDisplay now function
instead of global variable (plus some
warning removed)
Go to: 
Project members, sign in to write a code review

Older revisions

r2673 by unodgs on Sep 8, 2010   Diff
*GridCtrlTest: Few small fixes..
r740 by unodgs on Jan 9, 2009   Diff
GridCtrl and DropGrid fixes..
r622 by cxl on Nov 7, 2008   Diff
LoadFrom/StoreTo fixed to work with
operator%, fix in Format, usvn now
keeps commit messages if no commit
performed
All revisions of this file

File info

Size: 1090 bytes, 68 lines

File properties

svn:eol-style
native
Powered by Google Project Hosting