viewpoint-particle

Author Topic: CommControl Extender - Added TrackBar/Slider  (Read 3803 times)

JTaylor

  • Pundit
  • *****
  • Posts: 786
    • Data & Stuff Inc.
CommControl Extender - Added TrackBar/Slider
« on: May 07, 2014, 02:07:11 pm »
Prompted by the post about a TrackBar/Slider control I added it to the Extender.

Jim

Deana

  • Wilson WindowWare Tech Support
  • Pundit
  • *****
  • Posts: 1183
  • WinBatch® can do it.
    • WinBatch Tech Support Database
Re: CommControl Extender - Added TrackBar/Slider
« Reply #1 on: May 07, 2014, 09:35:54 pm »
Just few issues of note ( haven't had much time to review but thought i would share ):

[CommControlExtender.wbt]
dtHide UDF duplicate in CommControlExtender.wbt
tbSetBuddy function allows you to specify Text to display at beginning and end of Control, but doesn't hide it properly

[CommControl.wdl]
The refresh and exit button overlap the tabs.

[CommCtrl.chm]
Topic: introduction states: "The following are the same functions as above but split out into their own extenders so as to overcome the above stated problem." Yet the zip does not contain these files.

 





Deana F.
Technical Support
Wilson WindowWare Inc.

JTaylor

  • Pundit
  • *****
  • Posts: 786
    • Data & Stuff Inc.
Re: CommControl Extender - Added TrackBar/Slider
« Reply #2 on: May 07, 2014, 09:56:45 pm »
Thanks.   Guess I copied that one SubRoutine and was going to use it as a template for another and then quit part way through and went a different direction.

Started to say I don't have any overlap on mine but then realized I didn't copy the latest WDL file.  Oops!!!

Gave up on trying to split those out after you expanded the limitation.  That and quite a bit of hassle keeping up with it all without being sure it would be that useful.   Plus, the size limit on posting here is so small I can barely fit these two items.  Had to compress the Help file just to attach them in the same post.   Guess I could post them on my side and provide a link if needed.  In any event, thanks for the reminder on the Help file.

Hope it's not too much hassle me posting this stuff.  Really worked hard trying to make sure I covered all the bases but guess I didn't work hard enough.   I know the example script is UGLY, wasn't trying for a work of art but just something to demonstrate the functionality...so don't look too closely :)    Maybe I should create a separate script for each control type???

I re-posted the files in the original thread.

Jim

JTaylor

  • Pundit
  • *****
  • Posts: 786
    • Data & Stuff Inc.
Re: CommControl Extender - Added TrackBar/Slider
« Reply #3 on: May 07, 2014, 10:00:46 pm »
What did you try?  What happens if you do something like the following?   It clears for me.   Haven't tried different color backgrounds yet though. 

    trSetBuddy(RV_Handle,trControlHandle,40,20,"Begin","End")
message("HI","")
    trSetBuddy(RV_Handle,trControlHandle,40,20,"","")

Jim


tbSetBuddy function allows you to specify Text to display at beginning and end of Control, but doesn't hide it properly
\

Deana

  • Wilson WindowWare Tech Support
  • Pundit
  • *****
  • Posts: 1183
  • WinBatch® can do it.
    • WinBatch Tech Support Database
Re: CommControl Extender - Added TrackBar/Slider
« Reply #4 on: May 08, 2014, 10:01:05 am »
What did you try?  What happens if you do something like the following?   It clears for me.   Haven't tried different color backgrounds yet though. 

    trSetBuddy(RV_Handle,trControlHandle,40,20,"Begin","End")
message("HI","")
    trSetBuddy(RV_Handle,trControlHandle,40,20,"","")

Jim


tbSetBuddy function allows you to specify Text to display at beginning and end of Control, but doesn't hide it properly
\

You might want to add that code to your hide operation for the trackbar slider in the CommControlExtender.wbt
Deana F.
Technical Support
Wilson WindowWare Inc.

Deana

  • Wilson WindowWare Tech Support
  • Pundit
  • *****
  • Posts: 1183
  • WinBatch® can do it.
    • WinBatch Tech Support Database
Re: CommControl Extender - Added TrackBar/Slider
« Reply #5 on: May 08, 2014, 10:08:48 am »
The dll you posted has the same version number of the previous cmctrl44i.dll. I recommend incrementing the version for each release, so users will be able to keep track of the versions they have installed.
Deana F.
Technical Support
Wilson WindowWare Inc.

JTaylor

  • Pundit
  • *****
  • Posts: 786
    • Data & Stuff Inc.
Re: CommControl Extender - Added TrackBar/Slider
« Reply #6 on: May 08, 2014, 01:32:06 pm »
Odd I didn't notice those sticking around.  I added a trRemoveBuddy() function and changed the Version.  One could still set them to an empty value but this will remove the control altogether.

Original post updated with new files.

Thanks for the feedback.

Jim

Deana

  • Wilson WindowWare Tech Support
  • Pundit
  • *****
  • Posts: 1183
  • WinBatch® can do it.
    • WinBatch Tech Support Database
Re: CommControl Extender - Added TrackBar/Slider
« Reply #7 on: May 08, 2014, 02:15:24 pm »
Deana F.
Technical Support
Wilson WindowWare Inc.

kdmoyers

  • Full Member
  • ***
  • Posts: 183
Re: CommControl Extender - Added TrackBar/Slider
« Reply #8 on: May 09, 2014, 08:24:53 am »
I appreciate the effort Jim!
-Kirby
The mind is everything; What you think, you become.

JTaylor

  • Pundit
  • *****
  • Posts: 786
    • Data & Stuff Inc.
Re: CommControl Extender - Added TrackBar/Slider
« Reply #9 on: May 09, 2014, 08:59:58 am »
I appreciate the appreciation  ;)

Wish the WB Folks had a way for users to contribute to WinBatch...if they'd turn me loose on the dialog stuff I'd add some of this stuff to WinBatch and stop messing with the extender :) 

Jim