Guidance
指路人
g.yi.org
Guidance Forums / Rapid-Q Basic / Two errors on QDockForm.Inc

Register 
新用户注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. Two errors on QDockForm.Inc
#6384
Posted by: OvalX 2005-07-26 14:04:39
I used component QFormDock.Inc from with example QFormDock.Bas (additional by Ben Laws (c) 2004). All works fine...
...until I did add $TypeCheck ON into example and did run compiler. Ooops! - compiler finds 2 errors in file QFormDock.Inc:
1) on line 171 and 172 are these 2 wrong commands (dots are missing):
 .UndockedForm.Left = (Screen.Width - UndockedForm.Width)/ 2
 .UndockedForm.Top = (Screen.Height - UndockedForm.Height)/ 2
Right syntax must be with .UndockedForm:
 .UndockedForm.Left = (Screen.Width - .UndockedForm.Width)/ 2
 .UndockedForm.Top = (Screen.Height - .UndockedForm.Height)/ 2
2) Variable [color=#990000] I[/color] is NOT DECLARED on all inner code. It can make a mistake in future using of variable [color=#990000] I[/color] in my other code... What about variable TempI instead of often used variable [color=#990000] I[/color]? Declaring is needing.

Who can repair this (Author? Guidance?)
Have a nice day. Slavo

P.S.: QFormDock is very nice component with many styles. I think, from this time I will often use it in my forms. My THANK to the author!!!
Message2. Re: Two errors on QDockForm.Inc
#6410
Posted by: guidance 2005-07-31 07:56:50
Corrected. Thanks!
Message3. Re: Two errors on QDockForm.Inc
#6443
Posted by: OvalX 2005-08-03 18:10:12
Thank you, Guidance.
But - the second bug is still active ((TempI has wrong declaration)! I tried to compile new QDockForm.Inc with my code and log was:
 Line 331: ERROR: Undeclared identifier TEMPI
 qdockform.INC: In section QDFDOM.CANVAS.INHERITONPAINT
Note: QdfDom is name of my QDockForm component.
I don't know, in which part (section) of code must be this declaration for all component code, but this yours is not full correct. Try compile yourself with "$TYPECHECK ON" and will see too...
Thanks. Have a nice day. Slavo
Message4. Re: Two errors on QDockForm.Inc
#6445
Posted by: guidance 2005-08-03 20:49:46
Modified more, how about now?
Message5. Re: Two errors on QDockForm.Inc
#6447
Posted by: OvalX 2005-08-04 12:49:33
Now - I don't see any changes...
Compiler still says:
 Line 331: ERROR: Undeclared identifier .TEMPI
Maybe I have dirty glasses :-D
What was modified? Slavo
Message6. Re: Two errors on QDockForm.Inc
#6449
Posted by: guidance 2005-08-04 20:58:35
I know the problem eventually: the compiler doesn't support property variable works as loop variable.
Should be OK now. Sorry.
Message7. Re: Two errors on QDockForm.Inc
#6453
Posted by: OvalX 2005-08-05 15:02:26
Nice job and how simply, Guidance!
Thank you very much, QDockForm.Inc works perfect now!Best regards. Slavo
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Tue 2017-10-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0