Hallo, Gast
Du musst dich registrieren bevor du auf unserer Seite Beiträge schreiben kannst.

Benutzername
  

Passwort
  





Durchsuche Foren

(Erweiterte Suche)

Foren-Statistiken
» Mitglieder: 138
» Neuestes Mitglied: Tolgagraiz
» Foren-Themen: 294
» Foren-Beiträge: 2.633

Komplettstatistiken

Benutzer Online
Momentan sind 112 Benutzer online
» 0 Mitglieder
» 109 Gäste
Applebot, Bing, Google

Aktive Themen
Text hintergrund transpar...
Forum: Questions & Answers
Letzter Beitrag: xp^tsa
03.01.2026, 01:44
» Antworten: 2
» Ansichten: 340
screen hintergrund
Forum: Questions & Answers
Letzter Beitrag: xp^tsa
31.12.2025, 04:32
» Antworten: 2
» Ansichten: 384
Schöne Weihnachten und gu...
Forum: Off Topic
Letzter Beitrag: xp^tsa
27.12.2025, 20:26
» Antworten: 23
» Ansichten: 74.836
RedPill - Game Constructi...
Forum: Projects
Letzter Beitrag: HelmutH
06.12.2025, 14:04
» Antworten: 46
» Ansichten: 145.517
North Engine 2
Forum: Projects
Letzter Beitrag: HelmutH
09.11.2025, 14:16
» Antworten: 14
» Ansichten: 5.917
AmiBlitz3: Amiga 40 Editi...
Forum: News
Letzter Beitrag: HelmutH
09.11.2025, 13:59
» Antworten: 0
» Ansichten: 651
AmiBlitz3 – Entwickler ID...
Forum: Tutorials
Letzter Beitrag: HelmutH
03.11.2025, 21:28
» Antworten: 0
» Ansichten: 717
North Engine 1
Forum: Projects
Letzter Beitrag: HelmutH
10.09.2025, 20:19
» Antworten: 7
» Ansichten: 4.958
BlitzFonts ohne diskfont....
Forum: AB³ Development
Letzter Beitrag: hackball
28.08.2025, 20:31
» Antworten: 0
» Ansichten: 1.157
Amos2Blitz?
Forum: Showcase
Letzter Beitrag: hackball
24.08.2025, 20:01
» Antworten: 11
» Ansichten: 61.553

 
  Copacabana
Geschrieben von: Blackbird - 03.12.2013, 15:58 - Forum: Projects - Antworten (7)

ok, here is my Project for a new Gui to handel the svn-commands a little bit easyer...

Have a look at the Screenshot:
[ATTACHMENT NOT FOUND]

  • You can use it to checkout a Workingcopy from a Repository
  • Update a Workingcopy
  • Cleanup a WorkingCopy
  • Show the Status of the Workingcopy
  • Add or Remove Files or Drawers to/from the Repository
  • Let you show some infos of files of the Workingcopy
  • Cleanup a locked Workingcopy

ToDo:
  • Programmdocumentation
  • Diff between Workingcopy and Repository
  • Create a new Repository
  • Commit filechanges
  • and many more Wink

Version 0.5
[ATTACHMENT NOT FOUND]

Drucke diesen Beitrag

  Syntax Highlightning in tuiTextBox
Geschrieben von: Der Wanderer - 01.12.2013, 20:37 - Forum: NTUI - Antworten (11)

Syntax Highlightning (or any other formatting of the text) in NTUI is called "styling".
This is how it works for now (Function names will change slightly in final NTUI), since don't want to expose newtypes.

[ab3]myStyleCallback:
Function.l myStyleCallback{*textBox.tuiTextBox,lpos.l,*tline.tline}

*tline\sclength = 0 ; reset the style information
cpos.l = 0 ; start at character position 0

While cpos<*tline\clength ; go through the whole line
c.b = Peek.b(*tline\text+cpos) : cpos+1 ; grab a character

Select c
Case @"a" ; if we see an "a"...

