Jump to content

How to show the & symbol in a label?


Achilles
 Share

Recommended Posts

The & symbol is used for keyboard shortcuts on buttons usually (from what I know)... How can I make it so that it doesn't appear on a label?

#include <GUIConstantsEx.au3>


GUICreate("My GUI") ; will create a dialog box that when displayed is centered

GUICtrlCreateLabel("I want to show this & symbol", 10, 30, 100, 30); first cell 70 width


GUISetState()    ; will display an empty dialog box

; Run the GUI until the dialog is closed
Do
    $msg = GUIGetMsg()
Until $msg = $GUI_EVENT_CLOSE
My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]
Link to comment
Share on other sites

The & symbol is used for keyboard shortcuts on buttons usually (from what I know)... How can I make it so that it doesn't appear on a label?

#include <GUIConstantsEx.au3>


GUICreate("My GUI"); will create a dialog box that when displayed is centered

GUICtrlCreateLabel("I want to show this & symbol", 10, 30, 100, 30); first cell 70 width


GUISetState(); will display an empty dialog box

; Run the GUI until the dialog is closed
Do
    $msg = GUIGetMsg()
Until $msg = $GUI_EVENT_CLOSE
For me is some shortcut for underline.

Try this:

#include <GUIConstantsEx.au3>


GUICreate("My GUI"); will create a dialog box that when displayed is centered

GUICtrlCreateLabel("I want to show this && symbol", 10, 30, 200, 30); first cell 70 width


GUISetState()   ; will display an empty dialog box

; Run the GUI until the dialog is closed
Do
    $msg = GUIGetMsg()
Until $msg = $GUI_EVENT_CLOSE
Edited by Andreik

When the words fail... music speaks.

Link to comment
Share on other sites

For me is some shortcut for underline.

Try this:

#include <GUIConstantsEx.au3>


GUICreate("My GUI"); will create a dialog box that when displayed is centered

GUICtrlCreateLabel("I want to show this && symbol", 10, 30, 200, 30); first cell 70 width


GUISetState(); will display an empty dialog box

; Run the GUI until the dialog is closed
Do
    $msg = GUIGetMsg()
Until $msg = $GUI_EVENT_CLOSE
That works great, thanks!
My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...