AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

GUI ListBox | Escape

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
guest
Guest





PostPosted: Tue Mar 08, 2005 4:06 pm    Post subject: GUI ListBox | Escape Reply with quote

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





PostPosted: Tue Mar 08, 2005 4:53 pm    Post subject: Reply with quote

@ 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. Shocked

AHK's help is your friend Smile
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

PostPosted: Tue Mar 08, 2005 5:10 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
niwi



Joined: 27 Feb 2005
Posts: 128
Location: Heidelberg, Germany

PostPosted: Tue Mar 08, 2005 5:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
Titan



Joined: 11 Aug 2004
Posts: 5390
Location: /b/

PostPosted: Tue Mar 08, 2005 5:22 pm    Post subject: Reply with quote

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 Question
_________________

Back to top
View user's profile Send private message Visit poster's website
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10480

PostPosted: Wed Mar 09, 2005 2:51 am    Post subject: Reply with quote

Thanks, this is already on the to-do list as suggested at http://www.autohotkey.com/forum/viewtopic.php?p=9202#9202

In the meantime, you could try using Control Add to do it, though there's likely to be some difficulties.
Back to top
View user's profile Send private message Send e-mail
Guest






PostPosted: Wed Mar 09, 2005 1:39 pm    Post subject: Guest Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group