Page 1 of 2
					
				My generic notepad template
				Posted: Fri Dec 04, 2009 8:59 pm
				by utopiomania
				del
			 
			
					
				Re: My generic notepad template
				Posted: Fri Dec 04, 2009 10:40 pm
				by WilliamL
				Can't, it doesn't run on a Mac. 

 
			
					
				Re: My generic notepad template
				Posted: Fri Dec 04, 2009 11:58 pm
				by Kwai chang caine
				Cool job  
 
Just for information  
 
 
Like usually, KCC is the king for found bug, i click one or two time and find one 
 
 
Line 1319 when i click "Help/About"
 
			
					
				Re: My generic notepad template
				Posted: Sat Dec 05, 2009 12:52 am
				by rsts
				Very nice.  
 
 
Many thanks for sharing.
cheers
 
			
					
				Re: My generic notepad template
				Posted: Sat Dec 05, 2009 4:08 am
				by Rook Zimbabwe
				Very nice job!
I have a question (because I don't know)
why did you use:
Code: Select all
SendMessage_(GadgetID(#EDIT1), #EM_SETTEXTMODE, #TM_PLAINTEXT, 0)
Instead of SetGadgetFont(#Gadget, FontID) ? set to the default system font?
I know I am missing something important here!!!  

 
			
					
				Re: My generic notepad template
				Posted: Sat Dec 05, 2009 4:39 am
				by rsts
				It's not a font setting. That sets the editor to plaintext instead of rich text.
cheers
			 
			
					
				Re: My generic notepad template
				Posted: Sat Dec 05, 2009 7:54 am
				by idle
				looks good thanks.
			 
			
					
				Re: My generic notepad template
				Posted: Sat Dec 05, 2009 6:40 pm
				by Rook Zimbabwe
				AHhhh so if we wanted to reset that we would change the handle: #TM_PLAINTEXT to #TM_RTFTEXT ???  

 
			
					
				Re: My generic notepad template
				Posted: Sat Dec 05, 2009 7:21 pm
				by utopiomania
				Thanks, ppl! Hope you can use it. BTW, you can use it as you wish, I won't kill you, I kill nothing, not even
insects if i can avoid it.
@Rook, #TM_RTFTEXT? Read The F(beep)in Text? 

 
			
					
				Re: My generic notepad template
				Posted: Sun Dec 06, 2009 3:28 am
				by SFSxOI
				@utopiomania
Thank you very much, very nice.
I won't steal it, can I sell it though? 

 
			
					
				Re: My generic notepad template
				Posted: Sun Dec 06, 2009 4:05 pm
				by Rook Zimbabwe
				utopiomania wrote:Thanks, ppl! Hope you can use it. BTW, you can use it as you wish, I won't kill you, I kill nothing, not even
insects if i can avoid it.
@Rook, #TM_RTFTEXT? Read The F(beep)in Text? 

 
I have always thought that was what it stood for anyway!  

 
			
					
				Re: My generic notepad template
				Posted: Sun Dec 06, 2009 7:23 pm
				by utopiomania
				I won't steal it, can I sell it though? 
Yes, please sell it if you can! 
 
@Kwai Chain Cheek, what was the bug report about. The 'about' box is using the IE webgadget, are you using
Mozilla instead?
 
			
					
				Re: My generic notepad template
				Posted: Sun Dec 06, 2009 7:34 pm
				by ts-soft
				utopiomania wrote:
@Kwai Chain Cheek, what was the bug report about. The 'about' box is using the IE webgadget, are you using
Mozilla instead?
There is a IMA in:
Code: Select all
AddKeyboardShortcut(win, #PB_Shortcut_Return, btn1)
btn1 is to big for menuitem!
greetings
Thomas
 
			
					
				Re: My generic notepad template
				Posted: Sun Dec 06, 2009 8:37 pm
				by utopiomania
				Code: Select all
;ok button
    btn1 = buttonGadget(#PB_ANY, 156, 405, 100, 26, "Ok", #PB_BUTTON_DEFAULT)
    addKeyboardShortcut(win, #PB_SHORTCUT_RETURN, btn1)
I don't get it? The button is 100 by 26. It is too big for what menu item?
 
			
					
				Re: My generic notepad template
				Posted: Sun Dec 06, 2009 8:43 pm
				by ts-soft
				The last parameter of AddKeyBoardShortcut is a menuitemid (event), only numbers from 0 to 64000)
btn1 is a pointer (result of #PB_Any)  and the value is to high for this.