Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ANYBODY USED VFPSKIN2.0

Status
Not open for further replies.

remsor

Programmer
Nov 5, 2002
101
PH
Hello experts,

anybody tried to used the vfpskin2.0, can you help me on how to make the form non-movable and non resizable..
thanks
 
It's been a while but yeah - i've used it.

As far as I remember The form non-movable/resizable are all related to the form you're using - just set the relevant properties.

The Skin is just a bitmap overlayed on the form.

However - if you have set the form properties such as maxbutton=.F. (no maximise button ) the skin will still show the MAX button - but it won't work.

If i'm wrong correct me

mrF
 
MrFancyteeth,

i set the properties of my form as movable = .f. but it doesnt work.. the min and max is wrking..
any idea about this..
thanks
 
remsor,

If you look in the Mover method of the VFPSkin2 class you will see that it references a property right at the top. Mine is this:

IF THIS.inmovil=.F.

...I am just guessing here, but try setting the inmovil property to .T. in the class itself and I think it will stop moving your form. Also, if you want it to be a case-by-case basis then you could make it reference the form property instead by changing the line in the VFPSkin2 Mover method to:

IF THISFORM.Movable =.F.

...a little word of caution, I haven't tried this but it seems in reading the code that it will do what you want. Give it a try, there be some other stuff you'll need to fix up that I haven't seen or thought of yet.

Slighthaze = NULL

[ul][li]FAQ184-2483
An excellent guide to getting a fast and accurate response to your questions in this forum.[/li][/ul]
 
slighthaze,
Thanks a lot...
How about the reziable border do you have any idea..
 
Glad I could help. There is a method called Miresize of the VFPSkins2 class and it is called from the MouseMove event of the shpresize object. Go into the MouseMove event and either comment out the code in there that calls Miresize or you can make it dependent on the forms borderstyle by putting:

LPARAMETERS nButton, nShift, nXCoord, nYCoord
IF nButton = 1 and thisform.borderstyle = 3
THIS.PARENT.MIRESIZE
ENDIF

...into the MouseMove event for the VFPSkin2.shpresize object. Do a search for the word "miresize" in the code of the VFPSkin2 class because this is the only place miresize is called.

Slighthaze = NULL

[ul][li]FAQ184-2483
An excellent guide to getting a fast and accurate response to your questions in this forum.[/li][/ul]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top