Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TreeView - ImageList
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00576033
Message ID:
00577708
Views:
26
Sometimes font size affects image output.


>>Nick,
>>
>>A big thanks.
>>
>>It helped. Now I can use ImageList in TreeView. How do I customise image height/width. I tried following way but could not success. It always come in big size (32/32) which I do not want. Any help would be appreciated.
>>
>>
>>#Define NodeImage_Loc 		"Graphics\NodeImg.ico"
>>#Define NodeExpand_Loc 		"Graphics\NodeExp.ico"
>>#Define NodeSelect_Loc 		"Graphics\NodeSel.ico"
>>
>>Procedure Init
>>	With This
>>		.ImageHeight = 16
>>		.ImageWidth = 16
>>		With .ListImages
>>			.Add(,'NodeImage',LoadPicture(NodeImage_Loc))
>>			.Add(,'NodeExpand',LoadPicture(NodeExpand_Loc))
>>			.Add(,'NodeSelect',LoadPicture(NodeSelect_Loc))
>>		EndWith
>>	EndWith
>>EndProc
>>
>
>Hmm, that should work if you set the properties to 16 before you load the images and if ImageList does not contain images already. I made a quick test and it worked for me.
Imagination is more important than knowledge
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform