DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

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

timmy2

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 28
Looking for a scrolling rich-text displayer to show an AUP
« on: November 15, 2018, 03:15 AM »
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

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: Looking for a scrolling rich-text displayer to show an AUP
« Reply #1 on: November 15, 2018, 05:45 AM »
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,649
    • Participated in NANY Challenge Eleven Times
    • Coding Snacks
    • Linux User
    • Hardware Hacker
Re: Looking for a scrolling rich-text displayer to show an AUP
« Reply #2 on: November 15, 2018, 07: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?
/Ton
Ath's software collection, Quote: "A problem well stated is a problem half-solved." (Charles Kettering)

KodeZwerg

  • Honorary Member
  • Joined in 2018
  • **
  • Posts: 718
    • Participated in NANY Challenge Four Times
    • Coding Snacks
Re: Looking for a scrolling rich-text displayer to show an AUP
« Reply #3 on: November 15, 2018, 10: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

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Looking for a scrolling rich-text displayer to show an AUP
« Reply #4 on: November 15, 2018, 10: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: 718
    • Participated in NANY Challenge Four Times
    • Coding Snacks
Re: Looking for a scrolling rich-text displayer to show an AUP
« Reply #5 on: November 15, 2018, 10: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.

KodeZwerg

  • Honorary Member
  • Joined in 2018
  • **
  • Posts: 718
    • Participated in NANY Challenge Four Times
    • Coding Snacks
Re: Looking for a scrolling rich-text displayer to show an AUP
« Reply #6 on: November 15, 2018, 11:10 AM »
EULA - 15_11.jpg

First Preview of how i realize, is that the right direction?

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Looking for a scrolling rich-text displayer to show an AUP
« Reply #7 on: November 15, 2018, 11:28 AM »
Needs more borders around the buttons  :P

KodeZwerg

  • Honorary Member
  • Joined in 2018
  • **
  • Posts: 718
    • Participated in NANY Challenge Four Times
    • Coding Snacks
Re: Looking for a scrolling rich-text displayer to show an AUP
« Reply #8 on: November 15, 2018, 11: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.
Quote
@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

Original address: https://www.donationcoder.com/forum/index.php?topic=46668.0