My generic notepad template
- utopiomania
- Addict
- Posts: 1655
- Joined: Tue May 10, 2005 10:00 pm
- Location: Norway
My generic notepad template
del
Last edited by utopiomania on Wed Apr 25, 2012 8:02 pm, edited 3 times in total.
Re: My generic notepad template
Can't, it doesn't run on a Mac. 

MacBook Pro-M1 (2021), Sequoia 15.4, PB 6.20
- Kwai chang caine
- Always Here
- Posts: 5494
- Joined: Sun Nov 05, 2006 11:42 pm
- Location: Lyon - France
Re: My generic notepad template
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"

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"

Not a destination
Re: My generic notepad template
Very nice.
Many thanks for sharing.
cheers

Many thanks for sharing.
cheers
- Rook Zimbabwe
- Addict
- Posts: 4322
- Joined: Tue Jan 02, 2007 8:16 pm
- Location: Cypress TX
- Contact:
Re: My generic notepad template
Very nice job!
I have a question (because I don't know)
why did you use:
Instead of SetGadgetFont(#Gadget, FontID) ? set to the default system font?
I know I am missing something important here!!!
I have a question (because I don't know)
why did you use:
Code: Select all
SendMessage_(GadgetID(#EDIT1), #EM_SETTEXTMODE, #TM_PLAINTEXT, 0)
I know I am missing something important here!!!

Re: My generic notepad template
It's not a font setting. That sets the editor to plaintext instead of rich text.
cheers
cheers
Re: My generic notepad template
looks good thanks.
- Rook Zimbabwe
- Addict
- Posts: 4322
- Joined: Tue Jan 02, 2007 8:16 pm
- Location: Cypress TX
- Contact:
Re: My generic notepad template
AHhhh so if we wanted to reset that we would change the handle: #TM_PLAINTEXT to #TM_RTFTEXT ??? 

- utopiomania
- Addict
- Posts: 1655
- Joined: Tue May 10, 2005 10:00 pm
- Location: Norway
Re: My generic notepad template
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?
insects if i can avoid it.
@Rook, #TM_RTFTEXT? Read The F(beep)in Text?

Re: My generic notepad template
@utopiomania
Thank you very much, very nice.
I won't steal it, can I sell it though?
Thank you very much, very nice.
I won't steal it, can I sell it though?

The advantage of a 64 bit operating system over a 32 bit operating system comes down to only being twice the headache.
- Rook Zimbabwe
- Addict
- Posts: 4322
- Joined: Tue Jan 02, 2007 8:16 pm
- Location: Cypress TX
- Contact:
Re: My generic notepad template
I have always thought that was what it stood for anyway!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?

- utopiomania
- Addict
- Posts: 1655
- Joined: Tue May 10, 2005 10:00 pm
- Location: Norway
Re: My generic notepad template
Yes, please sell it if you can!I won't steal it, can I sell it though?

@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
There is a IMA in:utopiomania wrote: @Kwai Chain Cheek, what was the bug report about. The 'about' box is using the IE webgadget, are you using
Mozilla instead?
Code: Select all
AddKeyboardShortcut(win, #PB_Shortcut_Return, btn1)
greetings
Thomas
- utopiomania
- Addict
- Posts: 1655
- Joined: Tue May 10, 2005 10:00 pm
- Location: Norway
Re: My generic notepad template
Code: Select all
;ok button
btn1 = buttonGadget(#PB_ANY, 156, 405, 100, 26, "Ok", #PB_BUTTON_DEFAULT)
addKeyboardShortcut(win, #PB_SHORTCUT_RETURN, btn1)
Re: My generic notepad template
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.
btn1 is a pointer (result of #PB_Any) and the value is to high for this.