Jump to content
Sign in to follow this  
mangle

some questions

Recommended Posts

mangle

Hi all, I want create "About" msgbox with two or more lines. My questions:

1. How I can do two or more lines in one msgbox?

2. How I can post date and time, when program was compiled?

Share this post


Link to post
Share on other sites
therks

MsgBox(0, '', 'Line 1' & @LF & 'Line 2')

FileGetTime() ?

Share this post


Link to post
Share on other sites
mangle

MsgBox(0, '', 'Line 1' & @LF & 'Line 2')

FileGetTime() ?

Thnx man, it's works! :D

And another question: how I can create traytip, which will displays only when user over his mouse on my program icon in tray?

And one more :): how I can do special edit text in msgbox? Bold, center, italic etc

Edited by mangle

Share this post


Link to post
Share on other sites
therks

For the first question, you can start with this:

Opt('TrayOnEventMode', 1)

TraySetOnEvent(-11, '_Hover')

While 1
  Sleep(100)
Wend

Func _Hover()
  TrayTip('Title', 'Message', 30)
EndFunc

Unfortunately, for the second question, you can't do formatted text in a MsgBox. Look into the GUI stuff for a little more flexibility.

Share this post


Link to post
Share on other sites
mangle

For the first question, you can start with this:

Mmm, I need another tooltip.

^ This is default tip on mouse over. How change it to custom?

Share this post


Link to post
Share on other sites
mangle

up ^

pls, advice me.

Share this post


Link to post
Share on other sites
mangle

BALA, may be I'm stupid idiot, but I dont understant your code :).

pls, explain it.

Share this post


Link to post
Share on other sites
Helge

mangle, you got no reason to feel stupid since BALA suggested something that has

nothing to do with your question. TraySetToolTip however is what you're looking for.

Share this post


Link to post
Share on other sites
mangle

thnx guy, it's true.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×