English
Forum

is New object wayward ?

 

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 ?
 
10/28/06  
 



time independent of it - but Prozedurennamen should not of/ one digit begin!

resolve it the trouble then already?
 
10/28/06  
 



[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
 
10/28/06  
 



Try - and poste - time one Funktionierendes example what the trouble aufzeigt - circa auszuschliessen - the the trouble on another place in Your code created becomes.
 
10/28/06  
 



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...
 
10/28/06  
 




Frank
Abbing
beget You The Buttons/Controls via CONTROL? if so, must You each another ID zuteilen.
 
10/28/06  
 




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
 
10/29/06  
 




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
While ...

    Waitinput
    Declare focus&
    focus&=%GetFocus
     $D "Test",focus&,b01%,b02%....,editor$,viewer$...

    IF GETFOCUS(b01%)

        CaseNot MID$(editor$,2,1)=":":2WINDOWS_CONFIG "1"
        SHELL editor$

    ELSEIF GETFOCUS(b02%)

        ...

    Endif

wend


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

42 kB
Hochgeladen:10/29/06
Downloadcounter146
Download
 
10/29/06  
 




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

43 kB
Kurzbeschreibung: Focus on B05%
Hochgeladen:10/29/06
Downloadcounter244
Download
 
10/29/06  
 




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  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

4.266 Views

Untitledvor 0 min.
Axel Berse11/03/23
RudiB.12/29/21
Sven Bader08/17/21
Ernst03/12/14
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