kysersoze12
17th January 2007, 12:56
In baan it is possible to scroll vertically using up and down keys or pageup and page down keys .
Is there any way to scroll horizontally with keyboard buttons ???
Also is there any way to start a form with full maximum size ???
Also text.to.buf is not working i.e. it is not giving any error but it is not selecting the text so I have to write logic to select text from tttxt tables .
Can anyone tell me what can be the problem ?
en@frrom
17th January 2007, 13:16
Ok, a bunch of total different questions...
1) I don't know; never tried yet, maybe someone else played around with this..
2) Yes, this is possible. Look at this thread (http://www.baanboard.com/baanboard/showthread.php?t=13000&highlight=maximize) to see how to apply it. I use it myself in various sessions. I created a dll as follows:
extern long win.wid
extern long win.hei
extern long srv_data(SRVMAXSIZE)
extern long event(EVTMAXSIZE)
extern long form
function extern tcrom.dll0001.full.screen()
{
DllUsage
Expl:
Pre :
Post:
Input:
Output:
EndDllUsage
get.display.data(srv_data)
win.wid = srv.display.width(srv_data) - 40 |in case of office bars etc
win.hei = srv.display.height(srv_data) - 125 |consider the application bar at the bottom..
evt.type( event ) = EVTRESIZEWINDOW
evt.resize.width( event ) = win.wid
evt.resize.height( event ) = win.hei
evt.resize.columns( event ) = 0
evt.resize.rows( event )= 0
send.event( pid, event )
change.object(current.mwindow(),DsNx, 0, DsNy, 0)
}
In sessions which I want to start at full screen mode, I just call the function as follows:
form.1:
init.form:
tcrom.dll0001.full.screen()
3) Can you be a bit more specific? What are you trying? What does your code look like (posting your code here would help), etc
Regards,
Eli Nager
kysersoze12
17th January 2007, 21:35
Thanx for your reply buddy .I will try what you explained there .
What I did is as follows.
(1)To make the form full screen I tried inbuilt function resize.window() .But I got an error process 888(some number) not found .I tried the function everywhere init.form,before.program etc. I get this error most of the times when I use functions relating to form .I will be glad if you can tell the reason for this error .
(2) I need horizontal scroll using keyboard keys .I did not try anything for it .We can use pageup and pagedown keys for vertical scroll but we don't have any key for horizontal scroll .We have to use mouse for horizontal scroll on the form .My client wants to use <- and -> keys for horizontal scroll .
(3)My client has different tt objects on development and live servers .So when I used text.to.buf on development area it worked but when I m running it on live server it is not giving me any text in the text array eventhough the text is there .So I had to write a logic to select text from tttxt001 using text number .
I will be glad if you can share some of your excellent scripts like the one you gave above.
george7a
18th January 2007, 13:51
Hi,
(1)To make the form full screen I tried inbuilt function resize.window() .But I got an error process 888(some number) not found .I tried the function everywhere init.form,before.program etc. I get this error most of the times when I use functions relating to form .I will be glad if you can tell the reason for this error .
As suggested above you can know the size of your screen then you can use the function in this post (http://www.baanboard.com/baanboard/showpost.php?p=98147&postcount=2) to resize your form, instead of resize.window() function.
I hope it helps,
- George
kysersoze12
18th January 2007, 15:18
Thanx en@frrom and george7a.
With the code given by you I m able to resize the window to maximum size .
I will be thankful to you if you can help me to solve the other two points .
george7a
18th January 2007, 15:58
Hi,
(3)My client has different tt objects on development and live servers .So when I used text.to.buf on development area it worked but when I m running it on live server it is not giving me any text in the text array eventhough the text is there .So I had to write a logic to select text from tttxt001 using text number .
Are you trying it on the same language?
Can you post your code?
- George