Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tab in pop-up menu label
#1
I would like to create a pop-up menu with a tab in the label to align the shortcut keys.

Rather than my current:
Code:
Copy      Help
Redraw F1
Zoom F2
Original F3

I would like it to look like this:
Code:
Copy      Help
Redraw    F1
Zoom      F2
Original  F3

With other scripting software, I am able to put a char(9) in-line with my text.

Any ideas?
Evangelism - Just Do It!
#2
Currently tab can be used only in menus created using PopupMenu function.
#3
I made a something which would do the job.

EDIT: I made much better code.
Code:
Copy      Help
;;Configurations
str word1raw = "Redraw[]Zoom[]Original"
str word2raw = "F1[]F2[]F3"
int width = 10

;;Declarations
ARRAY(str) word1 = word1raw
ARRAY(str) word2 = word2raw
int fix
str fixed
int i

;;Fixing and output
fixed = ""
for(i 0 word1.len)
    fix = width-word1[i].len
    fixed = word1[i]
    rep fix
        fixed.from(fixed " ")
    fixed.from(fixed word2[i])
    out fixed
#4
Ape Wrote:I made a something which would do the job.
This works in the output window. However, when displayed in the pop-up menu, the font is not fixed-width and therefore the right column is staggered/not aligned.

Thanks for the help. It looks like I will need to figure out how to write a PopupMenu function. Yikes! Confusedhock:
Evangelism - Just Do It!
#5
So try to find out how to change the font.

EDIT: Someone know any msdn-function?
#6
Ape Wrote:So try to find out how to change the font..
Easier said then done!

You programming whiz bangs make my head hurt. :lol:
Evangelism - Just Do It!


Forum Jump:


Users browsing this thread: 1 Guest(s)