424
Platforms
©2000-2008 Tibbo Technology Inc.
When the display is locked, you can make changes to the display data without
showing these changes on the screen. You can then unlock the display (lcd.unlock)
and show all the changes made at once. This usually greatly improves the display
agility perception by the user (see
Improving Graphical Performance
).
When you execute this method for the first time, the display gets locked and the
R/O property changes from 0 to 1. You can invoke lcd.lock again
and again, and the lcd.lockcount will increase with each call to the lcd.lock. This
allows you to nest locks/unlocks (again, see
Improving Graphical Performance
).
Of course, the display is not locked "any harder" at lcd.lockcount=2 compared to
lcd.lockcount=1. The display is simply locked for all lcd.lockcount values other
than 0.
Not all controllers/panels support this feature. See the
section for details on the display you are using. If your display does not
support locking, executing lcd.lock will have no effect and
will
always stay at 0.
.Lockcount R/O Property
Function:
Indicates the current nesting level of the display lock.
Type:
Byte
Value Range:
0-255. Default= 0 (display unlocked).
See Also:
---
Details
Invoking
increases the value of this property by 1. If 255 is reached,
the value does not roll over to 0 and stays at 255. Invoking
decreases the value of this property by 1. When 0 is reached, the value does not
roll over to 255 and stays at 0. The display is locked when lcd.lockcount is not at
0. Of course, the display does not get locked any "harder" with every increment of
the lcd.lockcount.
When the display is locked, you can make changes to the display data without
showing these changes on the screen. You can then unlock the display and show
all the changes made at once. This usually greatly improves the display agility
perception (see
Improving Graphical Performance
).
Not all controllers/panels support this feature. See the
section for details on the display you are using. If your display does not
support locking, executing lcd.lock will have no effect and
will
always stay at 0.
.Paneltype R/O Property
Function:
Returns the type of the currently selected controller/
panel.
Type:
Enum (pl_lcd_paneltype, byte)
Value Range:
0- PL_LCD_PANELTYPE_GRAYSCALE: This is a
monochrome or grayscale panel/controller.
1- PL_LCD_PANELTYPE_COLOR: This is a color panel/
controller.
405
424
405
408
424
423
431
405
408
424