| |
|
|
| CompileMarkSeparation
IF GETFOCUS(b01%)
CaseNot MID$(editor$,2,1)=":":2WINDOWS_CONFIG "1"
SHELL editor$
ELSEIF GETFOCUS(b02%)
CaseNot MID$(viewer$,2,1)=":":2WINDOWS_CONFIG "2"
SHELL viewer$
ELSEIF GETFOCUS(b03%)
CaseNot MID$(ziper$,2,1)=":":2WINDOWS_CONFIG "3"
SHELL ziper$
ELSEIF GETFOCUS(b04%)
CaseNot MID$(mailer$,2,1)=":":2WINDOWS_CONFIG "4"
SHELL mailer$
ELSEIF GETFOCUS(b05%)
CaseNot MID$(prg_05$,2,1)=":":2WINDOWS_CONFIG "5"
SHELL prg_05$
ENDIF
this neckline a Program-code functions correct. write I but for GetFocus the modernere CLICKED into code, becomes the Parameter for Procedur 2WINDOWS_CONFIG not transfer - alike, whom Button I use, it'll always the Parameter 1 transfer - make I what wrong or works that here with CLICKED not ? |
|
|
| |
|
|
|
| time independent of it - but Prozedurennamen should not of/ one digit begin!
resolve it the trouble then already? |
|
|
| |
|
|
|
| [quote:aaceda1696]but Prozedurennamen should not of/ one digit begin! [/quote:aaceda1696] iF was me new - have now The Procedur in ZWEI_WINDOWS_CONFIG umbenannt - but here the same result: with GetFocus everything lovely - with CLICKED no Parameter-Übergabe |
|
|
| |
|
|
|
| Try - and poste - time one Funktionierendes example what the trouble aufzeigt - circa auszuschliessen - the the trouble on another place in Your code created becomes. |
|
|
| |
|
|
|
| first once: it's located not on CLICKED - it must itself in my code somewhere one integrally gemeiner bow cache having ! - in a Kurzprogramm with the equal terms exit the Error not ! D. h., Search, search, search... |
|
|
| |
|
|
|
Frank Abbing | beget You The Buttons/Controls via CONTROL? if so, must You each another ID zuteilen. |
|
|
| |
|
|
|
| CompileMarkSeparation
Proc CreateIconButton
Parameters Exe$,Index&,Window&,X&,Y&,W&,H&,ID&
Declare Button&,Icon&
Button& = Control("Button","",$56000040,X&,Y&,W&,H&,Window&,ID&,%Hinstance)
Icon& = ExtractIcon(%Hinstance,Addr(Exe$),Index&)
Sendmessage(Button&,&BM_SETIMAGE,&IMAGE_ICON,Icon&)
Return Button&
EndProc
------------------------------------
declare b01%,editor$,tip%
CreateIconButton editor$,0,%hwnd,((%MaxX/2)-20),135,34,34
b01% = &(0)
tip%=CREATE("TOOLTIP",%HWnd,b01%,editor$)
...etc.
Hello Frank so go The Buttons created. - How supra already said, with Getfocus everything in the green area - with Clicked becomes no Parameter > 1 transfer !? ...but I find whom Error yet |
|
|
| |
|
|
|
Jörg Sellmeyer | Hello Horst, you have there Yes ne very complicated Abfragestruktur, there Yes not only The Buttons abgecheckt go, separate too 5 different Stringvariablen. building still time one $D Test,b01%,b02%....,editor$,viewer$... to the If-request one, to see, as variables equips go. CompileMarkSeparation so could You already time some find out.
Greeting Jörg |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ... | 10/29/06 ▲ |
|
|
|
|
| Hello Jörg whom Debug-commands Have I now installed and the Result see You in the beiliegenden Image. me says The whole thing but garnichts - I give To, I so überfordert be. your tender, whom Code testing, take I certainly true, but first must The whole thing yet something gestrafft go. ca. 1 week and a couple gray hairs becomes it yet last PS: On two Buttons are the statement two left to that Programs tuned. but the know You already |
|
|
| |
|
|
|
Jörg Sellmeyer | Hello Horst, is the now one Screenshot to the KKlicken on a the Buttons? unless, mach the again.
How You on the Image see, has none your Buttons whom Focus! either because You none clicked have or because z.B. somewhere a Handlezuweisung wrong is. You can the now strain, because You The Debug-Box circa further variables complement, circa to find out, which element whom Focus sustain. Greeting Jörg |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ... | 10/29/06 ▲ |
|
|
|
|
| @Jörg have now $D... in each Buttonabfrage inserted and How You see can, becomes to Click on the Button5 too the Focus on the Button5 staid. the goes but only with Getfocus - swaps I against Clicked from, becomes Irvan-View launched, because the under Button1 tuned is and Clicked only whom Parameter 1 commit |
|
|
| |
|
|
|
Jörg Sellmeyer | I suspect but time, that the Button treotzdem correctly. triggered and is the Error in the Parameter Evaluation lying. How sounds whom The Parameterabfrage in the procedure ZWEI_WINDOWS_CONFIG? it depends probably so together, that with GetFocus the whole evtl. 2-times through becomes, during it with Clicked Correctly only once expires. But only wildes specultate, there it without code only one guessing game is.
Greeting Jörg |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ... | 10/29/06 ▲ |
|
|
|