Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 04 FEB 1999 06:30:34PM BRIAN WICK wrote:

HAVING SET UP AN EDIT LINE CONTROL WITH A DEFAULT VALUE, THE DEFAULT VALUE IS PLACED IN THE CONTROL WHEN I FIRST FOCUS ON IT. HOWEVER, IF I CLEAR THE DEFAULT DATA, GO TO ANOTHER CONTROL, AND THEN COME BACK TO THE ORIGINAL CONTROL, THE DEFAULT VALUE IS NOT PUT IN THE EMPTY CONTROL. I HAVE TRIED THE DEFAULT, AND DEFPROP PROPERTIES WITH GET_PROPERTY AND SET_PROPERTY COMMANDS IN THE GOTFOCUS AND LOSTFOCUS EVENTS AND NOTHING SEEMS TO WORK. I CAN NOT EVEN GET ANY VALUES BY USING THE DEFPROP AND DEFAULT PROPERTIES. ANY IDEAS ?"


At 04 FEB 1999 07:27PM Don Bakke wrote:

Brian,

How exactly did you set up the default for this editline in the first place? Are you going through the Editline Properties dialog box and putting something in the Default control? When you "clear" the contents of the control are you sure you aren't putting a space there instead? This would register as a value and therefore the default would not appear over it.

Using the DEFAULT and DEFPROP properties, BTW, having nothing to do with getting a control to have a default value. These properties have to do with the way data is stored by the control.

[email protected]

SRP Computer Solutions


At 04 FEB 1999 10:39PM [email protected] wrote:

Brian,

my guess is that you are not just deleting/clearing but hitting space.

I just created a form with 3 editline controls (not databound). In the middle control I put a default (dclick the editline) of "this is a test". Upon running the control when I tabbed out of the first control to the second i got my default. I then hit the delete key and then tabbed to the third control. Then shift tab and went back to the second control. At this point the default was back.

Defprop property:

Defprop is a property of controls. So a 'getproperty' of a control using defprop will return with the value of the 'default property'. In editlines, editbox etc the 'defprop' is TEXT. In Tables controls it is Array.

[email protected] onmouseover=window.status=you have seen the rest .. now try the best!;return(true)"

David Tod Sigafoos ~ SigSolutions

voice: 503-639-8080


At 08 FEB 1999 12:17PM BRIAN WICK wrote:

WHAT I AM LOOKING FOR IS WHAT PROPERTY CAN I USE TO RETREIVE A DEFAULT LITERAL TEXT VALUE FOR A CONTROL AS IS SET UP IN THE EDIT LINE PARAMATERS WINDOW. (I.E. THE FIRST WINDOW WHEN YOU DOUBLE CLICK ON THE EDIT LINE CONTROL). I KNOW THAT 'DEFPROP' AND 'DEFAULT' DO NOT WORK. IS THERE AN UNDOCUMENTED PROPERTY FOR WHAT I AM LOOKING FOR.

(…OR DO I HAVE TO JUST GO INTO THE %FIELDS% RECORD TO GET IT)

…THANKS AGAIN FOR THE HELP …..BRIAN


At 08 FEB 1999 07:23PM James Birnie wrote:

Brian,

You could force GOTFOCUS event for this control using a SEND_EVENT(CONTROL,'GOTFOCUS') which should insert your default value, however I'm more interested in why the value isn't appearing!

I think the most likely scenario is that the control the user is leaving a second time, doesn't result in the subsequent processing of the GOTFOCUS event within the control with the default value.

I have seen a bug where if a MSG dialog appears as part of another controls LOSTFOCUS, then the resulting GOTFOCUS for the next EDITLINE control does not get processed.

Hope this helps,

James.


At 09 FEB 1999 12:15PM Stephen Revelation wrote:

Brian,

Check out the OIWIN_EQUATES insert in SYSPROCS. It has CS_Default$ in there which holds what you are looking for. I don't believe that there is a 'hidden' property to otherwise do this.

Good Luck,

Stephen Revelation


At 09 FEB 1999 01:15PM [email protected] wrote:

Brian,

Well .. it seems that this information (the default value for a control) is only stored in the SYSREPOSWINS record. It does not seem to be built into any of the system varaibles that I have been able to find.

I suggest that you address a question directly to RTI .. possibly they will respond.

[email protected] onmouseover=window.status=you have seen the rest .. now try the best!;return(true)"

David Tod Sigafoos ~ SigSolutions

voice: 503-639-8080


At 09 FEB 1999 01:23PM [email protected] wrote:

Stephen,

Good call ..

I would like to put forward the suggestion that 'ALL' properties be availble through the Properties window of the debugger. This would be a very great help.

Thanks

[email protected] onmouseover=window.status=always willing to learn from those who have different knowledge than i.;return(true)"

David Tod Sigafoos ~ SigSolutions

voice: 503-639-8080


At 12 FEB 1999 11:04AM BRIAN WICK wrote:

Thanks for all the help everybody:

I found what to look for in SYSREPOSSWINS

..Brian

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/7ee10c6046164fcd8525670e00812461.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1