Loadicon method... |
Post Reply |
Author | |
sgrappatore
Groupie Joined: 21 February 2011 Location: Rome Status: Offline Points: 11 |
Post Options
Thanks(0)
Posted: 20 July 2011 at 4:42am |
from HELP LoadIcon Method I'm using Visual Foxpro 9.0 Sp2 then : "xtpImageNormal" is equal to 0 I'm trying to upload images in the imagemanager control. I have a pushbutton (oButton) and imagemanger control (oImagemanger) in my form then : oImagemanager.LoadIcon("bmp\myicon.ico",1,0) && Normal Picture ID=1 oButton.icon=oImagemanager.getimage(1,32) && Everything ok If I set the oButton.enabled= .f. the image is not disabled then I try this code oImagemanager.LoadIcon("bmp\myicon.ico",2,1) && Picture disabled ID=2 but It doesn't works. I got an error. Please Help me.. Thanks for your interest. |
|
Visual foxpro 9.0
Codejock 15.0.1 |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
I'm not a Foxpro user...
If you set .Enabled to False does the button show disabled state? Does the image disappear?
I tried with VB:
Loading image like this:
Me.ImageManagerMenu.Icons.LoadIcon App.Path & "\alarm.ico", 1, xtpImageNormal
The button has an image in 'normal' and disabled state
Loading image like this: Me.ImageManagerMenu.Icons.LoadIcon App.Path & "\alarm.ico", 1, xtpImageDisabled
The button has NO image in normal state
So your attempt to load a second image doesn't do much. Why you got an error, I really don't know.
I know WLCABRAL in this forum uses FoxPro as well and maybe he know's what to do... Just send private message and maybe he has a solution
Good luck
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
sgrappatore
Groupie Joined: 21 February 2011 Location: Rome Status: Offline Points: 11 |
Post Options
Thanks(0)
|
SOLVED !!!
In visual Foxpro, you must use this syntax to disable a Pushbutton and have disabled image: pushbutton.OBJECT.enabled=.f. pushbutton.enabled=.f. (disable only the control and not the image!) Ciao |
|
Visual foxpro 9.0
Codejock 15.0.1 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |