Bonjour,
Je recherche une méthode ou un gadget qui fonctionnerais sur un principe simple, si le texte et trop grand il met a la ligne la partie qui dépasse. J'ai essayé plusieurs gadgets et soit il met des barres de défilement, soit on peu pas changer le texte en live.
J’espère que quelqu’un aura une idée, merci d’avance.
GallyHC
TextBox ou equivalent...
TextBox ou equivalent...
Configuration : Tower: Windows 10 (Processeur: i7 "x64") (Mémoire: 16Go) (GeForce GTX 760 - 2Go) - PureBasic 5.72 (x86 et x64)
- falsam
- Messages : 7324
- Inscription : dim. 22/août/2010 15:24
- Localisation : IDF (Yvelines)
- Contact :
Re: TextBox ou equivalent...
Code : Tout sélectionner
OpenWindow(0, 0, 0, 400, 300, "Editor gadget ")
EditorGadget(1, 10, 30, 150, 40)
SendMessage_(GadgetID(1), #EM_SETTARGETDEVICE, #Null, 0)
Repeat:Until WaitWindowEvent()=#PB_Event_CloseWindow
End
Configuration : Windows 11 Famille 64-bit - PB 6.20 x64 - AMD Ryzen 7 - 16 GO RAM
Vidéo NVIDIA GeForce GTX 1650 Ti - Résolution 1920x1080 - Mise à l'échelle 125%
Vidéo NVIDIA GeForce GTX 1650 Ti - Résolution 1920x1080 - Mise à l'échelle 125%
- falsam
- Messages : 7324
- Inscription : dim. 22/août/2010 15:24
- Localisation : IDF (Yvelines)
- Contact :
Re: TextBox ou equivalent...
Un autre avec un StringGadget
Code : Tout sélectionner
OpenWindow(0,200,200,300,200,"",#PB_Window_SystemMenu)
StringGadget(0,10,10,200,100,"",#ES_MULTILINE|#ES_AUTOVSCROLL|#WS_VSCROLL|#WS_HSCROLL|#ESB_DISABLE_LEFT|#ESB_DISABLE_RIGHT)
Repeat : Until WaitWindowEvent()=#PB_Event_CloseWindow
Configuration : Windows 11 Famille 64-bit - PB 6.20 x64 - AMD Ryzen 7 - 16 GO RAM
Vidéo NVIDIA GeForce GTX 1650 Ti - Résolution 1920x1080 - Mise à l'échelle 125%
Vidéo NVIDIA GeForce GTX 1650 Ti - Résolution 1920x1080 - Mise à l'échelle 125%
Re: TextBox ou equivalent...
Reponse net rapide et precise merci le premier ete le bon pour moi 
Cordialement,
GallyHC

Cordialement,
GallyHC
Configuration : Tower: Windows 10 (Processeur: i7 "x64") (Mémoire: 16Go) (GeForce GTX 760 - 2Go) - PureBasic 5.72 (x86 et x64)
Re: TextBox ou equivalent...
Une solution multi-platforme juste au cas :
http://www.purebasic.fr/french/viewtopi ... =6&t=10128
A+
Guimauve
http://www.purebasic.fr/french/viewtopi ... =6&t=10128
A+
Guimauve
Re: TextBox ou equivalent...
Intéressant, à mettre dans PB Contributions !
PureBasic 6.03 - Windows 11 22H2 (64 bits)