YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

Maximise ProcessBook On Open Options · View
milesUK
#1 Posted : Wednesday, May 12, 2010 3:59:09 PM
Rank: Advanced Member
Groups: Member

Joined: 5/28/2009
Posts: 70
Location: Cheshire, UK
I have tried the web generally and this forum for a solution to this but can find nothing relavent.

When my default workbook opens on running ProcessBook I can see few of my Display entries until I maximise it. I would like the ProcessBook to maximise automatically, to fill the screen, on opening.

I can do a bit of VBA and have looked for the ProcessBook equivalent of Excels "Workbook_Open()" event. Unless a ProcessBook display is opened I cannot do anything in the VBE as most menus options are greyed out and disabled.

I am assuming that this is one of those things that "cannot be done". Sad

regards,

Miles
MilesUK
ProcessBook v3.0.15.3
Sponsor  
 

OSIsoft vCampus is a subscription-based, online offering that consists of providing everything people need to develop applications on the PI System.
We invite you to take a "tour" of the OSIsoft Virtual Campus - also feel free to consult the FAQ  or contact OSIsoft vCampus for more details.
RJK Solutions
#2 Posted : Wednesday, May 12, 2010 4:12:18 PM
Rank: Administration

Groups: Administration

Joined: 6/20/2008
Posts: 612
Location: Cheshire, United Kingdom.
Hi Miles,

There are options... Smile

First one would be to create a .Net ProcessBook addin, this way you can respond to application level events without opening a display first, these events include openeing of PIW's. If you work in a locked environment, this is going to be a little difficult to implement.

Second, if you are talking about the ProcessBook application as a whole, then you can manipulate the ProcBook.ini file for the overall size by altering the WindowPos value in the Startup section. If you are talking about a PIW then ignore this one.

Third, would be to create a little executable that you use inside of a shortcut (that ultimately points to procbook.exe). The exe simply runs ProcessBook but hangs around until it sees a PIW being opened (your default PIW) then maximises and shuts down. Bit like a ProcessBook startup executable to prepare your environment for how you like it.

All not as nice as you would have liked I am sure...a .Net addin provides the best (and likely OSI supported) method, the third is a little more realistic and quicker to implements. Both mean distributing something extra than the PIW file itself.

Cheers,

Rhys.
Principal Consultant
Real-Time Data Management @ Wipro Technologies
milesUK
#3 Posted : Thursday, May 13, 2010 9:19:56 AM
Rank: Advanced Member
Groups: Member

Joined: 5/28/2009
Posts: 70
Location: Cheshire, UK
Rhys, As always you present more than one possible solution. Thank you.

You are right in that I am trying to maximise a PIW file (that is set to auto load on running ProcessBook under Tools-->Preferences, Start tab). Option 2 ruled out.Sad

Unfortunately we are locked down so option 1 is out also.Sad

Deployment is for myself only so option three seems to be realistic but I would not know where to start. Could you point me to any resources to get me going please.

Miles

EDIT: Actually I'm being daft here. d'oh! I have just realised that I'm trying to find a sledge hammer to crack the proverbial nut. Blushing
I'll be realistic and continue to use the maximise button. BigGrin Thank you again though for your input


Miles
MilesUK
ProcessBook v3.0.15.3
jc113883
#4 Posted : Tuesday, October 12, 2010 12:47:18 AM
Rank: Member
Groups: Member

Joined: 10/7/2009
Posts: 14
I know this post is over a year old, but isn't this all you are after:

Code:
Private Sub Display_Open()

Application.Maximize

End Sub


Place this in the startup file and you should be fine.
milesUK
#5 Posted : Tuesday, October 12, 2010 1:18:20 PM
Rank: Advanced Member
Groups: Member

Joined: 5/28/2009
Posts: 70
Location: Cheshire, UK
jc113883, I was after a solution to maximise the actual Processbook (e.g. Miles Sheets.PIW) as opposed to the individual displays. My Processbook list of displays occupies less than half of the actual application window - consequently many of the Processbook Entries are not being shown until I manually maximise the list. For example:
Code:
+---------+
|+---+    |
||   |    |
|+---+    |
|         |
+---------+
when I would like this
Code:
+---------+
|+-------+|
||       ||
||       ||
||       ||
|+-------+|
+---------+


thank you for taking the time to post though. :-)

miles
MilesUK
ProcessBook v3.0.15.3
jc113883
#6 Posted : Wednesday, October 13, 2010 1:15:46 AM
Rank: Member
Groups: Member

Joined: 10/7/2009
Posts: 14
Ah, I see. Sorry, I was confused between Processbook the application and a processbook PIW file. I don't really use PIWs!

The only thing I can think of which you've probably already considered is to make your startup file a Processbook display file, which maximises itself, opens your PIW file and then closes itself, essentially giving you the same thing you were after, like so:

Code:
Private Sub Display_Open()

Me.Maximize
Application.ProcBooks.Open ("<PBook path>")
Me.Close (False)

End Sub


If the display is maximised, then the PIW file will open maximised.

Graeme.
milesUK
#7 Posted : Wednesday, October 13, 2010 8:23:10 AM
Rank: Advanced Member
Groups: Member

Joined: 5/28/2009
Posts: 70
Location: Cheshire, UK
jc, that IS neat. And quick.

Cheers.

miles
MilesUK
ProcessBook v3.0.15.3
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.