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.
This commit is contained in:
1 parent
3e3edb1d4d
commit
8dd34839e0
5 files changed
+26
-7
No files matched your search
@@ -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)
|
||||
|
||||
@@ -174,6 +174,8 @@ Boolean ContactsFormHandleEvent(EventType *event)
|
||||
|
||||
case frmUpdateEvent:
|
||||
SetTitle(form);
|
||||
if (event->data.frmUpdate.updateCode == frmRedrawUpdateCode)
|
||||
FrmDrawForm(form);
|
||||
Load(true);
|
||||
return true;
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -172,6 +172,8 @@ Boolean NodeFormHandleEvent(EventType *event)
|
||||
}
|
||||
case frmUpdateEvent:
|
||||
ShowRadioInfo(form);
|
||||
if (event->data.frmUpdate.updateCode == frmRedrawUpdateCode)
|
||||
FrmDrawForm(form);
|
||||
DrawClockLine();
|
||||
return true;
|
||||
|
||||
|
||||
Reference in new issue
Block a user