Recent

Author Topic: What is that thing on the top of the window?  (Read 11544 times)

captian jaster

  • Guest
What is that thing on the top of the window?
« on: March 08, 2010, 01:24:00 am »
You know that line that has "File" "Edit" and other stuff..
Thats GTK+?? or is it something else?

Ñuño_Martínez

  • Hero Member
  • *****
  • Posts: 1226
    • Burdjia
Re: What is that thing on the top of the window?
« Reply #1 on: March 08, 2010, 08:47:09 am »
The main menu? :o
Are you interested in game programming? Join the Pascal Game Development community!
Also visit the Game Development Portal

captian jaster

  • Guest
Re: What is that thing on the top of the window?
« Reply #2 on: March 08, 2010, 01:20:35 pm »
NO..thas...*sigh*... I KNOW THAT! I want to know if i have to learn something else to work with it.. Is it GTK i have to know? Is there something else i dont know..?

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12297
  • Debugger - SynEdit - and more
    • wiki
Re: What is that thing on the top of the window?
« Reply #3 on: March 08, 2010, 01:29:58 pm »
Is your question, how to get a main menu on your own application/form?

It's the first component on the first ("standard") tab of components. DoubleClick and start adding the menus and menu-items you like...

If that's not your question, then please rephrase...

captian jaster

  • Guest
Re: What is that thing on the top of the window?
« Reply #4 on: March 08, 2010, 01:56:15 pm »
Yes thats what i mean.. i dont understand what you mean by first
component.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12297
  • Debugger - SynEdit - and more
    • wiki
Re: What is that thing on the top of the window?
« Reply #5 on: March 08, 2010, 02:11:28 pm »
See picture, drop one of those on your form.

Then doubleclick it, a new window ("Menu editor") will open.

There will be one item, which is the first menu (e.g. could be the "file" menu). Select it in the object-inspector to rename the caption, or change properties.

in the menu-editor, use "insert new item (..)" to add further menues.

Use "Create sub menu" to add items inside the menu, and the use "insert new item (..)" BUT on the item-inside-the-menu, to add further items....

captian jaster

  • Guest
Re: What is that thing on the top of the window?
« Reply #6 on: March 08, 2010, 02:18:38 pm »
I double click it and nothing comes up...Never mind.. i got it to come up.. now im confused
« Last Edit: March 08, 2010, 02:22:09 pm by captian jaster »

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12297
  • Debugger - SynEdit - and more
    • wiki
Re: What is that thing on the top of the window?
« Reply #7 on: March 08, 2010, 02:28:25 pm »
You first need to put it on the form (like a button). Select (click) it, then click anywhere in your form (does not have to be the top).

Now the same icon is displayed on your form. Double-click it there.

The menu editor appears.
The top line of items ("boxes") are the menues that will be visible on top of your window.

One of them is already there. Right click it (context menu). Select "insert new item (after)" => a second item appears.

---
To create items that will drop down, when the menu opens (e.g "open", "close", ... inside a "file" menu):
FIRST use the context menu "Create sub menu"
THEN for more items use "insert new item (after)" again (but while you right click the item you created as "sub menu".

captian jaster

  • Guest
Re: What is that thing on the top of the window?
« Reply #8 on: March 08, 2010, 02:32:52 pm »
Ok it works!! thank you!
I cant seem to rename my buttons though??

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12297
  • Debugger - SynEdit - and more
    • wiki
Re: What is that thing on the top of the window?
« Reply #9 on: March 08, 2010, 05:01:32 pm »
Look at the window called "object inspector". You can select each item there. The display-name is "caption".
Lot's of other properties that you can play with too.

captian jaster

  • Guest
Re: What is that thing on the top of the window?
« Reply #10 on: March 08, 2010, 09:50:07 pm »
I right click the item im trying to change but i get no name change options

captian jaster

  • Guest
Re: What is that thing on the top of the window?
« Reply #11 on: March 08, 2010, 10:03:48 pm »
Never mind i got it

Ñuño_Martínez

  • Hero Member
  • *****
  • Posts: 1226
    • Burdjia
Re: What is that thing on the top of the window?
« Reply #12 on: March 09, 2010, 10:42:50 am »
NO..thas...*sigh*... I KNOW THAT! I want to know if i have to learn something else to work with it.. Is it GTK i have to know? Is there something else i dont know..?

Hey, ho! Be easy! I work with the materials you give me.

BTW, may be a good idea you read some tutorials.
« Last Edit: March 09, 2010, 10:44:36 am by Ñuño_Martínez »
Are you interested in game programming? Join the Pascal Game Development community!
Also visit the Game Development Portal

 

TinyPortal © 2005-2018