Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 End-of-line statements and branch lines
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

RoarBrekken
New Member

Norway
5 Posts

Posted - Nov 12 2004 :  02:36:16 AM  Show Profile
Hi !

I'm also using Codesmart 2005 for my VB6 development, and it has a couple of features wich I would love to see in Visual Assist:

1) Automatic end of line statements
2) Automatic branch lines

Here is an example:

  |-For i = Forms.Count - 1 To 1 Step -1 >>
  |  Unload Forms(i)
  |_Next << i

  |-if Me.WindowState <> vbMinimized Then >>
  |  SaveSetting App.Title, "Settings", "MainLeft", Me.Left
  |  SaveSetting App.Title, "Settings", "MainTop", Me.Top
  |  SaveSetting App.Title, "Settings", "MainWidth", Me.Width
  |  SaveSetting App.Title, "Settings", "MainHeight", Me.Height
  |_End If << Me.WindowState <> vbMinimized

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Nov 12 2004 :  3:06:19 PM  Show Profile
i don't really understand what it is doing for you. the term "Automatic end of line statements" puts me in mind of VAX's autotext feature:

http://www.wholetomato.com/products/features/autotext.html?more=yes

eg, when i type in:
if|

VAX will ask me if i want:
if(|) {
}

or if i have:
ifel|

this gets turned into:
if(|) {
} else {
}

the page says this is available for VB, so it is just a case of setting up the code blocks you want.

zen is the art of being at one with the two'ness
Go to Top of Page

RoarBrekken
New Member

Norway
5 Posts

Posted - Nov 12 2004 :  5:56:43 PM  Show Profile
No, I don't mean the autotext feature.

"Automatic end of line statements" (vb to c translated):

|-if(Me.WindowState <> vbMinimized) { >>
| SaveSetting App.Title, "Settings", "MainLeft", Me.Left
| SaveSetting App.Title, "Settings", "MainTop", Me.Top
| SaveSetting App.Title, "Settings", "MainWidth", Me.Width
| SaveSetting App.Title, "Settings", "MainHeight", Me.Height
|_} << Me.WindowState <> vbMinimized

makes it easy for me to know what condition statement is connected to the endif ( } ) Here is << Me.WindowState <> vbMinimized the "Automatic end of line statement". And it is important to mention that this is not really characters in the source code, it is just "painted" on the "screen". When I put the cursor on that line, the orange text disappears...

The orange branch lines have a similar purpose, it makes it easier to see what if statement corresponding else endif ( } ) statements
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Nov 12 2004 :  6:45:06 PM  Show Profile
that makes more sense

are you familiar with the VAX wizard bar? this shows the current scope of the caret as you move around the code. well, it does this in C and C++, so i hope it does this in VB.

in C++ the surrounding curly brackets are highlighted. i recall discussion of highlighting bigger bits, but there is the problem of accurately matching them.

http://www.wholetomato.com/products/features/match.html?more=yes

if it was possible for this to highlight the matching keywords in VB, would this help?

zen is the art of being at one with the two'ness
Go to Top of Page

gmit
Whole Tomato Software

Croatia
90 Posts

Posted - Nov 16 2004 :  04:49:28 AM  Show Profile
Two years ago, actually I wrote an addin (SmartHelp 3) with such feature. However, the project became too large and writing everything in C# was mistake (too slow for API patching :) ), so I've disbanded it... :|
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000