The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

This topic is READ ONLY
import-bot (20211) [Avatar] Offline
#1
[Originally posted by sameer]

I just quite cant the mru behavior down.....what excatly happens at open the
sheet registers using of_register. what event happens after that and so on.
Would you care to shed some more light on that
import-bot (20211) [Avatar] Offline
#2
Re: MRU service
[Originally posted by rik brooks]

> I just quite cant the mru behavior down.....what excatly happens at open the
> sheet registers using of_register. what event happens after that and so on.
> Would you care to shed some more light on that

Hah! I got a real chuckle out of this message. First of all the Most Recently
Used service is one of my least recently used. Why? Because I despise, I mean
literally despise the menuing systems used by the PFC. I understand the
reasoning, It all goes back to the way that Microsoft implemented their menus.
It makes it almost impossible to allow inheritance. PowerBuilder has done the
best that it can with what is available, but I don't like it at all. That's
one of the reasons that I'm happy to see that more and more applications are
beginning to do without menus. Of course this is because most applications are
looking to migrating to the net but that doesn't concern me. I'm just glad to
see this ugly object pass into the sunset.

That being said I have to remember what my grandfather always says, "Sticky,"
that's his nickname for me, from my first birthday party when I dove head
first into my cake... I became "Sticky Ricky" for him evermore, even after
almost half a century. "Sticky, if you go with something go all the way,
otherwise leave your young, hairy butt at home." Sooooo....

The basic idea is to let PowerBuilder handle the most recently used items that
appear at the bottom of a menu.

You should understand that the MRU service is unique to each sheet. That may
be where you are having a problem. I know that it gave me fits when I first
started thinking about it. You see, in most applications the most recently
used is fairly static, it is at an application level. If you want to implement
this then it's a simple matter of only setting up your frame window to have
the mru. But the PFC allows you to store the most recently used windows FROM
WHATEVER SHEET OR WINDOW THAT YOU ARE CURRENTLY IN. That is to say, if the
frame window has Win1, Win2, Win3 and you open Win1 the most recently used
windows in the menu may change to Win11, win12, and win13. These are the most
recently used windows that you have opened from Win1.

So the key is that the most recently used list may change each time that you
open a sheet... it may completely change. Of course when you close this sheet
it will return.

Have I answered your question, or do you need more specifics?

Rik Brooks
import-bot (20211) [Avatar] Offline
#3
Re: MRU service
[Originally posted by sameer]

sorry i was out of the country so i could not get back to you...but yes you
have answered my question to cretain extent. Where i was going wrong was that
i was assuming that mru is at the application level and not unique to each
sheet. but you are right about the pfc menu's hate them....

sameer
import-bot (20211) [Avatar] Offline
#4
Re: MRU service
[Originally posted by rik brooks]

> sorry i was out of the country so i could not get back to you...but yes you
> have answered my question to cretain extent. Where i was going wrong was that
> i was assuming that mru is at the application level and not unique to each
> sheet. but you are right about the pfc menu's them....
>
> sameer

I'm glad I helped. The menus have ticked me off since I first saw that I could
inherit from them. The fundamental concept of OOPS is that you start small,
with a minimum of information and then you add to it as you inherit. This is
sometimes called 'specialization'. So in effect the farther up the chain the
object is the smaller it is. Things are added as you go down.

The menus are the opposite. They start out as the highest, then things are
simply rendered unusable. They aren't even removed. So your menus are sure to
be massive if you use the PFC style. I like the message handler, but not
enough to use the menus.

Rik