Recent

Author Topic: New smartphone menus support  (Read 14219 times)

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
New smartphone menus support
« on: October 20, 2009, 03:01:12 pm »
Hello,

I just did the initial smartphone menus implementation in LCL-WinCE. It would be very useful if people start testing it (svn lazarus) and post bug reports about what is missing in menu support for all targets (smartphone, pda, handheld). I used the Windows Mobile 5.0 emulator to develop and the best layout working is 2 menu items, both with subitens.

Also very good would be if people start helping filling this table about device information:

http://wiki.lazarus.freepascal.org/Windows_CE_Development_Notes#List_of_devices_with_information_about_them

thanks,
« Last Edit: October 20, 2009, 03:18:47 pm by sekel »

Zaher

  • Hero Member
  • *****
  • Posts: 683
    • parmaja.org
Re: New smartphone menus support
« Reply #1 on: October 24, 2009, 05:01:45 pm »
Hi
It give me  blank Main Menu bar in Windows CE 5.00 Build 1400

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: New smartphone menus support
« Reply #2 on: October 25, 2009, 02:42:50 am »
How is your menu layout? Can you create a bug report and attach a test project?

Zaher

  • Hero Member
  • *****
  • Posts: 683
    • parmaja.org
Re: New smartphone menus support
« Reply #3 on: October 27, 2009, 02:55:51 pm »
I test it with a new project with simple menu 2 items first one have subitem, It work fine, with my old projects give me empty bar even on WM5.

I must find the conditions before report a bug, i will try to find the diff between the old projects and the new one.

I have old test project i can send it if you like.

Thanks

Zaher

  • Hero Member
  • *****
  • Posts: 683
    • parmaja.org
Re: New smartphone menus support
« Reply #4 on: October 28, 2009, 01:23:52 pm »
I caught it, i put this line in the project unit

Application.ApplicationType := atSmartphone;

When i removed this line the menu worked fine.

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: New smartphone menus support
« Reply #5 on: October 29, 2009, 02:55:37 pm »
The application type must match the device. Maybe smartphone is a wrong name, This mode is actually for simple phones, but I don't know why Microsoft calls them smartphone mode in Windows CE, but todays smartphones are actually quite powerful so they will usually be running in PocketPC mode, and only simple phones will run in "smartphone" mode.

Zaher

  • Hero Member
  • *****
  • Posts: 683
    • parmaja.org
Re: New smartphone menus support
« Reply #6 on: October 31, 2009, 12:54:27 pm »
It is the confused names, PocketPC, PDA, SmartPhone ...
AS i understand from names

PDA / PocketPC has no SIM card can not access the phones and theres is no Contacts Like WinCE or PALM
SmartPhone same PDA but have all missed above Like Windows Mobile
Maybe you need make new name more simple PDA, i have "Data Collector" for example as very simple PDA.

JohnvdWaeter

  • Full Member
  • ***
  • Posts: 185
    • http://www.jvdw.nl
Re: New smartphone menus support
« Reply #7 on: March 25, 2010, 01:04:57 pm »
Hi Felipe,

Hate to bring old topics back to live, but maybe I'm doing something wrong...

I have a menu with 2 top-level items.
Both have onclick-events assigned to update a label that says which menu I clicked.

I have Lazarus 0.9.29 24092 / FPC 2.4.1 with accompanying crosscompiler for arm.

On Win Mobile 6.5 Smartphone emulator the two menu-items appear. If I click the left menu item, the program halts. No Error reported. If I click the right menu, nothing happens, allthough there is an event assigned.

Are LCL-menus on the smartphone not yet supported? If I try with KOL-CE, the menu-items do work as expected, although sometimes they just disappear...


felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: New smartphone menus support
« Reply #8 on: March 25, 2010, 09:32:31 pm »
Please report the bug. I have developed mostly with WM 5 emulator and now I see that with the 6.x emulator there are some problems ... it's always bad when new version changes things =)

JohnvdWaeter

  • Full Member
  • ***
  • Posts: 185
    • http://www.jvdw.nl
Re: New smartphone menus support
« Reply #9 on: March 26, 2010, 09:39:29 am »
Hi Felipe,

I tested on emulator WM 5.0 and the effects are about the same.

I also tested on PocketPC emulator, both WM 5.0 and WM 6.5

On PocketPC emulators, the menus work as expected.

On Smartphone Emulator: if I have 2 top level menu items, NO subitems.
Left menu attached to event that changes caption of label to 'Left Clicked'
Right menu attached to event that changes label1.caption to "right clicked"

I created on two pc's, one with lazarus 0.9.28 / fpc 2.2.4, other with lazarus 0.9.29 rev 24092 / fpc 2.4.1

All tests below on Smartphone emulator.

Laz 29, wm 5 : Menu captions appears, leftclick closes program, right menu does not respond
Laz 29, wm 6.5 : same

BTW: closing is nice, it even fires onclosequery-event.

Laz 28, wm 5 : menu captions do Not appear, click on both left and right shows non-existing submenu with caption "1". No onclick response
Laz 28, wm6.5 : same

So I see no difference if I test on wm 5 or wm 6.5 emulators.
Its the newer lazarus version or the newer fpc version or the newer cross-comp that changes behaviour.

Also found out that labels on the form in 0.9.29 version jumpt to top=0, left=0 (upper left corner of form). Both on PocketPC and Smartphone emulators.

Testing these behaviours is far from easy and even far from fun :-(  There are differences between lazarus/fpc versions, WM versions (according to you) and differences between Smartphone and Pocket-PC....  Although it looks like KOL-CE is not as affected. But it has been a long time since I saw Yuri answering KOL-questions. I try to make a pocketpc application work on smartphone...

So submitting a bug-report is not easy, especially as I have no idea where to look. I'm an application developer...

John



JohnvdWaeter

  • Full Member
  • ***
  • Posts: 185
    • http://www.jvdw.nl
Re: New smartphone menus support
« Reply #10 on: March 26, 2010, 10:15:13 am »
I have to add:

Laz 0.9.29 on WM 5 AND WM 6 pocket-pc emulator:
The menuitems appear but do not respond. Nothing happens when I click them.



John

 

TinyPortal © 2005-2018