SendMessage_ equivalent in SB

Just starting out? Need help? Post your questions and find answers here.
loulou2522
Posts: 51
Joined: Wed Mar 18, 2015 5:52 am

SendMessage_ equivalent in SB

Post by loulou2522 »

Is it possibleto use an equivalent of sendmessage_ in purebasic
THanks .
User avatar
Peter
Posts: 1086
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080
Contact:

Re: SendMessage_ equivalent in SB

Post by Peter »

Before I give an answer: What exactly do you want to do?
loulou2522
Posts: 51
Joined: Wed Mar 18, 2015 5:52 am

Re: SendMessage_ equivalent in SB

Post by loulou2522 »

SendMessage_(GadgetID(#IBAN_0),#EM_SETREADONLY,0,0)
SendMessage_(GadgetID(#IBAN_0),#EM_SETREADONLY,1,0)
SendMessage_(GadgetID(#String_14), #EM_LIMITTEXT, 13, 0)
SendMessage_(GadgetID(#Iban_3), #EM_SETSEL, 0, -1)
User avatar
Paul
Posts: 195
Joined: Wed Feb 26, 2014 6:46 pm
Location: Canada
Contact:

Re: SendMessage_ equivalent in SB

Post by Paul »

Some equivalents to what you want to do...

Code: Select all

Procedure SetReadOnly(Gadget,Flag)
   id=GadgetID(Gadget)
   !v_id.gadget.focusNode.readOnly=v_flag;
EndProcedure

SetReadOnly(#IBAN_0,#False)
SetReadOnly(#IBAN_0,#True)

SetGadgetAttribute(#String_14,#PB_String_MaximumLength,13)
loulou2522
Posts: 51
Joined: Wed Mar 18, 2015 5:52 am

Re: SendMessage_ equivalent in SB

Post by loulou2522 »

Thanks Paul, i am new in spiderbasic but i practice Purebasic since 1996.
Can you indcate me a good tuorial on how to compile and install spiderbasic project on a website?
Nice end of day
Post Reply