diff options
author | James Bursa <james@netsurf-browser.org> | 2003-09-26 23:22:00 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2003-09-26 23:22:00 +0000 |
commit | 311c488f5a29e056fbdc5951bf47c9237ba7dcd1 (patch) | |
tree | 439d1f3dae29b390a51137bea9eaf5a349f21070 /riscos/htmlredraw.c | |
parent | ba67140eb5da51be454c7869e372be44309ad41b (diff) | |
download | netsurf-311c488f5a29e056fbdc5951bf47c9237ba7dcd1.tar.gz netsurf-311c488f5a29e056fbdc5951bf47c9237ba7dcd1.tar.bz2 |
[project @ 2003-09-26 23:22:00 by bursa]
Implement button element and more work on input element.
svn path=/import/netsurf/; revision=322
Diffstat (limited to 'riscos/htmlredraw.c')
-rw-r--r-- | riscos/htmlredraw.c | 26 |
1 files changed, 4 insertions, 22 deletions
diff --git a/riscos/htmlredraw.c b/riscos/htmlredraw.c index 892b49795..fcfd663eb 100644 --- a/riscos/htmlredraw.c +++ b/riscos/htmlredraw.c @@ -57,8 +57,6 @@ void html_redraw(struct content *c, long x, long y, static char validation_textarea[] = "R7;L"; static char validation_textbox[] = ""; static char validation_password[] = "D*"; -static char validation_actionbutton[] = "R5"; -static char validation_actionbutton_pressed[] = "R5,3"; static char validation_select[] = "R2"; static char validation_checkbox_selected[] = "Sopton"; static char validation_checkbox_unselected[] = "Soptoff"; @@ -127,7 +125,10 @@ void html_redraw_box(struct content *content, struct box * box, if (box->object) { content_redraw(box->object, x, y, width, height, x0, y0, x1, y1); - } else if (box->gadget && box->gadget->type != GADGET_TEXTAREA) { + } else if (box->gadget && + box->gadget->type != GADGET_TEXTAREA && + box->gadget->type != GADGET_SUBMIT && + box->gadget->type != GADGET_RESET) { wimp_icon icon; LOG(("writing GADGET")); @@ -159,25 +160,6 @@ void html_redraw_box(struct content *content, struct box * box, wimp_plot_icon(&icon); break; - case GADGET_ACTIONBUTTON: - icon.flags = wimp_ICON_TEXT | wimp_ICON_BORDER | - wimp_ICON_VCENTRED | wimp_ICON_FILLED | - wimp_ICON_INDIRECTED | wimp_ICON_HCENTRED | - (wimp_COLOUR_BLACK << wimp_ICON_FG_COLOUR_SHIFT); - icon.data.indirected_text.text = box->gadget->data.actionbutt.label; - icon.data.indirected_text.size = strlen(box->gadget->data.actionbutt.label); - if (box->gadget->data.actionbutt.pressed) { - icon.data.indirected_text.validation = validation_actionbutton_pressed; - icon.flags |= - (wimp_COLOUR_LIGHT_GREY << wimp_ICON_BG_COLOUR_SHIFT) | wimp_ICON_SELECTED; - } else { - icon.data.indirected_text.validation = validation_actionbutton; - icon.flags |= (wimp_COLOUR_VERY_LIGHT_GREY << wimp_ICON_BG_COLOUR_SHIFT); - } - LOG(("writing GADGET ACTION")); - wimp_plot_icon(&icon); - break; - case GADGET_SELECT: icon.flags = wimp_ICON_TEXT | wimp_ICON_BORDER | wimp_ICON_VCENTRED | wimp_ICON_FILLED | |