|
Joined: Mar 2003
Posts: 1,271
Hoopy frood
|
OP
Hoopy frood
Joined: Mar 2003
Posts: 1,271 |
I would like to see the dialog listbox have the optional style to right-justify, just like you can with a text item and a edit box...
DALnet #Helpdesk I hear and I forget. I see and I remember. I do and I understand. -Confucius
|
|
|
|
Joined: May 2003
Posts: 215
Fjord artisan
|
Fjord artisan
Joined: May 2003
Posts: 215 |
- Jason
|
|
|
|
Joined: Jan 2003
Posts: 3,012
Hoopy frood
|
Hoopy frood
Joined: Jan 2003
Posts: 3,012 |
I don't think listbox has a font align property. I was looking in my compiler, and I can't find it. I am looking in C#, but the closest I could get was String.Format and force it to the right, but this only works with fixed-width fonts.
-KingTomato
|
|
|
|
Joined: Mar 2003
Posts: 1,271
Hoopy frood
|
OP
Hoopy frood
Joined: Mar 2003
Posts: 1,271 |
How come text and editbox items can do it then ?
DALnet #Helpdesk I hear and I forget. I see and I remember. I do and I understand. -Confucius
|
|
|
|
Joined: Jan 2003
Posts: 3,012
Hoopy frood
|
Hoopy frood
Joined: Jan 2003
Posts: 3,012 |
Editbox items have that property, though the listbox appears as though it doesn't..
If you have a control (this.editBox1) there is a property (.TextAlign) that can be set..
i.e. this.editBox1.TextAlign = System.Windows.Forms.HorizontalAlignment.Right/Left/Center;
However, there is no TextAlign property in a listbox--wierd.
-KingTomato
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
Joined: May 2003
Posts: 2,265 |
wouldn't it be possible to script it though, use the same method as aligned themes and mdx's SetFont to get a fixed width font :tongue:
new username: tidy_trax
|
|
|
|
Joined: Jan 2003
Posts: 3,012
Hoopy frood
|
Hoopy frood
Joined: Jan 2003
Posts: 3,012 |
For it to work, Khaled would need to allow multiple spacing sequences so you can do the "whitepace" needed to push it over..
+---------------------------------------------------------+
| Uber ASCII Dialog >:P [_][[]][X] |
+---------------------------------------------------------+
| My Listbox |
| +-----------------------------------------------------+ |
| | . . . . . . . . . . . . . . . . . . .This Is Item 1 | |
| | . . . . . . . . . . . . . . . . . . .Item 2 Is Here | |
| | . . . . . . . . . . . . . . . .This would be item 3 | |
| | . . . . . . . . . . . . . . . . . . . . . . . . etc | |
| | | |
| | | |
| +-----------------------------------------------------+ |
| |
| [ CANCEL ][ OKAY ] |
| |
+---------------------------------------------------------+
the ". . . ." are of course spaces. You cant send all those spaces to mirc, so its not really possible. unless Khaled made an eception to the /did command. Also, if you wanted mIRC to do it on its own, Khaled would have to know how many spaces a ccross your dialog is (using the width as a reference), then could do a facsimileof "padding" the string, and changing the font.
-KingTomato
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
Joined: May 2003
Posts: 2,265 |
$chr(160)  ah, didn't think about the listbox-width problem :tongue:
new username: tidy_trax
|
|
|
|
Joined: Mar 2003
Posts: 1,271
Hoopy frood
|
OP
Hoopy frood
Joined: Mar 2003
Posts: 1,271 |
As I said before -- that's nice for a fixed-width font, but I haven't used a fixed-width font since I got rid of my last DOS programs. Prefixing hard spaces doesn't work on proportional fonts.
DALnet #Helpdesk I hear and I forget. I see and I remember. I do and I understand. -Confucius
|
|
|
|
Joined: Oct 2003
Posts: 3,918
Hoopy frood
|
Hoopy frood
Joined: Oct 2003
Posts: 3,918 |
fixed-width is your friend
- argv[0] on EFnet #mIRC - "Life is a pointer to an integer without a cast"
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
Joined: May 2003
Posts: 2,265 |
bright.fon is your soulmate.
new username: tidy_trax
|
|
|
|
|