Source language: Translate to:

Utility Plugin - for simple delphi components

Questions about NeoBook PlugIns

Moderator: Neosoft Support

Re: Utility Plugin - for simple delphi components

Postby smokinbanger » Sat Apr 06, 2013 1:12 pm

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!
Just Sayin'...
smokinbanger
 
Posts: 198
Joined: Mon Jan 16, 2012 9:53 am
Location: United States

Re: Utility Plugin - for simple delphi components

Postby HPW » Sat Apr 27, 2013 2:26 pm

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
Last edited by HPW on Sun Apr 28, 2013 12:37 am, edited 1 time in total.
Hans-Peter
User avatar
HPW
 
Posts: 2510
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Re: Utility Plugin - for simple delphi components

Postby mishem » Sat Apr 27, 2013 9:59 pm

hpwKnobCreate

When I want to create the handle pops up a window

Listenindex überschreitet das Maximum (0)
mishem
 
Posts: 574
Joined: Mon Oct 08, 2012 1:51 pm

Re: Utility Plugin - for simple delphi components

Postby HPW » Sat Apr 27, 2013 11:24 pm

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
Hans-Peter
User avatar
HPW
 
Posts: 2510
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Re: Utility Plugin - for simple delphi components

Postby HPW » Sun Apr 28, 2013 12:37 am

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
Hans-Peter
User avatar
HPW
 
Posts: 2510
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Re: Utility Plugin - for simple delphi components

Postby UltraVox » Sun Apr 28, 2013 1:13 am

Many thanks for your great work ! :)
UltraVox
 
Posts: 419
Joined: Sat Jul 28, 2007 11:14 am
Location: France

Re: Utility Plugin - for simple delphi components

Postby UltraVox » Sun Apr 28, 2013 5:47 am

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
UltraVox
 
Posts: 419
Joined: Sat Jul 28, 2007 11:14 am
Location: France

Re: Utility Plugin - for simple delphi components

Postby Scherzkeks » Sun Apr 28, 2013 5:52 am

Nice Work!
Thank you!

:D
User avatar
Scherzkeks
 
Posts: 79
Joined: Mon Apr 04, 2005 3:04 am
Location: Switzerland

Re: Utility Plugin - for simple delphi components

Postby HPW » Sun Apr 28, 2013 6:37 am

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
Hans-Peter
User avatar
HPW
 
Posts: 2510
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Re: Utility Plugin - for simple delphi components

Postby CN_Iceman » Mon Apr 29, 2013 11:59 am

Thank you Hans!!
Good work.
Greetings/Saludos, Jose.
www.icemansoft.es
User avatar
CN_Iceman
 
Posts: 297
Joined: Tue Mar 01, 2011 11:04 am
Location: España

Re: Utility Plugin - for simple delphi components

Postby HPW » Mon Apr 29, 2013 1:31 pm

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
Hans-Peter
User avatar
HPW
 
Posts: 2510
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Re: Utility Plugin - for simple delphi components

Postby Scherzkeks » Mon Apr 29, 2013 11:41 pm

amazing with single pictures!
User avatar
Scherzkeks
 
Posts: 79
Joined: Mon Apr 04, 2005 3:04 am
Location: Switzerland

Re: Utility Plugin - for simple delphi components

Postby HPW » Mon Apr 29, 2013 11:49 pm

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.
Hans-Peter
User avatar
HPW
 
Posts: 2510
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Re: Utility Plugin - for simple delphi components

Postby HPW » Tue Apr 30, 2013 8:42 am

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:
Hans-Peter
User avatar
HPW
 
Posts: 2510
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Re: Utility Plugin - for simple delphi components

Postby UltraVox » Tue Apr 30, 2013 9:26 am

Excellent and Great Work ! :)
UltraVox
 
Posts: 419
Joined: Sat Jul 28, 2007 11:14 am
Location: France

PreviousNext

Return to PlugIn Discussions

Who is online

Users browsing this forum: No registered users and 3 guests

cron