Sign in to follow this  
Followers 0
Achilles

How to show the & symbol in a label?

3 posts in this topic

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]

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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

Share this post


Link to post
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]

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  
Followers 0