English
Forum

Ärger with SpinEdits, Dialogen and GetText$()

 
- Page 1 -



Klaus
Müller
hello everyone together,
I komm to Time not further and quäle me now already some days.
If one whom untrigen code executing and on lay out clicking, should really the two values from whom Spinedits read and be so one hnewpic created go. The problem is now but not The values read go separate something. the whole geschiet in Proc NEUESPROJEKT
what have I already erfolglos ausprobiert?:
-Group boxes lane and everything aud the Dialogfeld
-dialog lane and everything on %HWnd
-replace the SpinEdits against normal Edits

Vielen Thanks Schonmal for Help.
Greeting Thomas

here the code on one minimum minimizes:
 {$iq}
Declare anzeige&
cls
NEUESPROJEKT()
DeleteObject anzeige&
end

Proc NEUESPROJEKT

    var e%=0//preparing the hauptunterschleife
    //construction the fensters
    var dlg& = Create("Dialog",%HWnd,"Neues Projekt",(%MaxX-200)/2,(%MaxY-285)/2,200,285)
    var boxA& = Create("GroupBox",dlg&,"Kartenname:",5,0,185,45)
    var editA& = Create("Edit",boxA&,"neueKarte",5,15,175,25)
    var boxB& = Create("GroupBox",dlg&,"Breite: (*100px)",5,50,185,45)
    var editB& = Create("SpinEdits",boxB&,"50;5;500",5,15,175,25)//FALSCHER WERT NUMMER 1
    var boxC& = Create("GroupBox",dlg&,"Höhe: (*100px)",5,100,185,45)
    var editC& = Create("SpinEdits",boxC&,"20;2;200",5,15,175,25)//FALSCHER WERT NUMMER 2
    var boxD& = Create("GroupBox",dlg&,"Texturkarte",5,150,185,45)
    var editD& = Create("Edit",boxD&,"",5,15,140,25)
    var butD& = Create("Button",boxD&,"...",150,15,30,25)
    var endofnew& = Create("Button",dlg&,"Anlegen",5,200,185,25)
    var abortofnew& = Create("Button",dlg&,"Abbrechen",5,230,185,25)
    //hauptunterschleife

    While e% = 0

        If GetFocus(endofnew&)//ANLEGEN

            e%=5

        ElseIf GetFocus(abortofnew&)//ABBRECHEN

            MessageBox("Wollen tappt im dunkeln Cancel?","FRAGE",4+32+0+262144)

            If %Button = 6//[Yes]

                e% = 6

            EndIf

        EndIf

    EndWhile

    If e%=5

        var high! = Int(GetText$(editC&))//*100
        var wide! = Int(GetText$(editB&))//*100
        var cover$ = GetText$(editA&)
        var texturkarte$ = GetText$(editD&)
        MessageBox(Str$(high!),Str$(wide!),4096)//Why incorrect values?
        anzeige& = Create("hNewPic", wide!, high!, RGB(255,150,150))
        MessageBox("Daten get angelegt","",4096)
        EndIf
        e%=1 //important so programmhauptschleife moreover runs
        DestroyWindow(dlg&)
        ENDPROC
 
XProfan X4; Win10 x64
Der Kuchen ist eine lüge!
09/20/11  
 



« this Posting watts as Solution marked. »


Jörg
Sellmeyer
Hm - what should because these strange structure?
var high! = Int(GetText$(editC&))//*100

One comment the with /* begins, can in the middle in a row, Yes even in the middle in a Befehlswort begin, over several Lines weg and end first at next */.


means only one Backslash, otherwise bleats Profan.

If you of/ one Floatvariablen with Int a worth zuweist, becomes The Floatvariable superfluously, because You then naturally only a Integer erhälst.
it reicht means simply:
var high! = Val(GetText$(editC&))
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
09/20/11  
 




Paul
Glatz
Hello

You wandelst The Strings garniucht in numbers circa.

wrong:
var wide! = Int(GetText$(editB&))

correctly.:
var wide! = Int(val(GetText$(editB&)))
 
09/20/11  
 




Jörg
Sellmeyer
Hm - what should because these strange structure?
var high! = Int(GetText$(editC&))//*100

One comment the with /* begins, can in the middle in a row, Yes even in the middle in a Befehlswort begin, over several Lines weg and end first at next */.


means only one Backslash, otherwise bleats Profan.

If you of/ one Floatvariablen with Int a worth zuweist, becomes The Floatvariable superfluously, because You then naturally only a Integer erhälst.
it reicht means simply:
var high! = Val(GetText$(editC&))
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
09/20/11  
 




Klaus
Müller
Boar what kind of Anfängerfehler. hereon must one first come. Vielen Thanks again.

Greeting Thomas
 
XProfan X4; Win10 x64
Der Kuchen ist eine lüge!
09/21/11  
 



very, boooooooooooo!
 
09/21/11  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

9.146 Views

Untitledvor 0 min.
RudiB.10/03/22
Georg Teles10/26/21
p.specht12/15/20
rquindt11/29/18
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