jaPBe für PB 4.00

Ankündigungen PureBasic oder die Community betreffend.
Benutzeravatar
freedimension
Admin
Beiträge: 1987
Registriert: 08.09.2004 13:19
Wohnort: Ludwigsburg
Kontaktdaten:

Beitrag von freedimension »

gnozal hat geschrieben:I assume strg is CTRL ?
Yes, it's the abbreviation of "Steuerung", the german word for the noun "control" :)
Beginne jeden Tag als ob es Absicht wäre!
Bild
BILDblog
Benutzeravatar
edel
Beiträge: 3667
Registriert: 28.07.2005 12:39
Computerausstattung: GameBoy
Kontaktdaten:

Beitrag von edel »

@gnozal

Koennte man MSDN V8 auch noch als Alternative zur win32.chm
einbauen ?

Der folgende Code geht, moechte es allerdings nicht jedesmal kompilieren muessen.

Code: Alles auswählen

Procedure SDK_IsAvaiable()
  IsAvaiable = 0
  
  If RegCreateKeyEx_(#HKEY_CURRENT_USER, "Software\Microsoft\MSDN\8.0\Help", 0, 0, #REG_OPTION_NON_VOLATILE, #KEY_READ , 0, @NewKey, @KeyInfo) = #ERROR_SUCCESS
    index = 0
    Repeat
      ValueName$ = Space(260)
      ValueNameSize = 260
      ValueData$ = Space(260)
      ValueDataSize = 260
      
      Result = RegEnumValue_(NewKey, index, @ValueName$, @ValueNameSize, 0, @ValueType, 0, 0)      
      
      If Result = #ERROR_SUCCESS And ValueType = #REG_SZ
        
        If Left(LCase(ValueName$),17) = "ms-help://ms.msdn" ; current version: ms-help://MS.PSDK.1033 
          PlatformSDKHelpString$ = ValueName$
          IsAvaiable = 1
          
          Break
        EndIf
        
      EndIf
      
      index + 1
    Until Result <> #ERROR_SUCCESS
    
    RegCloseKey_(NewKey)
  EndIf
  
  ProcedureReturn IsAvaiable
EndProcedure

Dann noch der Doppelklick auf eine "Procedure"

WindowCallback.pbi

Code: Alles auswählen

            ;{-__notify sciedi DoubleClick
            Case #SCN_DOUBLECLICK
              WaitForLMBUp()
              startPos=SCI_GetSelectionStart()
              StartLine=SCI_LineFromPosition(startPos)
              If SCI_MarkerGet(StartLine)&#FoldMask_Start
                ;-___Click in Faltline
                PostMessage_(MainWin,#mywm_OpenFold,0,StartLine) ; <-----
              Else
                If GetAsyncKeyState_(#VK_CONTROL)&$FF00
                  FindDefinition(startPos,SCI_GetSelectionEnd()) ;<-------
                EndIf
              EndIf
Koennte man das noch Optional machen, mich nervt das sehr.

Vielen Dank (zumindest fuers lesen ;-)).
Zuletzt geändert von edel am 27.03.2006 18:58, insgesamt 1-mal geändert.
Benutzeravatar
gnozal
Beiträge: 219
Registriert: 04.12.2004 13:01
Wohnort: Frankreich (67)
Kontaktdaten:

Beitrag von gnozal »

hallodri hat geschrieben:Koennte man MSDN V8 auch noch als Alternative zur win32.chm einbauen ?
What about option 'SDK anstelle von Win32.hlp verwenden' ?
hallodri hat geschrieben:Dann noch der Doppelklick auf eine "Procedure"
I guess most users like it. Why do you double-click on procedures then ?
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Benutzeravatar
ts-soft
Beiträge: 22292
Registriert: 08.09.2004 00:57
Computerausstattung: Mainboard: MSI 970A-G43
CPU: AMD FX-6300 Six-Core Processor
GraKa: GeForce GTX 750 Ti, 2 GB
Memory: 16 GB DDR3-1600 - Dual Channel
Wohnort: Berlin

Beitrag von ts-soft »

Wenn es vielleicht möglich wäre, das jaPBe den BOM Header auswertet, so
wie die IDE?

Und natürlich auch schreibt!
PureBasic 5.73 LTS | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Nutella hat nur sehr wenig Vitamine. Deswegen muss man davon relativ viel essen.
Bild
Benutzeravatar
gnozal
Beiträge: 219
Registriert: 04.12.2004 13:01
Wohnort: Frankreich (67)
Kontaktdaten:

Beitrag von gnozal »

ts-soft hat geschrieben:Wenn es vielleicht möglich wäre, das jaPBe den BOM Header auswertet, so wie die IDE?
Und natürlich auch schreibt!
Unfortunately, I use a non unicode OS (Win98SE) and don't know nothing about unicode/utf-8 etc...
If you can tell me what to check when loading a file (and what to do with it) and when to add this header when saving a file, I will of course add the feature to jaPBe.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Benutzeravatar
edel
Beiträge: 3667
Registriert: 28.07.2005 12:39
Computerausstattung: GameBoy
Kontaktdaten:

Beitrag von edel »

gnozal hat geschrieben:
hallodri hat geschrieben:Koennte man MSDN V8 auch noch als Alternative zur win32.chm einbauen ?
What about option 'SDK anstelle von Win32.hlp verwenden' ?
Diese Option laesst aber nur PSDK und nicht MSDN zu.

gnozal hat geschrieben:
hallodri hat geschrieben:Dann noch der Doppelklick auf eine "Procedure"
I guess most users like it. Why do you double-click on procedures then ?
Ich bin faul und brauch das zum markieren :D

(Ich hoffe ich hab das jetzt richtig verstanden)
Benutzeravatar
ts-soft
Beiträge: 22292
Registriert: 08.09.2004 00:57
Computerausstattung: Mainboard: MSI 970A-G43
CPU: AMD FX-6300 Six-Core Processor
GraKa: GeForce GTX 750 Ti, 2 GB
Memory: 16 GB DDR3-1600 - Dual Channel
Wohnort: Berlin

Beitrag von ts-soft »

PureBasic 5.73 LTS | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Nutella hat nur sehr wenig Vitamine. Deswegen muss man davon relativ viel essen.
Bild
Benutzeravatar
gnozal
Beiträge: 219
Registriert: 04.12.2004 13:01
Wohnort: Frankreich (67)
Kontaktdaten:

Beitrag von gnozal »

ts-soft hat geschrieben:Zu BOM: http://de.wikipedia.org/wiki/Byte_Order_Mark
So the BOM is 'EF BB BF' at the beginning of the source.
1. LOADING : if there is a BOM, jaPBe should :
- skip the BOM and load the source ;
- set editor mode to UTF-8.
2. SAVING : if editor is in UTF-8 mode, jaPBe should :
- add BOM at beginning of file ;
- save the rest as usual.
Is this correct ?
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
armada
Beiträge: 100
Registriert: 10.10.2005 18:00
Kontaktdaten:

Beitrag von armada »

generell mal so ne frage...wäre es ohne größeren aufwand möglich japbe auf linux zu portieren...weiß jetzt ja nicht wieviel api darin benutzt wird...hab den source ja nich

die scintilla-engine gibt es ja generell für linux

auf alle fälle wenn du sowas machen könntest wär echt spitze gnozal

mfg
armada
Benutzeravatar
ts-soft
Beiträge: 22292
Registriert: 08.09.2004 00:57
Computerausstattung: Mainboard: MSI 970A-G43
CPU: AMD FX-6300 Six-Core Processor
GraKa: GeForce GTX 750 Ti, 2 GB
Memory: 16 GB DDR3-1600 - Dual Channel
Wohnort: Berlin

Beitrag von ts-soft »

gnozal hat geschrieben:
ts-soft hat geschrieben:Zu BOM: http://de.wikipedia.org/wiki/Byte_Order_Mark
So the BOM is 'EF BB BF' at the beginning of the source.
1. LOADING : if there is a BOM, jaPBe should :
- skip the BOM and load the source ;
- set editor mode to UTF-8.
2. SAVING : if editor is in UTF-8 mode, jaPBe should :
- add BOM at beginning of file ;
- save the rest as usual.
Is this correct ?
Keine Ahnung, ich hoffe
PureBasic 5.73 LTS | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Nutella hat nur sehr wenig Vitamine. Deswegen muss man davon relativ viel essen.
Bild
Antworten