topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • December 11, 2018, 09:15 AM
  • Proudly celebrating 13 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Looking for a scrolling rich-text displayer to show an AUP  (Read 458 times)

timmy2

  • Supporting Member
  • Joined in 2008
  • **
  • default avatar
  • Posts: 26
    • View Profile
    • Donate to Member
Looking for a scrolling rich-text displayer to show an AUP
« on: November 14, 2018, 09:15 PM »
I want to display an Acceptable Use Policy (rich text) in a scrollable window with OK and Cancel buttons (return different error codes). Has anyone seen such a program here?

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,032
    • View Profile
    • Donate to Member
Re: Looking for a scrolling rich-text displayer to show an AUP
« Reply #1 on: November 14, 2018, 11:45 PM »
To clarify, you want a simple window that displays an RTF file and has just the two buttons (OK and Cancel) at the bottom?  When you say scrolling, do you mean it auto-scrolls the text or did you mean it simply has a vertical scrollbar?

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,291
    • View Profile
    • Donate to Member
Re: Looking for a scrolling rich-text displayer to show an AUP
« Reply #2 on: November 15, 2018, 01:28 AM »
Creating an installer, f.e. using InnoSetup, that doesn't actually install anything, could provide you with that.

Btw, when(/how) should this AUP be shown?

KodeZwerg

  • Honorary Member
  • Joined in 2018
  • **
  • Posts: 370
    • View Profile
    • Donate to Member
Re: Looking for a scrolling rich-text displayer to show an AUP
« Reply #3 on: November 15, 2018, 04:04 AM »
Hello, i have absolute no idea what you want to have.
Can you append a sample file that you want to read?
A small window that can read RTF aint a problem.
But what should buttons OK and CANCEL do ?

Please explain a bit more and i am glad to help you too  :D
sorry bad english and Delphi are my hobby ;)
politeness is not one of my strengths in writing, just because it sounds rough doesn't mean that I mean it rough.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 39,015
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Looking for a scrolling rich-text displayer to show an AUP
« Reply #4 on: November 15, 2018, 04:15 AM »
I believe the poster wants to be able to call this program from his script, to present the user with a window with a license/policy to read, and then make the user choose ACCEPT or DECLINE (cancel), and then read the return code from the program to know which choice the user made.

KodeZwerg

  • Honorary Member
  • Joined in 2018
  • **
  • Posts: 370
    • View Profile
    • Donate to Member
Re: Looking for a scrolling rich-text displayer to show an AUP
« Reply #5 on: November 15, 2018, 04:55 AM »
Okay, that i understood way better and i am on it.

@timmy2: Upload your EULA.rtf so i can better set default width/height for dialog-box to your needs.
sorry bad english and Delphi are my hobby ;)
politeness is not one of my strengths in writing, just because it sounds rough doesn't mean that I mean it rough.

KodeZwerg

  • Honorary Member
  • Joined in 2018
  • **
  • Posts: 370
    • View Profile
    • Donate to Member
Re: Looking for a scrolling rich-text displayer to show an AUP
« Reply #6 on: November 15, 2018, 05:10 AM »
EULA - 15_11.jpgLooking for a scrolling rich-text displayer to show an AUP

First Preview of how i realize, is that the right direction?
sorry bad english and Delphi are my hobby ;)
politeness is not one of my strengths in writing, just because it sounds rough doesn't mean that I mean it rough.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 39,015
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Looking for a scrolling rich-text displayer to show an AUP
« Reply #7 on: November 15, 2018, 05:28 AM »
Needs more borders around the buttons  :P

KodeZwerg

  • Honorary Member
  • Joined in 2018
  • **
  • Posts: 370
    • View Profile
    • Donate to Member
Re: Looking for a scrolling rich-text displayer to show an AUP
« Reply #8 on: November 15, 2018, 05:40 AM »
What to say. Its done :-]

Total simple made, looking like above heavy paneled version, about design we can discuss, no problem :)

I added a batch file to show you basics.
@ECHO OFF
ShowRTF.exe eula.rtf
echo %ERRORLEVEL%
rem there are 4 possible return codes
rem 0 = Cancel
rem 1 = Accept
rem 200 = File not found
rem 255 = no Filename specified
sorry bad english and Delphi are my hobby ;)
politeness is not one of my strengths in writing, just because it sounds rough doesn't mean that I mean it rough.