| View previous topic :: View next topic |
| Author |
Message |
guest Guest
|
Posted: Tue Mar 08, 2005 4:06 pm Post subject: GUI ListBox | Escape |
|
|
Hello
It is a question about the Gui command.
Can't the item containing "|" be made?
DropDownList / ComboBox / ListBox.
"`|" was not effective.
| Code: | Gui,Add,ListBox ,,aaa|bbb`|ccc|ddd|ee
Gui,Show
return
GuiEscape:
ExitApp |
|
|
| Back to top |
|
 |
BoBo Guest
|
Posted: Tue Mar 08, 2005 4:53 pm Post subject: |
|
|
@ guest
Guest
Yes. - But its good that you haven't tested it yourself! Otherwise your box would have been exploded - and - Jonny would have announced to come for a visit next week.
AHK's help is your friend
| Quote: | | is is a pipe-delimited list of choices such as Choice1|Choice2|Choice3 |
|
|
| Back to top |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3841 Location: Bremen, Germany
|
Posted: Tue Mar 08, 2005 5:10 pm Post subject: |
|
|
He might have tested it. And I'm sure he did. And his question states that he has read the manual.
AND he is right. It would be nice to have the ability to escape pipes. Then the "poormen's syslist32" is easier to mimic (having pipes as vertical line segments). _________________ Ciao
toralf  |
|
| Back to top |
|
 |
niwi
Joined: 27 Feb 2005 Posts: 128 Location: Heidelberg, Germany
|
Posted: Tue Mar 08, 2005 5:20 pm Post subject: |
|
|
Hi,
it seems not to work, I've tried a few combinations. But maybe the new option T for tab stops may help? (Version 1.0.30+)
NiWi. |
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5390 Location: /b/
|
Posted: Tue Mar 08, 2005 5:22 pm Post subject: |
|
|
Getting a literral pipe character in a listbox doesn't seem possible: I've tried the ACS code, {|}, pipe-as-variable, double/tripe pipes. Maybe Chris needs to come up with a pipe-escape chracter  _________________
 |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10480
|
|
| Back to top |
|
 |
Guest
|
Posted: Wed Mar 09, 2005 1:39 pm Post subject: Guest |
|
|
Thank you, with control Add | was able to be included in the item.
And I am sorry. Was it a known problem?
| Code: | Gui,Add,ListBox
Gui,Show
data="aaa","bb|b","ccc","ddd"
Loop,Parse,data,CSV
Control,Add,%A_LoopField% ,ListBox1,ahk_class AutoHotkeyGUI
return
GuiEscape:
ExitApp |
|
|
| Back to top |
|
 |
|