cgui-develop Mailing List for CGUI - a gui lib for multiplatform (Page 51)
Brought to you by:
chrisan,
rasmusmyklebust
You can subscribe to this list here.
| 2003 |
Jan
|
Feb
|
Mar
|
Apr
(43) |
May
(9) |
Jun
(35) |
Jul
|
Aug
|
Sep
(3) |
Oct
(2) |
Nov
(2) |
Dec
(9) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2004 |
Jan
(26) |
Feb
(12) |
Mar
(17) |
Apr
(4) |
May
(157) |
Jun
(19) |
Jul
(21) |
Aug
(1) |
Sep
(36) |
Oct
(10) |
Nov
(19) |
Dec
(21) |
| 2005 |
Jan
(10) |
Feb
(20) |
Mar
(8) |
Apr
(30) |
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
(42) |
Oct
(73) |
Nov
(38) |
Dec
(13) |
| 2006 |
Jan
|
Feb
|
Mar
(57) |
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(11) |
| 2007 |
Jan
(8) |
Feb
|
Mar
|
Apr
(213) |
May
|
Jun
|
Jul
(70) |
Aug
(53) |
Sep
(18) |
Oct
(17) |
Nov
(12) |
Dec
(11) |
| 2008 |
Jan
|
Feb
|
Mar
|
Apr
(12) |
May
|
Jun
(28) |
Jul
(40) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2009 |
Jan
|
Feb
(7) |
Mar
|
Apr
(3) |
May
|
Jun
|
Jul
(6) |
Aug
(5) |
Sep
(3) |
Oct
|
Nov
(25) |
Dec
(12) |
| 2010 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(6) |
|
From: SourceForge.net <no...@so...> - 2003-05-24 20:13:48
|
Bugs item #742849, was opened at 2003-05-24 20:07 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=542642&aid=742849&group_id=75005 Category: Linux Group: None Status: Open Resolution: None Priority: 6 Submitted By: Christer Sandberg (chrisan) Assigned to: Christer Sandberg (chrisan) Summary: Inresponsible mouse Initial Comment: Sometimes the mouse does not respond to movements very well. Noticed on RH 8.0 (and possibly some windows systems? but it definitely works fine on most windows systems). It ssems to get worse on whe the system has not rebooted since long ago. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=542642&aid=742849&group_id=75005 |
|
From: <ch...@us...> - 2003-05-23 12:38:40
|
Update of /cvsroot/cgui/cgui/misc In directory sc8-pr-cvs1:/tmp/cvs-serv25739/misc Modified Files: makefile.all makefile.uni Log Message: Improvements of the Linux build Index: makefile.all =================================================================== RCS file: /cvsroot/cgui/cgui/misc/makefile.all,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** makefile.all 4 Mar 2003 13:19:54 -0000 1.4 --- makefile.all 23 May 2003 12:38:37 -0000 1.5 *************** *** 433,439 **** endif ! dat: $(CGUI_DAT_C_X) $(CGUI_FONTS_C_X) $(CGUI_ICONS_C_X) $(CGUI_CURSORS_C_X) ! $(CGUI_DAT_C_X): $(CGUI_DAT_X) -$(ALLEGRO_DAT2C) $(CGUI_DAT) -o $(CGUI_DAT_C) -h $(CGUI_DAT_H) -p cgui -g -n labels --- 433,439 ---- endif ! dat: $(CGUI_DAT_C_X) $(CGUI_DAT_H_X) $(CGUI_FONTS_C_X) $(CGUI_FONTS_H_X) $(CGUI_ICONS_C_X) $(CGUI_ICONS_H_X) $(CGUI_CURSORS_C_X) $(CGUI_CURSORS_H_X) ! $(CGUI_DAT_C_X) $(CGUI_DAT_H_X): $(CGUI_DAT_X) -$(ALLEGRO_DAT2C) $(CGUI_DAT) -o $(CGUI_DAT_C) -h $(CGUI_DAT_H) -p cgui -g -n labels *************** *** 443,455 **** #$(CGUI_LABELS_X) $(TEXT_HEADERS_X): $(TEXT_SOURCES_X) $(MKTEXT_X) $(CGUI_LABELS_X) $(TEXT_HEADERS_X): $(TEXT_SOURCES_X) ! $(MKTEXT) -o$(CGUI_LABELS) $(TEXT_SOURCES) ! $(CGUI_FONTS_C_X): $(CGUI_FONTS_X) $(CGUI_DAT2C_X) -$(CGUI_DAT2C) $(CGUI_FONTS) -o $(CGUI_FONTS_C) -h $(CGUI_FONTS_H) -p _cgui -n fonts_datafile ! $(CGUI_ICONS_C_X): $(CGUI_ICONS_X) -$(ALLEGRO_DAT2C) $(CGUI_ICONS) -o $(CGUI_ICONS_C) -h $(CGUI_ICONS_H) -p cgui -g -n icons ! $(CGUI_CURSORS_C_X): $(CGUI_CURSORS_X) -$(ALLEGRO_DAT2C) $(CGUI_CURSORS) -o $(CGUI_CURSORS_C) -h $(CGUI_CURSORS_H) -p curs -g -n cursors --- 443,455 ---- #$(CGUI_LABELS_X) $(TEXT_HEADERS_X): $(TEXT_SOURCES_X) $(MKTEXT_X) $(CGUI_LABELS_X) $(TEXT_HEADERS_X): $(TEXT_SOURCES_X) ! -$(MKTEXT) -o$(CGUI_LABELS) $(TEXT_SOURCES) ! $(CGUI_FONTS_C_X) $(CGUI_FONTS_H_X): $(CGUI_FONTS_X) $(CGUI_DAT2C_X) -$(CGUI_DAT2C) $(CGUI_FONTS) -o $(CGUI_FONTS_C) -h $(CGUI_FONTS_H) -p _cgui -n fonts_datafile ! $(CGUI_ICONS_C_X) $(CGUI_ICONS_H_X): $(CGUI_ICONS_X) -$(ALLEGRO_DAT2C) $(CGUI_ICONS) -o $(CGUI_ICONS_C) -h $(CGUI_ICONS_H) -p cgui -g -n icons ! $(CGUI_CURSORS_C_X) $(CGUI_CURSORS_H_X): $(CGUI_CURSORS_X) -$(ALLEGRO_DAT2C) $(CGUI_CURSORS) -o $(CGUI_CURSORS_C) -h $(CGUI_CURSORS_H) -p curs -g -n cursors Index: makefile.uni =================================================================== RCS file: /cvsroot/cgui/cgui/misc/makefile.uni,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** makefile.uni 2 Mar 2003 17:23:26 -0000 1.1.1.1 --- makefile.uni 23 May 2003 12:38:37 -0000 1.2 *************** *** 213,217 **** LINK_OBJ_TO_EXE_NOLIB_DEPS = define LINK_OBJ_TO_EXE_NOLIB ! gcc $(LFLAGS) -o $@ $< endef --- 213,217 ---- LINK_OBJ_TO_EXE_NOLIB_DEPS = define LINK_OBJ_TO_EXE_NOLIB ! gcc $(LFLAGS) -o $@ $< $(LIB_FLAGS) endef *************** *** 221,227 **** endef LINK_ALL_OBJ_TO_EXE_NOLIB_DEPS = define LINK_ALL_OBJ_TO_EXE_NOLIB ! gcc $(LFLAGS) -o $@ $^ endef --- 221,228 ---- endef + LINK_ALL_OBJ_TO_EXE_NOLIB_DEPS = define LINK_ALL_OBJ_TO_EXE_NOLIB ! gcc $(LFLAGS) -o $@ $^ $(LIB_FLAGS) endef *************** *** 241,245 **** LINK_OBJ_TO_EXE_NOLIB_DEPS = define LINK_OBJ_TO_EXE_NOLIB ! gcc $(LFLAGS) -o $@ $< endef --- 242,246 ---- LINK_OBJ_TO_EXE_NOLIB_DEPS = define LINK_OBJ_TO_EXE_NOLIB ! gcc $(LFLAGS) -o $@ $< $(LIB_FLAGS) endef *************** *** 251,255 **** LINK_ALL_OBJ_TO_EXE_NOLIB_DEPS = define LINK_ALL_OBJ_TO_EXE_NOLIB ! gcc $(LFLAGS) -o $@ $^ endef --- 252,256 ---- LINK_ALL_OBJ_TO_EXE_NOLIB_DEPS = define LINK_ALL_OBJ_TO_EXE_NOLIB ! gcc $(LFLAGS) -o $@ $^ $(LIB_FLAGS) endef |
|
From: <ch...@us...> - 2003-05-02 07:43:34
|
Update of /cvsroot/cgui/cgui/src
In directory sc8-pr-cvs1:/tmp/cvs-serv11411/src
Modified Files:
list.c node.c node.h obbutton.c obbutton.h obcheck.c obcheck.h
obicon.c object.c object.h obradio.c obradio.h obtag.c obtag.h
obtext.c obtext.h
Log Message:
Implemented a few things regarding feature request 723573 "Adding skinnability".
- The possibility of setting a specific container background.
- The possibility of application specific drawing routine for objects 'SetObjectViewer'
- The possibility of application specific drawing routine for frames of object types 'SetObjectTypeFrame'
Index: list.c
===================================================================
RCS file: /cvsroot/cgui/cgui/src/list.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** list.c 2 Mar 2003 17:45:17 -0000 1.1
--- list.c 2 May 2003 07:43:30 -0000 1.2
***************
*** 2033,2037 ****
b->x1 = b->y1 = 0;
b->x2 = *hdr->w - 1;
! b->y2 = text_height(b->font) + BUTTONBORDER * 2;
}
--- 2033,2037 ----
b->x1 = b->y1 = 0;
b->x2 = *hdr->w - 1;
! b->y2 = text_height(b->font) + b->tf->framew * 2;
}
***************
*** 2052,2060 ****
if (b->state == MS_FIRST_DOWN) {
ButtonInFrame(b->parent->bmp, b->x1, b->y1, b->x2, b->y2);
! FillText(b, 1);
ButtonTextL(1, 1, b, *hdr->label);
} else {
ButtonFrame(b->parent->bmp, b->x1, b->y1, b->x2, b->y2, 0);
! FillText(b, 0);
ButtonTextL(0, 0, b, *hdr->label);
}
--- 2052,2060 ----
if (b->state == MS_FIRST_DOWN) {
ButtonInFrame(b->parent->bmp, b->x1, b->y1, b->x2, b->y2);
! FillTextBackground(b);
ButtonTextL(1, 1, b, *hdr->label);
} else {
ButtonFrame(b->parent->bmp, b->x1, b->y1, b->x2, b->y2, 0);
! FillTextBackground(b);
ButtonTextL(0, 0, b, *hdr->label);
}
Index: node.c
===================================================================
RCS file: /cvsroot/cgui/cgui/src/node.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** node.c 2 Mar 2003 17:45:17 -0000 1.1
--- node.c 2 May 2003 07:43:30 -0000 1.2
***************
*** 293,304 ****
t_node *nd;
t_object *b;
nd = b0->node;
if (nd->bmp) {
nd->Draw(b0); /* this may typically draw some kind of frame */
for (b = nd->firstob; b; b = b->next)
if (!IsWindow(b))
b->tf->Draw(b);
- DrawRectangles(nd); /* always fill unused space */
}
}
--- 293,310 ----
t_node *nd;
t_object *b;
+ int x,y;
nd = b0->node;
if (nd->bmp) {
+ if (nd->appbg) {
+ for (y=0; y<nd->bmp->h; y+=nd->appbg->h)
+ for (x=0; x<nd->bmp->w; x+=nd->appbg->w)
+ blit(nd->appbg, nd->bmp, 0, 0, x, y, nd->appbg->w, nd->appbg->h);
+ } else
+ DrawRectangles(nd); /* fill unused space */
nd->Draw(b0); /* this may typically draw some kind of frame */
for (b = nd->firstob; b; b = b->next)
if (!IsWindow(b))
b->tf->Draw(b);
}
}
***************
*** 650,651 ****
--- 656,669 ----
opwin->win->opnode = b->node;
}
+
+ extern int SetContainerBackground(int id, struct BITMAP *bmp)
+ {
+ t_object *b = GetObject(id);
+
+ if (b && b->node) {
+ b->node->appbg = bmp;
+ return 1;
+ }
+ return 0;
+ }
+
Index: node.h
===================================================================
RCS file: /cvsroot/cgui/cgui/src/node.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** node.h 2 Mar 2003 17:24:24 -0000 1.1.1.1
--- node.h 2 May 2003 07:43:30 -0000 1.2
***************
*** 63,66 ****
--- 63,67 ----
struct t_image *image; /* A list of images associated to this node, to be
used by any descendant */
+ struct BITMAP *appbg; /* A bitmap for application specific background */
} t_node;
Index: obbutton.c
===================================================================
RCS file: /cvsroot/cgui/cgui/src/obbutton.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** obbutton.c 2 Mar 2003 17:45:17 -0000 1.1
--- obbutton.c 2 May 2003 07:43:30 -0000 1.2
***************
*** 9,15 ****
--- 9,19 ----
#include "object.h"
#include "node.h"
+ #include "cgui/mem.h"
#include "window.h"
#include "obbutton.h"
#include "mstates.h"
+ #include "id.h"
+
+ static t_typefun *current_type;
extern void DisplayBitmap(t_object *b, int disp)
***************
*** 20,29 ****
im = b->im;
if (im && ((b->view & SV_HIDE_ICON)==0 || b->label==NULL)) {
! space = b->x2 - b->x1 + 1 - BUTTONBORDER * 2 - im->w;
! x = b->x1 + BUTTONBORDER + disp + space / 2;
! y = b->y1 + BUTTONBORDER + disp;
DrawImage(im, b->parent->bmp, x, y);
if (disp)
! hline(b->parent->bmp, b->x1 + 2, b->y1 + 2, b->x2 - 1, cgui_gray);
}
}
--- 24,33 ----
im = b->im;
if (im && ((b->view & SV_HIDE_ICON)==0 || b->label==NULL)) {
! space = b->x2 - b->x1 + 1 - b->tf->framew * 2 - im->w;
! x = b->x1 + b->tf->framew + disp + space / 2;
! y = b->y1 + b->tf->framew + disp;
DrawImage(im, b->parent->bmp, x, y);
if (disp)
! hline(b->parent->bmp, b->x1 + b->tf->framew, b->y1 + b->tf->framew, b->x2 - b->tf->framew, cgui_gray);
}
}
***************
*** 55,62 ****
}
y = TEXTY(b, dy);
! if (x < b->x1 + 2 || end > b->x2 - 2) {
! x = b->x1 + 2 + dx;
clip_x2 = bmp->cr;
! set_clip(bmp, bmp->cl, bmp->ct, b->x2 - 2, bmp->cb);
textout(bmp, b->font, label, x, y, col);
set_clip(bmp, bmp->cl, bmp->ct, clip_x2, bmp->cb);
--- 59,66 ----
}
y = TEXTY(b, dy);
! if (x < b->x1 + b->tf->framew || end > b->x2 - b->tf->framew) {
! x = b->x1 + b->tf->framew + dx;
clip_x2 = bmp->cr;
! set_clip(bmp, bmp->cl, bmp->ct, b->x2 - b->tf->framew, bmp->cb);
textout(bmp, b->font, label, x, y, col);
set_clip(bmp, bmp->cl, bmp->ct, clip_x2, bmp->cb);
***************
*** 90,97 ****
width = x2 - x1 + 1;
dy = text_height(b->font) + 1; /* extra pixel for underlining */
! y = y1 + BUTTONBORDER;
if (b->im && (b->view & SV_HIDE_ICON) == 0)
y += b->im->h;
! height = y2 - y - BUTTONBORDER + 1;
for (tag = b->label, n = 0; *tag; tag += strlen(tag) + 1)
n++;
--- 94,101 ----
width = x2 - x1 + 1;
dy = text_height(b->font) + 1; /* extra pixel for underlining */
! y = y1 + b->tf->framew;
if (b->im && (b->view & SV_HIDE_ICON) == 0)
y += b->im->h;
! height = y2 - y - b->tf->framew + 1;
for (tag = b->label, n = 0; *tag; tag += strlen(tag) + 1)
n++;
***************
*** 100,104 ****
for (tag = b->label, i = 0; *tag; tag += strlen(tag) + 1, i++, y += dy) {
len = text_length(b->font, tag);
! if (len > width - BUTTONBORDER * 2) {
x = TEXTOFFSETX + x1 + disp; /* leftjustify */
} else {
--- 104,108 ----
for (tag = b->label, i = 0; *tag; tag += strlen(tag) + 1, i++, y += dy) {
len = text_length(b->font, tag);
! if (len > width - b->tf->framew * 2) {
x = TEXTOFFSETX + x1 + disp; /* leftjustify */
} else {
***************
*** 125,129 ****
--- 129,135 ----
hline(bmp, x1, y2, x2, cgui_white);
+ hline(bmp, x1 + 2, y2 - 1, x2 - 1, cgui_gray);
vline(bmp, x2, y1 + 1, y2 - 1, cgui_white);
+ vline(bmp, x2 - 1, y1 + 2, y2 - 2, cgui_gray);
}
***************
*** 157,173 ****
static void DrawButton(t_object *b)
{
if (b->parent->bmp == NULL)
return;
! if (b->state == MS_FIRST_DOWN) {
! ButtonInFrame(b->parent->bmp, b->x1, b->y1, b->x2, b->y2);
! FillText(b, 1);
! ButtonText(1, b->x1, b->y1, b->x2, b->y2, b, b->parent->bmp);
! DisplayBitmap(b, 1);
} else {
! ButtonFrame(b->parent->bmp, b->x1, b->y1, b->x2, b->y2, b->hasfocus);
! FillText(b, 0);
! ButtonText(0, b->x1, b->y1, b->x2, b->y2, b, b->parent->bmp);
! DisplayBitmap(b, 0);
}
}
--- 163,216 ----
static void DrawButton(t_object *b)
{
+ BITMAP *bmp;
+ int flags, offs;
+
if (b->parent->bmp == NULL)
return;
! if (b->AppDraw) {
! ApplicatioDrawWrapper(b);
! return;
! }
! if (b->tf->DrawFrame == NULL) {
! if (b->state == MS_FIRST_DOWN)
! ButtonInFrame(b->parent->bmp, b->x1, b->y1, b->x2, b->y2);
! else
! ButtonFrame(b->parent->bmp, b->x1, b->y1, b->x2, b->y2, b->hasfocus);
} else {
! if (b->state == MS_FIRST_DOWN)
! flags = CGUI_VIEWER_DOWN;
! else
! flags = CGUI_VIEWER_UP;
! if (b->hasfocus)
! flags |= CGUI_VIEWER_FOCUS;
! bmp = create_sub_bitmap(b->parent->bmp, b->x1, b->y1, b->x2-b->x1+1, b->y2-b->y1+1);
! if (bmp) {
! b->tf->DrawFrame(bmp, flags);
! destroy_bitmap(bmp);
! }
}
+ offs = b->state == MS_FIRST_DOWN;
+ FillTextBackground(b);
+ ButtonText(offs, b->x1, b->y1, b->x2, b->y2, b, b->parent->bmp);
+ DisplayBitmap(b, offs);
+ }
+
+ static t_typefun *SetTypeProperties(void (*Frame)(BITMAP*, int), int w)
+ {
+ t_typefun *tf;
+
+ tf = GetMem(t_typefun, 1);
+ *tf = default_type_functions;
+ tf->Draw = DrawButton;
+ tf->SetSize = SetPushButtonSize;
+ tf->DrawFrame = Frame;
+ tf->framew = w;
+ HookExit(0, MemoryFree, tf);
+ return tf;
+ }
+
+ extern void ModifyButtonFrame(void (*DrawFrame)(BITMAP*, int), int w)
+ {
+ current_type = SetTypeProperties(DrawFrame, w);
}
***************
*** 179,182 ****
--- 222,230 ----
if (b->dire)
b->x1 = b->y1 = 0;
+ if (b->AppDraw) {
+ b->x2 = b->x1 + b->appw - 1;
+ b->y2 = b->y1 + b->apph - 1;
+ return;
+ }
if ((b->view & SV_HIDE_LABEL) == 0 && b->label) {
for (tag = b->label; *tag; tag += strlen(tag) + 1) {
***************
*** 192,196 ****
imagew = b->im->w;
}
! b->x2 = b->x1 - 1 + b->rex + BUTTONBORDER * 2 + 6;
b->x2 += MAX(textw, imagew);
--- 240,244 ----
imagew = b->im->w;
}
! b->x2 = b->x1 - 1 + b->rex + b->tf->framew * 2 + 6;
b->x2 += MAX(textw, imagew);
***************
*** 200,204 ****
b->y2 = b->y1 + _cgui_button1_height - 1 + b->rey;
} else {
! b->y2 = b->y1 - 1 + b->rey + BUTTONBORDER * 2;
b->y2 += texth + imageh;
}
--- 248,252 ----
b->y2 = b->y1 + _cgui_button1_height - 1 + b->rey;
} else {
! b->y2 = b->y1 - 1 + b->rey + b->tf->framew * 2;
b->y2 += texth + imageh;
}
***************
*** 209,224 ****
{
t_object *b;
- static t_typefun tf;
- static int virgin = 1;
! if (virgin) {
! virgin = 0;
! tf = default_type_functions;
! tf.Draw = DrawButton;
! tf.SetSize = SetPushButtonSize;
! }
b = CreateObject(x, y, opwin->win->opnode);
InsertLabel(b, label);
! b->tf = &tf;
b->appdata = data;
b->Action = cb;
--- 257,266 ----
{
t_object *b;
! if (current_type==NULL)
! current_type = SetTypeProperties(NULL, 2);
b = CreateObject(x, y, opwin->win->opnode);
InsertLabel(b, label);
! b->tf = current_type;
b->appdata = data;
b->Action = cb;
***************
*** 226,230 ****
}
- #include "id.h"
extern int AddButton(int x, int y, const char *label,
void (*CallBack) (void *), void *data)
--- 268,271 ----
***************
*** 237,238 ****
--- 278,281 ----
return b->id;
}
+
+
Index: obbutton.h
===================================================================
RCS file: /cvsroot/cgui/cgui/src/obbutton.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** obbutton.h 2 Mar 2003 17:24:24 -0000 1.1.1.1
--- obbutton.h 2 May 2003 07:43:30 -0000 1.2
***************
*** 10,14 ****
extern void ButtonFrame(struct BITMAP *bmp, int x1, int y1, int x2, int y2, int indic);
! #define FillText(b, disp) rectfill(b->parent->bmp, b->x1+2, b->y1+2, b->x2-2+disp, b->y2-2+disp, cgui_gray)
#define ButtonTextC(dx, dy, b, s) ButtonText1(dx, dy, b, 1, s)
#define ButtonTextL(dx, dy, b, s) ButtonText1(dx, dy, b, 0, s)
--- 10,14 ----
extern void ButtonFrame(struct BITMAP *bmp, int x1, int y1, int x2, int y2, int indic);
! #define FillTextBackground(b) rectfill(b->parent->bmp, b->x1+b->tf->framew, b->y1+b->tf->framew, b->x2-b->tf->framew, b->y2-b->tf->framew, cgui_gray)
#define ButtonTextC(dx, dy, b, s) ButtonText1(dx, dy, b, 1, s)
#define ButtonTextL(dx, dy, b, s) ButtonText1(dx, dy, b, 0, s)
***************
*** 35,39 ****
} t_image;
! #define BUTTONBORDER 2
#define TEXTCENTERX(b, dx) b->x1 + dx + \
((b->x2 - b->x1 - text_length(b->font, b->label)) >> 1) + 1
--- 35,39 ----
} t_image;
! extern void ModifyButtonFrame(void (*DrawFrame)(BITMAP*, int), int w);
#define TEXTCENTERX(b, dx) b->x1 + dx + \
((b->x2 - b->x1 - text_length(b->font, b->label)) >> 1) + 1
Index: obcheck.c
===================================================================
RCS file: /cvsroot/cgui/cgui/src/obcheck.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** obcheck.c 2 Mar 2003 17:45:17 -0000 1.1
--- obcheck.c 2 May 2003 07:43:30 -0000 1.2
***************
*** 12,15 ****
--- 12,16 ----
#include "window.h"
#include "node.h"
+ #include "id.h"
#include "object.h"
#include "obbutton.h"
***************
*** 26,30 ****
int *sel; /* A pointer to the application data that
contains the status */
! struct t_object *b; /* Pointer back to the button */
} t_checkbox;
--- 27,31 ----
int *sel; /* A pointer to the application data that
contains the status */
! t_object *b;
} t_checkbox;
***************
*** 72,75 ****
--- 73,80 ----
if (b->parent->bmp == NULL)
return;
+ if (b->AppDraw) {
+ ApplicatioDrawWrapper(b);
+ return;
+ }
x1 = b->x1 + MAXCHECKX;
if (b->state == MS_FIRST_DOWN) {
***************
*** 113,116 ****
--- 118,126 ----
if (b->dire)
b->x1 = b->y1 = 0;
+ if (b->AppDraw) {
+ b->x2 = b->x1 + b->appw - 1;
+ b->y2 = b->y1 + b->apph - 1;
+ return;
+ }
textwidth = text_length(b->font, b->label);
h = _cgui_button1_height - 1 + b->rey;
***************
*** 124,140 ****
}
- /* Adapts the desired entries in the function table that are specific for the
- "check-object" type. */
- static void SetFunctions(t_typefun * tf)
- {
- *tf = default_type_functions;
- tf->Free = XtendedFree; /* deletes the "application data" of the
- object, which in this case is the
- check-data structure */
- tf->Draw = DrawCheckBox;
- tf->AddHandler = CheckAddHandler;
- tf->SetSize = SetSize;
- }
-
extern int AddCheck(int x, int y, const char *label, int *sel)
{
--- 134,137 ----
***************
*** 146,150 ****
if (virgin) {
virgin = 0;
! SetFunctions(&tf);
}
b = CreateObject(x, y, opwin->win->opnode);
--- 143,151 ----
if (virgin) {
virgin = 0;
! tf = default_type_functions;
! tf.Free = XtendedFree;
! tf.Draw = DrawCheckBox;
! tf.AddHandler = CheckAddHandler;
! tf.SetSize = SetSize;
}
b = CreateObject(x, y, opwin->win->opnode);
***************
*** 160,161 ****
--- 161,167 ----
return b->id;
}
+
+ extern void ModifyCheckFrame(void (*DrawFrame)(BITMAP*, int) nouse, int w nouse)
+ {
+ }
+
Index: obcheck.h
===================================================================
RCS file: /cvsroot/cgui/cgui/src/obcheck.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** obcheck.h 2 Mar 2003 17:24:24 -0000 1.1.1.1
--- obcheck.h 2 May 2003 07:43:30 -0000 1.2
***************
*** 3,6 ****
--- 3,7 ----
extern void DrawCheckMark(struct t_object * b, int x, int y);
+ extern void ModifyCheckFrame(void (*DrawFrame)(BITMAP*, int), int w);
#endif
Index: obicon.c
===================================================================
RCS file: /cvsroot/cgui/cgui/src/obicon.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** obicon.c 2 Mar 2003 17:45:17 -0000 1.1
--- obicon.c 2 May 2003 07:43:30 -0000 1.2
***************
*** 21,33 ****
} t_icon;
! static void DisplaySprite(int x1, int y1, int x2, t_image *im, BITMAP *parbmp)
{
int x, y, space;
! if (im) {
! space = x2 - x1 + 1 - BUTTONBORDER * 2 - im->w;
! x = x1 + BUTTONBORDER + space / 2;
! y = y1 + BUTTONBORDER;
! DrawImage(im, parbmp, x, y);
}
}
--- 21,33 ----
} t_icon;
! static void DisplaySprite(int x1, int y1, int x2, t_object *b, BITMAP *parbmp)
{
int x, y, space;
! if (b->im) {
! space = x2 - x1 + 1 - b->tf->framew * 2 - b->im->w;
! x = x1 + b->tf->framew + space / 2;
! y = y1 + b->tf->framew;
! DrawImage(b->im, parbmp, x, y);
}
}
***************
*** 38,42 ****
return;
ButtonText(0, b->x1, b->y1, b->x2, b->y2, b, b->parent->bmp);
! DisplaySprite(b->x1, b->y1, b->x2, b->im, b->parent->bmp);
}
--- 38,42 ----
return;
ButtonText(0, b->x1, b->y1, b->x2, b->y2, b, b->parent->bmp);
! DisplaySprite(b->x1, b->y1, b->x2, b, b->parent->bmp);
}
***************
*** 65,69 ****
ButtonText(0, 0, 0, b->x2 - b->x1, b->y2 - b->y1, b, bmp);
if (b->im)
! DisplaySprite(0, 0, w - 1, b->im, bmp);
OverlayPointer(bmp, b->x - b->x1, b->y - b->y1);
destroy_bitmap(bmp);
--- 65,69 ----
ButtonText(0, 0, 0, b->x2 - b->x1, b->y2 - b->y1, b, bmp);
if (b->im)
! DisplaySprite(0, 0, w - 1, b, bmp);
OverlayPointer(bmp, b->x - b->x1, b->y - b->y1);
destroy_bitmap(bmp);
Index: object.c
===================================================================
RCS file: /cvsroot/cgui/cgui/src/object.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** object.c 2 Mar 2003 17:45:17 -0000 1.1
--- object.c 2 May 2003 07:43:30 -0000 1.2
***************
*** 17,20 ****
--- 17,24 ----
#include "graphini.h"
#include "obsizer.h"
+ #include "obcheck.h"
+ #include "obradio.h"
+ #include "obtag.h"
+ #include "obtext.h"
#include "obbutton.h"
#include "setpos.h"
***************
*** 69,72 ****
--- 73,78 ----
DefaultDeActivate,
StubOb,
+ NULL,
+ 2,
DefaultRefresh,
DefaultAddHandler,
***************
*** 1401,1402 ****
--- 1407,1482 ----
GenEvent(CallBackWrapper, dc, 0, 0);
}
+
+ /*
+ #define CGUI_OBJTYPE_SLIDER 5
+ #define CGUI_OBJTYPE_EDIT 6
+ #define CGUI_OBJTYPE_DROP 7
+ #define CGUI_OBJTYPE_GROOVE 8
+ #define CGUI_OBJTYPE_ICON 9*/
+ extern int SetObjectTypeFrame(int type, void (*DrawFrame)(BITMAP*, int), int w)
+ {
+ switch (type) {
+ case CGUI_OBJTYPE_BUTTON:
+ ModifyButtonFrame(DrawFrame, w);
+ break;
+ case CGUI_OBJTYPE_CHECK:
+ ModifyCheckFrame(DrawFrame, w);
+ break;
+ case CGUI_OBJTYPE_RADIO:
+ ModifyRadioFrame(DrawFrame, w);
+ break;
+ case CGUI_OBJTYPE_TAG:
+ ModifyTagFrame(DrawFrame, w);
+ break;
+ case CGUI_OBJTYPE_TEXT:
+ ModifyTextboxFrame(DrawFrame, w);
+ break;
+ /* Don't know how to modify these:
+ case CGUI_OBJTYPE_SLIDER:
+ case CGUI_OBJTYPE_EDIT:
+ case CGUI_OBJTYPE_DROP:
+ case CGUI_OBJTYPE_GROOVE:
+ case CGUI_OBJTYPE_ICON:*/
+ default:
+ return 0;
+ }
+ return 1;
+ }
+
+ extern int SetObjectViewer(int id, int w, int h, void (*CallBack)(BITMAP*,void*,int), void *data)
+ {
+ t_object *b;
+
+ b = GetObject(id);
+ if (b==NULL)
+ return 0;
+ b->AppDraw = CallBack;
+ b->appw = w;
+ b->apph = h;
+ b->appdrawdata = data;
+ return id;
+ }
+
+ extern void MemoryFree(void *data)
+ {
+ Release(data);
+ }
+
+ extern void ApplicatioDrawWrapper(t_object *b)
+ {
+ BITMAP *bmp;
+ int flags;
+
+ if (b->state == MS_FIRST_DOWN)
+ flags = CGUI_VIEWER_DOWN;
+ else
+ flags = CGUI_VIEWER_UP;
+ if (b->hasfocus)
+ flags |= CGUI_VIEWER_FOCUS;
+ bmp = create_sub_bitmap(b->parent->bmp, b->x1, b->y1, b->x2-b->x1+1, b->y2-b->y1+1);
+ if (bmp) {
+ b->AppDraw(bmp, b->appdrawdata, flags);
+ destroy_bitmap(bmp);
+ }
+ }
+
Index: object.h
===================================================================
RCS file: /cvsroot/cgui/cgui/src/object.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** object.h 2 Mar 2003 17:24:25 -0000 1.1.1.1
--- object.h 2 May 2003 07:43:30 -0000 1.2
***************
*** 32,37 ****
/* Set the object to inactive */
void (*DeActivate) (struct t_object *);
! /* Redraws the object on its bitmap - no update of the screen */
void (*Draw) (struct t_object *);
/* Re-draws and blits to screen */
void (*Refresh) (struct t_object *);
--- 32,41 ----
/* Set the object to inactive */
void (*DeActivate) (struct t_object *);
! /* Draws the object on its bitmap - no update of the screen */
void (*Draw) (struct t_object *);
+ /* Draws the frame of an object */
+ void (*DrawFrame)(struct BITMAP*, int);
+ /* Width of the frame */
+ int framew;
/* Re-draws and blits to screen */
void (*Refresh) (struct t_object *);
***************
*** 133,136 ****
--- 137,147 ----
struct t_tcfun *tcfun;
+ /* An alternative application drawer routine */
+ void (*AppDraw)(struct BITMAP*,void*,int);
+ /* Data for the above draw routine */
+ void *appdrawdata;
+ /* Size specified by the application */
+ int appw, apph;
+
/* Below a number of function-pointers to internal functions. The
combination of functions pointed to does not follow the pattern of any
***************
*** 290,293 ****
--- 301,306 ----
#define DEFAULT_XDIST 2
#define TEXTY(b, dy) ((b->y1 + b->y2 - text_height(b->font)) >> 1) + dy
+ extern void ApplicatioDrawWrapper(struct t_object *b);
+ extern void MemoryFree(void *data);
#endif
Index: obradio.c
===================================================================
RCS file: /cvsroot/cgui/cgui/src/obradio.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** obradio.c 2 Mar 2003 17:45:17 -0000 1.1
--- obradio.c 2 May 2003 07:43:30 -0000 1.2
***************
*** 77,83 ****
if (b->parent->bmp == NULL)
return;
rg = b->parent->data;
if (b->state == MS_FIRST_DOWN) {
! FillText(b, 1);
ButtonXin(b);
} else {
--- 77,87 ----
if (b->parent->bmp == NULL)
return;
+ if (b->AppDraw) {
+ ApplicatioDrawWrapper(b);
+ return;
+ }
rg = b->parent->data;
if (b->state == MS_FIRST_DOWN) {
! FillTextBackground(b);
ButtonXin(b);
} else {
***************
*** 85,94 ****
rg->focus = b;
ButtonInFrame(b->parent->bmp, b->x1, b->y1, b->x2, b->y2);
! FillText(b, 1);
ButtonText(1, b->x1, b->y1, b->x2, b->y2, b, b->parent->bmp);
DisplayBitmap(b, 1);
} else {
ButtonFrame(b->parent->bmp, b->x1, b->y1, b->x2, b->y2, b->hasfocus);
! FillText(b, 0);
ButtonText(0, b->x1, b->y1, b->x2, b->y2, b, b->parent->bmp);
DisplayBitmap(b, 0);
--- 89,98 ----
rg->focus = b;
ButtonInFrame(b->parent->bmp, b->x1, b->y1, b->x2, b->y2);
! FillTextBackground(b);
ButtonText(1, b->x1, b->y1, b->x2, b->y2, b, b->parent->bmp);
DisplayBitmap(b, 1);
} else {
ButtonFrame(b->parent->bmp, b->x1, b->y1, b->x2, b->y2, b->hasfocus);
! FillTextBackground(b);
ButtonText(0, b->x1, b->y1, b->x2, b->y2, b, b->parent->bmp);
DisplayBitmap(b, 0);
***************
*** 212,213 ****
--- 216,222 ----
}
}
+
+ extern void ModifyRadioFrame(void (*DrawFrame)(BITMAP*, int) nouse, int w nouse)
+ {
+ }
+
Index: obradio.h
===================================================================
RCS file: /cvsroot/cgui/cgui/src/obradio.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** obradio.h 2 Mar 2003 17:24:25 -0000 1.1.1.1
--- obradio.h 2 May 2003 07:43:30 -0000 1.2
***************
*** 2,4 ****
--- 2,6 ----
#define OBRADIO_H
+ extern void ModifyRadioFrame(void (*DrawFrame)(BITMAP*, int), int w);
+
#endif
Index: obtag.c
===================================================================
RCS file: /cvsroot/cgui/cgui/src/obtag.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** obtag.c 2 Mar 2003 17:45:17 -0000 1.1
--- obtag.c 2 May 2003 07:43:30 -0000 1.2
***************
*** 75,76 ****
--- 75,81 ----
return b->id;
}
+
+ extern void ModifyTagFrame(void (*DrawFrame)(BITMAP*, int) nouse, int w nouse)
+ {
+ }
+
Index: obtag.h
===================================================================
RCS file: /cvsroot/cgui/cgui/src/obtag.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** obtag.h 2 Mar 2003 17:24:25 -0000 1.1.1.1
--- obtag.h 2 May 2003 07:43:30 -0000 1.2
***************
*** 2,4 ****
--- 2,6 ----
#define OBTAG_H
+ extern void ModifyTagFrame(void (*DrawFrame)(BITMAP*, int), int w);
+
#endif
Index: obtext.c
===================================================================
RCS file: /cvsroot/cgui/cgui/src/obtext.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** obtext.c 2 Mar 2003 17:45:17 -0000 1.1
--- obtext.c 2 May 2003 07:43:30 -0000 1.2
***************
*** 600,601 ****
--- 600,606 ----
return AddTextBox(x, y, s, w, 0, option);
}
+
+ extern void ModifyTextboxFrame(void (*DrawFrame)(BITMAP*, int) nouse, int w nouse)
+ {
+ }
+
Index: obtext.h
===================================================================
RCS file: /cvsroot/cgui/cgui/src/obtext.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** obtext.h 2 Mar 2003 17:24:25 -0000 1.1.1.1
--- obtext.h 2 May 2003 07:43:30 -0000 1.2
***************
*** 20,23 ****
--- 20,24 ----
extern char **MakePage(struct FONT *f, char *s, int w, int preformat, int lf, int *n);
extern char *GetRow(struct FONT *f, char *s, int width);
+ extern void ModifyTextboxFrame(void (*DrawFrame)(BITMAP*, int), int w);
#endif
|
|
From: <ch...@us...> - 2003-05-02 07:43:33
|
Update of /cvsroot/cgui/cgui/lib/mingw32 In directory sc8-pr-cvs1:/tmp/cvs-serv11411/lib/mingw32 Modified Files: cgui.def Log Message: Implemented a few things regarding feature request 723573 "Adding skinnability". - The possibility of setting a specific container background. - The possibility of application specific drawing routine for objects 'SetObjectViewer' - The possibility of application specific drawing routine for frames of object types 'SetObjectTypeFrame' Index: cgui.def =================================================================== RCS file: /cvsroot/cgui/cgui/lib/mingw32/cgui.def,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** cgui.def 2 Mar 2003 17:25:37 -0000 1.1.1.1 --- cgui.def 2 May 2003 07:43:30 -0000 1.2 *************** *** 1,209 **** ! ; generated by fixdll.sh ! EXPORTS ! Activate @1 ! AddButton @2 ! AddCheck @3 ! AddClock @4 ! AddDropDown @5 ! AddDropDownS @6 ! AddEditBox @7 ! AddFlip @8 ! AddHandler @9 ! AddIcon @10 ! AddList @11 ! AddProgressBar @12 ! AddRadioButton @13 ! AddSlider @14 ! AddStatusField @15 ! AddTab @16 ! AddTabRuler @17 ! AddTag @18 ! AddTextBox @19 ! Attend @20 ! AutoHotKeys @21 ! BrowseTo @22 ! BrowseToF @23 ! BrowseToL @24 ! CGUI_list_column_delimiter_color @25 DATA ! CGUI_list_fixfont @26 DATA ! CGUI_list_font @27 DATA ! CGUI_list_row_b_color @28 DATA ! CGUI_list_row_delimiter_color @29 DATA ! CGUI_list_row_f_color @30 DATA ! CGUI_list_row_font @31 DATA ! CGUI_list_vspace @32 DATA ! CguiLoadImage @33 ! CheckDate @34 ! CheckWinClip @35 ! Click @36 ! CloseWin @37 ! ConditionalRefresh @38 ! CreateTabWindow @39 ! CurrentWindow @40 ! Date2String @41 ! DeActivate @42 ! DeInitCgui @43 ! DeleteTree @44 ! DesktopImage @45 ! Destroy @46 ! DestroyTexts @47 ! DisplayWin @48 ! Dos2Win @49 ! EmptyContainer @50 ! EndContainer @51 ! EndMenu @52 ! EndRadioContainer @53 ! FileManager @54 ! FileSelect @55 ! FlipRulerTab @56 ! FlushGenEvents @57 ! GenEvent @58 ! GetCguiFont @59 ! GetCurrentFocus @60 ! GetEditData @61 ! GetFromWinClip @62 ! GetListIndex @63 ! GetMarkedRows @64 ! GetObjectPosition @65 ! GetPressedButton @66 ! GetRegisteredImage @67 ! GetRulerTabList @68 ! GetSizeOffset @69 ! GetWinInfo @70 ! HidePointer @71 ! HookCguiDeInit @72 ! HookExit @73 ! HookLeaveTab @74 ! HookList @75 ! HookMenuClose @76 ! HookSpinButtons @77 ! InitCguiEx @78 ! InsertIntoWinClip @79 ! InsertPoint @80 ! InstallCursor @81 ! InstallKBHandler @82 ! Invite @83 ! IsHotKey @84 ! JoinTabChain @85 ! KillEvent @86 ! LoadCompiledTexts @87 ! LoadTexts @88 ! LongHalf @89 ! MakeHalf @90 ! MakeMenuBar @91 ! MakeStretchable @92 ! MkCanvas @93 ! MkDialogue @94 ! MkDir @95 ! MkGroove @96 ! MkHorizontalBrowser @97 ! MkMenu @98 ! MkMenuBarItem @99 ! MkMenuCheck @100 ! MkMenuItem @101 ! MkMenuRadio @102 ! MkProgressWindow @103 ! MkRadioContainer @104 ! MkScratchMenu @105 ! MkSingleMenu @106 ! MkString @107 ! MkTextPointer @108 ! MkVerticalBrowser @109 ! ModifyHeader @110 ! NameCase @111 ! NotifyBrowser @112 ! NotifyFocusMove @113 ! ObjectApearance @114 ! OverlayPointer @115 ! PointerLocation @116 ! PointerOn @117 ! PrintFloatingConversion @118 ! ProcessEvents @119 ! ReBuildContainer @120 ! RedrawScreen @121 ! Refresh @122 ! RefreshListRow @123 ! RegisterConversionHandler @124 ! RegisterDragFlag @125 ! RegisterFileType @126 ! RegisterImage @127 ! RegisterRefresh @128 ! Release @129 ! Remove @130 ! RemoveOverlayPointer @131 ! Req @132 ! SaveDatafileObject @133 ! SaveDateForm @134 ! ScanToAscii @135 ! ScrMode @136 ! SelectContainer @137 ! SelectCursor @138 ! SetBlitLimit @139 ! SetBrowserSize @140 ! SetCguiColors @141 ! SetCguiFont @142 ! SetDateForm @143 ! SetDeleteHandler @144 ! SetDistance @145 ! SetEditData @146 ! SetFocusOn @147 ! SetHotKey @148 ! SetIndexedList @149 ! SetInsertHandler @150 ! SetLinkedList @151 ! SetListColumns @152 ! SetListDoubleClick @153 ! SetListDroppable @154 ! SetListGrippable @155 ! SetMeasure @156 ! SetMouseButtons @157 ! SetMousePos @158 ! SetObjectDouble @159 ! SetObjectDroppable @160 ! SetObjectGrippable @161 ! SetObjectSlidable @162 ! SetOperatingWindow @163 ! SetSizeOffset @164 ! SetView @165 ! SetWindowPosition @166 ! ShowPointer @167 ! SimulateHotKeys @168 ! Sound @169 ! StartContainer @170 ! StopProcessEvents @171 ! String2Date @172 ! TabOnCR @173 ! ToUpper @174 ! ToolTipText @175 ! UnHookCguiDeInit @176 ! UnInstallKBHandler @177 ! UnRegisterDragFlag @178 ! UpdateProgressValue @179 ! UpdateTextBoxText @180 ! UseHotKeys @181 ! Win2Dos @182 ! cgui_black @183 DATA ! cgui_blue @184 DATA ! cgui_calloc @185 ! cgui_dblue @186 DATA ! cgui_desktop_id @187 DATA ! cgui_dgray @188 DATA ! cgui_drop_down_list_row_spacing @189 DATA ! cgui_gray @190 DATA ! cgui_lblue @191 DATA ! cgui_lgray @192 DATA ! cgui_list_fix_digits @193 DATA ! cgui_list_no_multiple_row_selection @194 DATA ! cgui_malloc @195 ! cgui_minor_rev @196 DATA ! cgui_mouse_draw_in_interrupt @197 DATA ! cgui_realloc @198 ! cgui_red @199 DATA ! cgui_release_date @200 DATA ! cgui_rev @201 DATA ! cgui_use_vsync @202 DATA ! cgui_ver @203 DATA ! cgui_white @204 DATA ! continous_update_resize @205 DATA ! event_message_buffer_size @206 DATA ! CguiUseIcons @207 --- 1,212 ---- ! ; generated by fixdll.sh ! EXPORTS ! Activate @1 ! AddButton @2 ! AddCheck @3 ! AddClock @4 ! AddDropDown @5 ! AddDropDownS @6 ! AddEditBox @7 ! AddFlip @8 ! AddHandler @9 ! AddIcon @10 ! AddList @11 ! AddProgressBar @12 ! AddRadioButton @13 ! AddSlider @14 ! AddStatusField @15 ! AddTab @16 ! AddTabRuler @17 ! AddTag @18 ! AddTextBox @19 ! Attend @20 ! AutoHotKeys @21 ! BrowseTo @22 ! BrowseToF @23 ! BrowseToL @24 ! CGUI_list_column_delimiter_color @25 DATA ! CGUI_list_fixfont @26 DATA ! CGUI_list_font @27 DATA ! CGUI_list_row_b_color @28 DATA ! CGUI_list_row_delimiter_color @29 DATA ! CGUI_list_row_f_color @30 DATA ! CGUI_list_row_font @31 DATA ! CGUI_list_vspace @32 DATA ! CguiLoadImage @33 ! CguiUseIcons @34 ! CheckDate @35 ! CheckWinClip @36 ! Click @37 ! CloseWin @38 ! ConditionalRefresh @39 ! CreateTabWindow @40 ! CurrentWindow @41 ! Date2String @42 ! DeActivate @43 ! DeInitCgui @44 ! DeleteTree @45 ! DesktopImage @46 ! Destroy @47 ! DestroyTexts @48 ! DisplayWin @49 ! Dos2Win @50 ! EmptyContainer @51 ! EndContainer @52 ! EndMenuBar @53 ! EndRadioContainer @54 ! FileManager @55 ! FileSelect @56 ! FlipRulerTab @57 ! FlushGenEvents @58 ! GenEvent @59 ! GetCguiFont @60 ! GetCurrentFocus @61 ! GetEditData @62 ! GetFromWinClip @63 ! GetListIndex @64 ! GetMarkedRows @65 ! GetObjectPosition @66 ! GetPressedButton @67 ! GetRegisteredImage @68 ! GetRulerTabList @69 ! GetSizeOffset @70 ! GetWinInfo @71 ! HidePointer @72 ! HookCguiDeInit @73 ! HookExit @74 ! HookLeaveTab @75 ! HookList @76 ! HookMenuClose @77 ! HookSpinButtons @78 ! InitCguiEx @79 ! InsertIntoWinClip @80 ! InsertPoint @81 ! InstallCursor @82 ! InstallKBHandler @83 ! Invite @84 ! IsHotKey @85 ! JoinTabChain @86 ! KillEvent @87 ! LoadCompiledTexts @88 ! LoadTexts @89 ! LongHalf @90 ! MakeHalf @91 ! MakeMenuBar @92 ! MakeStretchable @93 ! MkCanvas @94 ! MkDialogue @95 ! MkDir @96 ! MkGroove @97 ! MkHorizontalBrowser @98 ! MkMenu @99 ! MkMenuBarItem @100 ! MkMenuCheck @101 ! MkMenuItem @102 ! MkMenuRadio @103 ! MkProgressWindow @104 ! MkRadioContainer @105 ! MkScratchMenu @106 ! MkSingleMenu @107 ! MkString @108 ! MkTextPointer @109 ! MkVerticalBrowser @110 ! ModifyHeader @111 ! NameCase @112 ! NotifyBrowser @113 ! NotifyFocusMove @114 ! ObjectApearance @115 ! OverlayPointer @116 ! PointerLocation @117 ! PointerOn @118 ! PrintFloatingConversion @119 ! ProcessEvents @120 ! ReBuildContainer @121 ! RedrawScreen @122 ! Refresh @123 ! RefreshListRow @124 ! RegisterConversionHandler @125 ! RegisterDragFlag @126 ! RegisterFileType @127 ! RegisterImage @128 ! RegisterRefresh @129 ! Release @130 ! Remove @131 ! RemoveOverlayPointer @132 ! Req @133 ! SaveDatafileObject @134 ! SaveDateForm @135 ! ScanToAscii @136 ! ScrMode @137 ! SelectContainer @138 ! SelectCursor @139 ! SetBlitLimit @140 ! SetBrowserSize @141 ! SetCguiColors @142 ! SetCguiFont @143 ! SetContainerBackground @144 ! SetDateForm @145 ! SetDeleteHandler @146 ! SetDistance @147 ! SetEditData @148 ! SetFocusOn @149 ! SetHotKey @150 ! SetIndexedList @151 ! SetInsertHandler @152 ! SetLinkedList @153 ! SetListColumns @154 ! SetListDoubleClick @155 ! SetListDroppable @156 ! SetListGrippable @157 ! SetMeasure @158 ! SetMouseButtons @159 ! SetMousePos @160 ! SetObjectDouble @161 ! SetObjectDroppable @162 ! SetObjectGrippable @163 ! SetObjectSlidable @164 ! SetObjectTypeFrame @165 ! SetObjectViewer @166 ! SetOperatingWindow @167 ! SetSizeOffset @168 ! SetView @169 ! SetWindowPosition @170 ! ShowPointer @171 ! SimulateHotKeys @172 ! Sound @173 ! StartContainer @174 ! StopProcessEvents @175 ! String2Date @176 ! TabOnCR @177 ! ToUpper @178 ! ToolTipText @179 ! UnHookCguiDeInit @180 ! UnInstallKBHandler @181 ! UnRegisterDragFlag @182 ! UpdateProgressValue @183 ! UpdateTextBoxText @184 ! UseHotKeys @185 ! Win2Dos @186 ! cgui_black @187 DATA ! cgui_blue @188 DATA ! cgui_calloc @189 ! cgui_dblue @190 DATA ! cgui_desktop_id @191 DATA ! cgui_dgray @192 DATA ! cgui_drop_down_list_row_spacing @193 DATA ! cgui_gray @194 DATA ! cgui_lblue @195 DATA ! cgui_lgray @196 DATA ! cgui_list_fix_digits @197 DATA ! cgui_list_no_multiple_row_selection @198 DATA ! cgui_malloc @199 ! cgui_minor_rev @200 DATA ! cgui_mouse_draw_in_interrupt @201 DATA ! cgui_realloc @202 ! cgui_red @203 DATA ! cgui_release_date @204 DATA ! cgui_rev @205 DATA ! cgui_use_vsync @206 DATA ! cgui_ver @207 DATA ! cgui_white @208 DATA ! continous_update_resize @209 DATA ! event_message_buffer_size @210 DATA |
|
From: <ch...@us...> - 2003-05-02 07:43:33
|
Update of /cvsroot/cgui/cgui/lib/bcc32 In directory sc8-pr-cvs1:/tmp/cvs-serv11411/lib/bcc32 Modified Files: cgui.def Log Message: Implemented a few things regarding feature request 723573 "Adding skinnability". - The possibility of setting a specific container background. - The possibility of application specific drawing routine for objects 'SetObjectViewer' - The possibility of application specific drawing routine for frames of object types 'SetObjectTypeFrame' Index: cgui.def =================================================================== RCS file: /cvsroot/cgui/cgui/lib/bcc32/cgui.def,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** cgui.def 2 Mar 2003 17:25:37 -0000 1.1.1.1 --- cgui.def 2 May 2003 07:43:30 -0000 1.2 *************** *** 1,209 **** ! ; generated by fixdll.sh ! EXPORTS ! _Activate = Activate ! _AddButton = AddButton ! _AddCheck = AddCheck ! _AddClock = AddClock ! _AddDropDown = AddDropDown ! _AddDropDownS = AddDropDownS ! _AddEditBox = AddEditBox ! _AddFlip = AddFlip ! _AddHandler = AddHandler ! _AddIcon = AddIcon ! _AddList = AddList ! _AddProgressBar = AddProgressBar ! _AddRadioButton = AddRadioButton ! _AddSlider = AddSlider ! _AddStatusField = AddStatusField ! _AddTab = AddTab ! _AddTabRuler = AddTabRuler ! _AddTag = AddTag ! _AddTextBox = AddTextBox ! _Attend = Attend ! _AutoHotKeys = AutoHotKeys ! _BrowseTo = BrowseTo ! _BrowseToF = BrowseToF ! _BrowseToL = BrowseToL ! _CGUI_list_column_delimiter_color = CGUI_list_column_delimiter_color ! _CGUI_list_fixfont = CGUI_list_fixfont ! _CGUI_list_font = CGUI_list_font ! _CGUI_list_row_b_color = CGUI_list_row_b_color ! _CGUI_list_row_delimiter_color = CGUI_list_row_delimiter_color ! _CGUI_list_row_f_color = CGUI_list_row_f_color ! _CGUI_list_row_font = CGUI_list_row_font ! _CGUI_list_vspace = CGUI_list_vspace ! _CguiLoadImage = CguiLoadImage ! _CheckDate = CheckDate ! _CheckWinClip = CheckWinClip ! _Click = Click ! _CloseWin = CloseWin ! _ConditionalRefresh = ConditionalRefresh ! _CreateTabWindow = CreateTabWindow ! _CurrentWindow = CurrentWindow ! _Date2String = Date2String ! _DeActivate = DeActivate ! _DeInitCgui = DeInitCgui ! _DeleteTree = DeleteTree ! _DesktopImage = DesktopImage ! _Destroy = Destroy ! _DestroyTexts = DestroyTexts ! _DisplayWin = DisplayWin ! _Dos2Win = Dos2Win ! _EmptyContainer = EmptyContainer ! _EndContainer = EndContainer ! _EndMenu = EndMenu ! _EndRadioContainer = EndRadioContainer ! _FileManager = FileManager ! _FileSelect = FileSelect ! _FlipRulerTab = FlipRulerTab ! _FlushGenEvents = FlushGenEvents ! _GenEvent = GenEvent ! _GetCguiFont = GetCguiFont ! _GetCurrentFocus = GetCurrentFocus ! _GetEditData = GetEditData ! _GetFromWinClip = GetFromWinClip ! _GetListIndex = GetListIndex ! _GetMarkedRows = GetMarkedRows ! _GetObjectPosition = GetObjectPosition ! _GetPressedButton = GetPressedButton ! _GetRegisteredImage = GetRegisteredImage ! _GetRulerTabList = GetRulerTabList ! _GetSizeOffset = GetSizeOffset ! _GetWinInfo = GetWinInfo ! _HidePointer = HidePointer ! _HookCguiDeInit = HookCguiDeInit ! _HookExit = HookExit ! _HookLeaveTab = HookLeaveTab ! _HookList = HookList ! _HookMenuClose = HookMenuClose ! _HookSpinButtons = HookSpinButtons ! _InitCguiEx = InitCguiEx ! _InsertIntoWinClip = InsertIntoWinClip ! _InsertPoint = InsertPoint ! _InstallCursor = InstallCursor ! _InstallKBHandler = InstallKBHandler ! _Invite = Invite ! _IsHotKey = IsHotKey ! _JoinTabChain = JoinTabChain ! _KillEvent = KillEvent ! _LoadCompiledTexts = LoadCompiledTexts ! _LoadTexts = LoadTexts ! _LongHalf = LongHalf ! _MakeHalf = MakeHalf ! _MakeMenuBar = MakeMenuBar ! _MakeStretchable = MakeStretchable ! _MkCanvas = MkCanvas ! _MkDialogue = MkDialogue ! _MkDir = MkDir ! _MkGroove = MkGroove ! _MkHorizontalBrowser = MkHorizontalBrowser ! _MkMenu = MkMenu ! _MkMenuBarItem = MkMenuBarItem ! _MkMenuCheck = MkMenuCheck ! _MkMenuItem = MkMenuItem ! _MkMenuRadio = MkMenuRadio ! _MkProgressWindow = MkProgressWindow ! _MkRadioContainer = MkRadioContainer ! _MkScratchMenu = MkScratchMenu ! _MkSingleMenu = MkSingleMenu ! _MkString = MkString ! _MkTextPointer = MkTextPointer ! _MkVerticalBrowser = MkVerticalBrowser ! _ModifyHeader = ModifyHeader ! _NameCase = NameCase ! _NotifyBrowser = NotifyBrowser ! _NotifyFocusMove = NotifyFocusMove ! _ObjectApearance = ObjectApearance ! _OverlayPointer = OverlayPointer ! _PointerLocation = PointerLocation ! _PointerOn = PointerOn ! _PrintFloatingConversion = PrintFloatingConversion ! _ProcessEvents = ProcessEvents ! _ReBuildContainer = ReBuildContainer ! _RedrawScreen = RedrawScreen ! _Refresh = Refresh ! _RefreshListRow = RefreshListRow ! _RegisterConversionHandler = RegisterConversionHandler ! _RegisterDragFlag = RegisterDragFlag ! _RegisterFileType = RegisterFileType ! _RegisterImage = RegisterImage ! _RegisterRefresh = RegisterRefresh ! _Release = Release ! _Remove = Remove ! _RemoveOverlayPointer = RemoveOverlayPointer ! _Req = Req ! _SaveDatafileObject = SaveDatafileObject ! _SaveDateForm = SaveDateForm ! _ScanToAscii = ScanToAscii ! _ScrMode = ScrMode ! _SelectContainer = SelectContainer ! _SelectCursor = SelectCursor ! _SetBlitLimit = SetBlitLimit ! _SetBrowserSize = SetBrowserSize ! _SetCguiColors = SetCguiColors ! _SetCguiFont = SetCguiFont ! _SetDateForm = SetDateForm ! _SetDeleteHandler = SetDeleteHandler ! _SetDistance = SetDistance ! _SetEditData = SetEditData ! _SetFocusOn = SetFocusOn ! _SetHotKey = SetHotKey ! _SetIndexedList = SetIndexedList ! _SetInsertHandler = SetInsertHandler ! _SetLinkedList = SetLinkedList ! _SetListColumns = SetListColumns ! _SetListDoubleClick = SetListDoubleClick ! _SetListDroppable = SetListDroppable ! _SetListGrippable = SetListGrippable ! _SetMeasure = SetMeasure ! _SetMouseButtons = SetMouseButtons ! _SetMousePos = SetMousePos ! _SetObjectDouble = SetObjectDouble ! _SetObjectDroppable = SetObjectDroppable ! _SetObjectGrippable = SetObjectGrippable ! _SetObjectSlidable = SetObjectSlidable ! _SetOperatingWindow = SetOperatingWindow ! _SetSizeOffset = SetSizeOffset ! _SetView = SetView ! _SetWindowPosition = SetWindowPosition ! _ShowPointer = ShowPointer ! _SimulateHotKeys = SimulateHotKeys ! _Sound = Sound ! _StartContainer = StartContainer ! _StopProcessEvents = StopProcessEvents ! _String2Date = String2Date ! _TabOnCR = TabOnCR ! _ToUpper = ToUpper ! _ToolTipText = ToolTipText ! _UnHookCguiDeInit = UnHookCguiDeInit ! _UnInstallKBHandler = UnInstallKBHandler ! _UnRegisterDragFlag = UnRegisterDragFlag ! _UpdateProgressValue = UpdateProgressValue ! _UpdateTextBoxText = UpdateTextBoxText ! _UseHotKeys = UseHotKeys ! _Win2Dos = Win2Dos ! _cgui_black = cgui_black ! _cgui_blue = cgui_blue ! _cgui_calloc = cgui_calloc ! _cgui_dblue = cgui_dblue ! _cgui_desktop_id = cgui_desktop_id ! _cgui_dgray = cgui_dgray ! _cgui_drop_down_list_row_spacing = cgui_drop_down_list_row_spacing ! _cgui_gray = cgui_gray ! _cgui_lblue = cgui_lblue ! _cgui_lgray = cgui_lgray ! _cgui_list_fix_digits = cgui_list_fix_digits ! _cgui_list_no_multiple_row_selection = cgui_list_no_multiple_row_selection ! _cgui_malloc = cgui_malloc ! _cgui_minor_rev = cgui_minor_rev ! _cgui_mouse_draw_in_interrupt = cgui_mouse_draw_in_interrupt ! _cgui_realloc = cgui_realloc ! _cgui_red = cgui_red ! _cgui_release_date = cgui_release_date ! _cgui_rev = cgui_rev ! _cgui_use_vsync = cgui_use_vsync ! _cgui_ver = cgui_ver ! _cgui_white = cgui_white ! _continous_update_resize = continous_update_resize ! _event_message_buffer_size = event_message_buffer_size ! _CguiUseIcons = CguiUseIcons --- 1,212 ---- ! ; generated by fixdll.sh ! EXPORTS ! _Activate = Activate ! _AddButton = AddButton ! _AddCheck = AddCheck ! _AddClock = AddClock ! _AddDropDown = AddDropDown ! _AddDropDownS = AddDropDownS ! _AddEditBox = AddEditBox ! _AddFlip = AddFlip ! _AddHandler = AddHandler ! _AddIcon = AddIcon ! _AddList = AddList ! _AddProgressBar = AddProgressBar ! _AddRadioButton = AddRadioButton ! _AddSlider = AddSlider ! _AddStatusField = AddStatusField ! _AddTab = AddTab ! _AddTabRuler = AddTabRuler ! _AddTag = AddTag ! _AddTextBox = AddTextBox ! _Attend = Attend ! _AutoHotKeys = AutoHotKeys ! _BrowseTo = BrowseTo ! _BrowseToF = BrowseToF ! _BrowseToL = BrowseToL ! _CGUI_list_column_delimiter_color = CGUI_list_column_delimiter_color ! _CGUI_list_fixfont = CGUI_list_fixfont ! _CGUI_list_font = CGUI_list_font ! _CGUI_list_row_b_color = CGUI_list_row_b_color ! _CGUI_list_row_delimiter_color = CGUI_list_row_delimiter_color ! _CGUI_list_row_f_color = CGUI_list_row_f_color ! _CGUI_list_row_font = CGUI_list_row_font ! _CGUI_list_vspace = CGUI_list_vspace ! _CguiLoadImage = CguiLoadImage ! _CguiUseIcons = CguiUseIcons ! _CheckDate = CheckDate ! _CheckWinClip = CheckWinClip ! _Click = Click ! _CloseWin = CloseWin ! _ConditionalRefresh = ConditionalRefresh ! _CreateTabWindow = CreateTabWindow ! _CurrentWindow = CurrentWindow ! _Date2String = Date2String ! _DeActivate = DeActivate ! _DeInitCgui = DeInitCgui ! _DeleteTree = DeleteTree ! _DesktopImage = DesktopImage ! _Destroy = Destroy ! _DestroyTexts = DestroyTexts ! _DisplayWin = DisplayWin ! _Dos2Win = Dos2Win ! _EmptyContainer = EmptyContainer ! _EndContainer = EndContainer ! _EndMenuBar = EndMenuBar ! _EndRadioContainer = EndRadioContainer ! _FileManager = FileManager ! _FileSelect = FileSelect ! _FlipRulerTab = FlipRulerTab ! _FlushGenEvents = FlushGenEvents ! _GenEvent = GenEvent ! _GetCguiFont = GetCguiFont ! _GetCurrentFocus = GetCurrentFocus ! _GetEditData = GetEditData ! _GetFromWinClip = GetFromWinClip ! _GetListIndex = GetListIndex ! _GetMarkedRows = GetMarkedRows ! _GetObjectPosition = GetObjectPosition ! _GetPressedButton = GetPressedButton ! _GetRegisteredImage = GetRegisteredImage ! _GetRulerTabList = GetRulerTabList ! _GetSizeOffset = GetSizeOffset ! _GetWinInfo = GetWinInfo ! _HidePointer = HidePointer ! _HookCguiDeInit = HookCguiDeInit ! _HookExit = HookExit ! _HookLeaveTab = HookLeaveTab ! _HookList = HookList ! _HookMenuClose = HookMenuClose ! _HookSpinButtons = HookSpinButtons ! _InitCguiEx = InitCguiEx ! _InsertIntoWinClip = InsertIntoWinClip ! _InsertPoint = InsertPoint ! _InstallCursor = InstallCursor ! _InstallKBHandler = InstallKBHandler ! _Invite = Invite ! _IsHotKey = IsHotKey ! _JoinTabChain = JoinTabChain ! _KillEvent = KillEvent ! _LoadCompiledTexts = LoadCompiledTexts ! _LoadTexts = LoadTexts ! _LongHalf = LongHalf ! _MakeHalf = MakeHalf ! _MakeMenuBar = MakeMenuBar ! _MakeStretchable = MakeStretchable ! _MkCanvas = MkCanvas ! _MkDialogue = MkDialogue ! _MkDir = MkDir ! _MkGroove = MkGroove ! _MkHorizontalBrowser = MkHorizontalBrowser ! _MkMenu = MkMenu ! _MkMenuBarItem = MkMenuBarItem ! _MkMenuCheck = MkMenuCheck ! _MkMenuItem = MkMenuItem ! _MkMenuRadio = MkMenuRadio ! _MkProgressWindow = MkProgressWindow ! _MkRadioContainer = MkRadioContainer ! _MkScratchMenu = MkScratchMenu ! _MkSingleMenu = MkSingleMenu ! _MkString = MkString ! _MkTextPointer = MkTextPointer ! _MkVerticalBrowser = MkVerticalBrowser ! _ModifyHeader = ModifyHeader ! _NameCase = NameCase ! _NotifyBrowser = NotifyBrowser ! _NotifyFocusMove = NotifyFocusMove ! _ObjectApearance = ObjectApearance ! _OverlayPointer = OverlayPointer ! _PointerLocation = PointerLocation ! _PointerOn = PointerOn ! _PrintFloatingConversion = PrintFloatingConversion ! _ProcessEvents = ProcessEvents ! _ReBuildContainer = ReBuildContainer ! _RedrawScreen = RedrawScreen ! _Refresh = Refresh ! _RefreshListRow = RefreshListRow ! _RegisterConversionHandler = RegisterConversionHandler ! _RegisterDragFlag = RegisterDragFlag ! _RegisterFileType = RegisterFileType ! _RegisterImage = RegisterImage ! _RegisterRefresh = RegisterRefresh ! _Release = Release ! _Remove = Remove ! _RemoveOverlayPointer = RemoveOverlayPointer ! _Req = Req ! _SaveDatafileObject = SaveDatafileObject ! _SaveDateForm = SaveDateForm ! _ScanToAscii = ScanToAscii ! _ScrMode = ScrMode ! _SelectContainer = SelectContainer ! _SelectCursor = SelectCursor ! _SetBlitLimit = SetBlitLimit ! _SetBrowserSize = SetBrowserSize ! _SetCguiColors = SetCguiColors ! _SetCguiFont = SetCguiFont ! _SetContainerBackground = SetContainerBackground ! _SetDateForm = SetDateForm ! _SetDeleteHandler = SetDeleteHandler ! _SetDistance = SetDistance ! _SetEditData = SetEditData ! _SetFocusOn = SetFocusOn ! _SetHotKey = SetHotKey ! _SetIndexedList = SetIndexedList ! _SetInsertHandler = SetInsertHandler ! _SetLinkedList = SetLinkedList ! _SetListColumns = SetListColumns ! _SetListDoubleClick = SetListDoubleClick ! _SetListDroppable = SetListDroppable ! _SetListGrippable = SetListGrippable ! _SetMeasure = SetMeasure ! _SetMouseButtons = SetMouseButtons ! _SetMousePos = SetMousePos ! _SetObjectDouble = SetObjectDouble ! _SetObjectDroppable = SetObjectDroppable ! _SetObjectGrippable = SetObjectGrippable ! _SetObjectSlidable = SetObjectSlidable ! _SetObjectTypeFrame = SetObjectTypeFrame ! _SetObjectViewer = SetObjectViewer ! _SetOperatingWindow = SetOperatingWindow ! _SetSizeOffset = SetSizeOffset ! _SetView = SetView ! _SetWindowPosition = SetWindowPosition ! _ShowPointer = ShowPointer ! _SimulateHotKeys = SimulateHotKeys ! _Sound = Sound ! _StartContainer = StartContainer ! _StopProcessEvents = StopProcessEvents ! _String2Date = String2Date ! _TabOnCR = TabOnCR ! _ToUpper = ToUpper ! _ToolTipText = ToolTipText ! _UnHookCguiDeInit = UnHookCguiDeInit ! _UnInstallKBHandler = UnInstallKBHandler ! _UnRegisterDragFlag = UnRegisterDragFlag ! _UpdateProgressValue = UpdateProgressValue ! _UpdateTextBoxText = UpdateTextBoxText ! _UseHotKeys = UseHotKeys ! _Win2Dos = Win2Dos ! _cgui_black = cgui_black ! _cgui_blue = cgui_blue ! _cgui_calloc = cgui_calloc ! _cgui_dblue = cgui_dblue ! _cgui_desktop_id = cgui_desktop_id ! _cgui_dgray = cgui_dgray ! _cgui_drop_down_list_row_spacing = cgui_drop_down_list_row_spacing ! _cgui_gray = cgui_gray ! _cgui_lblue = cgui_lblue ! _cgui_lgray = cgui_lgray ! _cgui_list_fix_digits = cgui_list_fix_digits ! _cgui_list_no_multiple_row_selection = cgui_list_no_multiple_row_selection ! _cgui_malloc = cgui_malloc ! _cgui_minor_rev = cgui_minor_rev ! _cgui_mouse_draw_in_interrupt = cgui_mouse_draw_in_interrupt ! _cgui_realloc = cgui_realloc ! _cgui_red = cgui_red ! _cgui_release_date = cgui_release_date ! _cgui_rev = cgui_rev ! _cgui_use_vsync = cgui_use_vsync ! _cgui_ver = cgui_ver ! _cgui_white = cgui_white ! _continous_update_resize = continous_update_resize ! _event_message_buffer_size = event_message_buffer_size |
|
From: <ch...@us...> - 2003-05-02 07:43:33
|
Update of /cvsroot/cgui/cgui/lib/msvc In directory sc8-pr-cvs1:/tmp/cvs-serv11411/lib/msvc Modified Files: cgui.def Log Message: Implemented a few things regarding feature request 723573 "Adding skinnability". - The possibility of setting a specific container background. - The possibility of application specific drawing routine for objects 'SetObjectViewer' - The possibility of application specific drawing routine for frames of object types 'SetObjectTypeFrame' Index: cgui.def =================================================================== RCS file: /cvsroot/cgui/cgui/lib/msvc/cgui.def,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** cgui.def 2 Mar 2003 17:25:38 -0000 1.1.1.1 --- cgui.def 2 May 2003 07:43:30 -0000 1.2 *************** *** 1,209 **** ! ; generated by fixdll.sh ! EXPORTS ! Activate @1 ! AddButton @2 ! AddCheck @3 ! AddClock @4 ! AddDropDown @5 ! AddDropDownS @6 ! AddEditBox @7 ! AddFlip @8 ! AddHandler @9 ! AddIcon @10 ! AddList @11 ! AddProgressBar @12 ! AddRadioButton @13 ! AddSlider @14 ! AddStatusField @15 ! AddTab @16 ! AddTabRuler @17 ! AddTag @18 ! AddTextBox @19 ! Attend @20 ! AutoHotKeys @21 ! BrowseTo @22 ! BrowseToF @23 ! BrowseToL @24 ! CGUI_list_column_delimiter_color @25 DATA ! CGUI_list_fixfont @26 DATA ! CGUI_list_font @27 DATA ! CGUI_list_row_b_color @28 DATA ! CGUI_list_row_delimiter_color @29 DATA ! CGUI_list_row_f_color @30 DATA ! CGUI_list_row_font @31 DATA ! CGUI_list_vspace @32 DATA ! CguiLoadImage @33 ! CheckDate @34 ! CheckWinClip @35 ! Click @36 ! CloseWin @37 ! ConditionalRefresh @38 ! CreateTabWindow @39 ! CurrentWindow @40 ! Date2String @41 ! DeActivate @42 ! DeInitCgui @43 ! DeleteTree @44 ! DesktopImage @45 ! Destroy @46 ! DestroyTexts @47 ! DisplayWin @48 ! Dos2Win @49 ! EmptyContainer @50 ! EndContainer @51 ! EndMenu @52 ! EndRadioContainer @53 ! FileManager @54 ! FileSelect @55 ! FlipRulerTab @56 ! FlushGenEvents @57 ! GenEvent @58 ! GetCguiFont @59 ! GetCurrentFocus @60 ! GetEditData @61 ! GetFromWinClip @62 ! GetListIndex @63 ! GetMarkedRows @64 ! GetObjectPosition @65 ! GetPressedButton @66 ! GetRegisteredImage @67 ! GetRulerTabList @68 ! GetSizeOffset @69 ! GetWinInfo @70 ! HidePointer @71 ! HookCguiDeInit @72 ! HookExit @73 ! HookLeaveTab @74 ! HookList @75 ! HookMenuClose @76 ! HookSpinButtons @77 ! InitCguiEx @78 ! InsertIntoWinClip @79 ! InsertPoint @80 ! InstallCursor @81 ! InstallKBHandler @82 ! Invite @83 ! IsHotKey @84 ! JoinTabChain @85 ! KillEvent @86 ! LoadCompiledTexts @87 ! LoadTexts @88 ! LongHalf @89 ! MakeHalf @90 ! MakeMenuBar @91 ! MakeStretchable @92 ! MkCanvas @93 ! MkDialogue @94 ! MkDir @95 ! MkGroove @96 ! MkHorizontalBrowser @97 ! MkMenu @98 ! MkMenuBarItem @99 ! MkMenuCheck @100 ! MkMenuItem @101 ! MkMenuRadio @102 ! MkProgressWindow @103 ! MkRadioContainer @104 ! MkScratchMenu @105 ! MkSingleMenu @106 ! MkString @107 ! MkTextPointer @108 ! MkVerticalBrowser @109 ! ModifyHeader @110 ! NameCase @111 ! NotifyBrowser @112 ! NotifyFocusMove @113 ! ObjectApearance @114 ! OverlayPointer @115 ! PointerLocation @116 ! PointerOn @117 ! PrintFloatingConversion @118 ! ProcessEvents @119 ! ReBuildContainer @120 ! RedrawScreen @121 ! Refresh @122 ! RefreshListRow @123 ! RegisterConversionHandler @124 ! RegisterDragFlag @125 ! RegisterFileType @126 ! RegisterImage @127 ! RegisterRefresh @128 ! Release @129 ! Remove @130 ! RemoveOverlayPointer @131 ! Req @132 ! SaveDatafileObject @133 ! SaveDateForm @134 ! ScanToAscii @135 ! ScrMode @136 ! SelectContainer @137 ! SelectCursor @138 ! SetBlitLimit @139 ! SetBrowserSize @140 ! SetCguiColors @141 ! SetCguiFont @142 ! SetDateForm @143 ! SetDeleteHandler @144 ! SetDistance @145 ! SetEditData @146 ! SetFocusOn @147 ! SetHotKey @148 ! SetIndexedList @149 ! SetInsertHandler @150 ! SetLinkedList @151 ! SetListColumns @152 ! SetListDoubleClick @153 ! SetListDroppable @154 ! SetListGrippable @155 ! SetMeasure @156 ! SetMouseButtons @157 ! SetMousePos @158 ! SetObjectDouble @159 ! SetObjectDroppable @160 ! SetObjectGrippable @161 ! SetObjectSlidable @162 ! SetOperatingWindow @163 ! SetSizeOffset @164 ! SetView @165 ! SetWindowPosition @166 ! ShowPointer @167 ! SimulateHotKeys @168 ! Sound @169 ! StartContainer @170 ! StopProcessEvents @171 ! String2Date @172 ! TabOnCR @173 ! ToUpper @174 ! ToolTipText @175 ! UnHookCguiDeInit @176 ! UnInstallKBHandler @177 ! UnRegisterDragFlag @178 ! UpdateProgressValue @179 ! UpdateTextBoxText @180 ! UseHotKeys @181 ! Win2Dos @182 ! cgui_black @183 DATA ! cgui_blue @184 DATA ! cgui_calloc @185 ! cgui_dblue @186 DATA ! cgui_desktop_id @187 DATA ! cgui_dgray @188 DATA ! cgui_drop_down_list_row_spacing @189 DATA ! cgui_gray @190 DATA ! cgui_lblue @191 DATA ! cgui_lgray @192 DATA ! cgui_list_fix_digits @193 DATA ! cgui_list_no_multiple_row_selection @194 DATA ! cgui_malloc @195 ! cgui_minor_rev @196 DATA ! cgui_mouse_draw_in_interrupt @197 DATA ! cgui_realloc @198 ! cgui_red @199 DATA ! cgui_release_date @200 DATA ! cgui_rev @201 DATA ! cgui_use_vsync @202 DATA ! cgui_ver @203 DATA ! cgui_white @204 DATA ! continous_update_resize @205 DATA ! event_message_buffer_size @206 DATA ! CguiUseIcons @207 --- 1,212 ---- ! ; generated by fixdll.sh ! EXPORTS ! Activate @1 ! AddButton @2 ! AddCheck @3 ! AddClock @4 ! AddDropDown @5 ! AddDropDownS @6 ! AddEditBox @7 ! AddFlip @8 ! AddHandler @9 ! AddIcon @10 ! AddList @11 ! AddProgressBar @12 ! AddRadioButton @13 ! AddSlider @14 ! AddStatusField @15 ! AddTab @16 ! AddTabRuler @17 ! AddTag @18 ! AddTextBox @19 ! Attend @20 ! AutoHotKeys @21 ! BrowseTo @22 ! BrowseToF @23 ! BrowseToL @24 ! CGUI_list_column_delimiter_color @25 DATA ! CGUI_list_fixfont @26 DATA ! CGUI_list_font @27 DATA ! CGUI_list_row_b_color @28 DATA ! CGUI_list_row_delimiter_color @29 DATA ! CGUI_list_row_f_color @30 DATA ! CGUI_list_row_font @31 DATA ! CGUI_list_vspace @32 DATA ! CguiLoadImage @33 ! CguiUseIcons @34 ! CheckDate @35 ! CheckWinClip @36 ! Click @37 ! CloseWin @38 ! ConditionalRefresh @39 ! CreateTabWindow @40 ! CurrentWindow @41 ! Date2String @42 ! DeActivate @43 ! DeInitCgui @44 ! DeleteTree @45 ! DesktopImage @46 ! Destroy @47 ! DestroyTexts @48 ! DisplayWin @49 ! Dos2Win @50 ! EmptyContainer @51 ! EndContainer @52 ! EndMenuBar @53 ! EndRadioContainer @54 ! FileManager @55 ! FileSelect @56 ! FlipRulerTab @57 ! FlushGenEvents @58 ! GenEvent @59 ! GetCguiFont @60 ! GetCurrentFocus @61 ! GetEditData @62 ! GetFromWinClip @63 ! GetListIndex @64 ! GetMarkedRows @65 ! GetObjectPosition @66 ! GetPressedButton @67 ! GetRegisteredImage @68 ! GetRulerTabList @69 ! GetSizeOffset @70 ! GetWinInfo @71 ! HidePointer @72 ! HookCguiDeInit @73 ! HookExit @74 ! HookLeaveTab @75 ! HookList @76 ! HookMenuClose @77 ! HookSpinButtons @78 ! InitCguiEx @79 ! InsertIntoWinClip @80 ! InsertPoint @81 ! InstallCursor @82 ! InstallKBHandler @83 ! Invite @84 ! IsHotKey @85 ! JoinTabChain @86 ! KillEvent @87 ! LoadCompiledTexts @88 ! LoadTexts @89 ! LongHalf @90 ! MakeHalf @91 ! MakeMenuBar @92 ! MakeStretchable @93 ! MkCanvas @94 ! MkDialogue @95 ! MkDir @96 ! MkGroove @97 ! MkHorizontalBrowser @98 ! MkMenu @99 ! MkMenuBarItem @100 ! MkMenuCheck @101 ! MkMenuItem @102 ! MkMenuRadio @103 ! MkProgressWindow @104 ! MkRadioContainer @105 ! MkScratchMenu @106 ! MkSingleMenu @107 ! MkString @108 ! MkTextPointer @109 ! MkVerticalBrowser @110 ! ModifyHeader @111 ! NameCase @112 ! NotifyBrowser @113 ! NotifyFocusMove @114 ! ObjectApearance @115 ! OverlayPointer @116 ! PointerLocation @117 ! PointerOn @118 ! PrintFloatingConversion @119 ! ProcessEvents @120 ! ReBuildContainer @121 ! RedrawScreen @122 ! Refresh @123 ! RefreshListRow @124 ! RegisterConversionHandler @125 ! RegisterDragFlag @126 ! RegisterFileType @127 ! RegisterImage @128 ! RegisterRefresh @129 ! Release @130 ! Remove @131 ! RemoveOverlayPointer @132 ! Req @133 ! SaveDatafileObject @134 ! SaveDateForm @135 ! ScanToAscii @136 ! ScrMode @137 ! SelectContainer @138 ! SelectCursor @139 ! SetBlitLimit @140 ! SetBrowserSize @141 ! SetCguiColors @142 ! SetCguiFont @143 ! SetContainerBackground @144 ! SetDateForm @145 ! SetDeleteHandler @146 ! SetDistance @147 ! SetEditData @148 ! SetFocusOn @149 ! SetHotKey @150 ! SetIndexedList @151 ! SetInsertHandler @152 ! SetLinkedList @153 ! SetListColumns @154 ! SetListDoubleClick @155 ! SetListDroppable @156 ! SetListGrippable @157 ! SetMeasure @158 ! SetMouseButtons @159 ! SetMousePos @160 ! SetObjectDouble @161 ! SetObjectDroppable @162 ! SetObjectGrippable @163 ! SetObjectSlidable @164 ! SetObjectTypeFrame @165 ! SetObjectViewer @166 ! SetOperatingWindow @167 ! SetSizeOffset @168 ! SetView @169 ! SetWindowPosition @170 ! ShowPointer @171 ! SimulateHotKeys @172 ! Sound @173 ! StartContainer @174 ! StopProcessEvents @175 ! String2Date @176 ! TabOnCR @177 ! ToUpper @178 ! ToolTipText @179 ! UnHookCguiDeInit @180 ! UnInstallKBHandler @181 ! UnRegisterDragFlag @182 ! UpdateProgressValue @183 ! UpdateTextBoxText @184 ! UseHotKeys @185 ! Win2Dos @186 ! cgui_black @187 DATA ! cgui_blue @188 DATA ! cgui_calloc @189 ! cgui_dblue @190 DATA ! cgui_desktop_id @191 DATA ! cgui_dgray @192 DATA ! cgui_drop_down_list_row_spacing @193 DATA ! cgui_gray @194 DATA ! cgui_lblue @195 DATA ! cgui_lgray @196 DATA ! cgui_list_fix_digits @197 DATA ! cgui_list_no_multiple_row_selection @198 DATA ! cgui_malloc @199 ! cgui_minor_rev @200 DATA ! cgui_mouse_draw_in_interrupt @201 DATA ! cgui_realloc @202 ! cgui_red @203 DATA ! cgui_release_date @204 DATA ! cgui_rev @205 DATA ! cgui_use_vsync @206 DATA ! cgui_ver @207 DATA ! cgui_white @208 DATA ! continous_update_resize @209 DATA ! event_message_buffer_size @210 DATA |
|
From: <ch...@us...> - 2003-05-02 07:43:33
|
Update of /cvsroot/cgui/cgui/examples
In directory sc8-pr-cvs1:/tmp/cvs-serv11411/examples
Modified Files:
18icons.c 20anim.c allegro.cfg examples.dat
Log Message:
Implemented a few things regarding feature request 723573 "Adding skinnability".
- The possibility of setting a specific container background.
- The possibility of application specific drawing routine for objects 'SetObjectViewer'
- The possibility of application specific drawing routine for frames of object types 'SetObjectTypeFrame'
Index: 18icons.c
===================================================================
RCS file: /cvsroot/cgui/cgui/examples/18icons.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** 18icons.c 2 Mar 2003 17:57:34 -0000 1.1
--- 18icons.c 2 May 2003 07:43:30 -0000 1.2
***************
*** 30,33 ****
--- 30,36 ----
}
+ extern int ModifyButton(int id, const char *out, const char *in);
+ extern int ModifyCheck(int id, const char *outoff, const char *inoff,
+ const char *outon, const char *inon);
static void make_object_window(void)
{
Index: 20anim.c
===================================================================
RCS file: /cvsroot/cgui/cgui/examples/20anim.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** 20anim.c 2 Mar 2003 17:57:34 -0000 1.1
--- 20anim.c 2 May 2003 07:43:30 -0000 1.2
***************
*** 137,138 ****
--- 137,139 ----
}
END_OF_MAIN();
+
Index: allegro.cfg
===================================================================
RCS file: /cvsroot/cgui/cgui/examples/allegro.cfg,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** allegro.cfg 12 Apr 2003 09:56:47 -0000 1.4
--- allegro.cfg 2 May 2003 07:43:30 -0000 1.5
***************
*** 58,65 ****
Show-hidden-system = 0
Force-case = 0
! Show-buffer = 0
Add-mode = 0
! X-pos = 998
! Y-pos = 0
Width = 0
Height = 373
--- 58,65 ----
Show-hidden-system = 0
Force-case = 0
! Show-buffer = 1
Add-mode = 0
! X-pos = 250
! Y-pos = -133
Width = 0
Height = 373
***************
*** 74,78 ****
Width-path = 0
Nr-lists = 1
! Init-path = c:\a\cgui
! x-preview = 402
! y-preview = 239
--- 74,78 ----
Width-path = 0
Nr-lists = 1
! Init-path = c:\a\cgui\examples\examples.dat
! x-preview = 434
! y-preview = 287
Index: examples.dat
===================================================================
RCS file: /cvsroot/cgui/cgui/examples/examples.dat,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
Binary files /tmp/cvsKQEQKI and /tmp/cvs4uOS0h differ
|
|
From: <ch...@us...> - 2003-05-02 07:43:32
|
Update of /cvsroot/cgui/cgui/docs
In directory sc8-pr-cvs1:/tmp/cvs-serv11411/docs
Modified Files:
cgui._tx
Log Message:
Implemented a few things regarding feature request 723573 "Adding skinnability".
- The possibility of setting a specific container background.
- The possibility of application specific drawing routine for objects 'SetObjectViewer'
- The possibility of application specific drawing routine for frames of object types 'SetObjectTypeFrame'
Index: cgui._tx
===================================================================
RCS file: /cvsroot/cgui/cgui/docs/cgui._tx,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** cgui._tx 12 Apr 2003 09:56:47 -0000 1.4
--- cgui._tx 2 May 2003 07:43:29 -0000 1.5
***************
*** 1494,1497 ****
--- 1494,1571 ----
Return value: 1 on sucess else 0.
+ @@int @SetObjectViewer(int id, int w, int h, void (*CallBack)(BITMAP*b, void *data, int flags), void *data);
+ @xref SetObjectTypeFrame
+ This function overrides the default apperance of an object. You can use
+ this function to get an indiviual look of some or all objects. Doing this
+ will disable some of the default behavior of the object. E.g. it will no
+ longer respond to changes because of resizing - its size will be fixed to
+ w x h and it is completely up to `CallBack' to fill this area with content.
+ You have to first create an object the normal way (use empty string for
+ the label) then call `SetObjectViewer' to override.<br>
+ Parameters:
+ <ul>
+ <li> id - The id of the object to override.
+ <li> w - The width of the object. Since the label of the object is now
+ ignored the size can not be dynamically calculated and will be fixed.
+ <li> h - The height of the object to override.
+ <li> CallBack - The function that shall draw the object. This function
+ will be called whenever the object needs to be drawn. Parameters to
+ `CallBack':
+ <ul>
+ <li> b - The bitmap to fill with drawing. The content of the bitmap is
+ normally uninitialized so you need to fill it entirely.
+ <li> data - A pointer to some data of yours, that you probably need to
+ make the drawing.
+ <li> flags - Some flags that may be used to detect a certain drawing.
+ The following flags are available:
+ <ul>
+ <li> CGUI_VIEWER_UP - Normal view
+ <li> CGUI_VIEWER_DOWN - Down view (i.e. the mouse is over and mouse
+ button is pressed). Either of the flags CGUI_VIEWER_UP and
+ CGUI_VIEWER_DOWN is set, never both.
+ <li> CGUI_VIEWER_FOCUS - Indicates that the object is in focus. Can
+ be combined with any of the other.
+ </ul>
+ </ul>
+ <li> data - A pointer to some data that will be passed to `CallBack'.
+ </ul>
+ Returns the value of `id' if it is valid else 0.
+
+ @@int @SetObjectTypeFrame(int type, void (*DrawFrame)(BITMAP*b, int flags), int w);
+ @xref SetObjectViewer
+ This function will modify all subsequently created objects of type `type'
+ to get a look that differs from the default one. All the default behavior
+ of the object is still in use (label, icon etc.), only the frame is to be
+ drawn. <br>
+ Parameters:
+ <ul>
+ <li> type - The object type, which must be one of the following:
+ <ul>
+ <li> CGUI_OBJTYPE_BUTTON - A push button
+ <li> CGUI_OBJTYPE_CHECK - A check box
+ <li> CGUI_OBJTYPE_RADIO - A radio button
+ <li> CGUI_OBJTYPE_TAG - A tag
+ <li> CGUI_OBJTYPE_TEXT - A text box
+ </ul>
+ <li> DrawFrame - A function of yours that is supposed to draw a frame that
+ is `w' wide. The default object drawer will draw the inner. Parameters
+ to `DrawFrame':
+ <ul>
+ <li> b - The bitmap to decorate with a frame.
+ <li> flags - Some flags that may be used to detect a certain drawing.
+ The following flags are available:
+ <ul>
+ <li> CGUI_VIEWER_UP - Normal view
+ <li> CGUI_VIEWER_DOWN - Down view (i.e. the mouse is over and mouse
+ button is pressed). Either of the flags CGUI_VIEWER_UP and
+ CGUI_VIEWER_DOWN is set, never both.
+ <li> CGUI_VIEWER_FOCUS - Indicates that the object is in focus. Can
+ be combined with any of the other.
+ </ul>
+ </ul>
+ <li> w - The thickness of the frame, this value may be in any range and
+ can be filled int whatever way you like.
+ </ul>
+ Returns the non-zero ff `type' is valid else 0.
@@void @Remove(int id);
***************
*** 2401,2404 ****
--- 2475,2491 ----
extending or shrinking the window).
+ @@int @SetContainerBackground(int id, BITMAP *bmp);
+ This function will set the background to the specified bitmap rather than
+ painting it gray. Note that the id to a dialog window also referes to a
+ container. Also note that if `id' referes to a container outlined with
+ a frame you may want to consider the thickness of the frame. The backgroud
+ is blitted before the frame are drawn.<br>
+ Parameters:
+ <ul>
+ <li> id - The id of the container to have a new background
+ <li> bmp - The bitmap that will be blitted. If bmp is of less size than
+ the current container then it will be repeatedly blitted.
+ </ul>
+ Returns 0 if `id' does not refere to a container else non-zero.
@heading
|
|
From: SourceForge.net <no...@so...> - 2003-04-26 17:08:59
|
Bugs item #728107, was opened at 2003-04-26 17:05 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=542642&aid=728107&group_id=75005 Category: Windows Group: None Status: Open Resolution: None Priority: 8 Submitted By: Christer Sandberg (chrisan) Assigned to: Christer Sandberg (chrisan) Summary: Build fails when including winalleg.h Initial Comment: Cgui contains identifiers conflicting with windows stuff. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=542642&aid=728107&group_id=75005 |
|
From: <ch...@us...> - 2003-04-26 17:01:17
|
Update of /cvsroot/cgui/cgui/examples
In directory sc8-pr-cvs1:/tmp/cvs-serv14501
Modified Files:
09menus.c 21canvas.c 23ttip.c
Log Message:
Fixed incompatibility with winalleg.h
Index: 09menus.c
===================================================================
RCS file: /cvsroot/cgui/cgui/examples/09menus.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** 09menus.c 2 Mar 2003 17:57:34 -0000 1.1
--- 09menus.c 26 Apr 2003 17:01:14 -0000 1.2
***************
*** 191,195 ****
MkMenuBarItem("Options", options_menu, &wd);
MkMenuBarItem("Windows", windows_menu, &wd);
! EndMenu();
AddTextBox(DOWNLEFT, "This example show how to use menus._"
"Some of the menu-selections (the recursive) have no special meaning._"
--- 191,195 ----
MkMenuBarItem("Options", options_menu, &wd);
MkMenuBarItem("Windows", windows_menu, &wd);
! EndMenuBar();
AddTextBox(DOWNLEFT, "This example show how to use menus._"
"Some of the menu-selections (the recursive) have no special meaning._"
Index: 21canvas.c
===================================================================
RCS file: /cvsroot/cgui/cgui/examples/21canvas.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** 21canvas.c 2 Mar 2003 17:57:34 -0000 1.1
--- 21canvas.c 26 Apr 2003 17:01:14 -0000 1.2
***************
*** 386,390 ****
MkMenuBarItem("Edit", edit_menu, edit);
MkMenuBarItem("Windows", windows_menu, edit);
! EndMenu();
edit->idpos = StartContainer(DOWNLEFT, ADAPTIVE, "", 0);
AddEditBox(DOWNLEFT, 30, "x", FINT, 3, &edit->x);
--- 386,390 ----
MkMenuBarItem("Edit", edit_menu, edit);
MkMenuBarItem("Windows", windows_menu, edit);
! EndMenuBar();
edit->idpos = StartContainer(DOWNLEFT, ADAPTIVE, "", 0);
AddEditBox(DOWNLEFT, 30, "x", FINT, 3, &edit->x);
Index: 23ttip.c
===================================================================
RCS file: /cvsroot/cgui/cgui/examples/23ttip.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** 23ttip.c 2 Mar 2003 17:57:34 -0000 1.1
--- 23ttip.c 26 Apr 2003 17:01:14 -0000 1.2
***************
*** 109,113 ****
MkMenuBarItem("Options", options_menu, opts);
MkMenuBarItem("Windows", windows_menu, NULL);
! EndMenu();
AddTag(DOWNLEFT, "The buttons below are just dummies");
id = AddButton(DOWNLEFT, "#open;Open", dummy_func, NULL);
--- 109,113 ----
MkMenuBarItem("Options", options_menu, opts);
MkMenuBarItem("Windows", windows_menu, NULL);
! EndMenuBar();
AddTag(DOWNLEFT, "The buttons below are just dummies");
id = AddButton(DOWNLEFT, "#open;Open", dummy_func, NULL);
|
|
From: <ch...@us...> - 2003-04-26 16:59:30
|
Update of /cvsroot/cgui/cgui/src
In directory sc8-pr-cvs1:/tmp/cvs-serv13773
Modified Files:
menubar.c
Log Message:
Fixed incompatibility with winalleg.h
Index: menubar.c
===================================================================
RCS file: /cvsroot/cgui/cgui/src/menubar.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** menubar.c 2 Mar 2003 17:45:17 -0000 1.1
--- menubar.c 26 Apr 2003 16:59:27 -0000 1.2
***************
*** 277,282 ****
}
! /* EndMenu stops the possibility of entering menu-items into the menu */
! extern void EndMenu(void)
{
static t_tcfun tcfun;
--- 277,282 ----
}
! /* EndMenuBar stops the possibility of entering menu-items into the menu */
! extern void EndMenuBar(void)
{
static t_tcfun tcfun;
***************
*** 362,366 ****
}
b->tf = &tf;
! EndMenu();
return b->id;
}
--- 362,366 ----
}
b->tf = &tf;
! EndMenuBar();
return b->id;
}
|
|
From: <ch...@us...> - 2003-04-26 16:55:55
|
Update of /cvsroot/cgui/cgui/include In directory sc8-pr-cvs1:/tmp/cvs-serv12582 Modified Files: cgui.h Log Message: Fixed incompatibility with winalleg.h Index: cgui.h =================================================================== RCS file: /cvsroot/cgui/cgui/include/cgui.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** cgui.h 12 Apr 2003 09:56:47 -0000 1.5 --- cgui.h 26 Apr 2003 16:55:51 -0000 1.6 *************** *** 106,110 **** CGUI_FUNC(int, MakeMenuBar, (void)); CGUI_FUNC(int, MkMenuBarItem, (const char *text, CGUI_METHOD(void, CallBack, (void *)), void *data)); ! CGUI_FUNC(void, EndMenu, (void)); CGUI_FUNC(int, MkScratchMenu, (int id, CGUI_METHOD(void, CallBack, (void *)), void *data)); CGUI_FUNC(int, MkSingleMenu, (int x, int y, const char *text, CGUI_METHOD(void, CallBack, (void *)), void *data)); --- 106,110 ---- CGUI_FUNC(int, MakeMenuBar, (void)); CGUI_FUNC(int, MkMenuBarItem, (const char *text, CGUI_METHOD(void, CallBack, (void *)), void *data)); ! CGUI_FUNC(void, EndMenuBar, (void)); CGUI_FUNC(int, MkScratchMenu, (int id, CGUI_METHOD(void, CallBack, (void *)), void *data)); CGUI_FUNC(int, MkSingleMenu, (int x, int y, const char *text, CGUI_METHOD(void, CallBack, (void *)), void *data)); *************** *** 228,231 **** --- 228,244 ---- #define SV_PREFERE_BRIEF 32 #define SV_PREFERE_LONG 0 + + CGUI_FUNC(int, SetObjectViewer, (int id, int w, int h, CGUI_METHOD(void, CallBack, (struct BITMAP*,void*,int)), void *data)); + #define CGUI_VIEWER_UP 0 + #define CGUI_VIEWER_DOWN 1 + #define CGUI_VIEWER_FOCUS 2 + + CGUI_FUNC(int, SetObjectTypeFrame, (int type, CGUI_METHOD(void, DrawFrame, (struct BITMAP*, int)), int w)); + #define CGUI_OBJTYPE_BUTTON 0 + #define CGUI_OBJTYPE_CHECK 1 + #define CGUI_OBJTYPE_RADIO 2 + #define CGUI_OBJTYPE_TAG 3 + #define CGUI_OBJTYPE_TEXT 4 + CGUI_FUNC(int, RegisterDragFlag, (int flag)); CGUI_FUNC(int, UnRegisterDragFlag, (int flag)); *************** *** 252,256 **** CGUI_FUNC(void, ReBuildContainer, (int id)); CGUI_FUNC(void, EmptyContainer, (int id)); ! #define OFF 0 #define ON 1 --- 265,269 ---- CGUI_FUNC(void, ReBuildContainer, (int id)); CGUI_FUNC(void, EmptyContainer, (int id)); ! CGUI_FUNC(int, SetContainerBackground, (int id, struct BITMAP *bmp)); #define OFF 0 #define ON 1 *************** *** 262,266 **** #define ROW_UNCHECK 0x10000000 #define COL_RIGHT_ALIGN 0x08000000 ! CGUI_FUNC(int, AddList, (int x, int y, void *listdata, int *n, int width, int events, CGUI_METHOD(int, LP, (void *, char *)), CGUI_METHOD(void, Action, (int id, void *)), int norows)); CGUI_FUNC(int, SetLinkedList, (int id, CGUI_METHOD(void *, NextCreater, (void *list, void *current)))); CGUI_FUNC(int, SetIndexedList, (int id, CGUI_METHOD(void *, IndexCreater, (void *list, int i)))); --- 275,279 ---- #define ROW_UNCHECK 0x10000000 #define COL_RIGHT_ALIGN 0x08000000 ! CGUI_FUNC(int, AddList, (int x, int y, void *listdata, int *n, int width, int events, CGUI_METHOD(int, TextFormatter, (void *, char *)), CGUI_METHOD(void, Action, (int id, void *)), int norows)); CGUI_FUNC(int, SetLinkedList, (int id, CGUI_METHOD(void *, NextCreater, (void *list, void *current)))); CGUI_FUNC(int, SetIndexedList, (int id, CGUI_METHOD(void *, IndexCreater, (void *list, int i)))); *************** *** 274,278 **** CGUI_FUNC(int, SetListDroppable, (int listid, CGUI_METHOD(int, Drop, (void *destobj, int reason, void *srcobj, void *destlist, int i, int flags)), int flags)); CGUI_FUNC(int, SetListDoubleClick, (int listid, CGUI_METHOD(void, AppDouble, (int id, void *data, int i)), int button)); ! CGUI_FUNC(int, HookList, (int listid, void *listdata, int *n, int width, int events, CGUI_METHOD(int, LP, (void *, char *)), CGUI_METHOD(void, Action, (int, void *)))); CGUI_FUNC(int, SetDeleteHandler, (int listid, CGUI_METHOD(void, CallBack, (int rowid, void *object)))); CGUI_FUNC(int, SetInsertHandler, (int listid, CGUI_METHOD(void, CallBack, (void *list, int index)))); --- 287,291 ---- CGUI_FUNC(int, SetListDroppable, (int listid, CGUI_METHOD(int, Drop, (void *destobj, int reason, void *srcobj, void *destlist, int i, int flags)), int flags)); CGUI_FUNC(int, SetListDoubleClick, (int listid, CGUI_METHOD(void, AppDouble, (int id, void *data, int i)), int button)); ! CGUI_FUNC(int, HookList, (int listid, void *listdata, int *n, int width, int events, CGUI_METHOD(int, TextFormatter, (void *, char *)), CGUI_METHOD(void, Action, (int, void *)))); CGUI_FUNC(int, SetDeleteHandler, (int listid, CGUI_METHOD(void, CallBack, (int rowid, void *object)))); CGUI_FUNC(int, SetInsertHandler, (int listid, CGUI_METHOD(void, CallBack, (void *list, int index)))); *************** *** 422,426 **** CGUI_VAR(int , continous_update_resize); - #define LoadImage You_have_used_LoadImage_that_does_no_longer_exist_Use_CguiLoadImage_instead; /* obsolete */ #ifndef ERROR_IF_OBSOLETE --- 435,438 ---- |
|
From: <ch...@us...> - 2003-04-25 19:48:48
|
Update of /cvsroot/cgui/cgui/misc In directory sc8-pr-cvs1:/tmp/cvs-serv15488 Added Files: scanexp.c Log Message: Missed file... this only concerns developers --- NEW FILE: scanexp.c --- /* scanexp.c: Dummy C file to help scanning all symbols. */ #define CGUI_SCAN_EXPORT #include "cgui.h" #include "cgui/mem.h" #include "cgui/misc.h" #include "cgui/dw_conv.h" #include "cgui/clipwin.h" #include "cgui/formdate.h" #include "cgui/halfform.h" |
|
From: SourceForge.net <no...@so...> - 2003-04-18 09:19:58
|
Feature Requests item #723595, was opened at 2003-04-18 09:19 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=542645&aid=723595&group_id=75005 Category: None Group: None Status: Open Priority: 5 Submitted By: Christer Sandberg (chrisan) Assigned to: Nobody/Anonymous (nobody) Summary: Symbolic names of file suffixes in file browser Initial Comment: The possibility to pass named file name suffixes (or a groups of) to be used as fixed alternatives instead of the editable one. A complementary function will be needed for that. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=542645&aid=723595&group_id=75005 |
|
From: SourceForge.net <no...@so...> - 2003-04-18 09:18:29
|
Feature Requests item #723593, was opened at 2003-04-18 09:18 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=542645&aid=723593&group_id=75005 Category: None Group: None Status: Open Priority: 5 Submitted By: Christer Sandberg (chrisan) Assigned to: Nobody/Anonymous (nobody) Summary: Permission flags of data file objects Initial Comment: The data file objects could get the permission flags of the datafile viewed as their own. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=542645&aid=723593&group_id=75005 |
|
From: SourceForge.net <no...@so...> - 2003-04-18 09:17:06
|
Feature Requests item #723592, was opened at 2003-04-18 09:17 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=542645&aid=723592&group_id=75005 Category: None Group: None Status: Open Priority: 5 Submitted By: Christer Sandberg (chrisan) Assigned to: Nobody/Anonymous (nobody) Summary: Directory prefetch in file browser Initial Comment: Add directory prefetch (optional) into the file browser to speed up directory listings (try to predict which directories to be opened). This requires cashing to be introduced first. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=542645&aid=723592&group_id=75005 |
|
From: SourceForge.net <no...@so...> - 2003-04-18 09:15:07
|
Feature Requests item #723590, was opened at 2003-04-18 09:15 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=542645&aid=723590&group_id=75005 Category: None Group: None Status: Open Priority: 6 Submitted By: Christer Sandberg (chrisan) Assigned to: Nobody/Anonymous (nobody) Summary: Directory cashing in file browser Initial Comment: Add directory cashing (optional) in the file browser. This will be necessary befor introducing a tree view. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=542645&aid=723590&group_id=75005 |
|
From: SourceForge.net <no...@so...> - 2003-04-18 09:13:46
|
Feature Requests item #723589, was opened at 2003-04-18 09:13 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=542645&aid=723589&group_id=75005 Category: None Group: None Status: Open Priority: 6 Submitted By: Christer Sandberg (chrisan) Assigned to: Nobody/Anonymous (nobody) Summary: Generic history buffer Initial Comment: Add generic functionality for making things like history buffer. A special mode of an edit-box or an extended editbox. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=542645&aid=723589&group_id=75005 |
|
From: SourceForge.net <no...@so...> - 2003-04-18 09:11:31
|
Feature Requests item #723588, was opened at 2003-04-18 09:11 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=542645&aid=723588&group_id=75005 Category: None Group: None Status: Open Priority: 5 Submitted By: Christer Sandberg (chrisan) Assigned to: Nobody/Anonymous (nobody) Summary: History buffer in the current path box of the file browser Initial Comment: Add a history buffer in the current path box of the file browser. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=542645&aid=723588&group_id=75005 |
|
From: SourceForge.net <no...@so...> - 2003-04-18 09:10:15
|
Feature Requests item #723587, was opened at 2003-04-18 09:10 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=542645&aid=723587&group_id=75005 Category: None Group: None Status: Open Priority: 5 Submitted By: Christer Sandberg (chrisan) Assigned to: Nobody/Anonymous (nobody) Summary: Tree view in the file browser Initial Comment: Add a graphical tree view (optional) in the file browser ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=542645&aid=723587&group_id=75005 |
|
From: SourceForge.net <no...@so...> - 2003-04-18 09:09:22
|
Feature Requests item #723586, was opened at 2003-04-18 09:09 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=542645&aid=723586&group_id=75005 Category: None Group: None Status: Open Priority: 5 Submitted By: Christer Sandberg (chrisan) Assigned to: Nobody/Anonymous (nobody) Summary: Docking of the preview window in the file browser Initial Comment: Add the possibility (optional) to dock the preview window into the file browser window ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=542645&aid=723586&group_id=75005 |
|
From: SourceForge.net <no...@so...> - 2003-04-18 09:08:20
|
Feature Requests item #723585, was opened at 2003-04-18 09:08 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=542645&aid=723585&group_id=75005 Category: None Group: None Status: Open Priority: 5 Submitted By: Christer Sandberg (chrisan) Assigned to: Nobody/Anonymous (nobody) Summary: Exporting "internal" stuff Initial Comment: Exporting a subset of the now external declared variables and functions in an "include/internal" directory similar to Allegro, just to make it easier for people to make som fun things. The "Internally prefixing should however be done first. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=542645&aid=723585&group_id=75005 |
|
From: SourceForge.net <no...@so...> - 2003-04-18 09:06:51
|
Feature Requests item #723584, was opened at 2003-04-18 09:06 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=542645&aid=723584&group_id=75005 Category: None Group: None Status: Open Priority: 5 Submitted By: Christer Sandberg (chrisan) Assigned to: Nobody/Anonymous (nobody) Summary: Externally prefixing Initial Comment: Add prefix cgui to all exported identifiers. This will completely break API so the should all be introduced in the same new version. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=542645&aid=723584&group_id=75005 |
|
From: SourceForge.net <no...@so...> - 2003-04-18 09:05:00
|
Feature Requests item #723583, was opened at 2003-04-18 09:04 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=542645&aid=723583&group_id=75005 Category: None Group: None Status: Open Priority: 5 Submitted By: Christer Sandberg (chrisan) Assigned to: Nobody/Anonymous (nobody) Summary: Internally prefixing. Initial Comment: Add _cgui prefix to all global identifiers that are not exported ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=542645&aid=723583&group_id=75005 |
|
From: SourceForge.net <no...@so...> - 2003-04-18 09:03:35
|
Feature Requests item #723582, was opened at 2003-04-18 09:03 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=542645&aid=723582&group_id=75005 Category: None Group: None Status: Open Priority: 5 Submitted By: Christer Sandberg (chrisan) Assigned to: Nobody/Anonymous (nobody) Summary: Multi line input Initial Comment: A widget for multi line input. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=542645&aid=723582&group_id=75005 |