[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [open-cobol-list] Simulating radio buttons.

From: Patrick
Subject: Re: [open-cobol-list] Simulating radio buttons.
Date: Sat, 12 Jul 2014 22:26:40 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.6.0

Hi Again

You could also use the unicode subsection that creates geometric shapes for your radio button on/off positions.

They are mostly U25XX

Here is a list:

I know we don't have unicode support in the main releases but I bet all will be good if enough space is allocated for each unicode character.

Here is a simple program to show the two geometric shapes and validates their byte consumption :

>>source format is free
identification division .
program-id. unicode-blocks .
data division .
working-storage section .
01 bulls-eye pic x(3) value is '◎' .
01 circle-with-fill pic x(3) value is '◍' .
01 wait-for-key pic 9 .

procedure division .

display 'bulls-eye ◎ takes ' line 5 column 10 .
display function byte-length ( '◎' ) with no advancing.
display ' bytes' .

display 'circle-with-fill ◍ takes ' line 10 column 10 .
display function byte-length ( '◍' ) with no advancing.
display ' bytes' .
accept wait-for-key .

goback .
end program unicode-blocks .

Just a reminder, to type unicode, it's ctrl shift u and then the code such as 25ce


On 12/07/14 01:36 PM, Patrick wrote:
Hi John

If you need to stick to the terminal, try looking for ncurses radio
button examples in C


On 12/07/14 11:22 AM, john Culleton wrote:
The facility for creating screens,receiving data
etc. has one glaring deficiency. There is no
facility for radio buttons. Has anyone come up
with a clever way to simulate them? I know one
can put a number in a field and test that
number/lettter on exit but I am looking for
something more spiffy. Python uses Tkinter which
in turn feeds off of the TK part of Tcl//Tk. Tiny
Cobol has an assembly language bridge to Tcl/Tk

Just wondering.

open-cobol-list mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]