Active Topics

 


Reply
Thread Tools
Posts: 52 | Thanked: 54 times | Joined on Nov 2009
#1
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's Avatar
Posts: 4,708 | Thanked: 4,649 times | Joined on Oct 2007 @ Bulgaria
#2
Fullscreen is GTK only.

You can probably do bindings for FPC, although I'm quite interested how did you get it compiling for armel.
__________________
Technically, there are three determinate states the cat could be in: Alive, Dead, and Bloody Furious.
 
Posts: 52 | Thanked: 54 times | Joined on Nov 2009
#3
Originally Posted by Bundyo View Post
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...
 

The Following 2 Users Say Thank You to Kjow For This Useful Post:
Bundyo's Avatar
Posts: 4,708 | Thanked: 4,649 times | Joined on Oct 2007 @ Bulgaria
#4
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.
__________________
Technically, there are three determinate states the cat could be in: Alive, Dead, and Bloody Furious.
 

The Following User Says Thank You to Bundyo For This Useful Post:
Posts: 52 | Thanked: 54 times | Joined on Nov 2009
#5
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

Last edited by Kjow; 2010-01-09 at 11:37.
 

The Following User Says Thank You to Kjow For This Useful Post:
trx's Avatar
Posts: 80 | Thanked: 237 times | Joined on Dec 2010 @ Serbia
#6
Kjow have you figured out how to solve the issues with full screen?
And have you maybe discovered anything other, on the topic?
 
Reply


 
Forum Jump


All times are GMT. The time now is 12:16.