Author | Topic: Vista progress bar | |
---|---|---|
Frankie | Vista progress bar on Tue, 01 Nov 2011 21:21:55 +0800 Hi All, Recently i've found Visual FoxPro source code to build vista progress bar including marquee style. http://www.sweetpotatosoftware.com/spsblog/Trackback.aspx?guid=9e494312-e24a-4063-ae8c-ec194db8549a It's perfect to replace the hourglass pointer. The code is short & looks easily to convert so i decided to try it. However, i am stuck with ActiveX control,"COMCTL.ProgCtrl.1". A search in Microsoft support show that it is ProgressBar control in MSComctl.ocx. http://support.microsoft.com/kb/191222 As i never use ActiveX in xBase before, can any guru shed some light? How about Jimmy? I know you've done a lot ActiveX control in xBase. I can share the final code if anyone is interested. TIA Frankie Win7-32/xBase 1.90.331 | |
AUGE_OHR | Re: Vista progress bar on Tue, 01 Nov 2011 18:56:30 +0100 hi, > Recently i've found Visual FoxPro source code to build vista > progress bar including marquee style. > > http://support.microsoft.com/kb/191222 > > As i never use ActiveX in xBase before, can any guru shed some light? > How about Jimmy? I know you've done a lot ActiveX control in xBase. I can > share the final code if anyone is interested. "native" XbpProgressBar class is include in Xbase++ "Service Pack 2" this is where my Idee of "native" Control start. same you can do with MsComCtl.OCX, but remember that the "green marquee style" is only avaiable on Vista / Win7 here is the Sample for MsComCtl.OCX greetings by OHR Jimmy PB56DEMO.ZIP | |
Frankie | Re: Vista progress bar on Wed, 02 Nov 2011 13:46:28 +0800 On Tue, 1 Nov 2011 18:56:30 +0100, AUGE_OHR wrote: Hi Jimmy, I build the demo & run regsvr32 c:\windwos\system32\mscomctl.ocx uccessfully. But there is an error when run. The error description is "Could not create ActiveX control". Do you have any idea? TIA Frankie ------------------------------------------------------------------------------ ERROR LOG of "F:\Demo\ProgressBar\PBAR01.EXE" Date: 11/02/2011 13:33:38 Xbase++ version : Xbase++ (R) Version 1.90.331 Operating system : Windows 06.01 Build 07601 Service Pack 1 ------------------------------------------------------------------------------ oError:args : -> VALTYPE: U VALUE: NIL -> VALTYPE: U VALUE: NIL -> VALTYPE: U VALUE: NIL -> VALTYPE: U VALUE: NIL -> VALTYPE: U VALUE: NIL -> VALTYPE: L VALUE: .T. oError:canDefault : Y oError:canRetry : N oError:canSubstitute: Y oError:cargo : NIL oError:description : Could not create ActiveX control oError:filename : NIL oError:genCode : 6503 oError:operation : XBPACTIVEXCONTROL:CREATE oError:osCode : NIL oError:severity : 2 oError:subCode : 6500 oError:subSystem : Automation oError:thread : 1 oError:tries : NIL ------------------------------------------------------------------------------ CALLSTACK: ------------------------------------------------------------------------------ Called from _NEWFORM:CREATE(268) Called from NEWFORM:CREATE(232) Called from MAIN(674) > > "native" XbpProgressBar class is include in Xbase++ "Service Pack 2" > this is where my Idee of "native" Control start. > > same you can do with MsComCtl.OCX, but remember that > the "green marquee style" is only avaiable on Vista / Win7 > > here is the Sample for MsComCtl.OCX > > greetings by OHR > Jimmy | |
AUGE_OHR | Re: Vista progress bar on Wed, 02 Nov 2011 18:48:54 +0100 hi, > I build the demo & run regsvr32 c:\windwos\system32\mscomctl.ocx > uccessfully. > But there is an error when run. The error description is "Could not create > ActiveX control". Do you have any idea? this is what i meen with Administrator Rights to install *.OCX under Win7 you must open CMD with Administrator Rights to run RegSrv32.EXE greetings by OHR Jimmy | |
Frankie | Re: Vista progress bar on Thu, 03 Nov 2011 21:43:41 +0800 Hi Jimmy, I've used different windows to test with it & appearently only WinXp Pro SP3 worked. The others, Win7 Home SP1, Win7 Ultimate & WinXp Home SP2 fail with or without regsvr32 mscomctl.ocx. However, WinXp Pro SP3 works without having to register mscomctl.ocx. Could the CLSID only works with WinXp Pro SP3? I remark those lines for CLSID & the source compiled without problem. Then click on the start button makes the demo run in infinite loop without any progress bar & have to use task manager to kill it. How do you obtain the CLSID and License? What is License " qhj ZtuQha;jdfn[iaetr "? Regards Frankie On Wed, 02 Nov 2011 18:48:54 +0100, AUGE_OHR wrote: > hi, > >> I build the demo & run regsvr32 c:\windwos\system32\mscomctl.ocx >> uccessfully. >> But there is an error when run. The error description is "Could not create >> ActiveX control". Do you have any idea? > > this is what i meen with Administrator Rights to install *.OCX > under Win7 you must open CMD with Administrator Rights to run RegSrv32.EXE > > greetings by OHR > Jimmy | |
AUGE_OHR | Re: Vista progress bar on Thu, 03 Nov 2011 18:05:54 +0100 | |
Frankie | Re: Vista progress bar on Fri, 04 Nov 2011 15:17:26 +0800 Hi Jimmy, I've found cause of the problem. From my FormDesigner, only Microsoft ProgressBar Control 6.0 (SP6) is available. Therefore remark out all the oV5Bar makes the program compile & run. However, i noticed that Marquee only available in Microsoft ProgressBar v5.0. Why is it not available in v6.0? How do I get v5.0? > > Win7 does NOT have MsComCtl.OCX so you have to copy it, > in CMD Box with Administator rights, to %SystemRoot%\system32\MsComCtl.OCX > I dont know why, but all the Win7 here do have MsComCtl.OCX. Thanks Frankie | |
James Loughner | Re: Vista progress bar on Fri, 04 Nov 2011 10:54:55 -0400 The reason I wrote my own is so not to be dependent on MS whims. They give you some feature then take it away all the time. Jim On 11/04/2011 03:17 AM, Frankie wrote: > Hi Jimmy, > > I've found cause of the problem. From my FormDesigner, only Microsoft > ProgressBar Control 6.0 (SP6) is available. Therefore remark out all the > oV5Bar makes the program compile& run. > > However, i noticed that Marquee only available in Microsoft ProgressBar > v5.0. Why is it not available in v6.0? How do I get v5.0? > >> >> Win7 does NOT have MsComCtl.OCX so you have to copy it, >> in CMD Box with Administator rights, to %SystemRoot%\system32\MsComCtl.OCX >> > I dont know why, but all the Win7 here do have MsComCtl.OCX. > > Thanks > > Frankie | |
Frankie | Re: Vista progress bar on Mon, 07 Nov 2011 11:02:11 +0800 Hi I do have progress bar already from TopDown. Just my curiosity wanted to know more about connecting to MS function in xBase. Frankie > The reason I wrote my own is so not to be dependent on MS whims. They > give you some feature then take it away all the time. > > Jim > > | |
AUGE_OHR | Re: Vista progress bar on Fri, 04 Nov 2011 21:43:45 +0100 hi, > I've found cause of the problem. From my FormDesigner, only Microsoft > ProgressBar Control 6.0 (SP6) is available. Therefore remark out all the > oV5Bar makes the program compile & run. > > However, i noticed that Marquee only available in Microsoft ProgressBar > v5.0. Why is it not available in v6.0? How do I get v5.0? this is when using MsComCtl.OCX > I dont know why, but all the Win7 here do have MsComCtl.OCX. hm ... please look at Property which Version / DateTime those OCX have. i have made a "native" Progressbar with ot4xb. you will find it @Pablos Website http://www.xbwin.com/forum.html under "public" greetings by OHR Jimmy | |
Frankie | Re: Vista progress bar on Mon, 07 Nov 2011 11:19:38 +0800 Hi Jimmy, I've downloaded & registered comctl32.ocx (ProgressBar 5.0) & everything works now. > > i have made a "native" Progressbar with ot4xb. you will find it @Pablo´s > Website http://www.xbwin.com/forum.html under "public" > If you are referring to CreateWindowExA(), there are too many unknown vars to me so i cant continue. But thanks anyway. Frankie | |
AUGE_OHR | Re: Vista progress bar on Mon, 07 Nov 2011 05:29:21 +0100 hi, > I've downloaded & registered comctl32.ocx (ProgressBar 5.0) & everything > works now. Yes ... Comctl32.OCX is Version v5 of "Common Controls" while MsComCtl.OCX is v6 of "Common Controls" greetings by OHR Jimmy | |
Jan Escholt | Re: Vista progress bar on Tue, 01 Nov 2011 19:45:37 +0100 Some time ago I wrote my own function for a progress bar that used the MsComctl. It worked pretty good. But after Alaska published the XBPack 2 I used this version of the progress bar. Because that class is much faster than the ActiveX version. Jan Am 01.11.2011 14:21, schrieb Frankie: > Hi All, > > Recently i've found Visual FoxPro source code to build vista progress bar > including marquee style. > > http://www.sweetpotatosoftware.com/spsblog/Trackback.aspx?guid=9e494312-e24a-4063-ae8c-ec194db8549a > > It's perfect to replace the hourglass pointer. The code is short& > looks easily to convert so i decided to try it. However, i am stuck with > ActiveX control,"COMCTL.ProgCtrl.1". A search in Microsoft support show > that it is ProgressBar control in MSComctl.ocx. > > http://support.microsoft.com/kb/191222 > > As i never use ActiveX in xBase before, can any guru shed some light? > How about Jimmy? I know you've done a lot ActiveX control in xBase. I can > share the final code if anyone is interested. > > TIA > > > Frankie > Win7-32/xBase 1.90.331 | |
AUGE_OHR | Re: Vista progress bar on Tue, 01 Nov 2011 22:46:33 +0100 hi, > Because that class is much faster than the ActiveX version. yes "native" Controls are "faster" while Xbase ActiveX is so "slow" ... instead of Xbase ActiveX you can also use DispHpr.DLL with ot4xb for COM which is much faster while on Vista / Win7 MsComCtl.OCX ist not installed any more you need Administrator Rights to install *.OCX what "native" Controls do not need. i made some "native" Controls like Datepicker or Statusbar with ot4xb. you will find them on Pablo?s Website http://www.xbwin.com/forum.html greetings by OHR Jimmy | |
Frankie | Re: Vista progress bar on Mon, 07 Nov 2011 02:42:29 +0800 Hi Since you have your new toy already (XBpack 2), you dont mind giving me your old toy ? =:-p Frankie > Some time ago I wrote my own function for a progress bar that used the > MsComctl. It worked pretty good. But after Alaska published the XBPack 2 > I used this version of the progress bar. Because that class is much > faster than the ActiveX version. > > Jan > > > Am 01.11.2011 14:21, schrieb Frankie: >> Hi All, >> >> Recently i've found Visual FoxPro source code to build vista progress bar >> including marquee style. >> >> http://www.sweetpotatosoftware.com/spsblog/Trackback.aspx?guid=9e494312-e24a-4063-ae8c-ec194db8549a >> >> It's perfect to replace the hourglass pointer. The code is short& >> looks easily to convert so i decided to try it. However, i am stuck with >> ActiveX control,"COMCTL.ProgCtrl.1". A search in Microsoft support show >> that it is ProgressBar control in MSComctl.ocx. >> >> http://support.microsoft.com/kb/191222 >> >> As i never use ActiveX in xBase before, can any guru shed some light? >> How about Jimmy? I know you've done a lot ActiveX control in xBase. I can >> share the final code if anyone is interested. >> >> TIA >> >> >> Frankie >> Win7-32/xBase 1.90.331 | |
AUGE_OHR | Re: Vista progress bar on Mon, 07 Nov 2011 01:06:24 +0100 hi, > Since you have your new toy already (XBpack 2), > you dont mind giving me your old toy ? =:-p for XbPack 2 you need a active Subscription to download it. after you ask here im Forum i start to make a "native" Version with ot4xb. first Result can be found at Pablos Website. http://www.xbwin.com/forum.html ... but i have some Idee to enhance it, like show "Percent" so im still working on it. greetings by OHR Jimmy | |
Frankie | Re: Vista progress bar on Mon, 07 Nov 2011 11:50:09 +0800 Oops, didnt see your post here as i've reply another post earlier. > for XbPack 2 you need a active Subscription to download it. I only have 1.90.331 & no active subscription. > > after you ask here im Forum i start to make a "native" Version > with ot4xb. first Result can be found at Pablo´s Website. > http://www.xbwin.com/forum.html > > ... but i have some Idee to enhance it, like show "Percent" > so i´m still working on it. I've checked & if you are referring to CreateWindowExA(), there are too many unknown that i cant continue. But I am excited to know how to make a "native" version with ot4xb other than using ActiveX. Frankie | |
AUGE_OHR | Re: Vista progress bar on Mon, 07 Nov 2011 05:30:45 +0100 hi, > I've checked & if you are referring to CreateWindowExA(), > there are too many unknown that i cant continue. i did have made DLL / LIB "ready to use" for Xbase++ so you do not need to make API Calls . > But I am excited to know how to make a > "native" version with ot4xb other than using ActiveX. activeX OCX is just a "Wrapper" for COM Calls but you can use DLL of "Common Controls" direct as "native" Controls using CreateWindowExA() Xbase++ XbParts are based on v5 "Common Controls" Look and with SL1 v1.9.355 we got visual Style using XP Manifest. to access v6 Style, but v6. Function (Vista/Win7) are still missing. i began with CreateWindowExA() for ListView, which Xbase++ does not have, using ot4xb and try to learn how to build my own Xbase++ Controls so i can enhance it. greetings by OHR Jimmy | |
Frankie | Re: Vista progress bar on Mon, 07 Nov 2011 18:00:39 +0800 Hi Jimmy, > i did have made DLL / LIB "ready to use" for Xbase++ > so you do not need to make API Calls . Is that "Native" version of progress bar? Care to share? > activeX OCX is just a "Wrapper" for COM Calls > but you can use DLL of "Common Controls" direct > as "native" Controls using CreateWindowExA() I've been reading about MS function in MSDN many years ago. The trouble of integrating xBase with MS function sometimes involve with structure or unknown has put me off. > Xbase++ XbParts are based on v5 "Common Controls" Look > and with SL1 v1.9.355 we got visual Style using XP Manifest. > to access v6 Style, but v6. Function (Vista/Win7) are still missing. As usual, always behind others... > i began with CreateWindowExA() for ListView, which Xbase++ > does not have, using ot4xb and try to learn how to build my own > Xbase++ Controls so i can enhance it. I agreed. I wanted to learn how to build the "native" controls also. Frankie | |
AUGE_OHR | Re: Vista progress bar on Mon, 07 Nov 2011 12:30:57 +0100 hi, > Is that "Native" version of progress bar? Care to share? yes .. but still under construction ... only DLL / LIB and Demo Source. LIB Source will be "checked" again ... so i wait for OK from Pablo > I agreed. I wanted to learn how to build the "native" controls also. come to Devcon 2012 http://devcon2012.xbaseentwickler.de/ Pablo will have a Session about all those Stuff. greetings by OHR Jimmy | |
Frankie | Re: Vista progress bar on Tue, 08 Nov 2011 14:24:36 +0800 Hi Jimmy, > yes .. but still under construction ... only DLL / LIB and Demo Source. > LIB Source will be "checked" again ... so i wait for OK from Pablo Ok. Post me when its ready > come to Devcon 2012 http://devcon2012.xbaseentwickler.de/ > Pablo will have a Session about all those Stuff. Hm..thank you for the invitaion, but am not available on that week. I hope some material can be share after Devcon 2012. Frankie | |
AUGE_OHR | Re: Vista progress bar on Wed, 09 Nov 2011 01:45:27 +0100 hi, > Ok. Post me when its ready i have post "lates" Version, with Percent as Option, @Pablo´s Website >> come to Devcon 2012 http://devcon2012.xbaseentwickler.de/ >> Pablo will have a Session about all those Stuff. > > Hm..thank you for the invitaion, but am not available on that week. it´s a pitty when you miss Arctica presentation ... > I hope some material can be share after Devcon 2012. Material like Video will not be avaiable for other than Attendee greetings by OHR Jimmy | |
Frankie | Re: Vista progress bar on Thu, 10 Nov 2011 15:47:57 +0800 Hello Jimmy, > i have post "lates" Version, with Percent as Option, @Pablo´s Website Thanks. Will check in Pablo's site soon. > it´s a pitty when you miss Arctica presentation ... Sincerely hope that will be a successful event. Frankie |