English
Forum

Checkboxabfrage only with Changes

 

GDL
Hi,
i want gladly my News proposition faster make and thereby could me very helped his if I The ständigen Überprüfungsmethoden with the Checkbox lane had.that is,( The Abfragemethode with getfocus(checkbox&) is not ,there here always reacted becomes),it should something to that inquire give what only on a Änderung in the Checkbox reacted.

if getfocus(checkbox&)
old%=val(gettext$(checkbox&))
new%=val(gettext$(checkbox&))
casenot old%=neu%:ausfuehren
endif

this part goes unfortunately neither, there getfocus always The Loop(already to one on the arrow down pressing) new launch and therefore in old% and new% always the same thing standing.

In prfellow there were one sbl_changed(...) for Listboxes, Perhaps knows of/ one of you whether it for Check boxes something like too gives.thanks.

Hello
Georg
 
Windows7 Xprofan 8,9,10 [...]  [...] 
11/15/06  
 



say we time so

if getfocus(checkbox&)
old%=val(gettext$(checkbox&))
new%=val(gettext$(checkbox&))
casenot old%=neu%:ausfuehren
endif

should too eigendlich

if getfocus(checkbox&)
old%=neu%
new%=val(gettext$(checkbox&))
casenot old%=neu%:ausfuehren
endif

heissen.
 
11/15/06  
 




GDL
Hello iF

really already.now have I me already so often with such small Umwegen helped only this time saw I the worm not.Well badly day today.

Hello
Georg
 
Windows7 Xprofan 8,9,10 [...]  [...] 
11/15/06  
 




Jörg
Sellmeyer
Why take You do not GetCheck()?

i don't know How your Loop looks but so might The Abfragelast relatively small his:
CompileMarkSeparation
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
11/15/06  
 




Nico
Madysa
Gehts not circa Checkboxing? there should it still sooner so hot.
CompileMarkSeparation
Nico Madysa
11/15/06  
 




GDL
Hi,

each Selection of 30 has 256 Entries, which too Change can.therefore would like I only each Box with of/ one Änderung with gettext inquire.
there but the Box with getfocus already at arrow down You can(circa nachzusehen which new values hinzukamen) reacted, the detour with old% and new%.otherwise would too with same selection constantly the Unterprogramm called.

Hello
Georg
 
Windows7 Xprofan 8,9,10 [...]  [...] 
11/16/06  
 




Jörg
Sellmeyer
can it his, that You Choiceboxen mean?
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
11/16/06  
 




GDL
Hello Jörg,

I mean these here
reset&[1]=create(choicebox,%hwnd,1,10,190,50,400)

I Have ne dunkle Vorahnung, I there what durcheinanderbrachte.

Hello
Georg
 
Windows7 Xprofan 8,9,10 [...]  [...] 
11/16/06  
 




Jörg
Sellmeyer
Hello Georg,
thought ichs me still!
the functions, has but whom disadvantage, that wmcommand as UserMessage declared his must.
CompileMarkSeparation
UserMessages $0111 wm_commad
Def ChoiceBoxSelChange(1) If(Equ(%umessage,$0111),And(Equ(&ulparam,&(1)),Equ(Div&(&uwparam,$10000),1)),0)
Cls
Declare ChoiceBox&,ende%
Decimals 0
ChoiceBox&=CreateChoiceBox(%hwnd,,10,10,100,400)

WhileLoop 5

    AddString Test  + Str$(&Loop)

Wend

MoveListToChoice(ChoiceBox&)

WhileNot ende%

    WaitInput

    If %key=2

        ende%=1

    ElseIf ChoiceBoxSelChange(ChoiceBox&)

        WindowTitle GetText$(ChoiceBox&)

    EndIf

Wend


the whole only with:
CompileMarkSeparation
Def ChoiceBoxSelChange(1) If(Equ(%message,$0111),And(Equ(&lparam,&(1)),Equ(Div&(&wparam,$10000),1)),0)

and without User Messages $0111 functions unfortunately not. Perhaps can You nevertheless what so begin or anyone else white moreover.

Greeting
Jörg
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
11/16/06  
 




GDL
Hello Jörg,

have it already use can,thanks.
only these row understand I not at all

Def ChoiceBoxSelChange(1) If(Equ(%message,$0111),And(Equ(&lparam,&(1)),Equ(Div&(&wparam,$10000),1)),0)

Perhaps could you, if You like, the me a little bit explain.

Hello
Georg
 
Windows7 Xprofan 8,9,10 [...]  [...] 
11/16/06  
 




Jörg
Sellmeyer
The row is really The same, as in the Codeteil supra with the Difference, that I The UserMessage-values through normal Messages supplant have, in the hope, these would of Profan ditto ausgewertet.
Konkret means The row, that the suitable Message (CBN_SELCHANGE) not directly on the program übermittelt becomes. For this becomes wmcommand (here therefore as UserMessage declared) on the program gesendet and ulparam is the lever the Fensterelementes (The Choicebox). in the Lowword of uwparam is then The suitable Message. The is in this drop 1. this is namely the worth of CBN_SELCHANGE.
with wmcommand as UserMessage functions it too. I have but no idea, Why not functions if one it so uses:
CompileMarkSeparation
Def ChoiceBoxSelChange(1) If(Equ(%message,$0111),And(Equ(&lparam,&(1)),Equ(Div&(&wparam,$10000),1)),0)
Cls
Declare ChoiceBox&,ende%
Decimals 0
ChoiceBox&=CreateChoiceBox(%hwnd,,10,10,100,400)

WhileLoop 5

    AddString Test  + Str$(&Loop)

Wend

MoveListToChoice(ChoiceBox&)

WhileNot ende%

    WaitInput

    If %key=2

        ende%=1

    ElseIf ChoiceBoxSelChange(ChoiceBox&)

        WindowTitle GetText$(ChoiceBox&)

    EndIf

Wend


Perhaps white someone other there More...
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
11/16/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

2.287 Views

Untitledvor 0 min.
RudiB.04/03/20
Juergen Baier01/29/11

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