Sign in to follow this  
Followers 0
jlorenz1

Display a "&" Character on GUI

6 posts in this topic

Is it possible to disyplay a "&" Character on GUI? For example: I want title a start group Search & Replace, but i get always an underscore"_". I treid with && and other things, that doesn't work. I know, that there will be solution. Thanks. Johannes


Johannes LorenzBensheim, Germanyjlorenz1@web.de[post="12602"]Highlightning AutoIt Syntax in Notepad++ - Just copy in your Profile/application data/notepad++[/post]

Share this post


Link to post
Share on other sites



&& is supposed to work.... Post an example of your code, please.

<{POST_SNAPBACK}>

[/quot

For example

#include <GUIConstants.au3>

GUICreate("My GUI group")

GUICtrlCreateGroup ("SEARCH &&REPLACE", 190, 60, 90, 140)

$radio_1 = GUICtrlCreateRadio ("Radio 1", 210, 90, 50, 20)

$radio_2 = GUICtrlCreateRadio ("Radio 2", 210, 110, 60, 50)

GUICtrlCreateGroup ("",-99,-99,1,1) ;close group

GUISetState ()

While 1

$msg = GUIGetMsg()

If $msg = $GUI_EVENT_CLOSE Then ExitLoop

Wend

SHOWS ALWAYS SEARCH REPLACE


Johannes LorenzBensheim, Germanyjlorenz1@web.de[post="12602"]Highlightning AutoIt Syntax in Notepad++ - Just copy in your Profile/application data/notepad++[/post]

Share this post


Link to post
Share on other sites

#include <GUIConstants.au3>

GUICreate("My GUI group")
GUICtrlCreateGroup ("SEARCH && R&EPLACE", 190, 60, 90, 140)
$radio_1 = GUICtrlCreateRadio ("Radio &1", 210, 90, 50, 20)
$radio_2 = GUICtrlCreateRadio ("Radio &2", 210, 110, 60, 50)
GUICtrlCreateGroup ("",-99,-99,1,1);close group

GUISetState ()


While 1
$msg = GUIGetMsg()

If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Wend
Search and replace. :whistle:

Share this post


Link to post
Share on other sites

There's also the $SS_NOPREFIX prefix which can be added into the style string of any label/static control.

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

#include <GUIConstants.au3>

GUICreate("My GUI group")
GUICtrlCreateGroup ("SEARCH && R&EPLACE", 190, 60, 90, 140)
$radio_1 = GUICtrlCreateRadio ("Radio &1", 210, 90, 50, 20)
$radio_2 = GUICtrlCreateRadio ("Radio &2", 210, 110, 60, 50)
GUICtrlCreateGroup ("",-99,-99,1,1);close group

GUISetState ()
While 1
$msg = GUIGetMsg()

If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Wend
Search and replace.  :dance:

<{POST_SNAPBACK}>

OR

  There's also the $SS_NOPREFIX prefix which can be added into the style string of any label/static control.

Edit: Forgot "/" for ending of quote :whistle:

OR

#include <GUIConstants.au3>

GUICreate("My GUI group")
GUICtrlCreateGroup ('SEARCH' & " && " & 'REPLACE', 190, 60, 90, 140)
$radio_1 = GUICtrlCreateRadio ("Radio &1", 210, 90, 50, 20)
$radio_2 = GUICtrlCreateRadio ("Radio &2", 210, 110, 60, 50)
GUICtrlCreateGroup ("",-99,-99,1,1);close group

GUISetState ()


While 1
$msg = GUIGetMsg()

If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Wend

OR

#include <GUIConstants.au3>

GUICreate("My GUI group")
GUICtrlCreateGroup ('SEARCH &&& REPLACE', 190, 60, 90, 140)
$radio_1 = GUICtrlCreateRadio ("Radio &1", 210, 90, 50, 20)
$radio_2 = GUICtrlCreateRadio ("Radio &2", 210, 110, 60, 50)
GUICtrlCreateGroup ("",-99,-99,1,1);close group

GUISetState ()


While 1
$msg = GUIGetMsg()

If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Wend

^^^ Think this is what Cyberslug was going after but three &&&

:dance:

Edited by ronsrules

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

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