I have just started using BasicMaker and, almost immediately, I have found a problem that I cannot fix and I am hoping someone can set me straight.
First, let me provide a couple of statements from the manual: The definitions:
Next, the definition of these values:Begin Dialog DialogName [X, Y,] Width, Height,
X, Y Optional. Sets the screen coordinates for the upper left corner of the dialog box (in screen pixels).
Next, a short program illustrating my problem:Width, Height Sets the width and height of the dialog (in screen pixels).
Code: Select all
Sub Main
Dim pm as Object
Set pm = CreateObject("PlanMaker.Application")
Begin Dialog Welcome 500, 500, 400, 200, "Test of Dialog Sizes"
Text 100, 25, 150, 45, "This is Test Message 1"
Text 100, 50, 150, 75, "This is Test Message 2"
PushButton 100, 75, 50, 25, "Continue"
PushButton 100, 125, 50, 70, "Exit"
End Dialog
Dim WelcomeDialog As Welcome
DialogReturn% = Dialog(WelcomeDialog)
End Sub
The first thing to notice is the red box - The program calls for a dialog box 400x200px; BM drew one that is 1000x500px! From the picture, it is easy to see that the locations of the texts are wrong as are the locations and sizes of the buttons!
I hope someone can point out to me where I am going wrong. Thanks in advance.