PDA

View Full Version : Hildon, not Hildon


Kjow
01-08-2010, 03:30 PM
Hi all,

I'm developing a pair of apps with FPC for Maemo 5, but there aren't hildon's headers for it (or I can't find these).

So, there are some ways to make things with linux-native calls? I mean, I need:

- full-screen (so hide "Hildon Touch Toolbar")
- Hildon Touch View Menu
- Hildon Touch Confirmation note
- Hildon Touch Dialogue
- etc

Can I use these functions with linux API calls?

Others things (buttons, memo, edit text, combobox, listview, etc) are ok, I can use title menu (e.g. desktop apps menu: "file, edit, about") or popup dialogs also (but in simil-fullscreen [I can't find a way to hide touch toolbar]).
To put my application in full screen I can set "borderstyle" of my form to "bsNone", but "Hildon Touch Toolbar" doesn't disappear...

Any suggestions are appreciated!

Thank you!

Bundyo
01-08-2010, 03:59 PM
Fullscreen is GTK only.

You can probably do bindings for FPC, although I'm quite interested how did you get it compiling for armel.

Kjow
01-08-2010, 04:23 PM
Fullscreen is GTK only.

You can probably do bindings for FPC, although I'm quite interested how did you get it compiling for armel.

Thanks! But I don't know how to do... :)

To know how cross-compile for maemo with FPC/Lazarus you can see my tutorial HERE (http://wiki.lazarus.freepascal.org/Setup_Cross_Compile_For_ARM) (or more general wiki page HERE (http://wiki.lazarus.freepascal.org/Smartphone_Development)).

It would be nice to have api sdk translations for FPC... :)

Bundyo
01-08-2010, 05:03 PM
http://library.gnome.org/devel/gtk/unstable/GtkWindow.html#gtk-window-fullscreen

Looks like the bindings for GTK2 are very similar. Can't help with the bindings though :( - stayed too long far from Pascal/Delphi/FPC/Lazarus.

Kjow
01-09-2010, 04:44 AM
Adding unit gtkproc I can set fullscreen and going back (in ubuntu, not tried in maemo):

SetWindowFullScreen(Form1,true); //fullscreen

SetWindowFullScreen(Form1,false); //un-fullscreen

Now I'm playing with gtk2 unit... in "Hildon_2_2_Widget_UI_Specification_v1_0_en.pdf" I read that to show Hildon Touch View Menu I need to call:

gtk_widget_show (menu)

but I don't know how to create the menu itself...

Edit: I tried in the Nokia N900 and fullscreen works ok in Lazarus/FPC! Sometime there is a problem onClose app, no more icons in desktops if (after going back from FS) I close app with X, but if I close from windows manager (ctrl+backspace) no problem... I think I'll simply need to tweak something :)

trx
12-10-2010, 06:44 PM
Kjow have you figured out how to solve the issues with full screen?
And have you maybe discovered anything other, on the topic?