English
XProfEd - Opensource IDE

general editor Klassenfrage.

 
- Page 1 -



GDL
@ Hello Roland,

I have me with Help your class a Einfachsteditor for my Atmelprogramm gezimmert.
it works too everything wonderful, except for one:i want always whom actually Zeileninhalt in row$ having.

I take at times, that with the the part To do has.
CompileMarkSeparation
Proc XSciProf.GetLine

    Return Int(.SciMessage(~SCI_LINEFROMPOSITION, .SciMessage(~SCI_GETCURRENTPOS, 0, 0), 0) + 1)

EndProc

Proc XSciProf.GetLine$

    Parameters Nr%, Z$
    Declare Len%, Zeile#
    Dim Zeile#,32767
    Len% = .SciMessage(~SCI_GETLINE, Nr%, Zeile#)
    Z$ = Translate$(Char$(Zeile#,0,Len%-1),	,Space$(XSciProf.Tab%))
    Dispose Zeile#
    Return Z$

Windows7 Xprofan 8,9,10 [...]  [...] 
10/21/07  
 



 
- Page 2 -



GDL
goes as Einzelbefehl not and combination with setfocus neither.
 
Windows7 Xprofan 8,9,10 [...]  [...] 
10/24/07  
 




GDL

CompileMarkSeparation
setfocus(editor_&)
~InvalidateRect(%hwnd, 0, 0)
~UpdateWindow(%hwnd)
setfocus(editor_&)pre>

goes too net
 
Windows7 Xprofan 8,9,10 [...]  [...] 
10/24/07  
 




Jörg
Sellmeyer
what is Einzelbefehl? this is a function - with SetActiveWindow(hdl&) setting You one Control active.
I have with Rolands code again tested. there functions SetFocus. you mußt means a Error somewhere installed having.
have You The Ergänzug To my vorigen Posting red?
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
10/24/07  
 




GDL
mom has everything überschnitten into Postings.

login me again.
 
Windows7 Xprofan 8,9,10 [...]  [...] 
10/24/07  
 




GDL
have no class, separate only 1 Window.

concerns menuitem, and clicked

this goes
, if before with getfocus one other Control called watts
CompileMarkSeparation
elseif getfocus(mak&)					Makros auswählen

grau
SKCtrl_SetColor(mak&,2,RGB(224,0,202))
setfocus(editor_&pan>
 
Windows7 Xprofan 8,9,10 [...]  [...] 
10/24/07  
 




Jörg
Sellmeyer
I faith, we talk together past. on the best You postest time one lauffähiges example, on the to the understand can. As I said: in the XProfEd functions it.
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
10/24/07  
 




GDL
jo, goes but first in the running the night.
 
Windows7 Xprofan 8,9,10 [...]  [...] 
10/24/07  
 




Jörg
Sellmeyer
everything clear, i'm eh ne nachteule
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
10/24/07  
 




GDL
now goes through chance everything, if I to waitinput NEN setfocus(edit&) einsetze.
CompileMarkSeparation
the it now goes is certainly NEN Doppelfehler, the itself then aufhebt.important iss, that my Zusammengesuche ausm Xprofed at all goes.
be still on the Search Why the waitinput durchbrochen becomes.becomes the in the XProfed class already set?

Hello
Georg
 
Windows7 Xprofan 8,9,10 [...]  [...] 
10/24/07  
 




GDL
have yet moreover rumprobiert.

setfocus(edit&) or setfocus(editor_&) can to waitinput ,into individual inquire,so often stand as likes, It's all right not.standing But to waitinput goes everything.

Hello
Georg
 
Windows7 Xprofan 8,9,10 [...]  [...] 
10/24/07  
 




GDL
@ Jörg,

have time everything so far abstracted,so far I yet be.The Exe is run.any code lying with.in the Ordner 01Test run.

Hello
Georg

578 kB
Hochgeladen:10/24/07
Downloadcounter98
Download
 
Windows7 Xprofan 8,9,10 [...]  [...] 
10/24/07  
 




Jörg
Sellmeyer
GDL
have yet moreover rumprobiert.

setfocus(edit&) or setfocus(editor_&) can to waitinput ,into individual inquire,so often stand as likes, It's all right not.standing But to waitinput goes everything.

Hello
Georg


You would have it none to individual inquire settle must, separate to the If-structure in the Hauptschleife.
CompileMarkSeparation
While 1

    WaitInput

    If 1

        ...

    ElseIf 2

        ...

    ElseIf ...

        ...

    EndIf

    SetFocus(Editor&)

Wend


But letzendlich alike.
i'd only The Variable editor_& not global define, separate inside the procedure. then must of course any further, Procedures, The the control bearing still in the first row one Parameters editor_&,...,... having, but you have then The Procedures beautiful gekapselt and can with want further Editcontrols in Your Program produce.
your Includedatei becomes simply flexibler.
Greeting
Jörg
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
10/24/07  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

14.023 Views

Untitledvor 0 min.
Sven Bader03/14/23
Ernst04/22/16
Magda08/31/14
GDL05/11/14
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie