Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting windows properties in DEFINE WINDOW?
Message
 
To
04/08/1999 07:23:41
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00248917
Message ID:
00249671
Views:
24
I always have this problem ;) What I was trying to say was CreateObject('Form') and DEFINE WINDOW are the same thing under the hood of VFP.
You can CreateObject('FORM') and BROWSE WINDOW 'FORM' instead of having to use the DEFINE WINDOW to do the same thing you are trying to do. With the benefit of createobject('form') giving you complete control over the look/feel.



same thing.
>Ed,
>
>Thanks. I know about this idea that you suggest. Since I use BROWSE ..WINDOW, that's why I need to use DEFINE WINDOW command. And it'll be saving up time and effort rather than creating a new form and grid for it then have the controlsource inside, because the users rarely use the function.
>
>Anyway, I think this will be solve in Cetin's code.
>
>Thanks again,
>Gan
>
>>ox = createobject('Form') is much better than the old define window, you can still use it in window commands, but you can control the look through object commands instead of the awful define window syntax.
>>
>>ox.createobject('form')
>>ox.name = 'TEST'
>>ox.caption = 'Sample Browse Window'
>>
>>select table
>>browse window test
>>
>>>All,
>>>
>>>I have a DEFINE WINDOW command line where I want to control the properties of it. Example , I want only vertical scrollbar when I issue a BROWSE ....WINDOW using the window. Or, Allow Row Sizing =.F. when doing the job.
>>>
>>>How can I do that? NAME objectname in the DEFINE WINDOW syntax?
>>>
>>>
>>>Thanks,
>>>Gan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform