WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: TC 6.0 dialog.tcz Calendar doesn't seem to work  (Read 1568 times)

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
TC 6.0 dialog.tcz Calendar doesn't seem to work
« on: January 18, 2015, 09:18:15 AM »
This used to work on TC 5.x:
Code: [Select]
xterm +sb -title "Calendar" --geometry 36x17--1-20 -e dialog --no-cancel --ok-label " CLOSE " --no-shadow --calendar "" -1 16
It doesn't on 6.0. No error message is shown.
Download a copy and keep it handy: Core book ;)

Offline patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 708
Re: TC 6.0 dialog.tcz Calendar doesn't seem to work
« Reply #1 on: January 18, 2015, 03:13:58 PM »
On my ubuntu this line works
You also need dialog installed.
I have to change the geometry to correct size. Oversize it first like 80x25, and then decrease to correct size.
And your "-1 16" at the end I don't know that stands for.
Code: (bash) [Select]
xterm +sb -title "Calendar" -geometry 40x19 -e dialog --no-cancel --ok-label " CLOSE " --no-shadow --calendar "" 0 0
« Last Edit: January 18, 2015, 03:20:17 PM by patrikg »

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: TC 6.0 dialog.tcz Calendar doesn't seem to work
« Reply #2 on: January 18, 2015, 07:26:29 PM »
Code: [Select]
dialog --calendar "Calender" -1 16

dialog --help
Code: [Select]
...
  --calendar     <text> <height> <width> <day> <month> <year>
...
Auto-size with height and width = 0. Maximize with height and width = -1.
Global-auto-size if also menu_height/list_height = 0.
tc@box:$
<day> <month> <year>  are optional but doesn't work with those values set either.
Download a copy and keep it handy: Core book ;)