You are not logged in.

Dear visitor, welcome to Jabaco - Community. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

  • "MystikShadows" started this thread

Posts: 3

Date of registration: Jan 3rd 2010

  • Send private message

1

Tuesday, January 5th 2010, 9:50am

VBMenuBar menu separator

Hi all,

In VB, when you create a menu for a form, you can put a "-" in the text to create a separating line between two menu items. Can this be done in Jabaco? and if so, how? I tried to search here on the forum and in the tutorials and I can't seem to find how to do it.

In the example in the following link, the menu in the screen shot has that seperator right after the Save option. :)
http://www.jabaco.org/wiki/VBMenuBar

Thank you :)

A1880

Intermediate

  • "A1880" is male

Posts: 500

Date of registration: Jan 1st 2009

Location: Hanover, Germany

Occupation: Software Engineer

Hobbies: Hilbert Curves

  • Send private message

2

Tuesday, January 5th 2010, 11:54am

The following sample creates a separator:

Jabaco Source

1
2
3
4
5
6
7
8
9
10
11
12
13
Option Explicit

Public Sub Form_Load()
   Dim tmpGroupFile As VBMenuGroup = Me.MenuBar.createMenuGroup(Null, "File", "File")
   Call Me.MenuBar.createMenu(tmpGroupFile, "New", "New")
   Call Me.MenuBar.createMenu(tmpGroupFile, "Open", "Open")
   Call Me.MenuBar.addSeperator(tmpGroupFile)
   Call Me.MenuBar.createMenu(tmpGroupFile, "Exit", "Exit")   
End Sub
 
Public Sub Form_MenuClick(MenuItem As VB#IMenuItem)
   MsgBox "Caption: " & MenuItem.Caption & " - ControlID: " & MenuItem.ControlID
End Sub


Note the spelling error separator/seperator.

To discover the universe behind Jabaco, it usually pays off to have a look at the framework sources.
Another helpful feature is Jabaco's autocompletion in the source code editor.
To get to know what you can do with a MenuBar, you just enter "Call Me.MenuBar." in the above sample.
The IDE will then display a list of methods and properties. In most cases, this should help you on the right track.

Greetings!

A1880

Sbleck

Beginner

  • "Sbleck" is 55 years old today
  • "Sbleck" is male

Posts: 13

Date of registration: May 29th 2010

Location: Santos, Brazil

Occupation: Consultant

Hobbies: Builing some apps for accessing databases and some automation processes

  • Send private message

3

Sunday, May 30th 2010, 9:31pm

RE: VBMenuBar menu separator

...

In the example in the following link, the menu in the screen shot has that seperator right after the Save option...

http://www.jabaco.org/wiki/VBMenuBar

Hello,

Is there possible to put available (for download) that example, mentioned in that link ?

Rgds,
Sven

A1880

Intermediate

  • "A1880" is male

Posts: 500

Date of registration: Jan 1st 2009

Location: Hanover, Germany

Occupation: Software Engineer

Hobbies: Hilbert Curves

  • Send private message

4

Sunday, May 30th 2010, 10:40pm

Simply copy the source from the sample into your Jabaco IDE editor.
There is nothing more needed.
Or do I get your question wrong?

Greetings

A1880

Sbleck

Beginner

  • "Sbleck" is 55 years old today
  • "Sbleck" is male

Posts: 13

Date of registration: May 29th 2010

Location: Santos, Brazil

Occupation: Consultant

Hobbies: Builing some apps for accessing databases and some automation processes

  • Send private message

5

Tuesday, June 1st 2010, 9:08pm

Simply copy the source from the sample into your Jabaco IDE editor.
There is nothing more needed.
Or do I get your question wrong?

Greetings

A1880

Hello,



You got my question wrong, unfortunately. In that link (http://www.jabaco.org/wiki/VBMenuBar) is a snapshot of something that could explain better how to use (and contain) the resources (images) in that example. I tried to request that example, like was possible to download others, in this forum...



Rgds,

Sven

A1880

Intermediate

  • "A1880" is male

Posts: 500

Date of registration: Jan 1st 2009

Location: Hanover, Germany

Occupation: Software Engineer

Hobbies: Hilbert Curves

  • Send private message

6

Wednesday, June 2nd 2010, 8:44am

Have you seen this posting?

Sbleck

Beginner

  • "Sbleck" is 55 years old today
  • "Sbleck" is male

Posts: 13

Date of registration: May 29th 2010

Location: Santos, Brazil

Occupation: Consultant

Hobbies: Builing some apps for accessing databases and some automation processes

  • Send private message

7

Friday, June 4th 2010, 10:02pm

About building menus, in Jabaco...

Have you seen this posting?

Hello,


Yes, I´ve seen before posting. I used that code to understand how to build menus, in Jabaco apps. But, sincerely, preferred to have a menu builder in Jabaco, like VB had...



But what I really wanted was the possibility of downloading the sample that I made reference, because if was possible to take a snapshot of that sample, maybe that source code could be put available too. Only this...



Rgds,

Sven

Rate this thread
WoltLab Burning Board