09-12-2007, 02:17 AM 
		
	
	
		I have been searching for this on the forum thinking it should be here somewhere but I couldnt find it. I  want to add a Menu bar with drop down menus to my Dialog. 
![[Image: menubarse6.jpg]](http://img481.imageshack.us/img481/1125/menubarse6.jpg)
Thanks, John
	
	
	
	
![[Image: menubarse6.jpg]](http://img481.imageshack.us/img481/1125/menubarse6.jpg)
Thanks, John
| 
					 (Solved)...Adding a Menu bar to QM Dialog
				 | 
| 
		
		
		09-12-2007, 02:17 AM 
		
	 
		I have been searching for this on the forum thinking it should be here somewhere but I couldnt find it. I  want to add a Menu bar with drop down menus to my Dialog.  ![[Image: menubarse6.jpg]](http://img481.imageshack.us/img481/1125/menubarse6.jpg) Thanks, John 
		
		
		09-12-2007, 06:22 AM 
		
	 
		It is in QM help. QM 2.1.9 or later. Example Function DialogWithMenu \Dialog_Editor
		
		
		09-12-2007, 07:22 AM 
		
	 
		Maybe I'm missing something, but when I run your example all I get is a sizable text edit window. No menu bar or menus
	 
		
		
		09-12-2007, 07:28 AM 
		
	 
		Paste escaped. Lines must not begin with ;.
	 
		
		
		09-12-2007, 07:31 AM 
		
	 
		I guess i was missing something  :oops:  Thanks   
		
		
		09-12-2007, 08:41 PM 
		
	 
		Can a menu bar Dialog be encrypted?. Function ( DialogWithMenu ) \Dialog_EditorFunction ( Call_Menubar ) str DC=output: 
		
		
		09-12-2007, 09:21 PM 
		
	 
		I got it, had to take all the spaces out of the menu bar definitions. Function ( Call_Menubar ) str DC=
		
		
		02-15-2008, 02:10 AM 
		
	 
		I get this error Error in DialogWithMenu: expected 0 to 10 arguments, not 12. and it highlights ShowDialog 
		
		
		02-15-2008, 06:12 AM 
		
	 
		Update your QM.
	 
		
		
		02-15-2008, 09:12 AM 
		
	 
		It did not work because when you select multiple lines and right click the selection bar it inserts spaces after tabs. QM does it to make comments visually indented by one space even in lines that begin with tabs. It is not a multiline string because some lines begin with tabs. All lines must begin with spaces. str s= ;this ;,is ;,a ;,multiline ;string str s= ;this ,;is ,;not a ,;multiline ;string 
		
		
		02-15-2008, 03:24 PM 
		
	 
		OK, i still get the argument error!
	 
		
		
		02-15-2008, 04:50 PM 
		
	 
		Something wrong with your System folder. Try to delete System.qml file from qm folder and reinstall QM. Also check 'Always add System' in Options -> Files. Also don't use a UPC or other pp software. Don't know but they possibly install wrong System version.
	 
		
		
		02-15-2008, 11:39 PM 
		
	 
		OK i reinstalled QM, is this code suppose to close QM? str DC=All it does is close QM. 
		
		
		02-16-2008, 09:08 AM 
		
	 
		What is Call_Menubar?
	 
		
		
		02-16-2008, 09:31 PM 
		
	 
		Not sure i just copied the code from above  :?:
	 
		
		
		02-16-2008, 09:33 PM 
		
	 
		OK i used Gint's example from above and it worked perfectly, Thanks!
	 | 
| 
					« Next Oldest | Next Newest »
				 |