Baanboard.com

Go Back   Baanboard.com > Forum > Baan Quick Support: Functional & Technical > Tools Development

User login

Frontpage Sponsor

Main

Poll
For ERP LN feature pack upgrade, what method of install are you using?
Installation Wizard into existing VRC
35%
Installation Wizard into new VRC
42%
Manual into existing VRC
3%
Manual into new VRC
19%
Total votes: 31

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 24th October 2016, 13:27
VishalMistry's Avatar
VishalMistry VishalMistry is offline
Guru
 
Join Date: Dec 2004
Location: India, Gujarat
Posts: 568
VishalMistry has a little shameless behaviour in the past
Baan: Baan IV, ERPLn - DB: SQL Server 2000 / 2008 - OS: Windows Server 2003 / 2008
Wink Details of parent window
Baan: Baan IVc4
C/S: Both

Hello Everyone,

When creating user interface objects through 3gl code, I want to know the dimension of parent window like width and height in pixel, so that we can decide the size of it's child accordingly. Please refer below code:

parent.window = create.object( DsCmwindow, 0,
DsNtitle, "Main Window",
DsNprocessgroup, get.pgrp(pid),
DsNminWidth, 700,
DsNmaxWidth, 1000,
DsNminHeight, 500,
DsNmaxHeight, 700)

Here, the maximum width and height is set to 1000 and 700.

Can anybody guide how can we define the maximum size of screen in pixel ? The reason for asking this question is i want to parent.window filling up the entire screen.

Vishal
Reply With Quote
  #2  
Old 24th October 2016, 18:28
NPRao's Avatar
NPRao NPRao is offline
Guru
 
Join Date: Aug 2001
Location: Pacific NW, USA
Posts: 3,028
NPRao will become famous soon enough
Baan: iBaanERP-5.2a(Reger),SSA-ERP-LN-6.1,Infor LN-10.x - DB: Oracle-10g,11g,12c,MS-SQL - OS: HP-UX, Linux, Windows
Vishal,

Refer to the thread - Full-screen at session start-up for the usage of - get.display.data()
__________________
The art of perfection does not lie in doing extraordinary things but, doing ordinary things extraordinarily well. [-N. Prashanth Rao]
How To Ask Questions The Smart Way,BaaNBoard,NPRao
Reply With Quote
Sponsored Links
  #3  
Old 25th October 2016, 13:05
VishalMistry's Avatar
VishalMistry VishalMistry is offline
Guru
 
Join Date: Dec 2004
Location: India, Gujarat
Posts: 568
VishalMistry has a little shameless behaviour in the past
Baan: Baan IV, ERPLn - DB: SQL Server 2000 / 2008 - OS: Windows Server 2003 / 2008
Wink

Hello NPRao,

Thanks a lot. It is almost complete. The only issue is putting below code still creates small window (as shown in attachment). Actually I want to create a window that fills the entire screen. Below is the code I have written:

di = get.display.width(data)
pwidth = srv.display.height(data)
pheight = srv.display.width(data)
parent.window = create.object( DsCmwindow, 0,
DsNtitle, "Main Window",
DsNprocessgroup, get.pgrp(pid),
DsNresizeable, FALSE,
DsNwidth, pwidth,
DsNheight, pheight)

I checked values stored in pwidth and pheight and it corresponds to maximum width / height of window. I also tried setting some other properties of window like DsNmaxwidth and DsNmaxheigh but still no luck.

Can anybody guide, what could be wrong in the above code ?

Vishal
Attached Images
File Type: jpg window size.jpg (200.2 KB, 5 views)

Last edited by VishalMistry : 25th October 2016 at 15:04.
Reply With Quote
  #4  
Old 25th October 2016, 15:05
VishalMistry's Avatar
VishalMistry VishalMistry is offline
Guru
 
Join Date: Dec 2004
Location: India, Gujarat
Posts: 568
VishalMistry has a little shameless behaviour in the past
Baan: Baan IV, ERPLn - DB: SQL Server 2000 / 2008 - OS: Windows Server 2003 / 2008
I got it. It was a silly mistake !

the line di = get.display.width(data) should be di = get.display.data(data)

Vishal
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Use of "background" keyword in Baan kruyoupatel Tools Development 2 27th April 2016 07:03
Urgent Attention_ Open details in another window vam143na Tools Development 2 4th June 2015 06:08
Zoom Menu Return Multi Value layswan Tools Development 3 24th July 2012 09:42
zoom to correct business partner jojovalenton Tools Development 5 14th October 2009 10:26
current.mwindow() spartacus Tools Development 2 10th September 2009 12:43


All times are GMT +2. The time now is 19:32.


©2001-2017 - Baanboard.com - Baanforums.com