Jump to content


Photo
- - - - -

Auto Expand


5 replies to this topic

#1 YvetteBalt

YvetteBalt

    Member

  • Members
  • PipPip
  • 10 posts
  • Gender:Female

Posted 20 June 2006 - 11:09 AM

Hi All

The Pro IV newbie is asking yet another question already.

I have this paging screen. When in contracted mode, a record is only 1 line, otherwise it is 5 lines.
I have a little button on each line.
When the user clicks this button the lines should expand (F9) and set a few fields to VISIBLE = TRUE.
Is there a way of issuing a F9 function call from within my button logic?

Regards,
Yvette

#2 jcduym

jcduym

    Member

  • Members
  • PipPip
  • 35 posts

Posted 20 June 2006 - 11:20 AM

Yvette,

Yes: just attach the key value 9 (of the expand key) to the button and in any of the fields of your paging screen check if #&@LCTRF is set (BITON or BITOFF). If on your screen is in expanded mode and you can display the missing fields.


Hth


Jan

#3 YvetteBalt

YvetteBalt

    Member

  • Members
  • PipPip
  • 10 posts
  • Gender:Female

Posted 22 June 2006 - 03:03 PM

Jan

Thanks for the advice. I ended up implementing what you suggested.

Is there no way of "kick starting" and expand call when the user click a button in adition to doing some other actions?

Kind regards,
Yvette

#4 jcduym

jcduym

    Member

  • Members
  • PipPip
  • 35 posts

Posted 22 June 2006 - 05:57 PM

Yvette,

Not as far as I know. You can only:
- force the screen to start in either contracted or expanded mode
- suppress the contracted mode for any of the modes of the screen

There are no properties to change these settings and you can not stuff the keyboard with the expand key at will. At least not when I tried it a fair while back.

Just something you/we have to live with.


Regards,


Jan

#5 Chris Mackenzie

Chris Mackenzie

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 368 posts
  • Gender:Male
  • Location:Bristol, United Kingdom

Posted 23 June 2006 - 09:03 AM

Maybe I'm missing something but why do you
need to set fields visible when going into
expand mode? Won't they automatically
become visible (and conversely be hidden
in contracted mode)?

And logic related to the expanded fields can
be done in fld logic independant of the expand/contract
switching. And if you attach the function key value '18'
to your button it will toggle the modes.
The content and views expressed in this message are those
of the poster and do not represent those of any organisation.

#6 jcduym

jcduym

    Member

  • Members
  • PipPip
  • 35 posts

Posted 23 June 2006 - 11:12 AM

Ehhh . . . you're right: key 18 is expand/contract, not 9, which of course is escape.

Jan



Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users