IonicWind Software

IWBasic => IWB 2.5 Beta => The BoneYard => IWB 2.5 beta Development => Topic started by: LarryMc on January 01, 2012, 01:10:09 PM

Title: Update 01-01-2012
Post by: LarryMc on January 01, 2012, 01:10:09 PM
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
Title: Re: Update 01-01-2012
Post by: LarryMc on January 01, 2012, 05:57:56 PM
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