Jump to content

Date and Time in Tab Control - (Moved)


mumpel
 Share

Recommended Posts

Hello!

 

#Region ;**** Elftes Register füllen ****
    Global $TabSheet11 = GUICtrlCreateTabItem("Kalender")
           ; Kontoname
           GUICtrlCreateLabel('Name der Veranstaltung:', 225, 60)
           Global $vcalWorkname = GUICtrlCreateEdit('', 225, 80, 380, 20, BitOR($ES_WANTRETURN, $ES_MULTILINE))

           ; Anzeigename
           GUICtrlCreateLabel('Kurzbeschreibung der Veranstaltung:', 225, 110)
           Global $vcalDescription = GUICtrlCreateEdit('', 225, 130, 380, 60, BitOR($ES_WANTRETURN, $ES_MULTILINE))

           GUICtrlCreateLabel('Beginn:', 225, 210)
           Global $vcalBeginn = _GUICtrlDTP_Create($TabSheet11, 225, 230, 380, 100)
           _GUICtrlDTP_SetFormat($vcalBeginn, " ")

           GUICtrlCreateLabel('Ende:', 225, 360)
           Global $vcalEnde = _GUICtrlDTP_Create($TabSheet11, 225, 380, 380, 100)
           _GUICtrlDTP_SetFormat($vcalEnde, " ")

    #EndRegion ;**** --- ****

 

I would like to integrate a date picker and time picker in a tab control (see code). Unfortunately this doesn't work within a tab control. Is there another way to integrate a date picker and a time picker? Thanks!

 

Greetings, René

Link to comment
Share on other sites

Hello, when posting reproducers it is recommended to post runnable code. You might find Tabs - Wiki helpful and GUICtrlCreateDate helpful. When using tab control it is best to use internal AutoIt control creation function because AutoIt handles showing and hiding controls for you. If that is not what you want describe in more detail what does not work as expected and post runnable snippet.  

Edited by ahmet
Edit: Noticed this is wrong forum section.
Link to comment
Share on other sites

  • Moderators

Moved to the appropriate AutoIt General Help and Support forum, as the AutoIt Example Scripts forum very clearly states:

Quote

Share your cool AutoIt scripts, UDFs and applications with others.


Do not post general support questions here, instead use the AutoIt Help and Support forums.

Moderation Team

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

I already had "GUICtrlCreateDate", but something didn't work properly. The date selection is now correct.

 

For the time, I would rather have a "click selector" like the date, instead of the spin button. What should I look for?

 

The dateand time picker is at: #Region ;**** Elftes Register füllen ****

QRCode-Generator.zip

Edited by mumpel
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...