Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - Loadicon method...
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Loadicon method...

 Post Reply Post Reply
Author
Message
sgrappatore View Drop Down
Groupie
Groupie
Avatar

Joined: 21 February 2011
Location: Rome
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote sgrappatore Quote  Post ReplyReply Direct Link To This Post Topic: Loadicon method...
    Posted: 20 July 2011 at 4:42am
from HELP LoadIcon Method
Public Sub LoadIcon (_
ByVal Path As String, _
ByVal Command As Long, _
As XTPImageState _ ByVal ImageState
)
I'm using Visual Foxpro 9.0 Sp2 then :
"xtpImageNormal" is equal to 0
"xtpImageDisabled" is equal to 1
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
oButton.icon=oImagemanager.getimage(2,32)
but It doesn't works. I got an error.
Please Help me..
Thanks for your interest.
Visual foxpro 9.0
Codejock 15.0.1
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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 Wink
 
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....
Back to Top
sgrappatore View Drop Down
Groupie
Groupie
Avatar

Joined: 21 February 2011
Location: Rome
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote sgrappatore Quote  Post ReplyReply Direct Link To This Post 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  Wink
 
 
Visual foxpro 9.0
Codejock 15.0.1
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.