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: (2) </ [1] 2 >/

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

reply to topic new topic new poll
Topic: Lua/Fltk Window Options< Next Oldest | Next Newest >
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: May 25 2008,19:28 QUOTE

Did we ever determine whether exact window placement is possible?

How to control which if any of a window controls are displayed, say I don't want to have the minimize and maximize controls to display?
Back to top
Profile PM WEB 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: May 26 2008,02:11 QUOTE

FLTK apparently has x and y coordinates as 3rd and 4th optional parameters of Fl_Window, but I assume the active window manager determines whether or not this works.

There is also my_window:iconize() for those window managers that support it, or my_window:position() if you want to shove it aside.


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





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: May 26 2008,02:16 QUOTE

I have mount.lua working in tiny core. But jwm has no slit so mount.lua starts from menu. But mount.lua's tiny size makes it hard to move as the window minimize, maximize and close controls occupy the entire title bar.
Back to top
Profile PM WEB 
lucky13 Offline





Group: Members
Posts: 1478
Joined: Feb. 2007
Posted: May 26 2008,02:35 QUOTE

Hmmm, can jwm swallow it in the tray?

--------------
"It felt kind of like having a pitbull terrier on my rear end."
-- meo (copyright(c)2008, all rights reserved)
Back to top
Profile PM WEB 
lucky13 Offline





Group: Members
Posts: 1478
Joined: Feb. 2007
Posted: May 26 2008,03:41 QUOTE

Another idea is to set it (via Group) without border or title, etc. That would require users to know they can move it via keybinding (alt-F2 for window options menu) or with alt-left mouse key. I'll have to dig around and see if there's any way to set placement geometry in jwm; I don't think there is (which is why I first thought of swallow but I don't know if that'll work well without rewriting it so the buttons are side by side).

This would put it on every desktop (sticky), without any window decorations, and leave it out of the tasklist. And, of course, placement would be random so it could end up in middle of the screen just as easily as in a corner. Without anything else to guide users to moving it without borders and title bars, though, this will be even more difficult to move around.
Code Sample

<Group>
<Name>mount.lua</Name>
<Option>notitle</Option>
<Option>noborder</Option>
<Option>nolist</Option>
<Option>sticky</Option>
</Group>


--------------
"It felt kind of like having a pitbull terrier on my rear end."
-- meo (copyright(c)2008, all rights reserved)
Back to top
Profile PM WEB 
6 replies since May 25 2008,19:28 < Next Oldest | Next Newest >

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

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: Lua/Fltk Window Options

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