From 8dd34839e0123518406c2d56276c5b04d7b24ece Mon Sep 17 00:00:00 2001 From: "Rich O." Date: Sun, 1 Nov 2026 17:22:54 -0500 Subject: [PATCH] palm-client: two-line compose field; redraw fully after the keyboard The single-line compose field didn't scroll, so typing past its width was blind; it's now a two-line multi-line field (Palm scrolls it to keep the cursor visible; the transcript is 8 px shorter). Graffiti return still sends: the form catches linefeed before the field. Screens treated every frmUpdateEvent as new data and only redrew their own content, so after the on-screen keyboard (frmRedrawUpdateCode) the field, buttons and counter weren't redrawn. Conversation, Home, Contacts and Node now redraw the form for frmRedrawUpdateCode. --- palm-client/resources/visormesh.rcp | 6 +++--- palm-client/src/contacts_form.c | 2 ++ palm-client/src/convo_form.c | 12 ++++++++++-- palm-client/src/home_form.c | 11 +++++++++-- palm-client/src/node_form.c | 2 ++ 5 files changed, 26 insertions(+), 7 deletions(-) diff --git a/palm-client/resources/visormesh.rcp b/palm-client/resources/visormesh.rcp index fa78d29..8ae1868 100644 --- a/palm-client/resources/visormesh.rcp +++ b/palm-client/resources/visormesh.rcp @@ -45,9 +45,9 @@ USABLE MENUID MainMenuBar BEGIN TITLE " " - GADGET ID ConvoGadget AT (0 16 153 112) - SCROLLBAR ID ConvoScroll AT (153 16 7 112) VALUE 0 MIN 0 MAX 0 PAGESIZE 1 - FIELD ID ConvoField AT (1 131 158 12) UNDERLINED SINGLELINE EDITABLE MAXCHARS 150 + GADGET ID ConvoGadget AT (0 16 153 104) + SCROLLBAR ID ConvoScroll AT (153 16 7 104) VALUE 0 MIN 0 MAX 0 PAGESIZE 1 + FIELD ID ConvoField AT (1 122 158 22) UNDERLINED MULTIPLELINES EDITABLE MAXCHARS 150 AUTOSHIFT BUTTON "Send" ID ConvoSendButton AT (1 147 AUTO AUTO) BUTTON "Back" ID ConvoBackButton AT (PREVRIGHT+5 PREVTOP AUTO AUTO) GRAFFITISTATEINDICATOR AT (150 148) diff --git a/palm-client/src/contacts_form.c b/palm-client/src/contacts_form.c index c20c237..476c571 100644 --- a/palm-client/src/contacts_form.c +++ b/palm-client/src/contacts_form.c @@ -174,6 +174,8 @@ Boolean ContactsFormHandleEvent(EventType *event) case frmUpdateEvent: SetTitle(form); + if (event->data.frmUpdate.updateCode == frmRedrawUpdateCode) + FrmDrawForm(form); Load(true); return true; diff --git a/palm-client/src/convo_form.c b/palm-client/src/convo_form.c index 18860d0..6db3468 100644 --- a/palm-client/src/convo_form.c +++ b/palm-client/src/convo_form.c @@ -366,8 +366,16 @@ Boolean ConvoFormHandleEvent(EventType *event) return false; case frmUpdateEvent: - if (gLines) - Refresh(gList.top + RowListVisibleRows(&gList) >= gCount); /* follow new messages if at the end */ + if (!gLines) + return false; + if (event->data.frmUpdate.updateCode == frmRedrawUpdateCode) { + /* e.g. after the on-screen keyboard: redraw everything, not just the transcript */ + FrmDrawForm(form); + RowListDraw(&gList); + DrawCounter(); + return true; + } + Refresh(gList.top + RowListVisibleRows(&gList) >= gCount); /* follow new messages if at the end */ return true; case fldChangedEvent: diff --git a/palm-client/src/home_form.c b/palm-client/src/home_form.c index 516c62a..15fda61 100644 --- a/palm-client/src/home_form.c +++ b/palm-client/src/home_form.c @@ -130,8 +130,15 @@ Boolean HomeFormHandleEvent(EventType *event) return false; case frmUpdateEvent: - if (gRows) - Rebuild(true); + if (!gRows) + return false; + if (event->data.frmUpdate.updateCode == frmRedrawUpdateCode) { + FrmDrawForm(FrmGetActiveForm()); + RowListDraw(&gList); + DrawTitleStatus(); + return true; + } + Rebuild(true); return true; case ctlSelectEvent: diff --git a/palm-client/src/node_form.c b/palm-client/src/node_form.c index 91c2854..3a541a6 100644 --- a/palm-client/src/node_form.c +++ b/palm-client/src/node_form.c @@ -172,6 +172,8 @@ Boolean NodeFormHandleEvent(EventType *event) } case frmUpdateEvent: ShowRadioInfo(form); + if (event->data.frmUpdate.updateCode == frmRedrawUpdateCode) + FrmDrawForm(form); DrawClockLine(); return true;