Page 1 of 2

Constants Explorer [PB IDE plugin]

Posted: Sat Oct 15, 2005 3:59 pm
by gnozal
Constants Explorer PB IDE plugin (last update : NOV 6th 2007)

Description
Constants Explorer is a plugin for the new purebasic editor.
It's the PB-IDE version of my jaPBe plugin.

It's a constant viewer. You can use it standalone or from the PB IDE.
When started from the tool menu (or shortcut) in the PB IDE, the plugin
will search for the constant under the cursor.

You can copy a constant to the clipboard or directly copy / paste it to the
PB IDE (into the active scintilla component at current cursor position).
Installation
1. COPY PLUGIN TO ANY DIRECTORY

Example : C:\PureBasic394\Program\ConstantsExplorer.exe

2. CONFIGURATE TOOL

2.1. Automatic registering

Start ConstantsExplorer.exe, select the 'Options' tab, press the 'Register plugin' button.

2.2. Manual registering

Commandline : <Path to plugin> (example : C:\PureBasic394\Program\ConstantsExplorer.exe)

Arguments : %WORD

Name : Constants Explorer

Event to trigger the tool : Menu or Shortcut

Options : None

Download
http://gnozal.ucoz.com/ConstantsExplorerPBIDE.zip

Posted: Sat Oct 15, 2005 8:50 pm
by va!n
@gnozal:
i havent tested it yet... have only read and saw the screenshots... seems to be a very nice and usefull tool! thanks! :)

Posted: Sun Oct 16, 2005 6:43 am
by ts-soft
there is a little bug, when i search for #wm_user i found #ACM_OPEN = (#WM_USER+100)

Posted: Mon Oct 17, 2005 7:47 am
by gnozal
ts-soft wrote:there is a little bug, when i search for #wm_user i found #ACM_OPEN = (#WM_USER+100)
It's by design : it's only a string search. I could add an option to search only before the '=' character.

Posted: Tue Oct 18, 2005 7:43 am
by gnozal
Update

Changes
- Added 'Only value' checkbox : if checked, the plugin only searches for the constant value [and not for any occurence in the list]

Posted: Tue Oct 18, 2005 7:52 am
by V2
Hi,

I didn't take a look at your program, but it looks like the API Viewer:
http://www.activevb.de/rubriken/apiview ... ereng.html

...and this one rocks, I wouldn't want to miss it.

BR

Posted: Tue Oct 18, 2005 8:18 am
by gnozal
V2 wrote:Hi, I didn't take a look at your program, but it looks like the API Viewer: http://www.activevb.de/rubriken/apiview ... ereng.html ...and this one rocks, I wouldn't want to miss it. BR
Not exactly, it's only for Win API constants.

Posted: Sat Oct 22, 2005 6:11 pm
by Hroudtwolf
Great work.

I'm using it.

Posted: Sat Oct 22, 2005 9:55 pm
by Blade
Another great job by gnozal!

Just some suggestions:

- put the list in a listicongsdget with three columns: name, value, description

- option to search in :
all
name
value
description

- resizable window

Posted: Thu Oct 27, 2005 7:47 am
by gnozal
Update

Changes
- Updated constants list
- The search is now context sensitive :
. if you enter a name, it will search for a constant
. if you enter a value, it will search for a value
. examples : WM_CLOSE -> constant, 255 -> value, $FF -> value, F5 -> constant, 2F : error (not a valid name or value)

Posted: Wed Dec 21, 2005 9:14 pm
by Psychophanta
Thank you gnozal.
Silly of me. I didn't see this thread before. :x

Posted: Wed Dec 21, 2005 9:32 pm
by HAnil
Hi,

When I select "Options", Button Gadget Text isn't displayed.
is it bug ?

Posted: Thu Dec 22, 2005 9:02 am
by gnozal
HAnil wrote:Hi,
When I select "Options", Button Gadget Text isn't displayed.
is it bug ?
Sorry, I don't understand. What button ?

Posted: Thu Dec 22, 2005 11:59 pm
by HAnil
I mean that for exam: "copy constant to PB IDE" text is not visible.
and other texts are invisible.

only "Find constant" and "Options" tab text are visible.

Posted: Fri Dec 23, 2005 8:56 am
by gnozal
HAnil wrote:I mean that for exam: "copy constant to PB IDE" text is not visible.
and other texts are invisible.
only "Find constant" and "Options" tab text are visible.
The 'copy constant to clipboard' function is only available if a constant is selected.
The 'copy constant to PB IDE' functions are only available if a constant is selected and the Purebasic IDE (3.94+) is running.