Forum | | | |  Mindanao | I have now jahrelang with lightning 3D program. In my last proposition go many Zahleneingaben made. Blitzbasic knows unfortunately none Zehnerblock. there Blitzbasic already jahrelang not any more supportet becomes, be I now with XProfan 10 debarked. I have here but for graphic unfortunately yet nothing found. The Eingabebox uses me nothing. i want of course in a Window works, would like but grafikmäßig everything yourself make. |
| | | | |
| |  H.Brill | Can still beautiful with Locate and Input make.
with one Editfeld (Create("Edit",...) is it hold leichter, what The constraint on n characters concerns :
$00C5 : em_LimitText certainly The maximum amount of characters, The one Edit box take in must. n3: Number of characters (0 = termless) Return Value: 0 = Error aufgetreten
there need one hold only a Message ans Editfeld Send :
dull the Editfeld on 10 characters. |
| | | Benutze XPROFAN X3 + FREEPROFAN Wir sind die XProfaner. Sie werden von uns assimiliert. Widerstand ist zwecklos! Wir werden alle ihre Funktionen und Algorithmen den unseren hinzufügen.
Was die Borg können, können wir schon lange. | 06/01/17 ▲ |
| |
| |  Mindanao | Ersmal many Thanks for Answer. If I correctly. red have can with Locate only row and row prompt. i want one Window with cover 500 x 400 Pixel big. therein go several Datengruppen association and stay visible To any data association are. These Inputs would like pixelgenau positionieren can. I Search really a commands How Input x,y, input$,max_zeichen. I have me something like already time in lightning 3D program, goes too. i think time if I not what fertiges find, try I the hold in XProfan umzusetzen. |
| | | | |
| |  Jörg Sellmeyer | would be not something like rather as a grafically Solution?
Cls
Declare Liste&,Eingabe&,Button&
Liste& = Create("ListBox",%hwnd,0,10,10,100,160)
Eingabe& = Create("Edit", %HWnd, "", 210, 10, 80, 25)
SendMessage(Eingabe&, $00C5, 10, 0)
Button& = Create("Button",%hwnd,"einfügen",210,40,80,25)
While 1
WaitInput
If Clicked(Button&)
If GetText$(Eingabe&) > ""
AddStrings(Liste&,GetText$(Eingabe&))
SetText Eingabe&,""
EndIf
EndIf
Wend
|
| | | | |
| |  H.Brill | integrally pixelgenau becomes to the not hinbekommen. one must indeed yet on The type or. Schrifthöhe think. either, How supra Jörg already written has, or hold in the Textmode with Locate etc.
with TBox x1, y1 - x2, y2; n can indeed nice welt to demarcation make. Perhaps something like :
Declare name$, First name$, place$, Street$, Phone$, again$
Declare end%
Window Title "Mein Fenster"
Window 500, 400
Cls RGB(0, 0, 0)' schwarzes Window
Color 14, 0
Fensteraufbau()
ende% = 0
WhileNot end%
Locate 2,13 : Input name$
Locate 3,13 : Input First name$
Locate 4,13 : Input place$
Locate 5,13 : Input Street$
Locate 6,13 : Input Phone$
Locate 7,20 : Input again$
If Upper $(again$) = "N"
end% = 1
Else
Locate 12, 10 : Print Space$(70)
Locate 12, 10 : Print name$, First name$, place$
LoescheEingabefelder()
EndIf
EndWhile
Proc Fensteraufbau
TBox 1, 1 - 9, 35; 2
Locate 2,2 : Print "Name : "
Locate 3,2 : Print "Vorname : "
Locate 4,2 : Print "Ort : "
Locate 5,2 : Print "Straße : "
Locate 6,2 : Print "Telefon : "
Locate 7,2 : Print "Nochmal (J/n) ?"
Locate 1,5 : Print "Eingaben"
ENDPROC
Proc LoescheEingabeFelder
Locate 2,13 : Print Space$(22)
Locate 3,13 : Print Space$(22)
Locate 4,13 : Print Space$(22)
Locate 5,13 : Print Space$(22)
Locate 6,13 : Print Space$(22)
ENDPROC
End
What the Längenbegrenzung concerns : there has time irgendwer what gebastelt :
DECLARE testtext0$,testtext1$,testtext2$
Proc Dput
Parameters x%, y%, r$, size%, fashion%
declare DIend%,blink%,mod0$,mod1$,mod2$,curs$,a$
'Vorgaben for input modes definieren"
mod0$="0123456789"'mode 0 = only numbers
mod1$="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"'mode 1 = only letters
mod1$=mod1$+"-_.: !?"'mode 1 = plus ggf. sonderzeichen
mod2$=mod0$+mod1$'mode 2 = Zeuichen of mode 1 and mode 2
locate x%,y%
print r$;":";
whilenot DIend%
if blink%=1'if blinkender Cursor desired is
curs$="_ "'Cursor Show
else
curs$=" "'no Cursor
endif
blink%=abs(blink%-1)' so becomes Blink% always 0 or -1
settimer 500'wartezeit 500 ms if no Key pressed becomes
waitinput'Waiting on input ereigniss (keyboard, mouse..)
killtimer
'here The Auswertung the input
if (%scankey<>0)' watts a Key pressed????
if %scankey = 8' Del Button pressed
case @len(a$)>=1: let a$=@mid$(a$,1,@len(a$)-1)'then The Stringvariable circa 1 place cut off if length larger same 1 characters is
elseif %scankey = 13'Enter Button
DIend%=1
else'weder ENTER yet DEL
if (@len(a$)<>size%)'is the MaxLänge not yet access???
if fashion% = 0
case @instr(chr $(%scankey),mod0$)<>0: a$=a$+mid$(mod0$,@instr(chr $(%scankey),mod0$),1)'The characters The in mod0$ indicated are to permit (here only numbers)
elseif fashion% = 1
case @instr(chr $(%scankey),mod1$)<>0: a$=a$+mid$(mod1$,@instr(chr $(%scankey),mod1$),1)'The characters The in mod1$ indicated are to permit (here only letters)
elseif fashion% = 2
case @instr(chr $(%scankey),mod2$)<>0: a$=a$+mid$(mod2$,@instr(chr $(%scankey),mod2$),1)'The characters from in mod2$ (here only numbers and letters)
endif
endif
endif
endif
locate x%,y%
case DIend%=0:print r$;":";a$;curs$
wend
PRINT r$;":";a$;" "
return a$
endproc
'Calling the Procedure
Dput 3,10,"Geben tappt im dunkeln your PLZ ein",5,0
testtext0$= $(0)'Return Value (input) in Variable fetch
Dput 4,5,"Geben tappt im dunkeln your Your names ein",15,1
testtext1$= $(0)'Return Value (input) in Variable fetch
Dput 5,5,"Geben tappt im dunkeln your your Street + Nr ein",15,2
testtext2$= $(0)'Return Value (input) in Variable fetch
print "Your Inputs were "
print testtext0$
print testtext1$
print testtext2$
waitinput
Möglicherweise can you too the use. |
| | | Benutze XPROFAN X3 + FREEPROFAN Wir sind die XProfaner. Sie werden von uns assimiliert. Widerstand ist zwecklos! Wir werden alle ihre Funktionen und Algorithmen den unseren hinzufügen.
Was die Borg können, können wir schon lange. | 06/02/17 ▲ |
| |
| |  Jörg Sellmeyer | well locate and co are there but Elefantenbüchsen for fleas. If then still rather DrawText X, Y, s[, n] so can pixelgenau positionieren. If one the work absolutely make would like... |
| | | | |
| |  H.Brill | is correct already, what You write. white but not, what the bring should. it must then anyhow with Input works, we're time in the Grafikmodus stay.
the Input in the Grafikmodus there Yes not.
and a defined Schrifthöhe must one Yes too having, circa sensible with the DrawText written reading to or. what prompt can. After of my experience isn't there plenty Difference, what whom Platzbedarf angeht.
there should Mindanao time very say, what it having wants. If I lightning 3 D see, is it In any drop time no GUI. the could one only with the normalen Blitzbasic make. |
| | | Benutze XPROFAN X3 + FREEPROFAN Wir sind die XProfaner. Sie werden von uns assimiliert. Widerstand ist zwecklos! Wir werden alle ihre Funktionen und Algorithmen den unseren hinzufügen.
Was die Borg können, können wir schon lange. | 06/02/17 ▲ |
| |
| |  Mindanao | Hello people In lightning 3D there one Input the one, alike whether Window or NichtFenster, überal in Pixelschritten hinpinnen can. The problem is, the on The input hold always waited becomes. In XProfan can with Input apparently not others and grösseren Schriften works. Why I the Pixelgenau having would like lying on the manner Bedienoberfläche How I tappt im dunkeln likes. with all Programs The I yet program have, make I me The Programmoberfläche with all Graphics, Button u.s.w. everything yourself. The Eigaberoutine in Blitzbasic have me too yourself written. The operates with Tastenabfrage, one can always to the individual Inputs by keyboard there and herspringen,arbitrary Schriftenn u.s.w. The Function have I me today ausgedruckt, and will be try these 1 To 1 in XProfan umzusetzen. ought to hinzukriegen his. |
| | | | |
| |  Mindanao | Hello ! I have me again The enclosed Source angeschaut. the second Example of H.Brill is really very the I Search, though with two important changes. the Pixelgenaue, because one instead of Print whom commands Text takes wahrschein no trouble. the second, the Zehnerblock, the goes of these View source namely unfortunately neither and with the manner of request becomes it probably neither weg. |
| | | | |
| |  H.Brill | you have right. The Zehnerblock is not. The Scancode is too another, How in the scheduler the Tastencodes (96 - 105) indicated is. correctly. goes it only in a Editfeld. the would I your place take, there one this too pixelgenau dimensionieren can and furthermore can too The amount the einzugebenden characters take on.
PS: If you having want, that in a Editfeld only numbers, comma or point registered becomes, see Appendix. |
| | | Benutze XPROFAN X3 + FREEPROFAN Wir sind die XProfaner. Sie werden von uns assimiliert. Widerstand ist zwecklos! Wir werden alle ihre Funktionen und Algorithmen den unseren hinzufügen.
Was die Borg können, können wir schon lange. | 06/10/17 ▲ |
| |
| |  Mindanao | Hello Ersmal thanks the itself still jenand Thoughts this Topic power. whom Code you, with the good ansätzen, be I already dran on my needs anzupassen. generally be thereby The command of of lightning 3D in XProfan to find. Nochmal to that Zehnerblock. I have me for work some Helferlei in lightning 3D program, also any functions, except for the latest, where hold the Zehnerblock not goes. Diesen Tool serves moreover, for a Druckauftrag the almost daily comes many data type. any my Helferlein go not only of me, too of Kollegen used. it should everything without mouse functions and the data nacheinander association go. The data go aufbereitet and then as Datensätze in éinem Ordner stored. One Ordner for Druckauftrag, each File enpricht of/ one To druckenden strain. after the stored is go on one Etikettendrucker for each strain suitable Rollenetiketten printed and thereafter yet on one second Etikettendrucker suitable larger ones Kartonetiketten. On the Filebefehlen be dran. small probierschnipsel weg already. at that print have I yet some Problems. the print should everything without aufpopende Window weg. I must in the program with 3 Printers works, means in the program select, print and To schluss again whom Standartdrucker settle can. Îch have of course whom a or others commands already found, but hold not yet any. there true yet The Hilfefunktion. first time grosses praise the everything in German is, the plenty To reading there's, but I find only heavy the I really Search. to that Topic print finds itself of course what, but irgentwie missing always what. Well, i'm 62, Maybe missing slow the Überblick for grosse whole. |
| | | | |
| |  H.Brill | Hello, be too only 3 years younger, as You. be for but already since beginning on here thereby.
I have you time one small Beispielprogramm with plenty Kommentaren made. Perhaps helps it to you Yes moreover :
Declare Dialog&, Btn1&, Edit1&, Edit2&, Edit3&, Ende&
Ende& = 0
Window Title "Editfelder"
Window 600, 400
' there in a Dialog-Window too The ENTER-Button in the Editfeld
' functions, take we a dialog instead of one normalen Window.
Dialog& = Control("DIALOG","",$54000000,10,10,200,150,%hwnd,0,%hinstance)
Create("Text", Dialog&, "Nummer :", 10, 10, 80, 20)
Create("Text", Dialog&, "Name :", 10, 35, 80, 20)
Create("Text", Dialog&, "Ort :", 10, 60, 80, 20)
Edit1& = Create("Edit", Dialog&, "", 100, 10, 90, 20)
Edit2& = Create("Edit", Dialog&, "", 100, 35, 90, 20)
Edit3& = Create("Edit", Dialog&, "", 100, 60, 90, 20)
Btn1& = Create("Button", Dialog&, "", 10, 130, 40, 25)
' around the input in a Loop to having, sodaß the Cursor
' again in that 1. Input jumping, becomes here
' the ploy with a unsichtbaren Button apply.
' there becomes simply the Focus again the first
' Input laid.
' Editfields on 10 characters limitieren
SendMessage(Edit1&, $00C5, 10, 0)
SendMessage(Edit2&, $00C5, 10, 0)
SendMessage(Edit3&, $00C5, 10, 0)
User Messages $10' Closing-Cross inquire
SetFocus(Edit1&)
ShowWindow(Btn1&, 0)' Button make invisible
WhileNot Ende&
WaitInput
If GetFocus(Btn1&)
' here could The Editfields read go
' or. The Inputs ausgewertet go.
' should The Editfields for next input
' empty his, simply with SetText Edit1&, "" etc.
' delete.
SetFocus(Edit1&)
EndIf
Case %UMessage = $10 : Ende& = 1
EndWhile
End
with the Print see we then later. |
| | | Benutze XPROFAN X3 + FREEPROFAN Wir sind die XProfaner. Sie werden von uns assimiliert. Widerstand ist zwecklos! Wir werden alle ihre Funktionen und Algorithmen den unseren hinzufügen.
Was die Borg können, können wir schon lange. | 06/10/17 ▲ |
| |
|
AnswerTopic-Options | 12.195 Views |
Themeninformationenthis Topic has 3 subscriber: |