Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can not get the logic right
Message
 
 
To
23/06/2009 13:10:51
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01407699
Message ID:
01407828
Views:
36
>>>My first impression is that it is not refreshed properly. Could you toggle Form.Lockscreen=.T./.F. around your code?
>>>
>>Ok, now (after I corrected some logic problems, got rid of anchors) it works almost perfectly. The only thing I think I need to implement is the Min Height and Width. Unfortunately, containers don't have MinHeight/MinWidth properties (would be nice if they do). So, what would be my options here?
>>
>>Try to use Height/Width assign methods to check for minimum (as recently discussed with Bhav)?
>
>Use Max() function any time you calculate height/width, e.g.
>This.Container.Height=Max(100,...your calculations here...)

Good idea, thanks. Though I mean min.

However, I wanted this for the outer container. I removed anchors from the inner parts, but I set the container's itself Anchor to 45. I don't want in run-time my container get smaller than certain point.

Though I think I will just set minimum values for the form itself and this should take care of the problem.

Nice talking to you again, I think we just came up with the solution.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform