April 29, 2024, 01:29:16 AM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Update 01-01-2012

Started by LarryMc, January 01, 2012, 01:10:09 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

LarryMc

Completed "Intellisense" or "AutoTip" (haven't decided which to call it yet)

When the user types a "(" the IDE scans the immediately preceeding word to see if is an integral IWBasic command.
If it is, a popup appears with the proper syntax for the command.
The parameter that the IDE expects to be entered next is in a highlight color.

As the user enters each parameter followed by a comma the highlight will move to the next parameter.
The popup is closed when the  ")" is entered.

There are some limitations. 
No nesting of commands.  To that extent AutoTip and AutoComplete are mutually exclusive.
If the window looses focus or the user clicks the mouse anywhere the popup closes.
If the window is moved the popup does not follow.
Doesn't work with classes.

I'm going to see about making the popup reappear if the mouse pointer moves over a command and sits there and there is no trailing ")"

Attached is a screenshot showing that some of the parameters have been entered.

LarryMc
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

LarryMc

Decided to call it AutoTip

Modified the Editor Preference dialog and the .ini file
so that the user can set the AutoTip fg, bg, and highlight colors
as well as turn the option on/off.

LarryMc
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library