Foro | | | |  Web Scanner | ¡Hola,
Das nächste Mini-Problema. Un kleine Edición en una Bajo-Ventana. Leider son el Radiobuttons de Pos 4 no a sehen. Was mach Yo como bloß falso? KompilierenMarcaSeparaciónhD% = @Create(Dialog,%hWnd,Konfiguration der Parallelen Schnittstelle,100,100,800,500)
StartPaint hD%
Einen Button mit ENDE erzeugen
hB% = @Create(Button,hD%,&OK,700,400,50,50)
DrawText 10,10, Schnittstelle
DRAWtext 160,10,X-Motor
drawtext 340,10,Y-Motor
drawtext 500,10,Z-Motor
DrawText 10,50,PIN 2
DrawText 10,90,PIN 3
DrawText 10,130,PIN 4
DrawText 10,170,PIN 5
DrawText 10,210,PIN 6
DrawText 10,250,PIN 7
DrawText 10,290,PIN 8
DrawText 10,330,PIN 9
@Create(GroupBox,hd%,Richtung ,100,30,80,350)
@Create(GroupBox,hd%,Takt,190,30,80,350)
@Create(GroupBox,hd%,Richtung ,280,30,80,350)
@Create(GroupBox,hd%,Takt,370,30,80,350)
@Create(GroupBox,hd%,Richtung ,460,30,80,350)
@Create(GroupBox,hd%,Takt,550,30,80,350)
ha% = @Create(RadioButton,hd%,,135,50,20,20)
hb% = @Create(RadioButton,hd%,,135,90,20,20)
hc% = @Create(RadioButton,hd%,,135,130,20,20)
hd% = @Create(RadioButton,hd%,,135,170,20,20)
he% = @Create(RadioButton,hd%,,135,210,20,20)
hf% = @Create(RadioButton,hd%,,135,250,20,20)
hg% = @Create(RadioButton,hd%,,135,290,20,20)
hh% = @Create(RadioButton,hd%,,135,330,20,20)
EndPaint
$B HALT!
Grüße
Web |
| | | | |
| |  Sebastian Sprenger | Hi Web Scanner, lo liegt daran, dass du el Variables hD% (y nebenbei dijo auch hB%) para zwei verschiedene Zwecke verwendest... Zuerst erstellst du una Diálogo y legst ihn en el Variable hD% de. Auf diesem Diálogo hD% erstellt du weitere Radiobuttons - y 4. heißt eben hd%, qué se con el Diálogo überschneidet. Solución: Andere Variablennamen...  Saludo, Sebastian |
| | |  Profan² 7.0e, XProfan 9, 11.2a, FreeProfan32  Windows Vista Home Premium 32-Bit, 2.8 Ghz, 4 GB RAM  Windows Me, 1.8 Ghz, 256 MB RAM | 30.06.2008 ▲ |
| |
| |  Web Scanner |  Man muß sólo en él gestoßen voluntad. Dankeschön!
Mit el Varaibelen Yo ya manchmal Spaß gehabt.
Grüße
Web |
| | | | |
| |  Jörg Sellmeyer | Yo sería simplemente aussagekräftigere Namen benutzen. Außerdem kannst Usted Usted con un Präfix leichter Überblick verschaffen. Z.B. btn_Ende& es el Button para ...; btn_Hilfe&, btn_OK, lb_Anzeige&, u.s.w. rb_Auswahl1&, rb_Auswahl2& könnten entonces Radiobuttons ser. Das bischen mehr a Schreibarbeit lohnt se antes allem en größeren Codes. Undwenn Usted veces una halbes Jahr no a una Projekt gearbeitet hast, Es el Einarbeitung auch viel leichter. |
| | | Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ...  | 01.07.2008 ▲ |
| |
| |  | Jörg ha como siempre Recht  ...Yo me ya antes langer Tiempo una INC-Expediente geschrieben, en welcher todos grundlegenden Variables ya eingetragen son. z. B. help& neu&, edit&, print&, suche& ende& usw...
El Expediente brauche Yo entonces sólo para Anfang en una neues Vorhaben einzubinden y ya se ejecuta el Sache
Kurze Variablenbezeichner son heute auch no mehr nötig, como cada genug Arbeitspeicher ha (en früheren DOS-Veces wurde hier furchtbar gespart y después de unos pocos Monaten hast du deinen eigenen Code no mehr lesen puede.) Dialogfenster haben en me grundsätzlich win01&, win02& usw... como Variable y en Declaration escribir Yo una Kurzerklärung dazu DECLARE win01& Anzeige para 8 Radiobuttons |
| | | | |
| |  Web Scanner | Okay, voluntad Yo veces vormerken ....
Yo mehre siempre todavía con el Radiobuttens herum. Nun Yo quería mehrere Gruppen con Radiobuttons en EINEM Ventana Mostrar.
Wenn Yo 2 Spalten (Gruppen) erzeuge, el jeweils ersten Button oben con setcheck poner y luego veces reinclicke, verschwindet el zweite gesetzte Button y yo kann en beiden Gruppen sólo una Button aktivieren. Yo brauche en cada Gruppe aber una gesetzen Button.
Gibts una Trick como el ir podría? Alternative es ne Checkbox., Yo weiß... 
Grüße
Web |
| | | | |
| |  Dietmar Horn | Jede Gruppe de RadioButtons con uno GroupBox umranden, entonces klappt el. |
| | | Multimedia für Jugendliche und junge Erwachsene - MMJ Hoyerswerda e.V. [...]  Windows 95 bis Windows 7 Profan² 6.6 bis XProfan X2 mit XPSE Das große XProfan-Lehrbuch: [...]  | 01.07.2008 ▲ |
| |
| |  Web Scanner | Hmm, el con Groupbox Yo gemacht. Yo habe also zwei Groupboxen con 8 Buttons. El Buttons son auch todos en jeweils uno Groupbox drinne. Sorry wegen el Variables, tener Todavía no geändert  KompilierenMarcaSeparaciónhD% = @Create(Dialog,%hWnd,Konfiguration der Parallelen Schnittstelle,100,100,800,500)
StartPaint hD%
Einen Button mit ENDE erzeugen
hB% = @Create(Button,hD%,&OK,700,400,50,50)
DrawText 10,10, Schnittstelle
DRAWtext 160,10,X-Motor
drawtext 340,10,Y-Motor
drawtext 500,10,Z-Motor
DrawText 10,50,PIN 2
DrawText 10,90,PIN 3
DrawText 10,130,PIN 4
DrawText 10,170,PIN 5
DrawText 10,210,PIN 6
DrawText 10,250,PIN 7
DrawText 10,290,PIN 8
DrawText 10,330,PIN 9
@Create(GroupBox,hd%,Richtung ,100,30,80,350)
@Create(GroupBox,hd%,Takt,190,30,80,350)
@Create(GroupBox,hd%,Richtung ,280,30,80,350)
@Create(GroupBox,hd%,Takt,370,30,80,350)
@Create(GroupBox,hd%,Richtung ,460,30,80,350)
@Create(GroupBox,hd%,Takt,550,30,80,350)
Block 1 X Motor
ha% = @Create(RadioButton,hd%,,135,50,20,20)
hb% = @Create(RadioButton,hd%,,135,90,20,20)
hc% = @Create(RadioButton,hd%,,135,130,20,20)
hk% = @Create(RadioButton,hd%,,135,170,20,20)
he% = @Create(RadioButton,hd%,,135,210,20,20)
hf% = @Create(RadioButton,hd%,,135,250,20,20)
hg% = @Create(RadioButton,hd%,,135,290,20,20)
hh% = @Create(RadioButton,hd%,,135,330,20,20)
Block 2 X Motor
ka% = @Create(RadioButton,hd%,,225,50,20,20)
kb% = @Create(RadioButton,hd%,,225,90,20,20)
kc% = @Create(RadioButton,hd%,,225,130,20,20)
kk% = @Create(RadioButton,hd%,,225,170,20,20)
ke% = @Create(RadioButton,hd%,,225,210,20,20)
kf% = @Create(RadioButton,hd%,,225,250,20,20)
kg% = @Create(RadioButton,hd%,,225,290,20,20)
kh% = @Create(RadioButton,hd%,,225,330,20,20)
setcheck ha%,1
eck ka%,1
|
| | | | |
| |  | Yo wehre mich langsam gegen Su Postings si yo ständig esta Editar muss sólo porque Usted simplemente kein [ code ] - Tag en Su Codes setzt! Editier Su Contribución gefälligst incluso - rechts unten Editar.  |
| | | | |
| |  Sebastian Sprenger | Lo va weniger por lo tanto, dass du el RadioButtons en GroupBoxes einrahmst, pero a Reihenfolge, en el du el RadioButtons y GroupBoxes anlegst. Immer si du una neue GroupBox anlegst, beginnt auch una neue Gruppe de RadioButtons. Im Übrigen scheinen Arrays para así una konsistente Reihe de Buttons mejor geeignet. KompilierenMarcaSeparacióndeclare h%[7], k%[7]
Block 1 X Motor
@Create(GroupBox,hd%,Richtung ,100,30,80,350)
h%[0] = @Create(RadioButton,hd%,,135,50,20,20)
h%[1] = @Create(RadioButton,hd%,,135,90,20,20)
h%[2] = @Create(RadioButton,hd%,,135,130,20,20)
h%[3] = @Create(RadioButton,hd%,,135,170,20,20)
h%[4] = @Create(RadioButton,hd%,,135,210,20,20)
h%[5] = @Create(RadioButton,hd%,,135,250,20,20)
h%[6] = @Create(RadioButton,hd%,,135,290,20,20)
h%[7] = @Create(RadioButton,hd%,,135,330,20,20)
Block 2 X Motor
@Create(GroupBox,hd%,Takt,190,30,80,350)
k%[0] = @Create(RadioButton,hd%,,225,50,20,20)
k%[1] = @Create(RadioButton,hd%,,225,90,20,20)
k%[2] = @Create(RadioButton,hd%,,225,130,20,20)
k%[3] = @Create(RadioButton,hd%,,225,170,20,20)
k%[4] = @Create(RadioButton,hd%,,225,210,20,20)
k%[5] = @Create(RadioButton,hd%,,225,250,20,20)
k%[6] = @Create(RadioButton,hd%,,225,290,20,20)
k%[7] = @Create(RadioButton,hd%,,225,330,20,20)
@Create(GroupBox,hd%,Richtung ,280,30,80,350)
@Create(GroupBox,hd%,Takt,370,30,80,350)
@Create(GroupBox,hd%,Richtung ,460,30,80,350)
@Create(GroupBox,hd%,Takt,550,30,80,350)
und so weiter und so fort...
Saludo, Sebastian |
| | |  Profan² 7.0e, XProfan 9, 11.2a, FreeProfan32  Windows Vista Home Premium 32-Bit, 2.8 Ghz, 4 GB RAM  Windows Me, 1.8 Ghz, 256 MB RAM | 01.07.2008 ▲ |
| |
| |  Web Scanner | @IF Sorry, Yo tener gesucht como el va y habs no en rápido gefunden 
Jetzt besssa?
@Sebastian -Super Gracias, ahora gehts más  |
| | | | |
|
RespuestaThemeninformationenDieses Thema ha 6 subscriber: |