equal
deleted
inserted
replaced
220 enum { |
220 enum { |
221 WDP_AUTO = -1, |
221 WDP_AUTO = -1, |
222 WDP_CENTER = -2, |
222 WDP_CENTER = -2, |
223 }; |
223 }; |
224 |
224 |
|
225 typedef struct Textbuf { |
|
226 char *buf; /* buffer in which text is saved */ |
|
227 uint16 maxlength, maxwidth; /* the maximum size of the buffer. Maxwidth specifies screensize in pixels */ |
|
228 uint16 length, width; /* the current size of the buffer. Width specifies screensize in pixels */ |
|
229 bool caret; /* is the caret ("_") visible or not */ |
|
230 uint16 caretpos; /* the current position of the caret in the buffer */ |
|
231 uint16 caretxoffs; /* the current position of the caret in pixels */ |
|
232 } Textbuf; |
|
233 |
225 typedef struct { |
234 typedef struct { |
226 StringID caption; |
235 StringID caption; |
227 bool caret; |
|
228 WindowClass wnd_class; |
236 WindowClass wnd_class; |
229 WindowNumber wnd_num; |
237 WindowNumber wnd_num; |
230 uint16 maxlen, maxwidth; |
238 Textbuf text; |
231 char *buf; |
|
232 const char* orig; |
239 const char* orig; |
233 } querystr_d; |
240 } querystr_d; |
234 |
241 |
235 #define WP(ptr,str) (*(str*)(ptr)->custom) |
242 #define WP(ptr,str) (*(str*)(ptr)->custom) |
236 // querystr_d is the bigest struct that comes in w->custom |
243 // querystr_d is the bigest struct that comes in w->custom |