Clipper On Line • Ver Tópico - TEXTBOX MEMO

TEXTBOX MEMO

Projeto MiniGui - Biblioteca visual para Harbour/xHarbour

Moderador: Moderadores

 

TEXTBOX MEMO

Mensagempor axelfolley » 19 Fev 2022 11:13

HI, I HAVE THIS NUMERICAL TEXTBOX AND I WOULD LIKE TO CHANGE IT TO MEMO
SOMEONE HELP ME? THANK YOU

@ 60.85 TEXTBOX TEXT_1;
WIDTH 50;
FIELD OPERATOR-> PROGRESS;
NUMERIC;
MAXLENGTH 10
axelfolley
Usuário Nível 1

Usuário Nível 1
 
Mensagens: 4
Data de registro: 19 Fev 2022 11:02
Cidade/Estado: italy
Curtiu: 0 vez
Mens.Curtidas: 0 vez

TEXTBOX MEMO

Mensagempor alxsts » 19 Fev 2022 12:12

Olá!

Benvenuto Axelfolley!

I think you should use an Editbox instead of a Textbox.

See exemple here.

There are examples in the samples folder of your Minigui inatallation.

Good luck!
[]´s
Alexandre Santos (AlxSts)
alxsts
Colaborador

Colaborador
 
Mensagens: 2943
Data de registro: 12 Ago 2008 15:50
Cidade/Estado: São Paulo-SP-Brasil
Curtiu: 21 vezes
Mens.Curtidas: 248 vezes

TEXTBOX MEMO

Mensagempor axelfolley » 19 Fev 2022 13:42

thanks for the quick reply
But I would need an example for MEMO cells.
In the Minigui examples folder I have seen, but there is nothing for the Memo field
Do you have something please
Also I would like to insert the multiline command in this example. do you have something for this too ???
Thanks again
axelfolley
Usuário Nível 1

Usuário Nível 1
 
Mensagens: 4
Data de registro: 19 Fev 2022 11:02
Cidade/Estado: italy
Curtiu: 0 vez
Mens.Curtidas: 0 vez

TEXTBOX MEMO

Mensagempor alxsts » 19 Fev 2022 15:07

Olá!

axelfolley escreveu:But I would need an example for MEMO cells.

Do mean a TSBROWSE or GRID containing a MEMO inside one of it's cells?

I personally use HwGui and I don't have a deep knowledge in Minigui. I don't even know if this is possible. Let's wait for help from someone else.
[]´s
Alexandre Santos (AlxSts)
alxsts
Colaborador

Colaborador
 
Mensagens: 2943
Data de registro: 12 Ago 2008 15:50
Cidade/Estado: São Paulo-SP-Brasil
Curtiu: 21 vezes
Mens.Curtidas: 248 vezes

TEXTBOX MEMO

Mensagempor axelfolley » 19 Fev 2022 18:19

Thanks for the support you have given me so far.
I'll explain.
I have a dbase which has columns of character and memo type cells.
To load data into character format cells I use that textbox program listing I posted at the beginning.
That listing should be edited to write in memo cells.
I think it can be done because I found examples for character, number, date cells but I am missing an example for memo cells
Thank you
axelfolley
Usuário Nível 1

Usuário Nível 1
 
Mensagens: 4
Data de registro: 19 Fev 2022 11:02
Cidade/Estado: italy
Curtiu: 0 vez
Mens.Curtidas: 0 vez

TEXTBOX MEMO

Mensagempor alxsts » 19 Fev 2022 19:24

Olá!
axelfolley escreveu:I have a dbase

Assuming you're refering to DBF tables, memo fields are character strings with a size greather than regular character data type ones. So I think you should use Editbox controls for memo cells. Define the editbox. Load the memo cell from table into it the same way you'do for a char cell. Let user edit it and write it back to your table.
See Editbox example at the link I posted above.
[]´s
Alexandre Santos (AlxSts)
alxsts
Colaborador

Colaborador
 
Mensagens: 2943
Data de registro: 12 Ago 2008 15:50
Cidade/Estado: São Paulo-SP-Brasil
Curtiu: 21 vezes
Mens.Curtidas: 248 vezes

TEXTBOX MEMO

Mensagempor axelfolley » 20 Fev 2022 07:14

I do not think the solution with the EDIT option that you have indicated is suitable for the MEMO component as after three lines of characters it does not accept other entries (the Memo field instead loads many more characters).
Your indication with the EDIT field was however very useful to solve the other problem that was to manage multilines in a TEXT form (with this system they now work). Thanks for the support anyway. Eventually I await some other suggestions for the problem of the MEMO field
axelfolley
Usuário Nível 1

Usuário Nível 1
 
Mensagens: 4
Data de registro: 19 Fev 2022 11:02
Cidade/Estado: italy
Curtiu: 0 vez
Mens.Curtidas: 0 vez

TEXTBOX MEMO

Mensagempor Itamar M. Lins Jr. » 20 Fev 2022 07:38

Hi!
Imagem

See this:
 DEFINE EDITBOX Edit_1
        ROW    30
        COL    40
        WIDTH  170
        HEIGHT 280
        VALUE ""
        FONTNAME "Arial"
        FONTSIZE 9
        TOOLTIP ""
        ONCHANGE Nil
        ONGOTFOCUS Nil
        ONLOSTFOCUS Nil
        FONTBOLD .F.
        FONTITALIC .F.
        FONTUNDERLINE .F.
        FONTSTRIKEOUT .F.
        HELPID Nil
        TABSTOP .T.
        VISIBLE .T.
        READONLY .F.
        HSCROLLBAR .F.
        VSCROLLBAR .T.
        DISABLEDBACKCOLOR Nil
        DISABLEDFONTCOLOR Nil
        BACKCOLOR Nil
        FONTCOLOR Nil
    END EDITBOX


From https://hmglights.wordpress.com/2010/10/02/quebra-de-linha-no-editbox/

Via google translator:

This has already been a question of mine, I searched many times and it went unnoticed by me, I think the reason was to have used other programming languages, where this option is normally treated as automatic line wrapping, but here it is simply enough to define that the component will not have horizontal scroll to have the line break and the reverse to not have the line break. It's quite logical, but it can go unnoticed if we don't pay attention.


Best regards,
Itamar M. Lins Jr.
Avatar de usuário

Itamar M. Lins Jr.
Colaborador

Colaborador
 
Mensagens: 6927
Data de registro: 30 Mai 2007 11:31
Cidade/Estado: Ilheus Bahia
Curtiu: 309 vezes
Mens.Curtidas: 503 vezes




Retornar para MiniGui

Quem está online

Usuários vendo este fórum: Nenhum usuário registrado online e 8 visitantes


Ola Amigo, espero que meu site e forum tem lhe beneficiado, com exemplos e dicas de programacao.
Entao divulgue o link da Doacao abaixo para seus amigos e redes sociais ou faça uma doacao para o site forum...
MUITO OBRIGADO PELA SUA DOACAO!
Faça uma doação para o forum
cron
v
Olá visitante, seja bem-vindo ao Fórum Clipper On Line!
Efetue o seu login ou faça o seu Registro