Page 1 of 1

PostPosted: Sun Jun 16, 2002 3:09 am
by haines
I am using a resource form (RsrcEdit) with several fields. I tried detecting the length of the selected text with a=Fctl(GETSELLEN)call. a is zero whether the field text is selected or not. I am selecting by double tapping the text. I tried the same operation with a dynamic form and field and the function worked perfectly. Does this function work only with dynamic forms or am I doing something wrong?

PostPosted: Sun Jun 16, 2002 2:46 pm
by jstadolnik
I can't seem to replicate the problem. GETSELLEN works for me for both resource and dynamic fields. Below is my test code:



library "PToolboxLib"
include "Fctl.h"
#define FORM1 3000
#define BUTTON1 3001
#define FIELD1 3002
#define FIELD2 3003

main() {

if(OpenRsrcDb("field_db")!=1) {
alert("Couldn't find database");

while(1) {
if(Fevent(1)==BUTTON1) {

The PToolboxLib guy.

Edited by - jstadolnik on 06/16/2002 15:01:40

PostPosted: Tue Jun 18, 2002 10:38 pm
by haines
I found the problem in my code. No problem with PtoolBoxLib. Again thanks!