Page 1 of 1
SendMessage_ equivalent in SB
Posted: Wed Aug 04, 2021 2:41 pm
by loulou2522
Is it possibleto use an equivalent of sendmessage_ in purebasic
THanks .
Re: SendMessage_ equivalent in SB
Posted: Wed Aug 04, 2021 3:14 pm
by Peter
Before I give an answer: What exactly do you want to do?
Re: SendMessage_ equivalent in SB
Posted: Wed Aug 04, 2021 3:57 pm
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)
Re: SendMessage_ equivalent in SB
Posted: Wed Aug 04, 2021 5:09 pm
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)
Re: SendMessage_ equivalent in SB
Posted: Wed Aug 04, 2021 5:54 pm
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