English
Forum

is New object wayward ?

 
- Page 1 -



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  
 



 
- Page 1 -


@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  
 



 
- Page 2 -


with TNT can you among other things The ID your Buttons to check on.
which IDs having your Buttons?

Id.gif  
93 kB
Kurzbeschreibung: Window ID detect
Hochgeladen:10/29/06
Downloadcounter45
Download
 
10/29/06  
 



alas Yes - and where find which very???
 
10/29/06  
 



...and - which User Messages verwendest You?
 
10/29/06  
 



[quote:3b05b579b6]
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?[/quote:3b05b579b6]
CompileMarkSeparation
PROC ZWEI_WINDOWS_CONFIG

    PARAMETERS ziel$
    print ziel$
    Case ziel$="1":SetFocus(editor%)
    Case ziel$="2":SetFocus(viewer%)
    Case ziel$="3":SetFocus(ziper%)
    Case ziel$="4":SetFocus(mailer%)
    Case ziel$="5":SetFocus(prg_05%)....

@Jörg
The problem must be Mainwindow lying. If I print target$ activate, I get with GetFocus whom right Übergabeparameter 1,2,3,4 or 5 - with Clicked remaining it always The 1 -

@Andreas
User Message 16

[offtopic] get grade whom außerehelichen commands, with walk to go and the last Sonnenstrahlen here in Heidelberg auszunutzen - there can nothing make - ...and Tschüss[/offtopic]
 
10/29/06  
 




Jörg
Sellmeyer
you have The question to whom ButtonIds not yet answers. means having your Buttons with
Parameters Exe$,Index&,Window&,X&,Y&,W&,H&,ID&
whom equal or different values?
Clicked asks these IDs faith I ex, circa to find out whether the element only whom Focus has or really pressed and losgelassen been is.
If any whom equal worth having, is it only logical, that the first Button always triggered becomes.

plenty Fun at außerehelichen Was_Auch_Immer.
Jörg
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
10/29/06  
 




Frank
Abbing
even. Seh you time your own code on. your function CreateIconButton expects 8 Parameter, transfer do You but only 7. The ID unterschlägst You.
If you whom ID Parameter with aufsteigenden Values vergibst, becomes Clicked too correctly. works, because it intern whom ID-Parameter auswertet.
 
10/29/06  
 



As I said, the Sachverhalt ließe itself with TNT in few sec to check on.
 
10/29/06  
 



You could means as respect Parameter simply newId() indicate.

in the Hauptprogramm deklarierst then a Globale:
CompileMarkSeparation
Declare myControlIdCounter&
>

and setting simply a function one:
CompileMarkSeparation
Proc newId

    myControlIdCounter&+
    return myControlIdCounter&+9999

endpr
then is ensured the each Control its Own ID has.

Gibts Verbesserungsvorschläge for +9999 ?
 
10/29/06  
 



there Gibts yet GetDlgItem, I from the Automatisierung such stories but nothing stops, write I there now none first dran rum.
 
10/29/06  
 



[quote:d5434d16dd]even. Seh you time your own code on. your function CreateIconButton expects 8 Parameter, transfer do You but only 7. The ID unterschlägst You.
If you whom ID Parameter with aufsteigenden Values vergibst, becomes Clicked too correctly. works, because it intern whom ID-Parameter auswertet.[/quote:d5434d16dd]
on any aide - Jörg, Frank, If and Andreas
It can so simply his. i'm not noticed, that The ID missing !
man, be I stupid - but now works everything fine.
@ Jörg - on the weekend becomes everything with Clicked functions !
[quote:d5434d16dd]plenty Fun at außerehelichen Was_Auch_Immer.
Jörg[/quote:d5434d16dd]
3 hours Schaufenster-stroll
 
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.189 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