Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: CodeEditor, Assist++, Topic++ » CodeEditor::IndentSpace does not work as expected in MacOS
CodeEditor::IndentSpace does not work as expected in MacOS [message #54970] Fri, 02 October 2020 12:22 Go to next message
omari is currently offline  omari
Messages: 235
Registered: March 2010
Experienced Member
System: MacOS.

Test case:
#include <CodeEditor/CodeEditor.h>

GUI_APP_MAIN
{
	Upp::CodeEditor ed;
	ed.IndentSpaces(true);
	ed.IndentAmount(6);   // also, this line has no effect
	ed.ShowTabs().ShowSpaces();

	Upp::TopWindow w;
	w.SetRect(0, 0, 400, 400);
	
	w.Add(ed.SizePos());
	w.Run();

}


1- when a Tab key pressed, that insert 5 characters : 4 spaces and 1 tab.
2- IndentAmount has no effect.


index.php?t=getfile&id=6243&private=0


regards
omari.

[Updated on: Fri, 02 October 2020 12:23]

Report message to a moderator

Re: CodeEditor::IndentSpace does not work as expected in MacOS [message #55053 is a reply to message #54970] Wed, 07 October 2020 14:49 Go to previous message
mirek is currently offline  mirek
Messages: 12840
Registered: November 2005
Ultimate Member
Thank you. There was a problem with K_TAB handling on MacOS, now fixed in trunk.

IndentAmount is only meaningful if you have CSyntax active. It certainly works in theide. It is basically number of spaces to add after { and enter.

Mirek
Previous Topic: no more background colors in CodeEditor
Goto Forum:
  


Current Time: Wed Oct 28 23:36:08 CET 2020

Total time taken to generate the page: 0.01537 seconds