; make it bold and red
_tb_SetStyleCommand{*tline,cpos-1,#TUITBSC_BOLD,1}
_tb_SetStyleCommand{*tline,cpos-1,#TUITBSC_FGPEN,#TUITBPEN_RED}

; and return to normal
_tb_SetStyleCommand{*tline,cpos,#TUITBSC_BOLD,0}
_tb_SetStyleCommand{*tline,cpos,#TUITBSC_FGPEN,#TUITBPEN_TEXT}

Default
; nothing happens for other characters

End Select

Wend

*tline\flags|#TUITBLF_STYLED ; mark the line as styled
Function Return #TUISCB_DONE ; tell NTUI we are done

End Function
; this creates a global variable "*myStyleCallback" that points to our functions
; and tells AmiBlitz3 not to remove the function, since it is never called directly
!_MakeGlobalFuncPointer{myStyleCallback,{Null,0,Null}}

...
ntui_SetAttr{*textBox,#TUITBA_STYLECB,*myStyleCallback} ; attach the callback function to the textbox
...
ntui_SetAttr{*textBox,#TUITBA_STYLECB,Null} ; remove the callback function from the textbox[/ab3]

There are a few things to mention:
1. The example makes all "a"'s in the text bold and red.

2. You don't have to remove the callback when you free the textBox. This is only necessary if you want to make sure it will never called again, e.g. if your style callback allocated resources that you want to free before NTUI.

3. Between the label "myStyleCallback:" and the function declaration MUST NOT be any code.

4. It is allowed to write to the text buffer (Poke), but the length MUST be preserved. E.g. Casing can be altered. Note that you are actually changing the text buffer. If you just want to just format for display, you need "Style Commands" for this.

5. There are many "Style Commands", not only bold and colors. See TUITBSC_... for more. New commands can be easily added if necessary.

6. To style the text, you don't need a StyleCallback. You can also go through the whole text and style it. However, the style callback has so many advantages that you really want to use it. E.g., you don't need to parse the whole text, only the visible lines (=much faster). It also keeps track while editing the text line.

7. If you parse a line and the result may affect the next or previous line (e.g. multi-line comment), you need to return #TUISCB_NEXT or #TUISCB_PREV instead of #TUISCB_DONE. You can store the parser state as flags in *tline\flags. There are currently two flags, #TUITBLF_INCOMMENT and #TUITBLF_INTAG.

8. If the highlightning is more complex that just tracking a character, I highly recommend using a stack-based parser rather than a state machine.
99% of all programming languages can be parsed by a stack based parser with lookahead of 1 or 2 characters. I can give an example if there is interest.

Drucke diesen Beitrag

  Erzeugen von Labels (zum wiederfinden)
Geschrieben von: hackball - 01.12.2013, 01:42 - Forum: Questions & Answers - Antworten (9)

Ich möchte in AB3 Labels erzeugen, die mir ermöglichen, an bestimmte Stellen zu springen. Im Optimalfall würde ich immer das gleiche benutzen, nämlich das Tape .o__o

Da man natürlich nicht mehrmals dasselbe Label verwenden kann, muß ich mein Tape immer etwas abwandeln.

Gibt es für diesen Fall eine elegantere Lösung?

edit
Hm. z.B. eine Direktive "Dummylabel = .o__o" oder so?

Drucke diesen Beitrag

  Ntui: Engine
Geschrieben von: Blackbird - 30.11.2013, 16:47 - Forum: NTUI - Antworten (15)

Hallo Thilo,

Wird denn bei der angabe im xml seit neuesten kein iconifygadget mehr im Window erzeugt, oder ging das noch nie ?
In AIDE machst du das ja per Menü...

Drucke diesen Beitrag

  Ntui: Tabview featurerequest
Geschrieben von: Blackbird - 30.11.2013, 16:45 - Forum: NTUI - Antworten (3)

Hallo Thilo,

Wäre es nicht cool wenn dein Tab auch ein Closegadget beinhalten würde ?

Drucke diesen Beitrag

  Amiforce wieder erreichbar
Geschrieben von: Blackbird - 28.11.2013, 09:17 - Forum: News - Antworten (15)

Amiforce ist wieder erreichbar. In einem Post teilt Franz mit woran es lag und wie es weitergehen soll mit der Seite.
http://www.Amiforce.de/thread.php?thread...&boardid=1

Drucke diesen Beitrag

  Wunschliste
Geschrieben von: bruZard - 26.11.2013, 20:49 - Forum: News - Antworten (8)

Hinter den Kulissen bin ich permanent dabei das Forum und die Site zu verbessern. Auf der ToDo stehen derzeit:

  • anpassen der Farben für den Syntaxhighlighter an die original AB3 IDE Farben
  • anpassen der Code-Farben für Blitz2 Chipset-Befehle
  • anpassen des SyntaxHighlighter damit dieser auch Funktionen highlighted die auf {} hören
  • anpassen der "Subsilver" Icons an die "AmiBlitz3 CI"
  • Einbindung des SAE in die Website, so dass ihr in ferner Zukunft Eure Projekte auch Leuten zeigen könnt die keinen Amiga oder eine Emulation ihr Eigen nennen.
Daneben lösche ich permanent User die sich potentiell zum Spam angemeldet haben.

Dieser Thread soll aber etwas Anderem dienen: Schreibt hier rein was ihr Euch wünscht, für das Forum und Site. Wo kann noch verbessert werden und welche Features fehlen Euch? Ich bin gespannt!

Drucke diesen Beitrag

  Ntui : Textbox
Geschrieben von: Blackbird - 22.11.2013, 18:02 - Forum: NTUI - Antworten (7)

Hallo,

Wenn ich einen Text ins Textboxwidget einlese, warum wird das dann nicht automatisch refresht ?
Muß ich das selbst machen ?

Drucke diesen Beitrag

  Ntui : Windowid erhalten
Geschrieben von: Blackbird - 22.11.2013, 17:59 - Forum: NTUI - Antworten (19)

Hallo,

Folgendes Szenario:

In meinem Source lade ich per BuildFromXMLFile eine Windowbeschreibung.xml nach/oder lese sie ein...

Wie bekomme ich nun die NameID des geladenen Windows zum Anzeigen raus ?
Ich habe schon [ab3]ntui_GetAttr{*engine,#TUIA_ID,&windowname.s}[/ab3] probiert, aber das funktioniert nicht,
sondern erfüllt nur den Zweck das es crasht :o

Drucke diesen Beitrag

  phrasebook.include : Wie verwenden ?
Geschrieben von: Blackbird - 21.11.2013, 14:43 - Forum: Includes - Antworten (6)

Hallo,

ich habe zwar schon in AmiBlitz3 selbst gesehen das man da ausser dem einbinden nur ein !TRANS_INIT{} machen muß,
und dann den zu übersetzenden Text nur mit !TRANS{"blabla"}, was auch funktioniert, aber wie erzeugt man denn den die
Phrasebook übersetzungsdatei ? Gibts da ein extra Befehl, oder ein Tool ?

Drucke diesen Beitrag