At 02:27 AM 7/25/2009, frank van der Zwaag wrote:

I am able to 'enable" and 'disable" menu items. i.e. property
myMenyItemComponent enabled 'true' etc; is it also possible
to change the caption?

Frank,

Here's how:

Assuming that you are using the latest versions/updates of R:BASE
7.6 or Turbo V-8 for Windows, and the "myMenuItemComponentID" is the
actual Component ID for "Item" or "Sub-Item" of the menu tree with
no trailing spaces for Component ID, try the following code:

Form Designer | Layout | Design Menu Bar ...

01. Select'highlight the Item or Sub-Item

02. Verify the Component ID of Item or Sub-Item of the menu tree

03. Button EEP

    -- Button EEP
    -- Dynamically change the Item or Sub-Item caption of menu tree
    PROPERTY myMenuItemComponentID CAPTION 'New Caption'
    RETURN

That's all there is to it!

Very Best R:egards,

Razzak.


Reply via email to