maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Hildon, not Hildon (https://talk.maemo.org/showthread.php?t=39779)

Kjow 2010-01-08 20:30

Hildon, not Hildon
 
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 2010-01-08 20:59

Re: Hildon, not Hildon
 
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 2010-01-08 21:23

Re: Hildon, not Hildon
 
Quote:

Originally Posted by Bundyo (Post 460041)
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 (or more general wiki page HERE).

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

Bundyo 2010-01-08 22:03

Re: Hildon, not Hildon
 
http://library.gnome.org/devel/gtk/u...dow-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 2010-01-09 09:44

Re: Hildon, not Hildon
 
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 2010-12-10 23:44

Re: Hildon, not Hildon
 
Kjow have you figured out how to solve the issues with full screen?
And have you maybe discovered anything other, on the topic?


All times are GMT. The time now is 11:14.

vBulletin® Version 3.8.8