Tools > Options > Text Editor > Clarion > Smart Formatter > Indent Comments - Does it work?

Tools > Options > Text Editor > Clarion > Smart Formatter > Indent Comments Ticked - Does it work for you?

I dont know if this is linked into (Syntax) Highlighting where the ! is treated as a Delimiter in the Root Rule Set, however even removing all references to ! in the syntax highlighting User Defined: rules still doesnt make it work, so can anyone get this !comment indentation to work?

If you can what column does it move it to?

TIA

I thought it would produce an special indentation for comments to the right, like used to be on Clarion for DOS, but apparently it only does what it says: “Indent comments”, when activated, comments moves to the same column as other text, otherwise comments stays where you wrote it. It applies only to lines that start with an ! (on any column), and the next option applies only to lines that start with ! specifically on column 1.

I didnt know if it was supposed to move the comments to column 80, which was what I kind of hoping for.

So if I position the cursor to column 12 and type in
[Tab][Tab]MyLabel:[Enter]
Myvar1 = 1[Enter]
[Tab][Tab]!My comments here

if formats it like so

MyLabel:
		Myvar = 1
		!My Comments

You know what looking at the Smart Formatter options again, I didnt even see the comment in the box but it makes sense!

Off to reread the other one’s I have problems with but I got Case indentation working.

Indent statements from CODE
Default: Ticked

This will indent code relative to the position of the CODE keyword.
This uses Tab Size.

Indent OF, OROF and ELSE statements from CASE
Case statements like this: Ticked
	CASE Condition
		OF Value
		OF Value
		OF Value
		OROF Value
		ELSE
	END	
Using Tab Size.

Case statements like this: Unticked
	CASE Condition
	OF Value
	OF Value
	OF Value
	OROF Value
	ELSE
	END

That mini help is very usesful, although not 100% clear sometimes

This is why I’m writing my manual, I wanted to know how to make things like the embed editors (text editors) like C6 as well as explore the new functionality and where possible show examples to making it extremely clear just what each option does or what to expect. I also mention the relevant folders and files where settings can be found, like

Any files you copy to User-Defined: list are placed in the
C:\Users\ItsDefinatelyNotMe\AppData\Roaming\SoftVelocity\Clarion\11.0\modes
%AppData%\Roaming\SoftVelocity\Clarion\11.0\modes
and are called
CWBinding.Resources.Clarion-Mode.xshd
SoftVelocity.Generator.Resources.ClarionTemplate-Mode.xshd
respectively.

or

Show tooltip when moving mouse over expression.
Default: Ticked

When the mouse pointer hovers over variables, classes or functions, a tooltip yellow box will appear displaying more information. This does not stop the tooltip box from appearing when cycling through suggestions in the code completion popup window.

Personal Preference: Unticked

Only in Debug Mode
Default: Unticked

If the Show tooltip when moving mouse over expression is ticked, this option enables and will only show the tooltip if the Project Setting is set to debug and this option is enabled.

Load a project or app file, Menu > Build > Set Configuration > Debug

Although this appears to not work.

If you want to alter the size and font of the tooltip on your development machine you need to edit the registry setting

HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics\
StatusFont Reg_Binary

It uses the encoded structure LogFont
https://docs.microsoft.com/en-us/windows/win32/api/wingdi/ns-wingdi-logfonta?redirectedfrom=MSDN

My aim is to be able to take C11 and make it like a retro C6 look and feel so popup Property windows for controls in the screen designer and no Property Pads, the floating/docking toolbars like we had in C6 and the Local variable window but enhanced a bit if possible, and maybe something similar to C6 for the dct side of things as well.

I dont know how possible this is, I dont even know if its legal! :shushing_face:

Likewise I also want to improve upon the IDE in a variety of ways, so I want the pads to behave more how I want them to behave, and other things like that.

Anyway I’m up to

Component Inspector

Information in the help docs that refer to the component Inspector cite links which are no longer available. However you can find them here:

https://web.archive.org/web/20060702071911/http://community.sharpdevelop.net/blogs/mattward/archive/2006/06/20/UsingTheComponentInspector.aspx https://web.archive.org/web/20060702070809/http://community.sharpdevelop.net/blogs/mattward/archive/2006/05/21/ComponentInspector.aspx

Matt Ward one of the developers has a profile on
https://www.nuget.org/profiles/mattward

The Component Inspector can be found at Menu: Tools > Component Inspector

General

Show Assembly Panel
Default: Ticked

When ticked, this shows the Assemblies/Types tab between ActiveX/COM and Event Log.
Here you can drill down into a variety of .net assembles, including Clarion.exe (exe’s can be assemblies just like dll’s).

Show Controls Panel
Default: Unticked

If Ticked, this option can hang the IDE when you click OK, if you have previously run the Component Inspector during the same IDE session.
If you Ticked this option and then try to run the Component Inspector for the first time, the IDE will hang and crash.

Leave it unticked.

Show GAC panel
Default: Unticked

This adds a tab called GAC between the Assemblies/Types tab and Event Log tab if Show Assembly Panel is ticked, otherwise between the ActiveX/COM tab and Event Log tab.

The GAC stands for Global Assembly Cache and are folders in the Windows Directory.
.Net 4 is stored at %windir%\Microsoft.NET\assembly .
earlier versions are stored at %windir%\assembly .

This is where the Common Language Runtime (CLR) aka the .Net run-time and environment are stored. .Net or the CLR is Microsoft’s efforts to make a uniform development platform and runtime which will run on almost any device including RaspberryPi’s much like the Java framework from Oracle will run on most devices.

The .Net assemblies that are designed to be shared by all applications and executed on the system are stored in the %windir% assembly folders, Clarion’s assemblies are not designed to be shared by other applications and so are stored in the C:\Clarion11\ folder and subfolders.

More information here: https://docs.microsoft.com/en-us/dotnet/framework/app-domains/gac
https://docs.microsoft.com/en-us/dotnet/standard/clr

Its best to be thorough at this stage I think as I might make it available to a wider audience.