Going about with creating reusable components [message #350779] |
Fri, 26 September 2008 05:47 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
![](/forum/images/custom_avatars/111270.jpg) |
didiera
Messages: 134 Registered: August 2007 Location: Mauritius
|
Senior Member |
|
|
Hi guys,
Since I had some free time lately, I was making fun with Forms and trying to setup a DatePicker application. Pretty cool in fact and I eventually managed to set it up neat and sexy...but it still remains a simple forms application with an .fmb extension. I was wondering how I could actually make this thing portable to other forms, like I could drag and drop it on another form just like an OLE or bean object.
I have uploaded a screenshot of this little application so you may have an idea. As you can see there's this text item on the main canvas for which a click on the button labelled '#' will open the second canvas with the calendar grid (actually a plain datablock) from which to choose dates from.
I would be glad if someone could tell me this is all possible and I would also prefer a pure Forms solution as far as possible.
thanks in advance,
Didz (Didier)
[Updated on: Fri, 26 September 2008 05:49] Report message to a moderator
|
|
|
Re: Going about with creating reusable components [message #350951 is a reply to message #350779] |
Sun, 28 September 2008 01:34 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
|
You can create an Object Group(MYOBJGRP) and store all the canvases,blocks,windows etc. you have used in your form. Create an object Library(MYOBJLIB.olb) and copy this object Group there are save the library. when ever you want to use your program ,subclass this olb to the form.see attached pic.
-
Attachment: 1.JPG
(Size: 155.20KB, Downloaded 550 times)
|
|
|
|