Böse Geschichte...
Ich möchte wissen, ob das in aktuellen Versionen von XProfan auch noch so ist. Hier Quelltext:
Code
Def SetTimer(4) !"USER32","SetTimer"
Def KillTimer(2) !"USER32","KillTimer"
Def SetWindowPos(7) !"User32","SetWindowPos"
Declare Counter%, Items%[500], Dialog&, TIMER_ID&
Declare Positioner&, Hauptfensterbreite&, Hauptfensterhöhe&, Tab&
Declare Button&, Edit&
Windowstyle 31 + 512
WindowTitle "Dialogtest"
IF (%MAXX<800) or (%MAXY<600)
Window 0, 0 - 640, 440
else
Window 0, 0 - 800, 540
endif
Usermessages $10
POPUP "&Programm"
Counter%=100
While (Counter% < 130) and (%UMESSAGE <> $10)
APPENDMENU Counter%,Str$(Counter%)
inc Counter%
EndWhile
Popup "Test &2"
While (Counter% < 160) and (%UMESSAGE <> $10)
APPENDMENU Counter%,Str$(Counter%)
inc Counter%
EndWhile
Popup "Test &3"
While (Counter% < 190) and (%UMESSAGE <> $10)
APPENDMENU Counter%,Str$(Counter%)
inc Counter%
EndWhile
Popup "Test &4"
While (Counter% < 220) and (%UMESSAGE <> $10)
APPENDMENU Counter%,Str$(Counter%)
inc Counter%
EndWhile
Popup "Test &5"
While (Counter% < 250) and (%UMESSAGE <> $10)
APPENDMENU Counter%,Str$(Counter%)
inc Counter%
EndWhile
Popup "Test &6"
While (Counter% < 280) and (%UMESSAGE <> $10)
APPENDMENU Counter%,Str$(Counter%)
inc Counter%
EndWhile
Popup "Test &7"
While (Counter% < 310) and (%UMESSAGE <> $10)
APPENDMENU Counter%,Str$(Counter%)
inc Counter%
EndWhile
Popup "Test &8"
While (Counter% < 340) and (%UMESSAGE <> $10)
APPENDMENU Counter%,Str$(Counter%)
inc Counter%
EndWhile
Popup "Test &9"
While (Counter% < 370) and (%UMESSAGE <> $10)
APPENDMENU Counter%,Str$(Counter%)
inc Counter%
EndWhile
Popup "Test &10"
While (Counter% < 400) and (%UMESSAGE <> $10)
APPENDMENU Counter%,Str$(Counter%)
inc Counter%
EndWhile
Popup "Test &11"
While (Counter% < 430) and (%UMESSAGE <> $10)
APPENDMENU Counter%,Str$(Counter%)
inc Counter%
EndWhile
Popup "Test &12"
While (Counter% < 460) and (%UMESSAGE <> $10)
APPENDMENU Counter%,Str$(Counter%)
inc Counter%
EndWhile
'Tab&=Control("SysTabcontrol32","",$5C014200,20,20,(Width(%HWND)-40),(Height(%HWND)-70),%HWND,21131,%Hinstance,$0)
TAB& = %HWND
Dialog& = Control("Dialog", "", $50000400, 20, 30, ABS(Width(Tab&)-360),ABS(HEIGHT(TAB&)-60), Tab&, 0, %Hinstance, $204 | $10000)
Button& = Create("Button", Dialog&, "Test", 20, 250, 200, 30)
Edit& = Control("Edit","",$50000000 | $40 | $80 | $4 | $200000 | $100000 | $100 | $1000, 20, 20, 200, 200, Dialog&, 0, %HINSTANCE, $200)
SetFocus(Edit&)
While %UMESSAGE <> $10
Waitinput
Counter% = 100
While (Counter% < 460) and (%UMESSAGE <> $10)
IF %MENUITEM = Counter%
Beep
Items%[Counter%] = not(Items%[Counter%])
CheckMenu Counter%, Items%[Counter%]
Locate 0, 0
Print str$(%MENUITEM) + " "
SetMenuitem 0
SetFocus(Edit&)
endif
inc Counter%
EndWhile
EndWhile
End
Alles anzeigen
Einen Menüpunkt aussuchen und zuerst einmal klicken, um ihn ausuwählen - danach doppelt klicken.
Was passiert, wenn man doppelt auf einen Menüpunkt klickt?
Welches OS, welche Profanversion?