Home » Developer & Programmer » Forms » how to make this type of tlist/poplist???
how to make this type of tlist/poplist??? [message #132557] Sun, 14 August 2005 17:41 Go to next message
ramisy2k
Messages: 150
Registered: April 2005
Senior Member
[pre]
Hi,

i have a form in which i would like to implement a time tlist/poplist etc
like what the picture below shows

http://img16.imageshack.us/img16/9062/clip7ac.jpg

by that I want to select the time/hr/sec from the list to another item say item_X
the above pic shows 3:23:00 AM
i want the time in this format in the other item_X
03:23
if the time is PM say 08:15:23 PM
then i want the time in this format in the item_X
20:23

is it possible to achieve this in forms..
the same type of time time list can be seen in windows when u double click the time on the taskbar
pls help...

regards,
Asim

[pre]

[Updated on: Sun, 14 August 2005 17:45]

Report message to a moderator

Re: how to make this type of tlist/poplist??? [message #132572 is a reply to message #132557] Sun, 14 August 2005 21:29 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Are you saying that you want a list like the following:
3:23:00 AM
3:24:00 AM
3:25:00 AM
3:26:00 AM
and this list covers each minute for a 24 hour day. Then you want to be able to select a single value from this list?

David
Re: how to make this type of tlist/poplist??? [message #132602 is a reply to message #132572] Mon, 15 August 2005 02:24 Go to previous messageGo to next message
ramisy2k
Messages: 150
Registered: April 2005
Senior Member
Hi david,
thanks for ur answer
yes i want the same type of time list which covers each minute and each second of the day...
also i would like to change the hour,minutes, seconds, AM/PM by pressing the the up and down buttons as shown in the picture of my original question...exactly in the same way as windows taskbar clock has (when u double click it)...
waiting for ur answer
regrds,
Asim.
Re: how to make this type of tlist/poplist??? [message #132605 is a reply to message #132602] Mon, 15 August 2005 02:45 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Forget the tlist. Try this. Create a small pop-up window and canvas. Have 4 fields - hour, minute, second, and ampm. Then two buttons. Make the first three fields numeric - give then ranges 0-23, 0-59, and 0-59 using the maximum and minimum properties. With the buttons (iconic and with a small image). Make them not mouse or keyboard navigable. Then when they are pressed use system.cursor_item to determine the field and then either increment (cyclically) or decrement (cyclically) the corresponding fields and then 'synchronize' to show the new number on the screen. Same for ampm field, just toggle between the two values, and then validate to make sure that if the entry is done manually it is correct.

Then have the usual 'cancel' and 'ok' buttons that will take the values and make them into a timestamp for your usage.

David

[Updated on: Mon, 15 August 2005 02:45]

Report message to a moderator

Previous Topic: Inserting more than one record
Next Topic: Create Form Layout using columns from different tables
Goto Forum:
  


Current Time: Fri Sep 20 07:18:48 CDT 2024