mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 09:58:01 +00:00
dd support for list boxes in Mac OS 8. Not entirely solid, but largely
working. [ bits missed in the first commit ] [originally from svn r3069]
This commit is contained in:
parent
f51cc630c2
commit
9117b20d18
@ -78,6 +78,8 @@ struct macctrls {
|
|||||||
unsigned int curpanel;
|
unsigned int curpanel;
|
||||||
union macctrl **panels; /* lists of controls by panel */
|
union macctrl **panels; /* lists of controls by panel */
|
||||||
union macctrl *focus; /* Input focus for System 7 */
|
union macctrl *focus; /* Input focus for System 7 */
|
||||||
|
union macctrl *defbutton; /* Default button */
|
||||||
|
union macctrl *canbutton; /* Cancel button */
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct Session {
|
typedef struct Session {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $Id: mac_res.r,v 1.37 2003/03/29 22:04:21 ben Exp $ */
|
/* $Id: mac_res.r,v 1.38 2003/04/05 22:03:06 ben Exp $ */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1999, 2002, 2003 Ben Harris
|
* Copyright (c) 1999, 2002, 2003 Ben Harris
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
@ -1128,3 +1128,16 @@ data 'CDEF' (CDEF_EditBox) {
|
|||||||
data 'CDEF' (CDEF_Default) {
|
data 'CDEF' (CDEF_Default) {
|
||||||
$"4EF9 00000000"
|
$"4EF9 00000000"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* List box template */
|
||||||
|
|
||||||
|
resource 'ldes' (ldes_Default) {
|
||||||
|
versionZero {
|
||||||
|
0, /* rows */
|
||||||
|
1, /* cols */
|
||||||
|
0, 0, /* default cell size */
|
||||||
|
hasVertScroll, noHorizScroll,
|
||||||
|
0, /* LDEF number */
|
||||||
|
noGrowSpace
|
||||||
|
}
|
||||||
|
};
|
@ -1,4 +1,4 @@
|
|||||||
/* $Id: macresid.h,v 1.14 2003/03/29 22:04:21 ben Exp $ */
|
/* $Id: macresid.h,v 1.15 2003/04/05 22:03:06 ben Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* macresid.h -- Mac resource IDs
|
* macresid.h -- Mac resource IDs
|
||||||
@ -59,6 +59,9 @@
|
|||||||
/* Controls */
|
/* Controls */
|
||||||
#define cVScroll 128
|
#define cVScroll 128
|
||||||
|
|
||||||
|
/* ldes for list box controls */
|
||||||
|
#define ldes_Default 128
|
||||||
|
|
||||||
/* xDEFs */
|
/* xDEFs */
|
||||||
#define CDEF_EditBox 129
|
#define CDEF_EditBox 129
|
||||||
#define SYS7_EDITBOX_VARIANT 0
|
#define SYS7_EDITBOX_VARIANT 0
|
||||||
|
Loading…
Reference in New Issue
Block a user