Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Resize prob. TreeView new height > form prev. ht. when m
Message
From
18/08/2006 12:22:45
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01143435
Message ID:
01146782
Views:
24
>Hi Gregory
>
>>Don't know whether this will solve your problem, but I set tv.visible to FALSE, then resize and finally reset the tv.Visible to what it was before
>
>Thanks for your reply, but I am afraid it didn't.

Well, it worked for me as long as I had Form>Container>TV

Once I started with form>Container1>Container2>Container3>tv, it no longer worked

Setting the tv.Visible to FALSE before resizing is essential

When I refreshed Container2 after resizing, it worked again. Thisform.Refresh also works
tv_visible = tv.visible
tv.visible = FALSE

now resize

tv.visible = m.tv_visible

=tv.Parent.Parent.Refresh() && parent of container of tv
In fact, this is the code of Container3 which contains the treeview
&& Container3.Resize_Post()

local Visible

with m.this

	Visible= .Visible 
	
	.Visible = FALSE && assign method, below

	=.Treeview.Move(0, 0, .Width, .Height )
	
	.Visible = m.Visible
	=.Parent.Refresh()
endwith


&& Container3.Visible_assign
LPARAMETERS vnewval

=DoDefault(m.vnewval)

with m.this.Treeview
	
	.Visible = m.vnewval

endwith
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform