Page 23 of 26

Re: Utility Plugin - for simple delphi components

PostPosted: Sat Apr 06, 2013 1:12 pm
by smokinbanger
HPW wrote:
An action to list all sections in an INI file as well as an action to list all keys in a section.


For what should it be usefull?
You should know the structure of your own INI file...
Under most circumstances, yes. But on rare occasions we need to determine the structure at runtime as with on such project that I will be sharing with you all shortly 8)


HPW wrote:Just released hpwUtility 2.32:

http://www.hpwsoft.de/anmeldung/html1/n ... book4.html

Action: hpwIniReadSection - Read a Ini-section key list

Action: hpwIniReadSections - Read a list of all Ini-sections


Awesome! Thanks!

Re: Utility Plugin - for simple delphi components

PostPosted: Sat Apr 27, 2013 2:26 pm
by HPW
Just released hpwUtility 2.33:

http://www.hpwsoft.de/anmeldung/html1/n ... book4.html

Action: hpwKnobCreate - Append a knob-control to an existing NeoBook Rectangle object.
Action: hpwKnobRemove - Remove a knob-control previously attached to a Rectangle object.
Action: hpwKnobSetPosition - Set a knob-controls position by code.

Variables:
[hpwKnobMinPosition]
[hpwKnobMaxPosition]
[Rectanglename_StartPosition]
[hpwKnobSpringLoaded] - Knob autoresets to 0 after dragging
[hpwKnobEnabled]
[hpwKnobPageSize] - Value for jumps with PageUp and PageDown-Key
[hpwKnobImage] - BMP/PNG/JPG Image loading is supported from disk,embedded and mimestreams
[hpwKnobBackgroundImage] - BMP/PNG/JPG Image loading is supported from disk,embedded and mimestreams
[Rectanglename_OnChangeAction]

Keyboard: Use cursor keys for single step change and PageUp/PageDown-keys for pagesize-step

Based on the following freeware:
TKnob(v2.0) written by Silhwan Hyun is upgrade version of TKnob(v1.0) written by Gary Bradley Hardman.
EZLine is written by E.Z. Jordens.
TRotateImage v1.54 by Kambiz R. Khojasteh http://www.delphiarea.com

Re: Utility Plugin - for simple delphi components

PostPosted: Sat Apr 27, 2013 9:59 pm
by mishem
hpwKnobCreate

When I want to create the handle pops up a window

Listenindex ├╝berschreitet das Maximum (0)

Re: Utility Plugin - for simple delphi components

PostPosted: Sat Apr 27, 2013 11:24 pm
by HPW
Oops, seems I was a bit in hurry when I release it. (or it was too late last night)
I will take a further look. Something is not proper initialisied on empty insert.
For now copy the code from the demo.
When you double click on the line you can use the wizard to edit the values.

Regards

Re: Utility Plugin - for simple delphi components

PostPosted: Sun Apr 28, 2013 12:37 am
by HPW
Just released hpwUtility 2.34:

http://www.hpwsoft.de/anmeldung/html1/n ... book4.html

Bugfix: Wizard of hpwKnobCreate can now be inserted without error and with some default values

Re: Utility Plugin - for simple delphi components

PostPosted: Sun Apr 28, 2013 1:13 am
by UltraVox
Many thanks for your great work ! :)

Re: Utility Plugin - for simple delphi components

PostPosted: Sun Apr 28, 2013 5:47 am
by UltraVox
I can not include a transparent PNG background, it is still white.
The same transparent image works perfectly when placed in the hpwKnobImage variable.

For the PNG transparent background, is there a particular and precise rule to follow ?

Here are the actions that I have set :

Code: Select all
SetVar "[hpwKnobBackgroundImage]" "[PubDir]Images\KnobAudio1BGPan.png"
SetVar "[hpwKnobImage]" "[PubDir]Images\KnobAudio1Pan.png"
hpwKnobCreate "KnobAudio1Pan" "6|13|35" "[hpwKnobBackgroundImage]" "0" "1" "[hpwKnobImage]" "0" "NONE||12|2"
SetVar "[hpwKnobMinPosition]" "0"
SetVar "[hpwKnobMaxPosition]" "127"
hpwKnobSetPosition "KnobAudio1Pan" "63"


Thx all.
UltraVox

Re: Utility Plugin - for simple delphi components

PostPosted: Sun Apr 28, 2013 5:52 am
by Scherzkeks
Nice Work!
Thank you!

:D

Re: Utility Plugin - for simple delphi components

PostPosted: Sun Apr 28, 2013 6:37 am
by HPW
Thanks to all. As alwyas when using freeware, the hard work has been done by the freeware authors. So many thanks to them.

For Ultravox

Code: Select all
SetVar "[hpwKnobBackgroundImage]" "[PubDir]\Images\KnobAudio1BGPan.png"
SetVar "[hpwKnobImage]" "[PubDir]\Images\KnobAudio1Pan.png"
SetVar "[hpwKnobMinPosition]" "0"
SetVar "[KnobAudio1Pan_StartPosition]" "63"
SetVar "[hpwKnobMaxPosition]" "127"
hpwKnobCreate "KnobAudio1Pan" "6|13|35" "" "0" "1" "" "1" "NONE||12|2"


Pubdir does not contain the backslash at the end.
The Imagenames should not be placed in the color-params. Can be empty when images are used.
All variables should be before create because they are used only there.
Only the OnChange is always new readed.
For startposition use the variable as shown.

PS: As shown in my Knob2-sample a knob-image can be used only by defining the background image which does contain both BG+Knob.Transparent should be on.

Regards

Re: Utility Plugin - for simple delphi components

PostPosted: Mon Apr 29, 2013 11:59 am
by CN_Iceman
Thank you Hans!!
Good work.

Re: Utility Plugin - for simple delphi components

PostPosted: Mon Apr 29, 2013 1:31 pm
by HPW
Just released hpwUtility 2.35:

http://www.hpwsoft.de/anmeldung/html1/n ... book4.html

Action: hpwKnobLoadBackgroundImage - Load a backgroundimage into the knob-control
Action: hpwUtilitySetVar now supports the variables of the knob-control.
Changed demo-knob-images to PNG and add Multi-image(15) demo in Knob 4

Through the new option to create a Image for each knob-step you can create virtually every knob control.
Now the graphical talented people can show us what is possible!

Regards

Re: Utility Plugin - for simple delphi components

PostPosted: Mon Apr 29, 2013 11:41 pm
by Scherzkeks
amazing with single pictures!

Re: Utility Plugin - for simple delphi components

PostPosted: Mon Apr 29, 2013 11:49 pm
by HPW
amazing with single pictures!


Yes, a lot options. There seems to be a problem. When you increase the size parameter of my sample knob4 then you get problem because the restore buffer of TKnob overdraw the single BG-Image in his rectangle.
Have to further investigate.

Re: Utility Plugin - for simple delphi components

PostPosted: Tue Apr 30, 2013 8:42 am
by HPW
Just released hpwUtility 2.36:

http://www.hpwsoft.de/anmeldung/html1/n ... book4.html

Action: hpwKnobLoadImage - Load a image into the knob-control
Fix: The BackgroundImage gets no more overdrawn by the knob-restore buffer (Knob 4)
Page 13 Knob 5 shows dynamic generated knob surface readed from hpwImage MIME-stream-PNG.

With this addition it should be possible to do fairly every possible knob-design.
When someone creates nice knob templates feel free to post/send them.

Also feel free to support freeware by a donation. :wink:

Re: Utility Plugin - for simple delphi components

PostPosted: Tue Apr 30, 2013 9:26 am
by UltraVox
Excellent and Great Work ! :)