English
Forum

small Menu-trouble

 

Walter
Köhler
there rauf I me The hairs, seh but whom woods to lauter Bäumen immnoch not.
my trouble:
an Choicebox in the HWnd, one Button in the HWnd. with Click the Button to the
chosen entry the Choicebox ausgewertet go.

really free from problems but:
If I additional one Menueitem einbaue (and something like is still standard) need it 2 Klicks! on the Button, because first the lever back must.

so should the naturally not his, means
Wat mach I because there wrong??

CU
WKS

2 kB
Hochgeladen:06/09/08
Downloadcounter180
Download
 
WKS Win XP Xprofan 10 AMD 1.6GHz 1GB Ram
06/09/08  
 




Walter
Köhler
with @Clicked GEHTS übrigends first right not, is with Existing

elseif %Menuitem none More recognized.
have in the Help yet no Einschränkungen or Notes or Explanations seen.
WKS
 
WKS Win XP Xprofan 10 AMD 1.6GHz 1GB Ram
06/09/08  
 




Walter
Köhler
sometimes reicht it already a problem others mitzuteilen; and suddenly comes The Solution through play of aleine.

elseif @menuitem(110)
Test2

in lieu of of

elseif %menuitem
case menuitem(110)

now sees the ok from.

nevertheless thanks
WKS
 
WKS Win XP Xprofan 10 AMD 1.6GHz 1GB Ram
06/09/08  
 



yet rather is a selectStruktur alÃ
CompileMarkSeparation
declare mItem%
waitInput
mItem%=abs(%menuItem)//erstmal sichern damit Wert nicht verloren gehen kann durch andere Ops

if mItem%

    select mItem%

        caseof 0:

        caseof 1000:brub

        otherWise

    endSelect

    setMenuItem 0//besser auf 0 setzen

endif

 
06/09/08  
 




Walter
Köhler
does me sorrow, but your suggestion gefällt me none.
mItem%=abs(%menuItem) power already time a Division / 0, and die therefore

cu WKS
 
WKS Win XP Xprofan 10 AMD 1.6GHz 1GB Ram
06/09/08  
 




Jörg
Sellmeyer
I could me quite no Szenario present, with the Abs a Division through zero power.
Davids suggestion is already very well.
You can ersatzweise too directly Select %menuItem using, must then but always testing, whether it one negativer worth is, there z.B. Buttons your negatives ID as MenuItem give back.

otherwise probier time:
CompileMarkSeparation
Print Abs(1)
Print Abs(0)
Print Abs(-1)re>

If there somewhere knallt, had Roland one real trouble but something qualitative other can also with mItem%=abs(%menuItem) not rauskommen.
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
06/09/08  
 




Walter
Köhler
probier it self, have in the Source The Version of David eingebunden.
WKS

2 kB
Hochgeladen:06/09/08
Downloadcounter178
Download
 
WKS Win XP Xprofan 10 AMD 1.6GHz 1GB Ram
06/09/08  
 



The Error lying in the REM to //-Syntax, the can X11 but X10 not yet, be because, You uses xpse (then GEHTS always).

supplant means my //-Rem into -Rem and the thing becomes well. ;)

with Abs(%menuItem) becomes nothing through 0 dividiert.
 
06/09/08  
 




Jörg
Sellmeyer
Well, if you there such Leichen present have, must You yourself not wonder, ifs stink
CompileMarkSeparation
Ah - The corpse was naturally of David!!
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
06/09/08  
 




Walter
Köhler
that's all right that's all right.!

have me Yes self heavy gewundert, but not so calculated the one // not as REM acknowledged becomes. Sorry, but I have XProfan 10 first since a couple Meet.

be very tensely whether my second trouble (and this is plenty importent) resolved go can.

here's anyway end, everything becomes well.

cu WKS
 
WKS Win XP Xprofan 10 AMD 1.6GHz 1GB Ram
06/09/08  
 




RGH
If you the Hauptprogramm so anpaßt, goes it:
CompileMarkSeparation
what have I changed? first of all have I Clicked() instead of getFocus() akin. and what's more to menuitem(110) the Case through one ElseIf supplant. so as there stood, could not functions.

Gru0
Roland
 
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
06/09/08  
 




RGH
Walter Köhler
have me Yes self heavy gewundert, but not so calculated the one // not as REM acknowledged becomes.


In XProfan 11 works // like a (REM)

Greeting
Roland
 
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
06/09/08  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

8.045 Views

Untitledvor 0 min.
H.Brill09/14/22
Georg Teles03/10/18
Peter Max Müller11/13/17
Heltal07/25/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