Jump to content
Sign in to follow this  
EKY32

A customized menu and toolbar

Recommended Posts

EKY32

Hey there, i'm using Win 7 and this window's menu seems to be themed as Win 8 style how is that?

and how to create exactly such toolbar with search bar in it?

 

post-74823-0-75904500-1379866607_thumb.p

thank you.


[font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font]

Share this post


Link to post
Share on other sites
EKY32

Any help of any kind please about customizing gui theme or creating controls like the above?

Edited by EKY32

[font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font]

Share this post


Link to post
Share on other sites
JLogan3o13

The only thing close that I am aware of is Trancexx's Ribbon UDF in the Examples section.

 

Edit:

Edited by JLogan3o13

√-1 2^3 ∑ π, and it was delicious!

How to get your question answered on this forum!

Share this post


Link to post
Share on other sites
EKY32

thank you, but it's soo far than a Ribbon.


[font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font]

Share this post


Link to post
Share on other sites
JLogan3o13

The point was that is as close as I have seen to modifying the menu system on the forum. Most everything else relies on the standard-issue Windows menu. Someone may wander along and prove me wrong however.


√-1 2^3 ∑ π, and it was delicious!

How to get your question answered on this forum!

Share this post


Link to post
Share on other sites
Melba23

EKY32,

You could do something like this: ;)

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <Constants.au3>
#include <WinAPI.au3>

; Create main GUI
$hGUI = GUICreate("Test", 500, 500)

$cInput = GUICtrlCreateInput("", 330, 0, 150, 20)
$cButton = GUICtrlCreateButton("Go", 480, 0, 20, 20)

; Create menu GUI
$hMenu_Win = GUICreate("", 330, 20, -1, -1, $WS_POPUP, $WS_EX_MDICHILD, $hGUI)

$mFile = GUICtrlCreateMenu("File")
$mFile_Exit = GUICtrlCreateMenuItem("Exit", $mFile)
$mOptions = GUICtrlCreateMenu("Options")
$mOptions_Test = GUICtrlCreateMenuItem("Test", $mOptions)
$mHelp = GUICtrlCreateMenu("Help")
$mHelp_About = GUICtrlCreateMenuItem("About", $mHelp)
; Move to correct position
$aMain_Pos = WinGetPos($hGUI)
Global $iBorder = _WinAPI_GetSystemMetrics(8) ; Border width
Global $iBar = _WinAPI_GetSystemMetrics(4) ; Title bar height
WinMove($hMenu_Win, "", $aMain_Pos[0] + $iBorder, $aMain_Pos[1] + $iBorder + $iBar)
GUISetState(@SW_SHOW, $hMenu_Win)

; Show main GUI
GUISetState(@SW_SHOW, $hGUI)

While 1
    Switch GUIGetMsg()
        Case $GUI_EVENT_CLOSE, $mFile_Exit
            Exit
        Case $mOptions_Test
            MsgBox($MB_SYSTEMMODAL, "Test", "Testing")
        Case $mHelp_About
            MsgBox($MB_SYSTEMMODAL, "Hi", "Any use at all?")
        Case $cButton
            $sSearch_Text = GUICtrlRead($cInput)
            If $sSearch_Text Then
                MsgBox($MB_SYSTEMMODAL, "Search", $sSearch_Text)
            EndIf
    EndSwitch
WEnd
Any use? :huh:

M23


Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×