aldweb

Close I. aldweb

Close II. PC Freeware

Close III. Palm Freeware

Close IV. Palm Shareware

Close V. iziBasic Palm

Close VI. Palm Knowledge

Close VII. Pocket Computer

Close VIII. miniPortail

Special !



Mobile version of
the aldweb Site

m.aldweb.com


Neither French, nor English?

Try one of these flags then:
[de] [es] [it] [pt]
Search




Weather / Spam / www

Lyon Weather


aldweb against spam


Newsletter
To receive news about this website, consider subscribing to our Newsletter.
Subscribe
Unsubscribe
298 Subscribers
Family's web sites

Webmaster - Infos
Friends News
Visits

   visitors

   visitors online

Poll
What do you think of the new design of the aldweb Site?
 
Great !
Beautiful
Average
So ugly...
Results
forum.gifForum - iziBasic - Topic #1061

Forum - Forum
iziBasic - iziBasic


Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257

active  Topic # 1061  Another Menu Issue(?)

18/01/2005 @ 22:01
by Mike

Anonymous



When using a menu in an iziBasic application, I can navigate around it using the 5 way navigator only if the KeyEvents compiler directive is OFF.

If this directive is ON (as I'd like it to be), using the up or down keys results in the menu frame being refreshed with the contents of my main screen.

It looks like my code is trapping the keyevents and processing them even though the menu is open and as a result, the output is being sent to the menu frame as that is the currently 'active window' within the application.

Not quite what I expected. Is it a bug or am I just trying something that's unsupported?

Mike
Write to Mike   Post an answer  Top

[]   


Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 1
--------
18/01/2005 @ 22:20
by aldweb

Anonymous

visitor
Hi Mike,

I tried your stuff.

If I popup a menu, then press down key with the 5 way nav, the menu closes.

Now, if I press first right key of the 5 way nav, and then the down key, the first option of menu is highlighted, as expected.

This is not a real bug, it is more something that does not behave like most Palm standard applications do...

So, it means that I will have to find a way to check for a menu being opened or not in iziBasic's key process routine and have it react as everybody is used to.

Cheers

@+
aldweb
Write to aldweb   Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 2
--------
18/01/2005 @ 22:57
by Mike

Anonymous

visitor
That doesn't sound quite like what I'm seeing.

I have coded the down key to display the naxt page of data in my application so if I pop up a menu and press the down key, the next page of data is displayed (as much as will fit) in the menu window overwriting the menu text.
Write to Mike   Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 3
--------
18/01/2005 @ 23:14
by aldweb

Anonymous

visitor
Maybe the difference is in that I use a version 4.2 beta...
I would have sent it to you by e-mail for confirming what we both get as results explained above, but you would have a very bad opinion of me if I sent it to you in its current state...

And, then, you would regret having updated your still so great review about iziBasic on palm247.com that was published not later than today.

Cheers

@+
aldweb
Write to aldweb   Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 4
--------
18/01/2005 @ 23:18
by Mike

Anonymous

visitor
No, a dodgy Beta version wouldn't woory me on the review front - it might slow me down in software development terms though!

I'm having a few more menu problems now but maybe I should wait for 4.2?
Write to Mike   Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 5
--------
19/01/2005 @ 22:01
by aldweb

Anonymous

visitor
Mike,

I believe that I have solved this issue in version 4.2 which was just released tonight

Now, I am ready to receive your other issues, as you seem to become the number 1 bug finder in iziBasic!

Cheers

@+
aldweb
Write to aldweb   Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 6
--------
19/01/2005 @ 23:50
by Mike

Anonymous

visitor
Yes I believe you have - 4.2 works a lot better than 4.1 did.

I still have one problem though.

When I call up a menu and tap on one of the headings the menu appears (correct!)

When I tap on the heading again, the menu disappears (also correct!)

However, in the form header I have some controls and the tap that removes the menu also activates the control that is hidden under that part of the menu header. This happens to result in a screen redraw which draws some iems on top of the menu header under these circumstances.

It's not major and probably not something that many will do but it does look odd!

(I can send you an application example or a series of screen pictures if this explanation doesn't help you!)
Write to Mike   Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 7
--------
20/01/2005 @ 00:06
by Mike

Anonymous

visitor
I'm not sure about the No.1 bug finder bit though.

A question:

How do I know when a new mwnu event has occurred?

My code reads:

a=WaitEvent
q=MenuItem
If q=...


and so on.

However, once I have used the menu once, MenuItem will always return the value of that event so on every event that WaitEvent detects from then on, q will be set to a value.

I only want to process that value once, not every time.
Write to Mike   Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 8
--------
20/01/2005 @ 22:32
by aldweb

Anonymous

visitor
What you observe Mike is because iziBasic is too fast! and also because you code nicely and well to take benefit of its speed

Indeed, iziBasic tracks events as they arrive, and in this case, you get 2 events in a row, because a normal human will tick for a few deci-seconds maybe, but your application will catch events much faster!

I had the same issue with NekoCat: when I would open the About box or any other option box, when I ticked on the [Done] button or so, the source code would capture the next event... interpreted as a move food to where the pen is. Quite anoying to always have Neko run in the bottom & left corner and not wanted by the user of course!
So, I have coded something to avoid it, maybe give a look to this sample application to figure it out (I don't even remember so I can give no clue of where to look at without looking at its source code!).

Now, here is how to know that a new menu event has occured:
a=WaitEvent
'this is a menu event
if a=1001 then
q=MenuItem
If q=...
endif
It is explained in the DOEVENTS paragraph in the manual.

Cheers

@+
aldweb
Write to aldweb   Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 9
--------
20/01/2005 @ 23:49
by Mike

Anonymous

visitor
OK, that makes some sense - I can code around it but I'll give the sample a look.

As to the 1001 - I saw it on the forum but read it in connection with the aboutbox I think. I never read back into DoEvent with Menus in mind.

Thanks
Write to Mike   Post an answer  Top
active topic active   closed topic closed   Sticky Sticky   New New message   -   Correct Correct message   Close Close topic   Make sticky Make sticky
[]
Forum Topic  Forum 



 
^ Top ^