Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WindowType property readonly in Init event, why?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00984827
Message ID:
00984850
Views:
36
>According to HELP "You cannot change the WindowType setting once the window has been displayed.". Strange but sometimes some of my forms are displayed in Init Event (even not complete all the code in it). I can't find the reason yet. Try
>
>LPARAMETERS lpnDataSessionId, lpnWindowtype, lpnApr_id
>WITH thisform
>	IF VARTYPE(m.lpnWindowtype)="N" AND ;
>           INLIST(m.lpnWindowtype,0,1)  AND ;
>           .WindowType # m.lpnWindowtype ;
>           .Hide()
>           .WindowType = m.lpnWindowtype
>           .Show()
>	ENDIF
>ENDWITH
>
I've changed the Visible property default value to .f. instead (from Property Window) because I don't want my form to show up at this point of code yet. Init seems to call Show method internally, I don't even have to set visible to .t. init.
Dawa Tsering


"Do not let any unwholesome talk come out of your mouths,
but only what is helpful for building others up according to their needs,
that it may benefit those who listen."

- Ephesians 4:29-30 NIV

Dare to Question -- Care to Answer

Time is like water in a sponge, as long as you are willing you can always squeeze some.

--Lu Xun, Father of Modern Chinese Literature

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform