>Juan Carlos Martin wrote:
>Vigdor Liran wrote:
>> HP 4.X Users
>> Hello all
>> how can I set the position on the view panel
>> of the
>> data-> dialog box -> message box
>> data-> dialog box -> text input ... and so on
>If you want to show the message box in some specific position, I suggest to
>include it in a User Function only dedicated to this.
>Other way is to generate an Specific User Function. Due to (as time before
>was discussed) message box stops the application until the operator (or
>timeout) accept or reject the message, we have developed specific operator
>message functions in our programs. Although the best way should be that the
>VEE itself could have that functionality, because their operator messages
>are very good and with several options very difficul to imitate in a
>developed User Funcion.
Creating your own panel for operator dialogs has a lot of advantages:
1) Most programs only stop when they are waiting for the operator. You can
inspect the operation of your program and probe lines while waiting for an
OK button in a panel. This is not the case if you use VEEs message box.
You can also change values of controls in inactive panels (although they
won't be read until that object is activated later.
2) You can select whether the panel is at a fixed position or moveable by
selecting "display on Activate" (for moveable) or Showpanel (for fixed)
3) If you have a lot of text to display (e.g. a multi-step setup
instruction), you can customize the display to make it larger. I use a 2D
text array as an input, so I can view and edit the text easier. For VEE
dialog boxes, the text often stretches beyond a screen width.
4) A high screen resolution like 1280 x 1024 is good for editing VEE code,
but it makes it difficult to see Dialog boxes when they are so small. Using
a single userfunction with large fonts gives a consistent user interface.
The alternative is setting the properties every time you create a new dialog
Jim Kneale firstname.lastname@example.org
ph (410)765-3807 /// Northrop Grumman ESSD (this week, anyway)
fax (410)993-8126 (..) Baltimore MD USA
#include "std_disclaimer.h" //opinions are my own