Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.

Use of editor in own framework

Hi,

We build our own programming framework and use srp-editor to view/edit stuff.
We use the code below.
This worked fine until we started to use the big improved version 3.2.3.1
We notice that if we open a record (SRP_EDITOR_OPEN(type,id,line)) then the CtrlR-window stands fullscreen before the already opened record. This happens if we previously used Ctrl-R to open/find a record.
What are we doing wrong? What is the best practice to start the edit/editor and give it focus?

Regards Ed Keeman


*************program code for starting the editor or starting an edit********************
start_editor:
CALL SRP_EDITOR_OPEN()
gosub focus_srp_editor
return

open_record:
CALL SRP_EDITOR_OPEN(type,id,line)
gosub focus_srp_editor
return

focus_srp_editor:
call set_property('SYSTEM','FOCUS','SRP_EDITOR')
Handle = FindWindow("RTI_PrCl":\00\,"")
call ShowWindow(Handle,3)
return

Comments

Sign In or Register to comment.