Re: Adding Items to a Sub-Menu

Fernand Vanrie <[email protected]> Thu, 16 Jun 2011 09:18:47 +0200
Newsgroups gmane.comp.openoffice.devel.api
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--------------040700090107020702060909
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Ariel,

The stuff you did with a dialog's  an menu's inside, could be a 
alternative in basic ?

the examples made by Ariel  i found here 
<http://hermione.s41.xrea.com/pukiwiki/pukiwiki.php?OOoBasic%2FDialog%2FExample15>


Hope it helps

Fernand

> Hello Hal,
>
> On Wednesday 15 June 2011, 02:05, Hal Vaughan wrote:
>> I haven't been using the API for a while and I'm working on a macros in OO
>> Basic.
>>
>>  From what I remember, to add things to a sub menu, I have to do that by
>> hand.  Am I wrong?  Is there a way, using OO Basic to add items to a sub
>> menu?
>>
>> I'm creating a sticky-note program that will let me make notes that are
>> attached to a document.  They're stored in the document text fields.  I'd
>> like to be able to, when a note is created, add a menu item with the note
>> title to a sub-menu I'm creating.  Also, of course, if the note is
>> deleted, I'd like to remove that item from the menu.  The hard part is I
>> only want those sub-menu items available when that document window is
>> selected.
>>
>> Is that do-able without going through a nightmare?
> you need to develop a UNO component implementing a PopupMenuController,
> impossible in OOo Basic, you must code in Java, C++ or Python.
>
>
> Regards

-- 
-----------------------------------------------------------------
To unsubscribe send email to [email protected]
For additional commands send email to [email protected]
with Subject: help

--------------040700090107020702060909
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Ariel,<br>
    <br>
    The stuff you did with a dialog's&nbsp; an menu's inside, could be a
    alternative in basic ?<br>
    <br>
    the examples made by Ariel&nbsp; i found <a
href="http://hermione.s41.xrea.com/pukiwiki/pukiwiki.php?OOoBasic%2FDialog%2FExample15">here</a><br>
    <br>
    <br>
    Hope it helps <br>
    <br>
    Fernand<br>
    <br>
    <blockquote
      cite="mid:[email protected]"
      type="cite">
      <pre wrap="">Hello Hal,

On Wednesday 15 June 2011, 02:05, Hal Vaughan wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">I haven't been using the API for a while and I'm working on a macros in OO
Basic.

From what I remember, to add things to a sub menu, I have to do that by
hand.  Am I wrong?  Is there a way, using OO Basic to add items to a sub
menu?

I'm creating a sticky-note program that will let me make notes that are
attached to a document.  They're stored in the document text fields.  I'd
like to be able to, when a note is created, add a menu item with the note
title to a sub-menu I'm creating.  Also, of course, if the note is
deleted, I'd like to remove that item from the menu.  The hard part is I
only want those sub-menu items available when that document window is
selected.

Is that do-able without going through a nightmare?
</pre>
      </blockquote>
      <pre wrap="">
you need to develop a UNO component implementing a PopupMenuController, 
impossible in OOo Basic, you must code in Java, C++ or Python.


Regards
</pre>
    </blockquote>
    <br>
  </body>
</html>

--------------040700090107020702060909--