Robert.Moser@med.va.gov
2003-12-08, 10:32
Dean wrote:
> My concern about this would be about performance.
We would probably get better performance out of an object than we would out
of parsing XML each time we did a screen refresh.
The more I think about it, returning a screen object probably isn't the
right thing to do. The client object should probably contain a screen
object. Then a module wanting to write its text to the screen would do
something like this:
$client->screen->clear();
$client->screen->addText("This is line one\nThis is line two\n");
$client->screen->addText("vfD_rightarrow_Vfd"
,{'v-align' => 'bottom'
,'h-align' => 'right'};
Which would result in a screen like:
+--------------------------------+
|This is line one |
|This is line two >|
+--------------------------------+
> My concern about this would be about performance.
We would probably get better performance out of an object than we would out
of parsing XML each time we did a screen refresh.
The more I think about it, returning a screen object probably isn't the
right thing to do. The client object should probably contain a screen
object. Then a module wanting to write its text to the screen would do
something like this:
$client->screen->clear();
$client->screen->addText("This is line one\nThis is line two\n");
$client->screen->addText("vfD_rightarrow_Vfd"
,{'v-align' => 'bottom'
,'h-align' => 'right'};
Which would result in a screen like:
+--------------------------------+
|This is line one |
|This is line two >|
+--------------------------------+