JavaScript_Freek Posted August 2, 2006 Share Posted August 2, 2006 I want to know. That my script:expandcollapse popup; Dan's Menu ; August 2, 2006 #include <GuiConstants.au3> ; GUI GuiCreate("Dan's Main Menu", 400, 400) GuiSetIcon(@SystemDir & "\notepad.exe", 0) ; MENU $filemenu = GuiCtrlCreateMenu ("File") $fileitem = GuiCtrlCreateMenuitem ("Open...",$filemenu) $recentfilesmenu = GuiCtrlCreateMenu ("Recent Files",$filemenu) $separator1 = GuiCtrlCreateMenuitem ("",$filemenu) $exititem = GuiCtrlCreateMenuitem ("Exit",$filemenu) $helpmenu = GuiCtrlCreateMenu ("About") $aboutitem = GuiCtrlCreateMenuitem ("About",$helpmenu) ; TAB GuiCtrlCreateTab(1, 0, 400, 150) GuiCtrlCreateTabItem("Dan") GuiCtrlCreateLabel("[color=red][b]Welcome to Dan's Menu Program. Of course if you trust me you would be seeing this right now. So hats off you too. So, this is like my first favorite program I wrote. Sweet eh? Well not really, but I still like it![/b][/color]", 20, 40) GuiCtrlCreateTabItem("Test") GuiCtrlCreateLabel("I'm like testing.", 20, 40) GuiCtrlCreateTabItem("About") ; GUI MESSAGE LOOP GuiSetState() While 1 $msg = GUIGetMsg() Select Case $msg = $fileitem $file = FileOpenDialog("Choose file...",@TempDir,"All (*.*)") If @error <> 1 Then GuiCtrlCreateMenuItem ($file,$recentfilesmenu) Case $msg = $exititem ExitLoop Case $msg = $aboutitem Msgbox(0,"About Dan's Menu","This menu was programmed by Dan. This is copyrighted so if you have the same exact code and you claim as yours. Well then your ripping. Got questions? Email me at dan@zetastyles.com!") EndSelect WEndWelcome to Dan's Menu Program. Of course if you trust me you would be seeing this right now. So hats off you too. So, this is like my first favorite program I wrote. Sweet eh? Well not really, but I still like it! - YES I MADE IT COLOR RED AND BOLD. Anyways after the word "seeing" it gets cutt off.I tried {ENTER} but it didn't work. [center]Cookyx.com :: Simple LAN Chat[/center] Link to comment Share on other sites More sharing options...
Helge Posted August 2, 2006 Share Posted August 2, 2006 Try something like this : "line1" & @CRLF & "line2" Link to comment Share on other sites More sharing options...
{NL}--Xantios--- Posted August 2, 2006 Share Posted August 2, 2006 I want to know. That my script: expandcollapse popup; Dan's Menu ; August 2, 2006 #include <GuiConstants.au3> ; GUI GuiCreate("Dan's Main Menu", 400, 400) GuiSetIcon(@SystemDir & "\notepad.exe", 0) ; MENU $filemenu = GuiCtrlCreateMenu ("File") $fileitem = GuiCtrlCreateMenuitem ("Open...",$filemenu) $recentfilesmenu = GuiCtrlCreateMenu ("Recent Files",$filemenu) $separator1 = GuiCtrlCreateMenuitem ("",$filemenu) $exititem = GuiCtrlCreateMenuitem ("Exit",$filemenu) $helpmenu = GuiCtrlCreateMenu ("About") $aboutitem = GuiCtrlCreateMenuitem ("About",$helpmenu) ; TAB GuiCtrlCreateTab(1, 0, 400, 150) GuiCtrlCreateTabItem("Dan") GuiCtrlCreateLabel("[color=red][b]Welcome to Dan's Menu Program. " &@crlf &"Of course if you trust me you would be seeing this right now." &@crlf &"So hats off you too. So, this is like my first favorite program I wrote. Sweet eh? Well not really, but I still like it![/b][/color]", 20, 40) GuiCtrlCreateTabItem("Test") GuiCtrlCreateLabel("I'm like testing.", 20, 40) GuiCtrlCreateTabItem("About") ; GUI MESSAGE LOOP GuiSetState() While 1 $msg = GUIGetMsg() Select Case $msg = $fileitem $file = FileOpenDialog("Choose file...",@TempDir,"All (*.*)") If @error <> 1 Then GuiCtrlCreateMenuItem ($file,$recentfilesmenu) Case $msg = $exititem ExitLoop Case $msg = $aboutitem Msgbox(0,"About Dan's Menu","This menu was programmed by Dan. This is copyrighted so if you have the same exact code and you claim as yours. Well then your ripping. Got questions? Email me at dan@zetastyles.com!") EndSelect WEnd that should work :-) Link to comment Share on other sites More sharing options...
JavaScript_Freek Posted August 2, 2006 Author Share Posted August 2, 2006 Now it cuts off after right now. Like below "right now" is blank. [center]Cookyx.com :: Simple LAN Chat[/center] Link to comment Share on other sites More sharing options...
{NL}--Xantios--- Posted August 2, 2006 Share Posted August 2, 2006 just do this :-) msgbox(0,"","Xantios rulez on line 1 " &@crlf &"Xantios rulez on line 2" &@clrf &"Xantios rulez on line 3") Link to comment Share on other sites More sharing options...
JavaScript_Freek Posted August 3, 2006 Author Share Posted August 3, 2006 Bump ^^ not a real answer [center]Cookyx.com :: Simple LAN Chat[/center] Link to comment Share on other sites More sharing options...
Skruge Posted August 3, 2006 Share Posted August 3, 2006 You need to fix your label's width & height. Read the help file to see what the defaults are for unspecified parameters. [font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font] Link to comment Share on other sites More sharing options...
/dev/null Posted August 3, 2006 Share Posted August 3, 2006 Bump ^^ not a real answer Read about Styles in the help file and search for "wrap".CheersKurt __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
JavaScript_Freek Posted August 3, 2006 Author Share Posted August 3, 2006 I can't find it. Yes I tried looking... [center]Cookyx.com :: Simple LAN Chat[/center] Link to comment Share on other sites More sharing options...
Skruge Posted August 3, 2006 Share Posted August 3, 2006 If you can't find it in your help file, look here: http://www.autoitscript.com/autoit3/files/...CreateLabel.htm Since you didn't specify the label's dimensions, it's the same size as your tab control. (400 x 150) The text is clipping because the label extends beyond the edge of the tab. Change this: GuiCtrlCreateLabel("Welcome to Dan's Menu Program. " &@crlf &"etc...", 20, 40)to this:GuiCtrlCreateLabel("Welcome to Dan's Menu Program" & @crlf & "etc...", 20, 40, 300, 120) btw, the styles Kurt is referring to are here: http://www.autoitscript.com/autoit3/files/...x/GUIStyles.htm [font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now