List Info

Thread: Re: Popup menus and exec buttons




Re: Popup menus and exec buttons
country flaguser name
Germany
2008-03-07 21:31:30
Hello, 

I wrote a snippet which explains my solution. Because I'm no
more allowed to attach files her , check

http://www.ordnungsdienst.net/popup_snippet.kmdr.zip if
you are interested. 

I used kmdr-executor dcop calls to define to correct
position. I'd like to hear your opinion. Yes, I know it is
slow. This is a tribute to the excessive usage of
exec('dcop...') calls. 
I'd like to repeat: I'm not a C programmer and I'm not able
to write plugins :-/. 
I will also play with Dans combobox suggestion. Sounds
interesting.


cu alex

-- Ursprüngl. Mitteil. --
Betreff:	Re: [Kommander] Popup menus and exec buttons
Von:	Andras Mantia <amantiakde.org>
Datum:		07.03.2008 20:17

On Thursday 06 March 2008, Alexander Fischer wrote:
> Hello,
>
>
> after Eric's suggestions to use popup menus instead of
a row of
> buttons I played with the popup widget. I prefer to use
a popup menu
> which is available via exec button click but I am not
able to do such
> a thing. 

Well, the popup menu is there for a context menu. What you'd
like to do 
is a different widget, a button with multiple selections.
That can be 
done with a different widget, which is not available inside
Kommander 
(you could create a plugin providing such widget if you
want).

> My problem is, that there is no exec button function or
slot
> which tells the popup menu its correct position. 

Right, you need to find the mouse cursor position, at least.
There is no 
such function in Kommander. But you might get it from an
external script 
or try the DCOP example Eric gave to you.

> cursor position to enable the menu to its right place.
I hoped the
> current cursor position is available via a kwin dcop
call, but I
> found nothing relevant.

Beware that you should not rely on kwin or anything else
running, if you 
want portable code. Of course, relying on external apps is
no problem if 
you check their existence on startup, but relying on the
window manager 
would be wrong IMO.


Andras
-- 
 
Quanta Plus developer - http://quanta.kdewebdev.o
rg
K Desktop Environment - http://www.kde.org


_______________________________________________
Kommander mailing list
Kommanderkdewebdev.org

http://mail.kdewebdev.org/mailman/listinfo/kommander


<<signature.asc>>


_______________________________________________
Kommander mailing list
Kommanderkdewebdev.org

http://mail.kdewebdev.org/mailman/listinfo/kommander

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )