Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (6) </ 1 [2] 3 4 5 6 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: recommend a menu, /app launcher/panel/...< Next Oldest | Next Newest >
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: Oct. 24 2007,14:36 QUOTE

Thanks Mik. There's though one flaw with that; it appeared in the middle of the screen (vertically)..
edit: I was running on my main machine when I tested; it might appear on top when on DSL. I'll test soon.

I think I might try to learn gtk+ programming. But that might never happen, so I could also use this :)


--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Oct. 24 2007,16:53 QUOTE

Quote
it appeared in the middle of the screen
I think it depends on your window manager, since it is scripted to appear at 0,0 and that's all I can do with murgaLua. Some window managers will ignore a request for specific placement, and some will put it wherever the app wants to go. It might be doable with an overlay or GL window, but neither is supported by murgaLua.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: Oct. 25 2007,14:19 QUOTE

I have two wishes: could that close button (x) in the left corner be left out?
And could the buttons be centered?


--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Oct. 25 2007,16:08 QUOTE

Just from a quick look...
1. delete the 3 lines that start with 'close'
2. no idea if there's an easy centering call, but this might be fine..
[Line 13] butt_pack=fltk:Fl_Pack(INSERT_LEFT_MARGIN_HERE,0,Fl:w(),bh)
where you could use something like (Fl:w()/2)-(50*ARRAY_SIZE)
where ARRAY_SIZE=3 from the original... where there might be a function to easily obtain this value

Quote
it appeared in the middle of the screen (vertically)..
Try using [Line 31] w:position(1,1)
Maybe (0,0) would be as if position() was not called at all? (So the WM takes over control)
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Oct. 25 2007,19:57 QUOTE

Quote
1. delete the 3 lines that start with 'close'
If you remove the close button, you might also want to remove the w:callback, since it is what prevents the application from closing when Esc is pressed. I did this simply because I assumed you wouldn't want the menu to be so easy to close.

The placement of the buttons was just the first way that came to mind. I thought that using the whole screen width was unnecessary, but used it in case you wanted to add more buttons. I've never been good with math, but it looks like thehats' suggestion should work at least as well as anything I'd come up with. I also don't recall seeing anything specific to placement of one object within another, but it could be there somewhere.

Quote
Maybe (0,0) would be as if position() was not called at all?
Maybe, but I still think it's a window manager issue. 0,0 works for me. I haven't tried it with Fluxbox or JWM yet.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
26 replies since Oct. 21 2007,14:40 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (6) </ 1 [2] 3 4 5 6 >/
reply to topic new topic new poll
Quick Reply: recommend a menu

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code