|  | 
| Loadicon method... | 
| Post Reply   | 
| Author | |
| sgrappatore   Groupie     Joined: 21 February 2011 Location: Rome Status: Offline Points: 11 |  Post Options  Thanks(0)  Quote  Reply  Topic: Loadicon method... Posted: 20 July 2011 at 4:42am | 
| from HELP LoadIcon MethodI'm using Visual Foxpro 9.0 Sp2 then :"xtpImageNormal" is equal to 0I'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=1oButton.icon=oImagemanager.getimage(1,32) && Everything okIf I set the oButton.enabled= .f. the image is not disabled then I try this codeoImagemanager.LoadIcon("bmp\myicon.ico",2,1) && Picture disabled ID=2but 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)  Quote  Reply  Posted: 22 July 2011 at 11:29am | 
| 
   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)  Quote  Reply  Posted: 26 July 2011 at 9:47am | 
| 
   
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 |