mIRC Home    About    Download    Register    News    Help

Print Thread
#57367 25/10/03 12:16 PM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
OP Offline
Hoopy frood
L
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
#57368 25/10/03 03:15 PM
Joined: May 2003
Posts: 215
Fjord artisan
Offline
Fjord artisan
Joined: May 2003
Posts: 215
Don't forget center.


- Jason
#57369 25/10/03 03:30 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
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
#57370 25/10/03 03:47 PM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
OP Offline
Hoopy frood
L
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
#57371 25/10/03 03:49 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
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
#57372 25/10/03 05:23 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
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
#57373 25/10/03 06:43 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
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..

Code:
+---------------------------------------------------------+
| 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
#57374 25/10/03 06:55 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
$chr(160) wink
ah, didn't think about the listbox-width problem :tongue:


new username: tidy_trax
#57375 25/10/03 08:58 PM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
OP Offline
Hoopy frood
L
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
#57376 26/10/03 12:52 AM
Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
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"
#57377 26/10/03 01:02 AM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
bright.fon is your soulmate.


new username: tidy_trax

Link Copied to Clipboard