topic
stringlengths
1
63
text
stringlengths
1
577k
get combobox
[quote="Antonio Linares":2te4ml8h]Please check if you ear the beep: oCombo:bChange = { || If( oCombo:oGet:oGet:TypeOut, ( MsgBeep(), oCombo:oWnd:GoNextCtrl( oCombo:hWnd ) ),) }[/quote:2te4ml8h] No Beep. Not call function.
get combobox
Any Solution ???
get combobox
This command line bellow, call alert function, it´s ok. But... don´t execute GoNextCtrl() oCombo:bChange = { || If( oCombo:oGet:oGet:TypeOut, ( alert("test"), oCombo:oWnd:GoNextCtrl( oCombo:hWnd ) ),) } Any Solution?
get combobox
press ENTER key, do not execute GoNextCtrl too. for solve this problem, I changed Method GetKeyChar() in TComboBox Class. [code=fw:1lc9z944]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> GetKeyChar<span style="color: #000000;">&#40;</span> nKey <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TComboBox<br /><br />   <span style="color: #00C800;">local</span> nAt, cText<br />   <span style="color: #00C800;">local</span> cSearch<br /><br />   <span style="color: #00C800;">if</span> nKey == VK_RETURN <span style="color: #B900B9;">//   CHANGED HERE BY SHARK</span><br />      ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">GoNextCtrl</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">return</span> nKey <span style="color: #B900B9;">// changed here by shark</span><br />   elseif <span style="color: #000000;">&#40;</span> nKey == VK_TAB .and. ! GetKeyState<span style="color: #000000;">&#40;</span> VK_SHIFT <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">GoNextCtrl</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">return</span> <span style="color: #000000;">0</span><br />   <span style="color: #00C800;">else</span><br />      <span style="color: #00C800;">if</span> nKey == VK_TAB .and. GetKeyState<span style="color: #000000;">&#40;</span> VK_SHIFT <span style="color: #000000;">&#41;</span><br />         ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">GoPrevCtrl</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span><br />         <span style="color: #00C800;">return</span> <span style="color: #000000;">0</span><br />      <span style="color: #00C800;">endif</span><br />   <span style="color: #00C800;">endif</span></div>[/code:1lc9z944]
get control 3D from resource
hi to all, I have this problem by Pelles C I make this dialog: [img:os6lwdaa]http&#58;//sm&#46;uploads&#46;im/t/8RWTJ&#46;jpg[/img:os6lwdaa] but when I show it in my exe it become: [img:os6lwdaa]http&#58;//sj&#46;uploads&#46;im/t/Zhwxc&#46;jpg[/img:os6lwdaa] with 3D border, why? thank you Damiano
get control 3D from resource
Missing resource manifest ? Saludos
get en cajas de dialogos
ESTIMADOS COLEGAS TENGO EL SIGUIENTE INCONVENIENTE EN ESTE EJEMPLO: REDEFINE COD ID 108 OF CINV ; VALID ( VE_RPTO( lDevuelve, Cod ), ; IIF ( lDevuelve = .T., !Emphy(Cod), Cod == Nil ) ) me funciona bien, si el cod esta en blanco no avanza, si lo busca en la base de datos existe lo rechza blanqueando para evitar duplicidad de datos. ahora bien cuando lo blanquea y regresa para introducir el cod nuevamente por medio del GET. Si el cod es de 20 caracteres y el dato anterior tenia 9 asi lo blanquee comienza en el caracter 10 y tengo que retroceder de forma manual, como hago para que comienze el GET en el caracter numero 1 automaticamente
get en cajas de dialogos
Prueba con algo asi: REDFINE OCOD VAR COD ID 108 OD CINV; ...... PONER AL PRINCIPIO COD:=SPACE(20),OCOD:SETPOS(1),OCOD:REFRESH()
get en degrade...?
Amigos del foro como raro yo molestando... alguien sabe si puedo hacer un get que tenga el degrade como lo hacen en esta pagina web? <!-- m --><a class="postlink" href="http://www.tutopia.com/default.htm">http://www.tutopia.com/default.htm</a><!-- m --> pta: En la parte donde te logueas... de antemano gracias
get en degrade...?
Leandro Creo que esta clase de Vagner Wirts es lo que andas buscando. [img:257f30ux]http&#58;//img241&#46;imageshack&#46;us/img241/206/getdegradowg9&#46;jpg[/img:257f30ux] Pero, ignoro que este pasando, he intentado varias veces subirlo al HyperUpLoad y nomas no quiere, deja intento mas tarde y si no, te la mando a tu correo. Saludos
get en degrade...?
[quote="Raymundo Islas M.":377r9eqm]Leandro Creo que esta clase de Vagner Wirts es lo que andas buscando. [img:377r9eqm]http&#58;//img241&#46;imageshack&#46;us/img241/206/getdegradowg9&#46;jpg[/img:377r9eqm] Pero, ignoro que este pasando, he intentado varias veces subirlo al HyperUpLoad y nomas no quiere, deja intento mas tarde y si no, te la mando a tu correo. Saludos[/quote:377r9eqm] USTED PUEDES COMPRAR LA NUEVA VERSION DE LA VLIB.LIB DIRECTAMENTE CON VAGNER WIRTS. Email: <!-- e --><a href="mailto:vwirts@ig.com.br">vwirts@ig.com.br</a><!-- e --> Saludos.
get hBitmap from Image
hi, instead of ILADDICON()*** i like to use ILADD()*** for Imagelist *** in c:\fwh\source\winapi\imagelis.c but i must get hBitmap from File [code=fw:abnpcuvf]<div class="fw" id="{CB}" style="font-family: monospace;">hBitmap = <span style="color: #000000;">&#40;</span> HBITMAP <span style="color: #000000;">&#41;</span> LoadImage<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">NULL</span>, lpImageName, IMAGE_BITMAP, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, LR_LOADFROMFILE | LR_DEFAULTCOLOR <span style="color: #000000;">&#41;</span>;</div>[/code:abnpcuvf] is there any Fivewin Function or do i have to write my own HB_FUNC() <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> who can help please
get hBitmap from Image
Hi, Jimmy ! FW_ReadImage(NIL, xPt) //xPt - path+file or so hBmp:=oWnd:ReadImage(xPt)[1]
get hBitmap from Image
hi, [quote="Natter":38xd5zzy]hBmp:=oWnd:ReadImage(xPt)[1][/quote:38xd5zzy] YES thx, now i can load IMAGE into Imagelist <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> after > 100 Image it begin to fail ... RAM is going to Limit (32 Bit OS) --- it take a long Time to load about 800 Image from some Kb up 2.5 MB (!) to reduce RAM i need to "resize" Image to 256 x 256, how under FiveWin <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> ( have hBitmap ) when have use ::oWnd:ReadImage() how to "destroy" Image <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> p.s. "where" to read about "ReadImage" as i did not found in c:\fwh\manual\
get hBitmap from Image
I have to save a lot of photos (jpg) to the server. From 100 to 500 pieces daily. Each weighs 5-6 Mg. There are not enough resources to store such volumes. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> I have a very small utility (with a command line) with which I compress each file (without loss of quality) by about 3-4 times. Maybe go this way ? You can make miniatures. I don 't know about "destroy Image " The FW_readImage() function is in c:\fwh\Source\Function\imgtxtio.prg
get hBitmap from Image
FW_ReadImage( ; [oWnd / hDC ] ; //or NIL uImage, ; [aSize], ; // { w, h } for resizing [lGDIP] ) // Use GDI+ or not. Default .F. --> aImage. uImage: Can be any file name, resource name, image buffer, hBitmap, hIcon, aShape Array, Image URL on the Web, Symbol aImage { hBitmap (GDI ) or pImage( GDI+ ), hPalette, width, height, lHasAlphaChannel, cSourceName, IsFromResource, "BITMAP/PIMAGE", // If GDI+, "PIMAGE" nZeroZeroClr, ImageType (BMP/JPG/PNG, etc) } Destroy: PalBmpFree( aImage )
get hBitmap from Image
hi, i´m using [code=fw:2c5l867a]<div class="fw" id="{CB}" style="font-family: monospace;">   aBitmaps := ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">ReadImage</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cPath</span> + cFile <span style="color: #000000;">&#41;</span></div>[/code:2c5l867a] not FW_ReadImage() "direct" --- i have not found any Information about FW_ReadImage or ReadImage in Help File thx for post Information --- i have test a lot more Image and all seems to "work" , only "one" Image crash hole App but i have another Question when using 2nd Parameter Image (re)Size of o:ReadImage() [code=fw:2c5l867a]<div class="fw" id="{CB}" style="font-family: monospace;">   aBitmaps := ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">ReadImage</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cPath</span> + cFile,<span style="color: #000000;">&#123;</span><span style="color: #000000;">256</span>,<span style="color: #000000;">256</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span></div>[/code:2c5l867a] all 3 does "work" but 3rd Bitmap are not show correct ... perhaps Imagelist ... when not use 2nd Parameter all 3 will show Image but only upper left 256 x 256 any Idea <!-- s:idea: --><img src="{SMILIES_PATH}/icon_idea.gif" alt=":idea:" title="Idea" /><!-- s:idea: --> [quote:2c5l867a]{2131038683, 0, 256, 205, .T., c:\fwh\0\Listview\TGrid_Style_Icon.png, .F., BITMAP, NIL, PNG} {-200993784, 0, 256, 205, .T., c:\fwh\0\Listview\TGrid_Style_Report.png, .F., BITMAP, NIL, PNG} {805638570, 0, 58, 256, .T., c:\fwh\0\Listview\TGrid_Style_Thumbs.png, .F., BITMAP, NIL, PNG}[/quote:2c5l867a] p.s. Image are from this Thread so you can download them [url:2c5l867a]https&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=42331[/url:2c5l867a]
get hBitmap from Image
[quote:3av9ti67]only "one" Image crash hole App [/quote:3av9ti67] Can you please send that image file?
get hBitmap from Image
[quote:gse9lopx]i´m using Code: aBitmaps := ::oWnd:ReadImage( ::cPath + cFile ) not FW_ReadImage() "direct" [/quote:gse9lopx] Both are same. Had you spent a little time to open window.prg, you would have noticed: [code=fw:gse9lopx]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> ReadImage<span style="color: #000000;">&#40;</span> uSource, aSize, lGdipImage <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">INLINE</span> FW_ReadImage<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">Self</span>, uSource, aSize, lGDIPImage <span style="color: #000000;">&#41;</span></div>[/code:gse9lopx]
get hBitmap from Image
[quote="Jimmy":pe06c98g]hi, i´m using [code=fw:pe06c98g]<div class="fw" id="{CB}" style="font-family: monospace;">   aBitmaps := ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">ReadImage</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cPath</span> + cFile <span style="color: #000000;">&#41;</span></div>[/code:pe06c98g] not FW_ReadImage() "direct"[/quote:pe06c98g] This is working fine here too: #include "Fivewin.ch" [code=fw:pe06c98g]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> oWnd<br /><br />&nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /><br />&nbsp; &nbsp; <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">ReadImage</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"DSL_Verfügbarkeit2.JPG"</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span></div>[/code:pe06c98g]
get hBitmap from Image
hi Enrico, you are right that it work with your CODE. i do get Filename from DIRECTORY() and it have a German "Umlaut ü" that´s why i ask for UNICODE, ANSI or OEM from DIRECTORY() to use with ShellExecute()
get hBitmap from Image
Try setting the correct codepage. Have a look at this thread for some ideas: [url:3qk5785x]https&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?t=40243[/url:3qk5785x]
get hBitmap from Image
hi, i try to REQUEST all Codepage and Language [code=fw:qru0tkun]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br />REQUEST HB_LANG_ES<br />REQUEST HB_LANG_EN<br />REQUEST HB_LANG_FR<br />REQUEST HB_LANG_PT<br />REQUEST HB_LANG_DEWIN<br />REQUEST HB_LANG_RUWIN<br />REQUEST HB_LANG_IT<br />REQUEST HB_LANG_PLWIN<br />REQUEST HB_LANG_EU<br />REQUEST HB_LANG_HR852<br />REQUEST HB_LANG_SLWIN<br />REQUEST HB_LANG_CSWIN<br /><br />REQUEST HB_CODEPAGE_BG866<br />REQUEST HB_CODEPAGE_BGISO<br />REQUEST HB_CODEPAGE_BGMIK<br />REQUEST HB_CODEPAGE_BGWIN<br />REQUEST HB_CODEPAGE_CS852<br />REQUEST HB_CODEPAGE_CS852C                                            <span style="color: #B900B9;">// not in Grid</span><br />REQUEST HB_CODEPAGE_CSISO<br />REQUEST HB_CODEPAGE_CSKAMC                                            <span style="color: #B900B9;">// not in Grid</span><br />REQUEST HB_CODEPAGE_CSWIN<br />REQUEST HB_CODEPAGE_DE850<br />REQUEST HB_CODEPAGE_DE850M                                            <span style="color: #B900B9;">// not in Grid</span><br />REQUEST HB_CODEPAGE_DEISO                                             <span style="color: #B900B9;">// not in Grid</span><br />REQUEST HB_CODEPAGE_DEWIN<br />REQUEST HB_CODEPAGE_DK865                                             <span style="color: #B900B9;">// not in Grid</span><br />REQUEST HB_CODEPAGE_EL437                                             <span style="color: #B900B9;">// not in Grid</span><br />REQUEST HB_CODEPAGE_EL737<br />REQUEST HB_CODEPAGE_ELISO                                             <span style="color: #B900B9;">// not in Grid</span><br />REQUEST HB_CODEPAGE_ELWIN<br />REQUEST HB_CODEPAGE_EN<br />REQUEST HB_CODEPAGE_ES850<br />REQUEST HB_CODEPAGE_ES850C                                            <span style="color: #B900B9;">// not in Grid</span><br />REQUEST HB_CODEPAGE_ES850M                                            <span style="color: #B900B9;">// not in Grid</span><br />REQUEST HB_CODEPAGE_ESISO                                             <span style="color: #B900B9;">// not in Grid</span><br />REQUEST HB_CODEPAGE_ESMWIN<br />REQUEST HB_CODEPAGE_ESWIN<br />REQUEST HB_CODEPAGE_FI850                                             <span style="color: #B900B9;">// not in Grid</span><br />REQUEST HB_CODEPAGE_FR850<br />REQUEST HB_CODEPAGE_FR850C                                            <span style="color: #B900B9;">// not in Grid</span><br />REQUEST HB_CODEPAGE_FR850M                                            <span style="color: #B900B9;">// not in Grid</span><br />REQUEST HB_CODEPAGE_FRISO                                             <span style="color: #B900B9;">// not in Grid</span><br />REQUEST HB_CODEPAGE_FRWIN                                             <span style="color: #B900B9;">// not in Grid</span><br />REQUEST HB_CODEPAGE_HE862                                             <span style="color: #B900B9;">// not in Grid</span><br />REQUEST HB_CODEPAGE_HEWIN                                             <span style="color: #B900B9;">// not in Grid</span><br />REQUEST HB_CODEPAGE_HR646<br />REQUEST HB_CODEPAGE_HR852<br />REQUEST HB_CODEPAGE_HRISO                                             <span style="color: #B900B9;">// not in Grid</span><br />REQUEST HB_CODEPAGE_HRWIN<br />REQUEST HB_CODEPAGE_HU852<br />REQUEST HB_CODEPAGE_HU852C<br />REQUEST HB_CODEPAGE_HUISO<br />REQUEST HB_CODEPAGE_HUWIN<br />REQUEST HB_CODEPAGE_IS850                                             <span style="color: #B900B9;">// not in Grid</span><br />REQUEST HB_CODEPAGE_IS861                                             <span style="color: #B900B9;">// not in Grid</span><br />REQUEST HB_CODEPAGE_IT437<br />REQUEST HB_CODEPAGE_IT850<br />REQUEST HB_CODEPAGE_IT850M                                            <span style="color: #B900B9;">// not in Grid</span><br />REQUEST HB_CODEPAGE_ITISB<br />REQUEST HB_CODEPAGE_ITISO<br />REQUEST HB_CODEPAGE_ITWIN                                             <span style="color: #B900B9;">// not in Grid</span><br />REQUEST HB_CODEPAGE_LT775                                             <span style="color: #B900B9;">// not in Grid</span><br />REQUEST HB_CODEPAGE_LTWIN<br />REQUEST HB_CODEPAGE_NL850                                             <span style="color: #B900B9;">// not in Grid</span><br />REQUEST HB_CODEPAGE_NL850M                                            <span style="color: #B900B9;">// not in Grid</span><br />REQUEST HB_CODEPAGE_NO865                                             <span style="color: #B900B9;">// not in Grid</span><br />REQUEST HB_CODEPAGE_PL852<br />REQUEST HB_CODEPAGE_PLISO<br />REQUEST HB_CODEPAGE_PLMAZ<br />REQUEST HB_CODEPAGE_PLWIN<br />REQUEST HB_CODEPAGE_PT850<br />REQUEST HB_CODEPAGE_PT860                                             <span style="color: #B900B9;">// not in Grid</span><br />REQUEST HB_CODEPAGE_PTISO<br />REQUEST HB_CODEPAGE_RO852                                             <span style="color: #B900B9;">// not in Grid</span><br />REQUEST HB_CODEPAGE_ROISO                                             <span style="color: #B900B9;">// not in Grid</span><br />REQUEST HB_CODEPAGE_ROWIN                                             <span style="color: #B900B9;">// not in Grid</span><br />REQUEST HB_CODEPAGE_RU1251<br />REQUEST HB_CODEPAGE_RU866<br />REQUEST HB_CODEPAGE_RUISO                                             <span style="color: #B900B9;">// not in Grid</span><br />REQUEST HB_CODEPAGE_RUKOI8<br />REQUEST HB_CODEPAGE_SK852<br />REQUEST HB_CODEPAGE_SK852C                                            <span style="color: #B900B9;">// not in Grid</span><br />REQUEST HB_CODEPAGE_SKISO<br />REQUEST HB_CODEPAGE_SKKAMC                                            <span style="color: #B900B9;">// not in Grid</span><br />REQUEST HB_CODEPAGE_SKWIN<br />REQUEST HB_CODEPAGE_SL646                                             <span style="color: #B900B9;">// not in Grid</span><br />REQUEST HB_CODEPAGE_SL852<br />REQUEST HB_CODEPAGE_SLISO<br />REQUEST HB_CODEPAGE_SLWIN<br />REQUEST HB_CODEPAGE_SR646                                             <span style="color: #B900B9;">// not in Grid</span><br />REQUEST HB_CODEPAGE_SR646C                                            <span style="color: #B900B9;">// not in Grid</span><br />REQUEST HB_CODEPAGE_SRWIN<br />REQUEST HB_CODEPAGE_SV437C<br />REQUEST HB_CODEPAGE_SV850<br />REQUEST HB_CODEPAGE_SV850M                                            <span style="color: #B900B9;">// not in Grid</span><br />REQUEST HB_CODEPAGE_SVISO<br />REQUEST HB_CODEPAGE_SVWIN<br />REQUEST HB_CODEPAGE_TR857<br />REQUEST HB_CODEPAGE_TRISO                                             <span style="color: #B900B9;">// not in Grid</span><br />REQUEST HB_CODEPAGE_TRWIN<br />REQUEST HB_CODEPAGE_UA1125                                            <span style="color: #B900B9;">// not in Grid</span><br />REQUEST HB_CODEPAGE_UA1251<br />REQUEST HB_CODEPAGE_UA866<br />REQUEST HB_CODEPAGE_UAKOI8<br />REQUEST HB_CODEPAGE_UTF16LE                                           <span style="color: #B900B9;">// not in Grid</span><br />REQUEST HB_CODEPAGE_UTF8<br />REQUEST HB_CODEPAGE_UTF8EX<br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">LOCAL</span> oWnd<br /><span style="color: #00C800;">LOCAL</span> aDir<br /><span style="color: #00C800;">LOCAL</span> cFile<br /><span style="color: #00C800;">LOCAL</span> cLanguage := <span style="color: #ff0000;">"DEWIN"</span><br /><span style="color: #00C800;">LOCAL</span> cCodepage := <span style="color: #ff0000;">"DEWIN"</span><br /><br />   FW_SetUnicode<span style="color: #000000;">&#40;</span> .t. <span style="color: #000000;">&#41;</span><br />   hb_LangSelect<span style="color: #000000;">&#40;</span> cLanguage <span style="color: #000000;">&#41;</span><br />   hb_CDPSELECT<span style="color: #000000;">&#40;</span> cCodepage <span style="color: #000000;">&#41;</span><br />   HB_SETCODEPAGE<span style="color: #000000;">&#40;</span> cCodepage <span style="color: #000000;">&#41;</span><br /><br />   aDir := DIRECTORY<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"DSL*.*"</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span>hb_valToExp<span style="color: #000000;">&#40;</span>aDir<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />   cFile := aDir<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><br />   <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span>cFile<span style="color: #000000;">&#41;</span><br /><br />      <span style="color: #0000ff;">DEFINE</span>   <span style="color: #0000ff;">WINDOW</span> oWnd<br />      <span style="color: #0000ff;">ACTIVATE</span>   <span style="color: #0000ff;">WINDOW</span> oWnd;<br />         <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span>  <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">ReadImage</span>  <span style="color: #000000;">&#40;</span> cFile<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span></div>[/code:qru0tkun] in 1st and 2nd MsgInfo() i can see "Umlaut ü" but last MsgInfo() say "ARRAY" and show a EMPTY Windows ... <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> Question : which Codepage and Language Setting are need for 1.) DIRECTORY() 2.) oWnd:ReadImage() p.s. it does not work with every Image, just rename it and include German "Umlaut" like "ü", "ä" or "ö"
get hBitmap from Image
hi, i have now try to include hb_CDPSELECT() so i can load File with "Umlaut ü" [code=fw:10bnjvm6]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">LOCAL</span> cLangCode := <span style="color: #ff0000;">"DE"</span><br /><span style="color: #00C800;">LOCAL</span> cCodepage := <span style="color: #ff0000;">"DEWIN"</span><br />    hb_LangSelect<span style="color: #000000;">&#40;</span> cLangCode <span style="color: #000000;">&#41;</span><br />    hb_CDPSELECT<span style="color: #000000;">&#40;</span>  cCodepage <span style="color: #000000;">&#41;</span></div>[/code:10bnjvm6] but than my Imagelist produce wrong "System-Icon" ... this is without hb_CDPSELECT() [img:10bnjvm6]https&#58;//i&#46;postimg&#46;cc/g2LyZ3Y1/Imagelist-OK&#46;jpg[/img:10bnjvm6] this with hb_CDPSELECT() [img:10bnjvm6]https&#58;//i&#46;postimg&#46;cc/g0dw2hrV/Imagelist-Codepage&#46;jpg[/img:10bnjvm6] you can see "wrong" Icon which are placed to wrong Filename what i´m doing wrong <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
get hBitmap from Image
I don't understand. Can I have a complete sample of the problem?
get hBitmap from Image
hi Enrico, [quote="Enrico Maria Giordano":3qdoi5pz]I don't understand. Can I have a complete sample of the problem?[/quote:3qdoi5pz] it is the Demo for CLASS TGrid() on which i´m working i got it almost working but not finish to release it yet i prefer to work in 32 Bit Environment while my favorite Editor is only 16 Bit ... i have to use NPP++ (Notepad ++) under 64 Bit but i can not do what my ETP Editor can do so i do only "small" work like edit HB_FUNC() and change Parameter Type to use with 64 Bit i think next Week i can release CLASS TGrid() Demo Source when have check 64 Bit Environment p.s. i got Solution for "wrong" Icon (Size)
get is not in front of saying
I can not find the say staements located in the same row of get rows ? Any explaination ??? @ 1, 1 SAY "&Account No." OF oDlg @ 1, 9 SAY ":" OF oDlg @ 1, 10 GET V_CU_ACCT OF oDlg @ 2, 1 SAY "&Name" OF oDlg @ 2, 9 SAY ":" OF oDlg @ 2, 10 GET V_CU_NAME OF oDlg
get is not in front of saying
I don't know how I can help you, but this is a typical problem with dialogs controls when created from code. It has to do with the current font, and if the font is proportional (e.g. Ms Sans Serif or Arial), the controls are no more like it used to be in MS-DOS because of the width (mainly) of the strings (SAYs or GETs). One simple solution is to use the clause PIXELS for each SAY and GET, combined with the SIZE of these controls and finally, until you succeed, assign a color for all SAYs (GETs are having a frame so you can see how much space is occupied on dialog). An example: [code:3so2hmrc] cGet &#58;= "Hello there " DEFINE DIALOG odlg FROM 0,0 to 150,200 PIXELS @3,5 SAY oSay PROMPT "Type something&#58;" OF odlg SIZE 85, 10 PIXELS COLOR CLR_YELLOW, CLR_GREEN @3,85 GET oGet VAR cGet OF odlg SIZE 100,12 PIXELS COLOR CLR_RED, CLR_WHITE ACTIVATE DIALOG odlg CENTERED [/code:3so2hmrc] I hope that this will put you to the right direction, and if not, I'm sorry to waste your time <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) --> Kind regards Evans
get is not in front of saying
Ehab, rows positions are different for each kind of control, just to avoid that they overlap. i.e.: @ 1, 1 GET ... @ 2, 1 GET ... the second GET will not be placed over the first one. As the controls have different heights, then sometimes they are shown in different positions. To fix it, you may use decimals numbers: @ 1.4, 1 SAY ... @ 1, 1 GET ...
get is not in front of saying
Antonio, Thanks for the input, however, I have aleady discovered that each kind of control has different position in screen, even if we use the same numbers. For example a button @1.0, 1.0 does not correspond with a get @1.0, 1.0 Why is all this happening? On a personal work level, I follow the approach of using PIXELS, thus, elimintating the problem, but I still need testing with dialogs created from code.... I though that all the coordinates of the controls are based upon the dialog's font, but alas... what can we do <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
get is not in front of saying
You may try to play with constant.ch. EMG
get is not in front of saying
Can you give me clue about what will be changed in constant.ch ?
get is not in front of saying
As an example, try to change: #define SAY_CHARPIX_H 15 #define SAY_CHARPIX_W 6 and then recompile say.prg. EMG
get is not in front of saying
Evans, > Why is all this happening? Because controls have different heights and we don't want them to overlapp if you do, i.e.: @ 1, 1 BUTTON ... @ 2, 1 BUTTON ... You don't want the second button to be over the first one.
get memo ->activate a button
I use a get memo to read a txt file and I have a button to exit I wish the final user read all file.txt and when the cursor is on last row og the get then the button ( to go next) is enable() how I can make it ?
get memo ->activate a button
See this example and modify it for your case. [code=fw:sia8nszr]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> oGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">17</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> wTEXTO MULTILINE <span style="color: #0000ff;">ID</span> <span style="color: #000000;">217</span> <span style="color: #0000ff;">OF</span> oDlg &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">COLOR</span> CLR_BLUE, CLR_WHITE <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">FONT</span> oFont &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">WHEN</span><span style="color: #000000;">&#40;</span> lLigaCombo <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span><span style="color: #000000;">&#40;</span> SB_LimitText<span style="color: #000000;">&#40;</span> oGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">17</span><span style="color: #000000;">&#93;</span>, oSay, oTransmite <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// By AleSB</span><br /><br /><span style="color: #00C800;">FUNCTION</span> SB_LimitText<span style="color: #000000;">&#40;</span> oGet, oSay, oTransmite <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">///////////////////////////////////////////////////////////////////////////</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Autor..........: Peguei no Forum FiveWin Brasil &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Modificaçoes...: Ale SB - Soft Camus &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Descricao......: Restringe o Tamanho de um Texto. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Parametros ==> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// &nbsp;- oGet &nbsp;: oBjeto Get. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// &nbsp;- nSize : Tamanho que deve ter o Texto. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Dependencias ==> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Retorno ==> nil &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">///////////////////////////////////////////////////////////////////////////</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nTam, nSize<br />&nbsp; <br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> nSize := <span style="color: #000000;">999</span> &nbsp;<span style="color: #B900B9;">// maximo ‚ 1000 caracteres</span><br /><br />&nbsp; &nbsp;nTam := LEN<span style="color: #000000;">&#40;</span> ALLTRIM<span style="color: #000000;">&#40;</span> oGet:<span style="color: #000000;">cText</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> nTam > nSize<br /><br />&nbsp; &nbsp; &nbsp; oGet:<span style="color: #000000;">cText</span> := <span style="color: #0000ff;">Substr</span><span style="color: #000000;">&#40;</span>oGet:<span style="color: #000000;">cText</span>, <span style="color: #000000;">1</span>, nTam<span style="color: #000000;">-1</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;oSay:<span style="color: #000000;">VarPut</span><span style="color: #000000;">&#40;</span> Strzero<span style="color: #000000;">&#40;</span> nTam, <span style="color: #000000;">3</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oSay:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> nTam <= <span style="color: #000000;">14</span> <span style="color: #B900B9;">// caracteres</span><br /><br />&nbsp; &nbsp; &nbsp; lLigaBotao := .F.<br /><br />&nbsp; &nbsp; &nbsp; oTransmite:<span style="color: #000000;">Disable</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oTransmite:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br /><br />&nbsp; &nbsp; &nbsp; lLigaBotao := .T.<br /><br />&nbsp; &nbsp; &nbsp; oTransmite:<span style="color: #000000;">Enable</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oTransmite:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:sia8nszr]
get memo ->activate a button
Thanks I'll try It I saw on web on a form you write and there Is a text where Is show ed the number characters you can use of you write with a Number of characters up the the limit the form disabled the button
get multiline y bitmap de fondo
Hola, Tengo un get multiline y quisiera saber su si puede poner una imagen de fondo. [code=fw:3it8zmuo]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> oNotas <span style="color: #0000ff;">VAR</span> cNotas MULTILINE ;<br />&nbsp; &nbsp;<span style="color: #0000ff;">ID</span> ID_GETNOTAS <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp;COLORS CLR_BLUE, CLR_LIGHTYELLOW ;<br />&nbsp;</div>[/code:3it8zmuo]
get no disable y tampoco editable
Hola. Necesito que un get solo muestre el contenido (muestra un "memo") y no quiero que pueda ser editable, pero no quiero desactivarlo porque no me deja ver todo el contenido (no se puede usar el scroll). Como lo hago?
get no disable y tampoco editable
Gustavo, @ nRow, nCol GET ... MEMO READONLY or REDEFINE GET ... MEMO READONLY
get no disable y tampoco editable
Mira lo que pasa y al usar el SCROLL va mostrado la misma linea siempre. [url:2zgsfdhm]https&#58;//ibb&#46;co/NSFZN39[/url:2zgsfdhm] y esto es con READONLY [url:2zgsfdhm]https&#58;//ibb&#46;co/jDc3jfh[/url:2zgsfdhm]
get no disable y tampoco editable
// Siempre ponga el código y el .RC para testes, porfa. // \SAMPLES\SAMPLES.PRG [code=fw:1u6riqov]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">/*<br /><!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=33496&p=197679#p197636">viewtopic.php?f=3&t=33496&p=197679#p197636</a><!-- l --><br /><br />G. N. Rao.<br />Hyderabad, India<br /><br />nageswaragunupudi <br />*/</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br />REQUEST DBFCDX<br /><br /><span style="color: #00C800;">static</span> nLastTopic := <span style="color: #000000;">33507</span> &nbsp;<span style="color: #B900B9;">// rage of topics</span><br /><span style="color: #00C800;">static</span> nFirstopic := <span style="color: #000000;">33400</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;SET DATE BRITISH<br />&nbsp; &nbsp;SET CENTURY <span style="color: #0000ff;">ON</span><br />&nbsp; &nbsp;SET DELETED <span style="color: #0000ff;">ON</span><br />&nbsp; &nbsp;RDDSETDEFAULT<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"DBFCDX"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;DBCREATE<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"SAMPLES.DBF"</span>, <span style="color: #000000;">&#123;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"TOPICNO"</span>, &nbsp; <span style="color: #ff0000;">'N'</span>, &nbsp;<span style="color: #000000;">6</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"TOPIC"</span>, &nbsp; &nbsp; <span style="color: #ff0000;">'C'</span>, <span style="color: #000000;">60</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"AUTHOR"</span>, &nbsp; &nbsp;<span style="color: #ff0000;">'C'</span>, <span style="color: #000000;">40</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"DATE"</span>, &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">'D'</span>, &nbsp;<span style="color: #000000;">8</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"CODE"</span>, &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">'M'</span>, <span style="color: #000000;">10</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span> &nbsp;<span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"DBFCDX"</span>, .T., <span style="color: #ff0000;">"DB"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;FW_CdxCreate<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;CLOSE DB<br /><br />&nbsp; &nbsp;USE SAMPLES EXCLUSIVE VIA <span style="color: #ff0000;">"DBFCDX"</span><br /><br />&nbsp; &nbsp;ForumSamples<span style="color: #000000;">&#40;</span> nLastTopic, nFirsTopic <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;BrowseSamples<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> BrowseSamples<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oDlg, oFont, oBold, oMono, oGet, oBrw<br /><br />&nbsp; &nbsp;SET ORDER <span style="color: #0000ff;">TO</span> TAG TOPICNO<br />&nbsp; &nbsp;GO TOP<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Segoe UI"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-14</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"TAHOMA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-18</span> BOLD<br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oMono <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Lucida Console"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-12</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">900</span>,<span style="color: #000000;">700</span> <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL <span style="color: #0000ff;">FONT</span> oFont ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"SAMPLES IN FWH FORUMS"</span><br /><br />&nbsp; &nbsp;@ &nbsp;<span style="color: #000000;">90</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">400</span>,<span style="color: #000000;">-20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; DATASOURCE <span style="color: #ff0000;">"SAMPLES"</span> ;<br />&nbsp; &nbsp; &nbsp; COLUMNS <span style="color: #ff0000;">"TOPICNO"</span>, <span style="color: #ff0000;">"DATE"</span>, <span style="color: #ff0000;">"AUTHOR"</span> ;<br />&nbsp; &nbsp; &nbsp; AUTOSORT ;<br />&nbsp; &nbsp; &nbsp; LINES NOBORDER<br /><br />&nbsp; &nbsp;WITH OBJECT oBrw<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nMarqueeStyle</span> := MARQSTYLE_HIGHLROWRC<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">bChange</span> &nbsp; &nbsp; &nbsp; := <span style="color: #000000;">&#123;</span> || oDlg:<span style="color: #0000ff;">Update</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">lIncrFilter</span> &nbsp; := .t.<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">bSeek</span> &nbsp; &nbsp; &nbsp; &nbsp; := <span style="color: #000000;">&#123;</span> |c| <span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> BrwFilter<span style="color: #000000;">&#40;</span> c <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;END<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">20</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">SAY</span> TRIM<span style="color: #000000;">&#40;</span> SAMPLES->TOPIC <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">860</span>,<span style="color: #000000;">30</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">CENTER</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">UPDATE</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">60</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Filter containing all words any where"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">300</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">60</span>,<span style="color: #000000;">340</span> <span style="color: #0000ff;">SAY</span> oBrw:<span style="color: #000000;">oSeek</span> <span style="color: #0000ff;">PROMPT</span> oBrw:<span style="color: #000000;">cSeek</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">540</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">COLOR</span> CLR_HRED,CLR_YELLOW<br /><br />&nbsp; &nbsp;@ &nbsp;<span style="color: #000000;">90</span>,<span style="color: #000000;">420</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"CODE"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">460</span>,<span style="color: #000000;">30</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">CENTER</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">COLOR</span> CLR_BLACK, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">231</span>, <span style="color: #000000;">242</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">120</span>,<span style="color: #000000;">420</span> <span style="color: #0000ff;">GET</span> oGet <span style="color: #0000ff;">VAR</span> SAMPLES->CODE <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">460</span>,<span style="color: #000000;">540</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; MEMO READONLY <span style="color: #0000ff;">FONT</span> oMono <span style="color: #0000ff;">UPDATE</span><br /><br />&nbsp; &nbsp;oDlg:<span style="color: #000000;">bPainted</span> := <span style="color: #000000;">&#123;</span> || oDlg:<span style="color: #000000;">Box</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">59</span>,<span style="color: #000000;">339</span>,<span style="color: #000000;">81</span>,<span style="color: #000000;">881</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont, oMono, oBold<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> BrwFilter<span style="color: #000000;">&#40;</span> c <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> lFound &nbsp; := .t.<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aTokens<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cSaveFilter := DBFILTER<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nSaveRec &nbsp; &nbsp;:= RECNO<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cFilter &nbsp; &nbsp; := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> Empty<span style="color: #000000;">&#40;</span> c <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> .t.<br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;c &nbsp;:= UPPER<span style="color: #000000;">&#40;</span> c <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;aTokens &nbsp;:= HB_ATokens<span style="color: #000000;">&#40;</span> c <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> each c in aTokens<br />&nbsp; &nbsp; &nbsp; AAdd<span style="color: #000000;">&#40;</span> cFilter, <span style="color: #ff0000;">"'"</span> + c + <span style="color: #ff0000;">"' $ UPPER( DBRECORDINFO( 9 ) )"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">next</span><br /><br />&nbsp; &nbsp;cFilter &nbsp;:= FW_ArrayAsList<span style="color: #000000;">&#40;</span> cFilter, <span style="color: #ff0000;">" .AND. "</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;SET FILTER <span style="color: #0000ff;">TO</span> &cFilter<br />&nbsp; &nbsp;GO TOP<br />&nbsp; &nbsp;lFound &nbsp; := <span style="color: #000000;">&#40;</span> OrdKeyCount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> lFound<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> ForumSamples<span style="color: #000000;">&#40;</span> nTopic, nLast <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cTopic, cUrl, cPageURL, cUser, cText, cCode, nPage, nPages, n, cLeft, dDate<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> nTopic &nbsp; := <span style="color: #000000;">33507</span>, nLast := nTopic - <span style="color: #000000;">50</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> nTopic := nTopic <span style="color: #0000ff;">to</span> nLast step <span style="color: #000000;">-1</span><br /><br />&nbsp; &nbsp; &nbsp; nPage &nbsp; &nbsp;:= <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; cUrl &nbsp;:= TopicNoToURL<span style="color: #000000;">&#40;</span> nTopic <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">do</span> <span style="color: #00C800;">while</span> .t.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cPageURL := cUrl + <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nPage > <span style="color: #000000;">1</span>, <span style="color: #ff0000;">"&start="</span> + LTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> nPage * <span style="color: #000000;">15</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MsgRun<span style="color: #000000;">&#40;</span> cPageURL, <span style="color: #ff0000;">"READING FORUM PAGE"</span>, <span style="color: #000000;">&#123;</span> || ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cText := WebPageContents<span style="color: #000000;">&#40;</span> cPageUrl, .t. <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> nPage == <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nPages &nbsp; := PageCount<span style="color: #000000;">&#40;</span> cText <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cTopic &nbsp; := textbetween<span style="color: #000000;">&#40;</span> ctext, <span style="color: #ff0000;">"<h2>"</span>, <span style="color: #ff0000;">"</h2>"</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cTopic &nbsp; := textbetween<span style="color: #000000;">&#40;</span> cTopic, <span style="color: #ff0000;">">"</span>, <span style="color: #ff0000;">"</a>"</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;n &nbsp; &nbsp; := <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">do</span> <span style="color: #00C800;">while</span> !Empty<span style="color: #000000;">&#40;</span> cCode := TextBetween<span style="color: #000000;">&#40;</span> cText, <span style="color: #ff0000;">"<code>"</span>, <span style="color: #ff0000;">"</code>"</span>, n, @cLeft <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cUser := GetUserName<span style="color: #000000;">&#40;</span> cLeft, @dDate <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> Empty<span style="color: #000000;">&#40;</span> dDate <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;dDate := CTOD<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cCode &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= ExtractPrgCode<span style="color: #000000;">&#40;</span> cCode <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DBAPPEND<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FIELD->TOPICNO := nTopic<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FIELD->TOPIC &nbsp; := cTopic<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FIELD->AUTHOR &nbsp;:= cUser<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FIELD->DATE &nbsp; &nbsp;:= dDate<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FIELD->CODE &nbsp; &nbsp;:= cCode<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; n++<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SYSREFRESH<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">enddo</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nPage++<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> nPage > nPages<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; EXIT<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SYSREFRESH<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">enddo</span><br />&nbsp; &nbsp;<span style="color: #00C800;">next</span> nTopic<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> TopicNoToURL<span style="color: #000000;">&#40;</span> nTopic <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">return</span> &nbsp; <span style="color: #ff0000;">"http://forums.fivetechsupport.com/viewtopic.php?f=3&t="</span> + cValToChar<span style="color: #000000;">&#40;</span> nTopic <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> TextBetween<span style="color: #000000;">&#40;</span> cText, cStartTag, cCloseTag, nPos, cLeft, cRight <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cRet &nbsp;:= <span style="color: #ff0000;">""</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> !<span style="color: #000000;">&#40;</span> cStartTag $ cText <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cLeft &nbsp; &nbsp;:= cText<br />&nbsp; &nbsp; &nbsp; cRight &nbsp; := <span style="color: #ff0000;">""</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #ff0000;">""</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;cRight &nbsp; := AfterAtNum<span style="color: #000000;">&#40;</span> cStartTag, cText, &nbsp;nPos <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;cRet &nbsp; &nbsp; := BeforAtNum<span style="color: #000000;">&#40;</span> cCloseTag, cRight, <span style="color: #000000;">1</span> &nbsp; &nbsp;<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> PCount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">4</span><br />&nbsp; &nbsp; &nbsp; cLeft &nbsp; &nbsp;:= BeforAtNum<span style="color: #000000;">&#40;</span> cStartTag, cText, &nbsp;nPos <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cRight &nbsp; := AfterAtNum<span style="color: #000000;">&#40;</span> cCloseTag, cRight, <span style="color: #000000;">1</span> &nbsp; &nbsp;<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> cRet<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> ExtractPrgCode<span style="color: #000000;">&#40;</span> cCode <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nFrom, nUpto, cLeft, cRight, cToken<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nFor<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aSubs := <span style="color: #000000;">&#123;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">'<br />'</span>,CRLF <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">'&nbsp;'</span>,<span style="color: #ff0000;">" "</span> <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">'ÿ'</span>,<span style="color: #ff0000;">" "</span> <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">'&quot;'</span>,<span style="color: #ff0000;">'"'</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> nFor := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">&#40;</span> aSubs <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cCode &nbsp; &nbsp;:= StrTran<span style="color: #000000;">&#40;</span> cCode, aSubs<span style="color: #000000;">&#91;</span> nFor, <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, aSubs<span style="color: #000000;">&#91;</span> nFor, <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">next</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">do</span> <span style="color: #00C800;">while</span> !Empty<span style="color: #000000;">&#40;</span> cToken := TextBetween<span style="color: #000000;">&#40;</span> cCode, <span style="color: #ff0000;">"<"</span>, <span style="color: #ff0000;">">"</span>, <span style="color: #000000;">1</span>, @cLeft, @cRight <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cCode &nbsp; &nbsp;:= cLeft + cRight<br />&nbsp; &nbsp;<span style="color: #00C800;">enddo</span><br /><br />&nbsp; &nbsp;aSubs := <span style="color: #000000;">&#123;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">'&gt;'</span>, <span style="color: #ff0000;">">"</span> &nbsp;<span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">'&lt;'</span>, <span style="color: #ff0000;">"<"</span> &nbsp;<span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> nFor := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">&#40;</span> aSubs <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cCode &nbsp; &nbsp;:= StrTran<span style="color: #000000;">&#40;</span> cCode, aSubs<span style="color: #000000;">&#91;</span> nFor, <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, aSubs<span style="color: #000000;">&#91;</span> nFor, <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">next</span><br />&nbsp; &nbsp;<span style="color: #00C800;">do</span> <span style="color: #00C800;">while</span> !Empty<span style="color: #000000;">&#40;</span> cToken := TextBetween<span style="color: #000000;">&#40;</span> cCode, <span style="color: #ff0000;">"&#"</span>, <span style="color: #ff0000;">";"</span>, <span style="color: #000000;">1</span>, @cLeft, @cRight <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cToken &nbsp; := Chr<span style="color: #000000;">&#40;</span> Val<span style="color: #000000;">&#40;</span> cToken <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cCode &nbsp; &nbsp;:= cLeft + cToken + cRight<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">enddo</span><br /><br /><span style="color: #00C800;">return</span> cCode<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> PageCount<span style="color: #000000;">&#40;</span> cText <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nAt<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nPages &nbsp; := <span style="color: #000000;">1</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> nAt := <span style="color: #00C800;">AT</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Page <strong>"</span>, cText <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; cText &nbsp; &nbsp;:= <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span> cText, nAt + <span style="color: #000000;">14</span>, <span style="color: #000000;">50</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; nPages &nbsp; := Val<span style="color: #000000;">&#40;</span> AfterAtNum<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"<strong>"</span>, cText, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> nPages<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> GetUserName<span style="color: #000000;">&#40;</span> cText, dDate <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> c1 &nbsp; &nbsp;:= <span style="color: #ff0000;">"/memberlist.php?mode=viewprofile&amp;u="</span> <span style="color: #B900B9;">//2342">cnavarro</a></strong> &raquo; Tue Jan 17</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> c2 &nbsp; &nbsp;:= <span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"username]<br />&nbsp; &nbsp;local nAt &nbsp; := RAT( c1, cText )<br />&nbsp; &nbsp;local n2 &nbsp; &nbsp;:= RAT( c2, cText )<br />&nbsp; &nbsp;local cUser := "</span><span style="color: #ff0000;">"<br />&nbsp; &nbsp;local cDate<br /><br />&nbsp; &nbsp;nAt &nbsp; &nbsp; &nbsp;:= Max( nAt, n2 )<br />&nbsp; &nbsp;if nAt > 0<br />&nbsp; &nbsp; &nbsp; cText &nbsp; &nbsp;:= SubStr( cText, nAt, 200 )<br />&nbsp; &nbsp; &nbsp; cUser &nbsp; &nbsp;:= TextBetween( cText, "</span>><span style="color: #ff0000;">", "</span><<span style="color: #ff0000;">", 1 )<br />&nbsp; &nbsp; &nbsp; cDate &nbsp; &nbsp;:= AllTrim( TextBetween( cText, "</span>&raquo;<span style="color: #ff0000;">", "</span></p><span style="color: #ff0000;">" ) )<br />&nbsp; &nbsp; &nbsp; cDate &nbsp; &nbsp;:= Upper( AfterAtNum( "</span> <span style="color: #ff0000;">", cDate, 1 ) )<br />&nbsp; &nbsp; &nbsp; dDate &nbsp; &nbsp;:= uCharToVal( cDate, 'D' )<br />&nbsp; &nbsp;endif<br /><br />return cUser<br /><br />//----------------------------------------------------------------------------//<br /></span></div>[/code:1u6riqov] Saludos.
get no disable y tampoco editable
Mira con MULTILINE: [url:33ub2kjc]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=6&t=27699&p=154696&hilit=MEMO+READONLY&sid=ef2ada9622dfe801c9bb2b806d7245e7&sid=aaa963e72dd94acb1a5e1cffaa04c949#p154696[/url:33ub2kjc] Saludos.
get no disable y tampoco editable
Estimado goosfancito Y lo hago con SAY, claro no tiene SCROLL [code=fw:9ju8tz8w]<div class="fw" id="{CB}" style="font-family: monospace;"><br />@ <span style="color: #000000;">120</span>,<span style="color: #000000;">420</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span>  SAMPLES->CODE <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">460</span>,<span style="color: #000000;">540</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />       <span style="color: #0000ff;">FONT</span> oMono <span style="color: #0000ff;">UPDATE</span><br /> </div>[/code:9ju8tz8w]
get no disable y tampoco editable
FGET: [url:3oc532ae]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=6&t=19416&p=102300&hilit=memo+readonly&sid=ef2ada9622dfe801c9bb2b806d7245e7&sid=aaa963e72dd94acb1a5e1cffaa04c949#p102300[/url:3oc532ae]
get no disable y tampoco editable
I LOVE FIVEWIN: jajajajajaja [url:2pgkzm1c]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=5647&p=24993&hilit=memo+readonly&sid=ef2ada9622dfe801c9bb2b806d7245e7&sid=aaa963e72dd94acb1a5e1cffaa04c949#p24993[/url:2pgkzm1c] Saludos.
get no disable y tampoco editable
Ese es el tema del porque no lo hago con say. como es un "texto" que va a ser variado no puedo hacerlo. [quote="acuellar":t03njwld]Estimado goosfancito Y lo hago con SAY, claro no tiene SCROLL [code=fw:t03njwld]<div class="fw" id="{CB}" style="font-family: monospace;"><br />@ <span style="color: #000000;">120</span>,<span style="color: #000000;">420</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span>  SAMPLES->CODE <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">460</span>,<span style="color: #000000;">540</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />       <span style="color: #0000ff;">FONT</span> oMono <span style="color: #0000ff;">UPDATE</span><br /> </div>[/code:t03njwld][/quote:t03njwld]
get no disable y tampoco editable
@ r,c GET ........ MEMO .... READONLY is working. Test sample: [code=fw:kqkub7hn]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oDlg, oFont, oGet, oBtn<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cText, cName := <span style="color: #ff0000;">"Dummy"</span><br /><br />&nbsp; &nbsp;cText := MEMOREAD<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\s</span>amples<span style="color: #000000;">\t</span>estxbr3.prg"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"LUCIDA CONSOLE"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-12</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">500</span>,<span style="color: #000000;">500</span> <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL <span style="color: #0000ff;">FONT</span> oFont<br /><br />&nbsp; &nbsp;@ &nbsp;<span style="color: #000000;">20</span>,<span style="color: #000000;">380</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"CLOSE"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">40</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;@ &nbsp;<span style="color: #000000;">80</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">GET</span> oGet <span style="color: #0000ff;">VAR</span> cText MEMO <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">460</span>,<span style="color: #000000;">400</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg READONLY<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp;</div>[/code:kqkub7hn] [url=https&#58;//imageshack&#46;com/i/pn3ZRKBpg:kqkub7hn][img:kqkub7hn]https&#58;//imagizer&#46;imageshack&#46;com/img923/3797/3ZRKBp&#46;gif[/img:kqkub7hn][/url:kqkub7hn]
get no disable y tampoco editable
RESOURCE: [code=fw:2lk3oy3r]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; <span style="color: #00C800;">local</span> oDlg, oFont, oGet, oBtn<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cText, cName := <span style="color: #ff0000;">"Dummy"</span><br /><br />&nbsp; &nbsp;cText := MEMOREAD<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\s</span>amples<span style="color: #000000;">\t</span>estxbr3.prg"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"LUCIDA CONSOLE"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-12</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"MEMOGETDLG"</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> oGet <span style="color: #0000ff;">VAR</span> cText MEMO <span style="color: #0000ff;">ID</span> <span style="color: #000000;">101</span> <span style="color: #0000ff;">OF</span> oDlg READONLY<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont<br />&nbsp;</div>[/code:2lk3oy3r] RC file [code=fw:2lk3oy3r]<div class="fw" id="{CB}" style="font-family: monospace;">MEMOGETDLG <span style="color: #0000ff;">DIALOG</span> <span style="color: #000000;">6</span>, <span style="color: #000000;">15</span>, <span style="color: #000000;">306</span>, <span style="color: #000000;">227</span><br /><span style="color: #0000ff;">STYLE</span> DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU<br />CAPTION <span style="color: #ff0000;">"MEMOGET"</span><br /><span style="color: #0000ff;">FONT</span> <span style="color: #000000;">8</span>, <span style="color: #ff0000;">"MS Sans Serif"</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp;DEFPUSHBUTTON <span style="color: #ff0000;">"OK"</span>, IDOK, <span style="color: #000000;">252</span>, <span style="color: #000000;">211</span>, <span style="color: #000000;">50</span>, <span style="color: #000000;">14</span><br />&nbsp;EDITTEXT <span style="color: #000000;">101</span>, <span style="color: #000000;">4</span>, <span style="color: #000000;">5</span>, <span style="color: #000000;">297</span>, <span style="color: #000000;">202</span>, ES_MULTILINE | WS_VSCROLL | ES_READONLY | WS_BORDER<br /><span style="color: #000000;">&#125;</span><br />&nbsp;</div>[/code:2lk3oy3r] [url=https&#58;//imageshack&#46;com/i/pm37XI8Tg:2lk3oy3r][img:2lk3oy3r]https&#58;//imagizer&#46;imageshack&#46;com/img922/7075/37XI8T&#46;gif[/img:2lk3oy3r][/url:2lk3oy3r]
get no disable y tampoco editable
hello. En mi programa muestra el error. Para replicar lo que hago: 1) copio un texto escrito en WORD o write que sea extenso 2) pego ese texto en el get 3) muevo el scroll el error aparece. otra cosa: el dato lo tomo de mysql, que esta declardo como MEMO y si hago esto: vgets:= memored(oQry:fieldget("texto")) vgests queda vacio. si hago directamente: vgets:= oQry:fieldget("texto") vgets si queda con datos. [url=https&#58;//imageshack&#46;com/i/pofJncRjg:6xa92n1r][img:6xa92n1r]https&#58;//imagizer&#46;imageshack&#46;com/img924/5783/fJncRj&#46;gif[/img:6xa92n1r][/url:6xa92n1r]
get no disable y tampoco editable
Gustavo, Por favor copia aqui el código fuente de como construyes esa caja de diálogo Y tambien el recurso correspondiente en caso de que la tengas creada en el fichero RC
get no disable y tampoco editable
[b:3bl5ig4h][size=150:3bl5ig4h]WRONG[/size:3bl5ig4h][/b:3bl5ig4h] [quote:3bl5ig4h]Another thing: I take the data from mysql, which is declared as MEMO and if I do this: vgets: = memored (oQry: fieldget ("text")) vgests is empty. [/quote:3bl5ig4h] [b:3bl5ig4h][size=150:3bl5ig4h]CORRECT[/size:3bl5ig4h][/b:3bl5ig4h] [quote:3bl5ig4h] if I do directly: vgets: = oQry: fieldget ("text") vgets if it remains with data. [/quote:3bl5ig4h]
get no disable y tampoco editable
[quote:1ugczrs8] En mi programa muestra el error. Para replicar lo que hago: 1) copio un texto escrito en WORD o write que sea extenso 2) pego ese texto en el get 3) muevo el scroll el error aparece. [/quote:1ugczrs8] This is working perfectly here. I posted two programs above. I tested with those programs by removing the READONLY clause from the program and ES_READONLY style in the RC file. I opened "c:\fwh\manual\manual FWH english.doc" in MSWord and pasted in the Get. Working perfectly as can be seen here. [url=https&#58;//imageshack&#46;com/i/pn0clhHfg:1ugczrs8][img:1ugczrs8]https&#58;//imagizer&#46;imageshack&#46;com/img923/2686/0clhHf&#46;gif[/img:1ugczrs8][/url:1ugczrs8]
get no disable y tampoco editable
[quote="Antonio Linares":3tvqr0wc]Gustavo, Por favor copia aqui el código fuente de como construyes esa caja de diálogo Y tambien el recurso correspondiente en caso de que la tengas creada en el fichero RC[/quote:3tvqr0wc] [code=fw:3tvqr0wc]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />   <span style="color: #00C800;">LOCAL</span> oDlg, this := <span style="color: #00C800;">Self</span><br />   <span style="color: #00C800;">LOCAL</span> oGets, vGets<br />   <span style="color: #00C800;">LOCAL</span> oSays := Array<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">LOCAL</span> oBtns := Array<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">LOCAL</span> <span style="color: #0000ff;">FONT</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Ms Sans Serif"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, - <span style="color: #000000;">12</span> bold<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">resource</span> <span style="color: #ff0000;">"DLGFICHACONSULTA"</span><br /><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">SAY</span> oSays<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">500</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">FONT</span> oFont<br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">SAY</span> oSays<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">501</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">FONT</span> oFont<br /><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> oGets <span style="color: #0000ff;">VAR</span> vGets <span style="color: #0000ff;">ID</span> <span style="color: #000000;">199</span> <span style="color: #0000ff;">OF</span> oDlg READONLY<br /><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> ::<span style="color: #000000;">oBtns</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">200</span> <span style="color: #0000ff;">OF</span> oDlg<br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> ::<span style="color: #000000;">oBtns</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">201</span> <span style="color: #0000ff;">OF</span> oDlg<br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> ::<span style="color: #000000;">oBtns</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">202</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />   <span style="color: #B900B9;">//----------( )----------</span><br /><br />   ::<span style="color: #000000;">oBtns</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bAction</span> := <span style="color: #000000;">&#123;</span> || ::<span style="color: #000000;">verOrganigrama</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />   ::<span style="color: #000000;">oBtns</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bAction</span> := <span style="color: #000000;">&#123;</span> || ::<span style="color: #000000;">verDocumentos</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />   ::<span style="color: #000000;">oBtns</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bAction</span> := <span style="color: #000000;">&#123;</span> || oDlg:<span style="color: #000000;">END</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> ;<br />   <span style="color: #000000;">&#40;</span> this:<span style="color: #000000;">iniConsultar</span><span style="color: #000000;">&#40;</span> oQry, oGets, @vGets, oSays <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">RETURN</span> <span style="color: #000000;">&#40;</span> <span style="color: #00C800;">NIL</span> <span style="color: #000000;">&#41;</span><br /> </div>[/code:3tvqr0wc] [code=fw:3tvqr0wc]<div class="fw" id="{CB}" style="font-family: monospace;">DLGFICHACONSULTA DIALOGEX DISCARDABLE <span style="color: #000000;">6</span>, <span style="color: #000000;">18</span>, <span style="color: #000000;">533</span>, <span style="color: #000000;">264</span><br /><span style="color: #0000ff;">STYLE</span> DS_SHELLFONT|WS_POPUP|DS_MODALFRAME|DS_CONTEXTHELP|DS_3DLOOK|WS_CAPTION|WS_SYSMENU|WS_VISIBLE<br />CAPTION <span style="color: #ff0000;">".: Cosulta de ficha :."</span><br /><span style="color: #0000ff;">FONT</span> <span style="color: #000000;">8</span>, <span style="color: #ff0000;">"Tahoma"</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">1</span><br /><span style="color: #000000;">&#123;</span><br />  CONTROL <span style="color: #ff0000;">""</span>, <span style="color: #000000;">4001</span>, <span style="color: #ff0000;">"Button"</span>, BS_GROUPBOX, <span style="color: #000000;">15</span>, <span style="color: #000000;">13</span>, <span style="color: #000000;">420</span>, <span style="color: #000000;">232</span><br />  CONTROL <span style="color: #ff0000;">"Sección:"</span>, <span style="color: #000000;">4002</span>, <span style="color: #ff0000;">"Static"</span>, WS_GROUP, <span style="color: #000000;">29</span>, <span style="color: #000000;">30</span>, <span style="color: #000000;">40</span>, <span style="color: #000000;">8</span><br />  CONTROL <span style="color: #ff0000;">"Título:"</span>, <span style="color: #000000;">4005</span>, <span style="color: #ff0000;">"Static"</span>, WS_GROUP, <span style="color: #000000;">29</span>, <span style="color: #000000;">64</span>, <span style="color: #000000;">40</span>, <span style="color: #000000;">8</span><br />  CONTROL <span style="color: #ff0000;">"Breve descripción del procedimiento:"</span>, <span style="color: #000000;">4011</span>, <span style="color: #ff0000;">"Static"</span>, WS_GROUP, <span style="color: #000000;">28</span>, <span style="color: #000000;">98</span>, <span style="color: #000000;">156</span>, <span style="color: #000000;">8</span><br />  CONTROL <span style="color: #ff0000;">"Edit"</span>, <span style="color: #000000;">199</span>, <span style="color: #ff0000;">"Edit"</span>, ES_MULTILINE|ES_READONLY|WS_VSCROLL|WS_BORDER|WS_TABSTOP, <span style="color: #000000;">28</span>, <span style="color: #000000;">111</span>, <span style="color: #000000;">393</span>, <span style="color: #000000;">120</span><br />  CONTROL <span style="color: #ff0000;">"Organigrama"</span>, <span style="color: #000000;">200</span>, <span style="color: #ff0000;">"Button"</span>, WS_TABSTOP, <span style="color: #000000;">453</span>, <span style="color: #000000;">16</span>, <span style="color: #000000;">66</span>, <span style="color: #000000;">14</span><br />  CONTROL <span style="color: #ff0000;">"La Norma"</span>, <span style="color: #000000;">201</span>, <span style="color: #ff0000;">"Button"</span>, WS_TABSTOP, <span style="color: #000000;">453</span>, <span style="color: #000000;">40</span>, <span style="color: #000000;">66</span>, <span style="color: #000000;">14</span><br />  CONTROL <span style="color: #ff0000;">"&Cerrar"</span>, <span style="color: #000000;">202</span>, <span style="color: #ff0000;">"Button"</span>, WS_TABSTOP, <span style="color: #000000;">453</span>, <span style="color: #000000;">228</span>, <span style="color: #000000;">66</span>, <span style="color: #000000;">14</span><br />  CONTROL <span style="color: #ff0000;">"This is a label:"</span>, <span style="color: #000000;">500</span>, <span style="color: #ff0000;">"Static"</span>, WS_GROUP, <span style="color: #000000;">29</span>, <span style="color: #000000;">44</span>, <span style="color: #000000;">269</span>, <span style="color: #000000;">8</span><br />  CONTROL <span style="color: #ff0000;">"This is a label:"</span>, <span style="color: #000000;">501</span>, <span style="color: #ff0000;">"Static"</span>, WS_GROUP, <span style="color: #000000;">29</span>, <span style="color: #000000;">76</span>, <span style="color: #000000;">269</span>, <span style="color: #000000;">8</span><br /><span style="color: #000000;">&#125;</span></div>[/code:3tvqr0wc]
get no toma datos...
hola, tengo un dialogo con 5 campos Get y un boton, el primer get es el nombre REDEFINE GET oGet[1] VAR cGet[1] OF ...... si yo escribo el nombre y no doy enter o tab para cambiar al siguiente campo y me quedo posicionado en este get, y doy click en el boton (ahi el action es para grabar los datos a la dbf) bueno pues valido al grabar en la dbf que la variable cGet[1] no este vacia, y que creen? la variable cGet[1] me la detecta como vacia, si me cambio de Get si me la toma bien, esto nomas sucede en xHarbour con Harbour no sucede, si me lo acpeta?, saben como corregir esto en xHarbour? gracias paco
get no toma datos...
Paco, En la acción del botón haz primero oGet[1]:Assign() Estas diferencias de comportamiento entre Harbour y xHarbour se deben a que sus clases TGet son distintas.
get no toma datos...
en efecto asi es... gracias Paco
get numbers
to select numbers I use two get with action but the customer sad it is no good because when the number is with 3 cr the number is moved [img:3grstaxm]https&#58;//i&#46;postimg&#46;cc/CKJwm7Wc/getnumbers&#46;png[/img:3grstaxm] What I can create to show numbers good ? I 'm thinking a button ( bitmap) where I can change the caption instead of gets but it's just an idea what do you think about , what I cam make instead of gets ?
get problem not execute ON CHANGE command
I did not understand why if I have a get control to which I change the value, it does not execute the "On change" command to execute this command I have to add EVAL (aGet [1]: bchange) sample : DEFINE DIALOG oDlg SIZE 400,200 Title "test date,valid" @ 12,5 SAY "Dal :" OF oDlg PIXEL SIZE 100,20 TRANSPARENT @ 10,35 GET aGet[1] VAR dDataIniziale SIZE 100,12 PIXEL OF oDlg ; BITMAP ".\bitmaps\cal.bmp" ; ACTION (dDataIniziale:= XbrGetDate(txt_to_date( dDataIniziale) , "Select a date",dStagioneMin,dStagioneMax, .t., 0.6, ,aGet[1] ),; IIF( dDataIniziale=ctod("") .or. dDataIniziale=nil ,; (dDataIniziale:="Select a date",aGet[1]:CTEXT(date_to_txt(dDataIniziale))),; aGet[1]:CTEXT(date_to_txt(dDataIniziale)) ) ,; aGet[1]:refresh(),EVAL( aGet[1]:bchange)) ; VALID ValidareData(txt_to_date(dDataIniziale),txt_to_date( dDataFinale) ) ; ON CHANGE ( dtemp1:= txt_to_date( dDataIniziale),; dtemp2:= txt_to_date( dDataFinale) ,; dDataIniApp:=dtemp1,; dDataFinApp:=dtemp2,; CHANGE_PLAN( dDataIniApp,dDataFinApp,lShowNumeri,lshowPagamenti) ) If I not insert [b:13iwbs5l]EVAL( aGet[1]:bchange)[/b:13iwbs5l] the get not execute the command [b:13iwbs5l]ON CHANGE[/b:13iwbs5l] why ? [img:13iwbs5l]https&#58;//i&#46;postimg&#46;cc/MKzh97Jm/get-date&#46;png[/img:13iwbs5l] [b:13iwbs5l]the test [/b:13iwbs5l] [code=fw:13iwbs5l]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"constant.ch"</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br />REQUEST HB_Lang_IT<br />REQUEST HB_CODEPAGE_ITWIN<br /><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oDlg , aGet := Array<span style="color: #000000;">&#40;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#41;</span>, oBtnCal<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> dDataIniziale,dDataFinale &nbsp;<span style="color: #B900B9;">// date of the get</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> dStagioneMin &nbsp; &nbsp; <span style="color: #B900B9;">// date limit</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> dStagioneMax &nbsp; &nbsp; <span style="color: #B900B9;">// date limit</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> dtemp1,dtemp2<br /><br /><span style="color: #00C800;">local</span> dDataIniApp<br /><span style="color: #00C800;">local</span> dDataFinApp<br /><span style="color: #00C800;">local</span> lShowNumeri,lshowPagamenti<br /><br /><br />&nbsp; SET _3DLOOK <span style="color: #0000ff;">ON</span><br />&nbsp; SET CENTURY <span style="color: #0000ff;">ON</span><br />&nbsp; SET DATE ITALIAN<br /><br />&nbsp; &nbsp; HB_LangSelect<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"IT"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; HB_SetCodePage<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"ITWIN"</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp;dDataIniApp := date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; <span style="color: #B900B9;">// date format &nbsp;// date of application</span><br />&nbsp; &nbsp; &nbsp;dDataFinApp := date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp;dDataIniziale:= date_to_txt<span style="color: #000000;">&#40;</span>date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> &nbsp; <span style="color: #B900B9;">// string format</span><br />&nbsp; &nbsp; &nbsp;dDataFinale := date_to_txt<span style="color: #000000;">&#40;</span>date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp;dStagioneMin := ctod<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"17/05/2020"</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// date format</span><br />&nbsp; &nbsp; &nbsp;dStagioneMax := ctod<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"20/09/2020"</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp;lShowNumeri &nbsp; &nbsp; := .t.<br />&nbsp; &nbsp; &nbsp;lshowPagamenti &nbsp;:= .t.<br /><br /><br />&nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">400</span>,<span style="color: #000000;">200</span> <span style="color: #0000ff;">Title</span> <span style="color: #ff0000;">"test date,valid"</span><br /><br /><br />&nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">12</span>,<span style="color: #000000;">5</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Dal :"</span> <span style="color: #0000ff;">OF</span> &nbsp;oDlg <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">20</span> TRANSPARENT<br />&nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">10</span>,<span style="color: #000000;">35</span> <span style="color: #0000ff;">GET</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> dDataIniziale <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; BITMAP &nbsp;<span style="color: #ff0000;">".<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\c</span>al.bmp"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span>dDataIniziale:= XbrGetDate<span style="color: #000000;">&#40;</span>txt_to_date<span style="color: #000000;">&#40;</span> dDataIniziale<span style="color: #000000;">&#41;</span> ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"Select a date"</span>,dStagioneMin,dStagioneMax, .t., <span style="color: #000000;">0.6</span>, ,aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IIF<span style="color: #000000;">&#40;</span> dDataIniziale=ctod<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">""</span><span style="color: #000000;">&#41;</span> .or. dDataIniziale=<span style="color: #00C800;">nil</span> ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>dDataIniziale:=<span style="color: #ff0000;">"Select a date"</span>,aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">CTEXT</span><span style="color: #000000;">&#40;</span>date_to_txt<span style="color: #000000;">&#40;</span>dDataIniziale<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">CTEXT</span><span style="color: #000000;">&#40;</span>date_to_txt<span style="color: #000000;">&#40;</span>dDataIniziale<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,EVAL<span style="color: #000000;">&#40;</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bchange</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">VALID</span> ValidareData<span style="color: #000000;">&#40;</span>txt_to_date<span style="color: #000000;">&#40;</span>dDataIniziale<span style="color: #000000;">&#41;</span>,txt_to_date<span style="color: #000000;">&#40;</span> dDataFinale<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> <span style="color: #000000;">&#40;</span> &nbsp;dtemp1:= txt_to_date<span style="color: #000000;">&#40;</span> dDataIniziale<span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dtemp2:= txt_to_date<span style="color: #000000;">&#40;</span> dDataFinale<span style="color: #000000;">&#41;</span> &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;dDataIniApp:=dtemp1,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;dDataFinApp:=dtemp2,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CHANGE_PLAN<span style="color: #000000;">&#40;</span> dDataIniApp,dDataFinApp,lShowNumeri,lshowPagamenti<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lAdjustBtn</span>:=.t.<br /><br /><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">//aGet[1]:oBtn:oCursor:= TCursor():New(,'HAND')</span><br /><br />&nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">26</span>,<span style="color: #000000;">5</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"al :"</span> <span style="color: #0000ff;">OF</span> &nbsp;oDlg <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">20</span> TRANSPARENT<br />&nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">24</span>,<span style="color: #000000;">35</span> <span style="color: #0000ff;">GET</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> dDataFinale <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; BITMAP &nbsp;<span style="color: #ff0000;">".<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\c</span>al.bmp"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span>dDataFinale:= XbrGetDate<span style="color: #000000;">&#40;</span>txt_to_date<span style="color: #000000;">&#40;</span> dDataFinale<span style="color: #000000;">&#41;</span> ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"Select a date"</span>,dStagioneMin,dStagioneMax, .t., <span style="color: #000000;">0.6</span>, ,aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IIF<span style="color: #000000;">&#40;</span> dDataFinale=ctod<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">""</span><span style="color: #000000;">&#41;</span> .or. dDataFinale=<span style="color: #00C800;">nil</span> ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>dDataFinale:=<span style="color: #ff0000;">"Select a date"</span>,aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">CTEXT</span><span style="color: #000000;">&#40;</span>date_to_txt<span style="color: #000000;">&#40;</span>dDataFinale<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">CTEXT</span><span style="color: #000000;">&#40;</span>date_to_txt<span style="color: #000000;">&#40;</span>dDataFinale<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,EVAL<span style="color: #000000;">&#40;</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bchange</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">VALID</span> ValidareData<span style="color: #000000;">&#40;</span>txt_to_date<span style="color: #000000;">&#40;</span>dDataIniziale<span style="color: #000000;">&#41;</span>,txt_to_date<span style="color: #000000;">&#40;</span> dDataFinale<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> <span style="color: #000000;">&#40;</span> &nbsp;dtemp1:= txt_to_date<span style="color: #000000;">&#40;</span> dDataIniziale<span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dtemp2:= txt_to_date<span style="color: #000000;">&#40;</span> dDataFinale<span style="color: #000000;">&#41;</span> &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;dDataIniApp:=dtemp1,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;dDataFinApp:=dtemp2,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CHANGE_PLAN<span style="color: #000000;">&#40;</span> dDataIniApp,dDataFinApp,lShowNumeri,lshowPagamenti<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><br /><br />&nbsp; &nbsp; &nbsp;aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lAdjustBtn</span>:=.t.<br /><br /><br /><br />&nbsp; @ <span style="color: #000000;">07</span>,<span style="color: #000000;">170</span> &nbsp;<span style="color: #0000ff;">BTNBMP</span> oBtnCal FILENAME <span style="color: #ff0000;">".<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\c</span>al.bmp"</span> FLAT <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">20</span>,<span style="color: #000000;">14</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg NOBORDER<br />&nbsp; &nbsp; &nbsp; oBtnCal:<span style="color: #000000;">oPopUp</span>:= <span style="color: #000000;">&#123;</span> |oBtn| BtnPopCalMenu<span style="color: #000000;">&#40;</span> @dDataIniziale,@dDataFinale,aGet<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">40</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">button</span> <span style="color: #ff0000;">"test"</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">40</span>,<span style="color: #000000;">12</span> <span style="color: #0000ff;">pixel</span> &nbsp;<span style="color: #0000ff;">of</span> oDlg &nbsp;<span style="color: #0000ff;">action</span> &nbsp;CHANGE_PLAN<span style="color: #000000;">&#40;</span>dDataIniApp, dDataFinApp,lShowNumeri,lshowPagamenti<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------------//</span><br />&nbsp; <span style="color: #00C800;">Function</span> CHANGE_PLAN<span style="color: #000000;">&#40;</span> &nbsp;dDateStart, dDateEnd,lShowNumeri,lshowPagamenti<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span> &nbsp; date_to_txt<span style="color: #000000;">&#40;</span>dDateStart<span style="color: #000000;">&#41;</span>+CRLF+date_to_txt<span style="color: #000000;">&#40;</span>dDateEnd<span style="color: #000000;">&#41;</span>,<span style="color: #ff0000;">" Check "</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------------//</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Function</span> ValidareData<span style="color: #000000;">&#40;</span> dFechaIni, dFechaFin <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> lValid := .T.<br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> <span style="color: #000000;">&#40;</span> dFechaIni > dFechaFin <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; alert<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"The end date must be greater than the start date "</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; lValid := .F.<br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp;<span style="color: #00C800;">RETURN</span> &nbsp;lValid<br /><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">Function</span> BtnPopCalMenu<span style="color: #000000;">&#40;</span> dDataIniziale,dDataFinale,aGet<span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #00C800;">Local</span> oPopupDate<br /><br />&nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENU</span> oPopupDate <span style="color: #0000ff;">POPUP</span> <span style="color: #000000;">2015</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Oggi"</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> &nbsp;<span style="color: #000000;">&#40;</span>dDataIniziale:=date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, dDataFinale:=date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">CTEXT</span><span style="color: #000000;">&#40;</span>date_to_txt<span style="color: #000000;">&#40;</span>dDataIniziale<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">CTEXT</span><span style="color: #000000;">&#40;</span>date_to_txt<span style="color: #000000;">&#40;</span>dDataFinale<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>, &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Domani"</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ACTION</span> &nbsp;<span style="color: #000000;">&#40;</span>dDataIniziale:=date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">+1</span>,dDataFinale:=date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">+1</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">CTEXT</span><span style="color: #000000;">&#40;</span>date_to_txt<span style="color: #000000;">&#40;</span>dDataIniziale<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">CTEXT</span><span style="color: #000000;">&#40;</span>date_to_txt<span style="color: #000000;">&#40;</span>dDataFinale<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>, &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"DopoDomani"</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span>dDataIniziale:=date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">+2</span>,dDataFinale:=date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">+2</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">CTEXT</span><span style="color: #000000;">&#40;</span>date_to_txt<span style="color: #000000;">&#40;</span>dDataIniziale<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">CTEXT</span><span style="color: #000000;">&#40;</span>date_to_txt<span style="color: #000000;">&#40;</span>dDataFinale<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>, &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SEPARATOR</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Pulisci"</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> dDataIniziale:=<span style="color: #ff0000;">"select a date"</span>, dDataFinale:=<span style="color: #ff0000;">"select a date"</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">CTEXT</span><span style="color: #000000;">&#40;</span>dDataIniziale<span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">CTEXT</span><span style="color: #000000;">&#40;</span>dDataFinale<span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ENDMENU</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> oPopupDate<br />&nbsp;<span style="color: #B900B9;">//--------------------------------------------------------------------------------------------------------------//</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Function</span> date_to_txt<span style="color: #000000;">&#40;</span>dDate<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> FW_TRANSFORM<span style="color: #000000;">&#40;</span> dDate, <span style="color: #ff0000;">"ddd, dd mmm yyyy"</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">//--------------------------------------------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">Function</span> txt_to_date<span style="color: #000000;">&#40;</span>cDate<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> uCharToVal<span style="color: #000000;">&#40;</span>cDate, <span style="color: #ff0000;">"D"</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">//--------------------------------------------------------------------------------------------------------------//</span><br /><br />&nbsp;</div>[/code:13iwbs5l]
get problem not execute ON CHANGE command
Try: ON CHANGE( My_Function(... ) )
get problem not execute ON CHANGE command
karinha, allready tried static dDataIniApp,dDataFinApp,lShowNumeri,lshowPagamenti //because are DATA variables ON CHANGE ( MyFunction(dDataIniziale,dDataFinale) ) Function MyFunction(dDataIniziale,dDataFinale) local dtemp1:= txt_to_date( dDataIniziale) local dtemp2:= txt_to_date( dDataFinale) dDataIniApp:=dtemp1 dDataFinApp:=dtemp2 CHANGE_PLAN( dDataIniApp,dDataFinApp,lShowNumeri,lshowPagamenti) return nil it need only EVAL( aGet[2]:bchange) otherwise it does not bchange I tried also with aGet[1]:bchange := { || MyFunction(dDataIniziale,dDataFinale) } aGet[2]:bchange := { || MyFunction(dDataIniziale,dDataFinale) } not run
get problem not execute ON CHANGE command
Don't you have to refresh() the object?
get problem not execute ON CHANGE command
the problem is not refresh the get but assign the new values on dDataIniApp and dDataFinApp are two data of Tapplication()
get problem not execute ON CHANGE command
Hola buenos dias, Sigue habiendo problemas con el ON CHANGE del Método TGET, como se puede solucionar? Ejemplo: [code=fw:1ae8acka]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> oGet1 <span style="color: #0000ff;">VAR</span> mGET1 <span style="color: #0000ff;">ID</span> <span style="color: #000000;">11</span>     <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> <span style="color: #000000;">&#40;</span>mGET2:=mGET1<span style="color: #000000;">+10</span>,oGet2:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> oGet2 <span style="color: #0000ff;">VAR</span> mGET2 <span style="color: #0000ff;">ID</span> <span style="color: #000000;">12</span>     <span style="color: #0000ff;">OF</span> oDlg   <br /> </div>[/code:1ae8acka] No se actualiza el valor del segundo get (oGet2) Muchas gracias...
get problem not execute ON CHANGE command
// \SAMPLES\TESTGET7.PRG [code=fw:ss28qec9]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">function</span> main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;FromRes<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp;<br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp;<br /><span style="color: #00C800;">Function</span> FromRes<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oDlg<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oGet1, oGet2, oGet3, oGet4<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cVar1, cVar2, cVar3, cVar4<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> lActive := .f.<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;cVar1 := <span style="color: #000000;">0</span><br />&nbsp; &nbsp;cVar2 := <span style="color: #000000;">0</span><br />&nbsp; &nbsp;cVar3 := <span style="color: #000000;">0</span><br />&nbsp; &nbsp;cVar4 := <span style="color: #000000;">0</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #0000ff;">define</span> <span style="color: #0000ff;">dialog</span> oDlg <span style="color: #0000ff;">resource</span> <span style="color: #ff0000;">"fromres"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">redefine</span> <span style="color: #0000ff;">get</span> oGet1 <span style="color: #0000ff;">var</span> cVar1 <span style="color: #0000ff;">id</span> <span style="color: #000000;">100</span> bitmap <span style="color: #ff0000;">"on"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">action</span><span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"With Transparent"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">of</span> oDlg<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">redefine</span> <span style="color: #0000ff;">get</span> oGet2 <span style="color: #0000ff;">var</span> cVar2 <span style="color: #0000ff;">id</span> <span style="color: #000000;">101</span> bitmap <span style="color: #ff0000;">"on"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">action</span><span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Without Transparent"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> SUMA_GETS<span style="color: #000000;">&#40;</span> oGet1, oGet2, oGet3, cVar1, cVar2 <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">of</span> oDlg<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">redefine</span> <span style="color: #0000ff;">get</span> oGet3 <span style="color: #0000ff;">var</span> cVar3 <span style="color: #0000ff;">id</span> <span style="color: #000000;">102</span> bitmap <span style="color: #ff0000;">"chkyes"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">action</span><span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"With Adjust-Transparent"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">COLOR</span> CLR_BLACK, CLR_CYAN <span style="color: #0000ff;">of</span> oDlg<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">redefine</span> <span style="color: #0000ff;">get</span> oGet4 <span style="color: #0000ff;">var</span> cVar4 <span style="color: #0000ff;">id</span> <span style="color: #000000;">103</span> bitmap <span style="color: #ff0000;">"chkyes"</span> ;<br />&nbsp; &nbsp;<span style="color: #0000ff;">action</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> lActive,oGet3:<span style="color: #000000;">disable</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oGet3:<span style="color: #000000;">enable</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>, lActive:= !lActive, ;<br />&nbsp; &nbsp; &nbsp; oDlg:<span style="color: #0000ff;">update</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">of</span> oDlg<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;oGet1:<span style="color: #000000;">lBtnTransparent</span> := .t. &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// transparent button get oGet1</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;oGet3:<span style="color: #000000;">disable</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oGet3:<span style="color: #000000;">lBtnTransparent</span> := .t. &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// transparent button get oGet3</span><br />&nbsp; &nbsp;oGet3:<span style="color: #000000;">lAdjustBtn</span> &nbsp; &nbsp; &nbsp;:= .t. &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Button Get Adjust Witdh oGet3</span><br />&nbsp; &nbsp;oGet3:<span style="color: #000000;">lDisColors</span> &nbsp; &nbsp; &nbsp;:= .f. &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Deactive disable color</span><br />&nbsp; &nbsp;oGet3:<span style="color: #000000;">nClrTextDis</span> &nbsp; &nbsp; := CLR_WHITE <span style="color: #B900B9;">// Color text disable status</span><br />&nbsp; &nbsp;oGet3:<span style="color: #000000;">nClrPaneDis</span> &nbsp; &nbsp; := CLR_BLUE &nbsp;<span style="color: #B900B9;">// Color Pane disable status</span><br /><br />&nbsp; &nbsp;oGet4:<span style="color: #000000;">lAdjustBtn</span> := .t.<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #0000ff;">activate</span> <span style="color: #0000ff;">dialog</span> oDlg <span style="color: #0000ff;">centered</span><br />&nbsp;<br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> SUMA_GETS<span style="color: #000000;">&#40;</span> oGet1, oGet2, oGet3, cnVar1, cnVar2 <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nVal1 &nbsp;:= <span style="color: #000000;">0</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nVal2 &nbsp;:= <span style="color: #000000;">0</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nValor := <span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp;nVal1 := cnVar1<br />&nbsp; &nbsp;nVal2 := cnVar2<br /><br />&nbsp; &nbsp;nValor := nVal2 + nVal1 + <span style="color: #000000;">10</span><br /><br />&nbsp; &nbsp;oGet3:<span style="color: #000000;">VARPUT</span><span style="color: #000000;">&#40;</span> nValor <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oGet3:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:ss28qec9] // TESTGET7.RC [code=fw:ss28qec9]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// RESOURCE SCRIPT generated by "Pelles C for Windows, version 5.00".</span><br />#ifndef __64__<br />&nbsp; <span style="color: #000000;">1</span> <span style="color: #000000;">24</span> <span style="color: #ff0000;">"winxp<span style="color: #000000;">\W</span>indowsXP.Manifest"</span> <br />#endif<br /><br />#ifdef __64__<br />&nbsp; <span style="color: #000000;">1</span> <span style="color: #000000;">24</span> <span style="color: #ff0000;">"winxp<span style="color: #000000;">\W</span>indowsXP.Manifest64"</span><br />#endif <br /><br /><br />FROMRES <span style="color: #0000ff;">DIALOG</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">150</span>, <span style="color: #000000;">150</span><br /><span style="color: #0000ff;">STYLE</span> DS_MODALFRAME | WS_BORDER | WS_DLGFRAME | WS_POPUP | WS_SYSMENU<br /><span style="color: #0000ff;">FONT</span> <span style="color: #000000;">8</span>, <span style="color: #ff0000;">"MS Sans Serif"</span><br />CAPTION <span style="color: #ff0000;">"Dialog"</span><br />BEGIN<br />&nbsp; &nbsp; EDITTEXT &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">100</span>, <span style="color: #000000;">11</span>, <span style="color: #000000;">10</span>, <span style="color: #000000;">80</span>, <span style="color: #000000;">15</span>, ES_AUTOHSCROLL<br />&nbsp; &nbsp; EDITTEXT &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">101</span>, <span style="color: #000000;">10</span>, <span style="color: #000000;">40</span>, <span style="color: #000000;">80</span>, <span style="color: #000000;">15</span>, ES_AUTOHSCROLL<br />&nbsp; &nbsp; EDITTEXT &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">102</span>, <span style="color: #000000;">9</span>, <span style="color: #000000;">70</span>, <span style="color: #000000;">129</span>, <span style="color: #000000;">17</span>, ES_AUTOHSCROLL<br />&nbsp; &nbsp; EDITTEXT &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">103</span>, <span style="color: #000000;">10</span>, <span style="color: #000000;">100</span>, <span style="color: #000000;">130</span>, <span style="color: #000000;">14</span>, ES_AUTOHSCROLL<br />END<br /><br /><span style="color: #0000ff;">ON</span> BITMAP <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\o</span>n.bmp"</span><br /><br />CHKYES BITMAP <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\c</span>hkyes.bmp"</span><br />&nbsp;</div>[/code:ss28qec9] 
get problem not execute ON CHANGE command
Muchas gracias Karinha voy a probar ese ejemplo Saludos
get read only
Can I change on line the readonly of a get when a combo selection change ? ? [img:11cra84o]https&#58;//i&#46;postimg&#46;cc/pr3P1SgT/gf&#46;png[/img:11cra84o] I want the get controls to always be readonly except when the selected combo is "Personalizzato" I tried with this test but not run on change function [code=fw:11cra84o]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oDlg<br />   <span style="color: #00C800;">local</span> aFormati   :=<span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"A4"</span>,<span style="color: #ff0000;">"Personalizzato"</span><span style="color: #000000;">&#125;</span><br />   <span style="color: #00C800;">local</span> nLarghezza  := <span style="color: #000000;">21</span><br />   <span style="color: #00C800;">local</span> nALtezza    := <span style="color: #000000;">29.7</span> <br />   <span style="color: #00C800;">local</span> cFormato    :=<span style="color: #ff0000;">"A4"</span><br />   <span style="color: #00C800;">local</span> lOrizontale := .f.<br /><br />   <span style="color: #00C800;">local</span> aGet<span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">400</span>,<span style="color: #000000;">200</span> <span style="color: #0000ff;">PIXEL</span><br /><br />   @  <span style="color: #000000;">8</span>,  <span style="color: #000000;">5</span> <span style="color: #0000ff;">Say</span> <span style="color: #ff0000;">"Tipo Pagina "</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>,<span style="color: #000000;">14</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg<br />   @  <span style="color: #000000;">8</span>, <span style="color: #000000;">75</span> <span style="color: #0000ff;">COMBOBOX</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cFormato <span style="color: #0000ff;">ITEMS</span> aFormati <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>,<span style="color: #000000;">90</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg;<br />        <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> cambiapagina<span style="color: #000000;">&#40;</span>@nAltezza, @nLarghezza,aget,cFormato,lOrizontale<span style="color: #000000;">&#41;</span><br /><br />   @ <span style="color: #000000;">24</span>,  <span style="color: #000000;">5</span> <span style="color: #0000ff;">Say</span> <span style="color: #ff0000;">"Larghezza"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>,<span style="color: #000000;">14</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg<br />   @ <span style="color: #000000;">22</span>, <span style="color: #000000;">75</span> <span style="color: #0000ff;">GET</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> nLarghezza <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>,<span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span>  <span style="color: #0000ff;">RIGHT</span> <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #B900B9;">//readonly</span><br /><br />   @ <span style="color: #000000;">44</span>,  <span style="color: #000000;">5</span> <span style="color: #0000ff;">Say</span> <span style="color: #ff0000;">"Altezza"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>,<span style="color: #000000;">14</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg<br />   @ <span style="color: #000000;">42</span>, <span style="color: #000000;">75</span> <span style="color: #0000ff;">GET</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> nAltezza  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>,<span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">RIGHT</span> <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #B900B9;">//readonly</span><br /><br />   @ <span style="color: #000000;">54</span>, <span style="color: #000000;">75</span> <span style="color: #0000ff;">checkboX</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span>  <span style="color: #0000ff;">VAR</span> lOrizontale <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Orizzontale"</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">110</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">PIXEL</span>  <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />                 <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> cambiapagina<span style="color: #000000;">&#40;</span>@nAltezza, @nLarghezza,aget,cFormato,lOrizontale<span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> ;<br />   <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">init</span> <span style="color: #000000;">&#40;</span>aget<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lReadOnly</span> :=.t.,;<br />            aget<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lReadOnly</span> :=.t. <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">Function</span> CambiaPagina<span style="color: #000000;">&#40;</span>nAltezza, nLarghezza,aget,cFormato,lOrizontale<span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">IF</span> alltrim<span style="color: #000000;">&#40;</span>cFormato<span style="color: #000000;">&#41;</span>=<span style="color: #ff0000;">"A4"</span><br />      <span style="color: #00C800;">IF</span> lOrizontale<br />            nAltezza   := <span style="color: #000000;">29.7</span><br />            nLarghezza := <span style="color: #000000;">21</span><br />         <span style="color: #00C800;">ELSE</span><br />           nAltezza   := <span style="color: #000000;">21</span><br />           nLarghezza := <span style="color: #000000;">29.7</span><br />       <span style="color: #00C800;">ENDIF</span><br />      aget<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lReadOnly</span> :=.t.<br />      aget<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lReadOnly</span> :=.t.<br />   <span style="color: #00C800;">else</span><br />      nAltezza   := <span style="color: #000000;">0</span><br />      nLarghezza := <span style="color: #000000;">0</span><br />      aget<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lReadOnly</span> :=.f.<br />      aget<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lReadOnly</span> :=.f.<br />   <span style="color: #00C800;">endif</span><br /><br />   aget<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   aget<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:11cra84o] it change the value from 29.7 to 30 why ???????
get read only
Pls try this. [code=fw:1riujekp]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oDlg<br />   <span style="color: #00C800;">local</span> aFormati   :=<span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"A4"</span>,<span style="color: #ff0000;">"Personalizzato"</span><span style="color: #000000;">&#125;</span><br />   <span style="color: #00C800;">local</span> nLarghezza  := <span style="color: #000000;">21</span><br />   <span style="color: #00C800;">local</span> nALtezza    := <span style="color: #000000;">29.7</span><br />   <span style="color: #00C800;">local</span> cFormato    :=<span style="color: #ff0000;">"A4"</span><br />   <span style="color: #00C800;">local</span> lOrizontale := .f.<br /><br />   <span style="color: #00C800;">local</span> aGet<span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">400</span>,<span style="color: #000000;">200</span> <span style="color: #0000ff;">PIXEL</span><br /><br />   @  <span style="color: #000000;">8</span>,  <span style="color: #000000;">5</span> <span style="color: #0000ff;">Say</span> <span style="color: #ff0000;">"Tipo Pagina "</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>,<span style="color: #000000;">14</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg<br />   @  <span style="color: #000000;">8</span>, <span style="color: #000000;">75</span> <span style="color: #0000ff;">COMBOBOX</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cFormato <span style="color: #0000ff;">ITEMS</span> aFormati <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>,<span style="color: #000000;">90</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg;<br />        <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> cambiapagina<span style="color: #000000;">&#40;</span>@nAltezza, @nLarghezza,aget,cFormato,lOrizontale<span style="color: #000000;">&#41;</span><br /><br />   @ <span style="color: #000000;">24</span>,  <span style="color: #000000;">5</span> <span style="color: #0000ff;">Say</span> <span style="color: #ff0000;">"Larghezza"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>,<span style="color: #000000;">14</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg<br />   @ <span style="color: #000000;">22</span>, <span style="color: #000000;">75</span> <span style="color: #0000ff;">GET</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> nLarghezza <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>,<span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span>  <span style="color: #0000ff;">RIGHT</span> <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #B900B9;">//readonly</span><br /><br />   @ <span style="color: #000000;">44</span>,  <span style="color: #000000;">5</span> <span style="color: #0000ff;">Say</span> <span style="color: #ff0000;">"Altezza"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>,<span style="color: #000000;">14</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg<br />   @ <span style="color: #000000;">42</span>, <span style="color: #000000;">75</span> <span style="color: #0000ff;">GET</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> nAltezza  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>,<span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">RIGHT</span> <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #B900B9;">//readonly</span><br /><br />   @ <span style="color: #000000;">54</span>, <span style="color: #000000;">75</span> <span style="color: #0000ff;">checkboX</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span>  <span style="color: #0000ff;">VAR</span> lOrizontale <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Orizzontale"</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">110</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">PIXEL</span>  <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />                 <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> cambiapagina<span style="color: #000000;">&#40;</span>@nAltezza, @nLarghezza,aget,cFormato,lOrizontale<span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> ;<br />   <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">init</span> <span style="color: #000000;">&#40;</span>aget<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lReadOnly</span> :=.t.,;<br />            aget<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lReadOnly</span> :=.t. <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">Function</span> CambiaPagina<span style="color: #000000;">&#40;</span>nAltezza, nLarghezza,aget,cFormato,lOrizontale<span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">IF</span> alltrim<span style="color: #000000;">&#40;</span>cFormato<span style="color: #000000;">&#41;</span>=<span style="color: #ff0000;">"A4"</span><br />      <span style="color: #00C800;">IF</span> lOrizontale<br />            nAltezza   := <span style="color: #000000;">29.7</span><br />            nLarghezza := <span style="color: #000000;">21</span><br />         <span style="color: #00C800;">ELSE</span><br />           nAltezza   := <span style="color: #000000;">21</span><br />           nLarghezza := <span style="color: #000000;">29.7</span><br />       <span style="color: #00C800;">ENDIF</span><br />      aget<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lReadOnly</span> :=.t.<br />      aget<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lReadOnly</span> :=.t.<br />   <span style="color: #00C800;">else</span><br />      nAltezza   := <span style="color: #000000;">0.00</span><br />      nLarghezza := <span style="color: #000000;">0.00</span><br />      aget<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lReadOnly</span> :=.f.<br />      aget<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lReadOnly</span> :=.f.<br />   <span style="color: #00C800;">endif</span><br /><br />   aget<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   aget<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:1riujekp]
get read only
Silvio: Try this [code=fw:33xyfawi]<div class="fw" id="{CB}" style="font-family: monospace;"><br />   @  <span style="color: #000000;">8</span>, <span style="color: #000000;">75</span> <span style="color: #0000ff;">COMBOBOX</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cFormato <span style="color: #0000ff;">ITEMS</span> aFormati <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>,<span style="color: #000000;">90</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg;<br />        <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> <span style="color: #000000;">&#40;</span>cambiapagina<span style="color: #000000;">&#40;</span>@nAltezza, @nLarghezza,aget,cFormato,lOrizontale<span style="color: #000000;">&#41;</span>, oDlg:<span style="color: #0000ff;">Update</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:33xyfawi] [quote="Silvio.Falconi":33xyfawi]it change the value from 29.7 to 30 why ???????[/quote:33xyfawi] [code=fw:33xyfawi]<div class="fw" id="{CB}" style="font-family: monospace;"><br />   @ <span style="color: #000000;">22</span>, <span style="color: #000000;">75</span> <span style="color: #0000ff;">GET</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> nLarghezza <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>,<span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span>  <span style="color: #0000ff;">RIGHT</span> <span style="color: #0000ff;">picture</span> <span style="color: #ff0000;">"99.99"</span> <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #B900B9;">//readonly</span><br /> </div>[/code:33xyfawi]
get read only
I resolved thnks
get valid clause options
Currently using Clipper, I have several "gets" each using a valid clause of AD_tbrpopup (Frankie.lib ). This popup listbox displays all Code and company fields within a .dbf file . "Code" is a 3 character uppercase user defined code representing the corresponding long company name field. When the user enters the get they can incrementally search each character of the code for the desired entry. The user can only select codes already within the .dbf file, that is maintained elsewhere. So far, I have tryed combobox gets, but I only want to select the 3 digit code while at the same time viewing the long company name. What FWH utility would easily accomplish this requirement, TWbrowse ?? 08/21/12 4:30pm CST I've kept on searching and have found DBcombo (samples\Testdbc1.prg) , will explore. Bruce S. FWH - 12.06 Jun 2012 Harbour - 3.1.0 Rev. 17222 bcc582 Clipper - 5.3b
get valid clause options
Bruce, Yes, you may use DbCombo or use ( @ | REDEFINE ) GET ... ACTION ... and open a dialog with a browse ( twbrowse or txbrowse ) from there
get valid clause options
Bruce, I think forcing users to deal with codes is the wrong approach. The customer won't know the code so all they can provide is their name. So, the user only has a name and must somehow remember or lookup a code. A much better approach is to just have the application allow the user to lookup the name and deal with the code invisibly in the background. Our job is the make things easier for the user not more difficult. Regards, James
get variabile lunga su più righe
avendo uno spazio maggiore disponibile in altezza ma non in larghezza, vorrei gestire la GET di una variabile molto lunga (80 byte) su più righe, in modo che scrivendoci dentro mi vada a capo automaticamente e quindi possa essere visibile tutta per intero impostando una SIZE più stretta ma più alta. Non ci sono riuscito: quando scrivo non riesco a sfruttarla in verticale ma mi scorre sempre orizzontalmente sulla stessa riga, attivando quindi lo scroll orizzontale che invece vorrei evitare.Ho provato con MULTILINE ma se non erro mi sembra risulti funzionante solo sui campi memo (difatti mi dà errore).Qualche suggerimento?grazie.esempio:[code:2n6rpk8q]local mVARIABILE&#58;=space&#40;80&#41; @ 1,1 get mVARIABILE picture "@!" SIZE 100,100 PIXEL [/code:2n6rpk8q]
get variabile lunga su più righe
Eccoti un esempio funzionante:[code:27mfkaab]#include "Fivewin&#46;ch" #define EM_LIMITTEXT 197 FUNCTION MAIN&#40;&#41; LOCAL oDlg LOCAL oGet, cVar &#58;= SPACE&#40; 80 &#41; DEFINE DIALOG oDlg @ 1, 1 GET oGet VAR cVar MEMO; SIZE 100, 30 oGet&#58;nStyle -= ES_WANTRETURN @ 3, 1 BUTTON "&Close" ACTION oDlg&#58;End&#40;&#41; ACTIVATE DIALOG oDlg; ON INIT oGet&#58;SendMsg&#40; EM_LIMITTEXT, LEN&#40; cVar &#41;, 0 &#41;; CENTER RETURN NIL[/code:27mfkaab]EMG
get who is using a file
Hello, When a folder is shared, is there a function to get all the users that are using a file?. Thank you.
get who is using a file
I am not sure whether this is what you are looking for. The following code gives you a list of users of a particular exe file. Try this [code=fw:2acykkd6]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#Include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #B900B9;">//-----------------------//</span><br /><span style="color: #00C800;">Function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    &nbsp;MsgList<span style="color: #000000;">&#40;</span>GetExeUsers<span style="color: #000000;">&#40;</span>cFileName<span style="color: #000000;">&#40;</span> HB_ARGV<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">NIL</span>        <br />    <br />*------------------------------------*<br /><span style="color: #00C800;">FUNCTION</span> GetExeUsers<span style="color: #000000;">&#40;</span>cExe <span style="color: #000000;">&#41;</span><br />*------------------------------------*<br />   <span style="color: #00C800;">Local</span> oLoc,oWmi<br />   <span style="color: #00C800;">Local</span> oList, oProc<br />   <span style="color: #00C800;">Local</span> cUser, cDomain<br />   <span style="color: #00C800;">Local</span> aList := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br />   oLoc:= CreateObject<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"wbemScripting.SwbemLocator"</span> <span style="color: #000000;">&#41;</span><br />   oWmi:= oLoc:<span style="color: #000000;">ConnectServer</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <br />   <br />   <span style="color: #00C800;">IF</span> !Empty<span style="color: #000000;">&#40;</span>oWmi<span style="color: #000000;">&#41;</span><br />      oList := oWmi:<span style="color: #000000;">ExecQuery</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"select * from Win32_Process where Name = '"</span> + cExe + <span style="color: #ff0000;">"'"</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">FOR</span> EACH oProc IN oList<br />         <span style="color: #00C800;">IF</span> <span style="color: #000000;">&#40;</span> oProc:<span style="color: #000000;">GetOwner</span><span style="color: #000000;">&#40;</span> @cUser, @cDomain <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> == <span style="color: #000000;">0</span><br />            cUser = cDomain + <span style="color: #ff0000;">"<span style="color: #000000;">\"</span> + cUser<br />            IF AScan( aList, cUser ) == 0<br />               AAdd( aList, cUser )<br />            ENDIF<br />         ENDIF<br />      NEXT<br />   ENDIF<br /><br />RETURN aList    </span></div>[/code:2acykkd6] Regards [b:2acykkd6]Anser[/b:2acykkd6]
get y password en algunos funciona..
hola. tengo un recurso con get con la clausula password. en un get funciona y en el otro no deja digitar todo el largo buscado, solo 3 digitos. a alguien le pasa? tengo la version 2020 gracias
get y password en algunos funciona..
Puedes compartir un ejemplo del problema? EMG
get y password en algunos funciona..
[quote="goosfancito":vwqmjzzc]hola. tengo un recurso con get con la clausula password. en un get funciona y en el otro no deja digitar todo el largo buscado, solo 3 digitos. a alguien le pasa? tengo la version 2020 gracias[/quote:vwqmjzzc] Hola Gustavo. Por que no pruebas a definir la variable a utilizar en el GET con los espacios que te hacen falta. [code=fw:vwqmjzzc]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">LOCAL</span> cPasword := Space<span style="color: #000000;">&#40;</span><span style="color: #000000;">10</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Por poner un ejemplo, si son 10 caracteres.</span><br />&nbsp;</div>[/code:vwqmjzzc] Saludos. Jose.
get y password en algunos funciona..
el ejemplo no se como compartirlo. desde el res lo defino como get con password, aclaro que me esta pasando esto con la version que tengo ahora de harbour y fwh 2020, con la anterior que tenia no tenia este inconveniente. al get lo defino como space(20) pero tampoco me da. si en el get del recurso le quito la clausula password funciona sin problemas.
get y password en algunos funciona..
Please indicate the correct FWH version. There is no version FWH 2020. Versions can be one of 2002, 2004, 2006, 2007, 2008, 2012. If you let us know the correct version, we will check it here with that version.
get y password en algunos funciona..
2012
get y password en algunos funciona..
We tested with FWH 2012 and also later versions. We did not experience any problems indicated above. We are able to enter the passwords total number of characters upto the original width of the variable. This is the sample we tested: RC [code=fw:6hqdqdr6]<div class="fw" id="{CB}" style="font-family: monospace;">#ifndef __64__<br />&nbsp; <span style="color: #000000;">1</span> <span style="color: #000000;">24</span> <span style="color: #ff0000;">"WinXP/WindowsXP.Manifest"</span><br />#else<br />&nbsp; <span style="color: #000000;">1</span> <span style="color: #000000;">24</span> <span style="color: #ff0000;">"WinXP/WindowsXP.Manifest64"</span><br />#endif<br /><br />TESTPW <span style="color: #0000ff;">DIALOG</span> <span style="color: #000000;">99</span>, <span style="color: #000000;">89</span>, <span style="color: #000000;">194</span>, <span style="color: #000000;">200</span><br /><span style="color: #0000ff;">STYLE</span> DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU<br />CAPTION <span style="color: #ff0000;">"Password"</span><br /><span style="color: #0000ff;">FONT</span> <span style="color: #000000;">8</span>, <span style="color: #ff0000;">"MS Sans Serif"</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp;<span style="color: #0000ff;">CHECKBOX</span> <span style="color: #ff0000;">"EnableEdit"</span>, <span style="color: #000000;">100</span>, <span style="color: #000000;">33</span>, <span style="color: #000000;">21</span>, <span style="color: #000000;">129</span>, <span style="color: #000000;">11</span>, BS_AUTOCHECKBOX | WS_TABSTOP<br />&nbsp;EDITTEXT <span style="color: #000000;">101</span>, <span style="color: #000000;">33</span>, <span style="color: #000000;">51</span>, <span style="color: #000000;">131</span>, <span style="color: #000000;">14</span>, WS_BORDER | WS_TABSTOP<br />&nbsp;EDITTEXT <span style="color: #000000;">102</span>, <span style="color: #000000;">33</span>, <span style="color: #000000;">71</span>, <span style="color: #000000;">131</span>, <span style="color: #000000;">14</span>, WS_BORDER | WS_TABSTOP | ES_PASSWORD<br />&nbsp;EDITTEXT <span style="color: #000000;">103</span>, <span style="color: #000000;">33</span>, <span style="color: #000000;">91</span>, <span style="color: #000000;">131</span>, <span style="color: #000000;">14</span>, WS_BORDER | WS_TABSTOP | ES_PASSWORD<br />&nbsp;EDITTEXT <span style="color: #000000;">104</span>, <span style="color: #000000;">33</span>,<span style="color: #000000;">111</span>, <span style="color: #000000;">131</span>, <span style="color: #000000;">14</span>, WS_BORDER | WS_TABSTOP | ES_PASSWORD<br />&nbsp;DEFPUSHBUTTON <span style="color: #ff0000;">"OK"</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">42</span>, <span style="color: #000000;">150</span>, <span style="color: #000000;">50</span>, <span style="color: #000000;">20</span><br />&nbsp;PUSHBUTTON <span style="color: #ff0000;">"Cancel"</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">102</span>, <span style="color: #000000;">150</span>, <span style="color: #000000;">50</span>, <span style="color: #000000;">20</span><br /><span style="color: #000000;">&#125;</span></div>[/code:6hqdqdr6] The dialog contains 4 gets. First Get is a normal get and the other 3 are password gets. PRG: [code=fw:6hqdqdr6]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oDlg, oFont, aGet<span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aText &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Name"</span>, <span style="color: #ff0000;">"pwd"</span>, <span style="color: #ff0000;">"pword"</span>, <span style="color: #ff0000;">"password"</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> lEnable &nbsp;:= .t.<br /><br />&nbsp; &nbsp;SetGetColorFocus<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;AEval<span style="color: #000000;">&#40;</span> aText, <span style="color: #000000;">&#123;</span> |c,i| aText<span style="color: #000000;">&#91;</span> i <span style="color: #000000;">&#93;</span> := PadR<span style="color: #000000;">&#40;</span> c, <span style="color: #000000;">15</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"TAHOMA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-14</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"TESTPW"</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">TITLE</span> FWVERSION<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">CHECKBOX</span> lEnable <span style="color: #0000ff;">ID</span> <span style="color: #000000;">100</span> <span style="color: #0000ff;">OF</span> oDlg<br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> aGet<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> aText<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">101</span> <span style="color: #0000ff;">OF</span> oDlg<br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> aGet<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> aText<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">102</span> <span style="color: #0000ff;">OF</span> oDlg<br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> aGet<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> aText<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">103</span> <span style="color: #0000ff;">OF</span> oDlg<br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> aGet<span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> aText<span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">104</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br />&nbsp; &nbsp;AEval<span style="color: #000000;">&#40;</span> aText, <span style="color: #000000;">&#123;</span> |c,i| aText<span style="color: #000000;">&#91;</span> i <span style="color: #000000;">&#93;</span> := Trim<span style="color: #000000;">&#40;</span> c <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;? FW_ArrayAsList<span style="color: #000000;">&#40;</span> aText <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp;</div>[/code:6hqdqdr6] [url=https&#58;//imageshack&#46;com/i/pnA3CCwDg:6hqdqdr6][img:6hqdqdr6]https&#58;//imagizer&#46;imageshack&#46;com/img923/4440/A3CCwD&#46;gif[/img:6hqdqdr6][/url:6hqdqdr6] Please copy the prg and rc to fwh\samples folder and build and run with buildh.bat.
get.. action
Una consulta....cuando utilizo get... bitmap.... action y le asigno una función que por ejemplo busca un cliente y me devuelve su numero de cliente... al ejecutarse la función y devolver el valor, este se pinta en el get y todo anda perfecto.... pero... ¿Qué pasa si quiero que el get pierda foco una vez que he seleccionado el cliente desde la función asignada al botón, de modo de que se ejecute el block de validación y pase al siguiente get sin tener que volver a presionar enter ?.He probado .....ACTION ( mifuncion(), oGet1:oJump:=oGet2, oGet2:SetFocus() ) y nada... sin resultados.Como puedo hacerlo?Agradezco desde ya la ayuda que generosamente puedan brindarme.
get.. action
Intentas asi:xFocus( oGet2 )...[code:1wer1a31] //-------------------------------------------------------------------------// FUNCTION xFocus&#40; oObj &#41; xSetFocus&#40; oObj &#41; xSetFocus&#40; oObj &#41; RETURN&#40; &#46;T&#46; &#41; //-------------------------------------------------------------------------// FUNCTION xSetFocus&#40; oObj &#41; LOCAL _oWnd &#58;= oObj&#58;oWnd, _oTempo &#58;= "" DEFINE Timer _oTempo Interval 10 of _oWnd ; Action &#40; oObj&#58;SetFocus&#40;&#41;, _oTempo&#58;End&#40;&#41; &#41; ACTIVATE Timer _oTempo RETURN&#40; &#46;T&#46; &#41; //-------------------------------------------------------------------------// [/code:1wer1a31]
get.. action
[quote="jose_murugosa":2veicpgo]Una consulta.... cuando utilizo get... bitmap.... action y le asigno una función que por ejemplo busca un cliente y me devuelve su numero de cliente... al ejecutarse la función y devolver el valor, este se pinta en el get y todo anda perfecto.... pero... ¿Qué pasa si quiero que el get pierda foco una vez que he seleccionado el cliente desde la función asignada al botón, de modo de que se ejecute el block de validación y pase al siguiente get sin tener que volver a presionar enter ?. He probado .....ACTION ( mifuncion(), oGet1:oJump:=oGet2, oGet2:SetFocus() ) y nada... sin resultados. Como puedo hacerlo? Agradezco desde ya la ayuda que generosamente puedan brindarme.[/quote:2veicpgo]Yo en la búsqueda del botón, cuando alguien valida el dato de búsqueda, lo que hago es simular la tecla enter. Es decir, cuando han encontrado el dato correcto y validan, envío la tecla enter. En resumen, le ahorro al operario que la pulse él, con un __KEYBOARD( Chr( 13 ) ).
get.. action
José:El el foro en Inglés vi esta solución.many thanks, oNextControl:PostMsg( WM_SETFOCUS ) works fine. Salaudos
get.. action
Karinha, Triumvirato y ArmandoGracias por sus posts!!!Finalmente, lo que me dió resultado fué la sugerencia de Armando.Anduvo este código:[code:3tknnu0r] @0,0 GET oGet1 VAR Var1 OF oDlg BITMAP "people&#46;bmp" action &#40; Lista&#40;&#41;, oGet2&#58;PostMsg&#40; WM_SETFOCUS &#41; VALID Var1<>Space&#40;5&#41; UPDATE[/code:3tknnu0r]Gracias nuevamente a todos.
getActiveWindow()?
Dear Antonio and friends.I get the handle of dialog when I call the function getActiveWindow(). But, when I try to use oWndFromhWnd( getActiveWindow() ), this function returns to me nothing! Nil.[code:2g9p7fd9]getActiveWindow&#40;&#41; -> 2427216 oWndFromhWnd&#40; getActiveWindow&#40;&#41; &#41; -> Nil[/code:2g9p7fd9]Why? I want to get the object dialog, of the active dialog in moment, on any location of my application!It's possible?Thanks!!
getActiveWindow()?
Júlio,Is it a modal dialog ? You can use GetWndDefault()
getActiveWindow()?
[quote="Antonio Linares":3e9b0cpi]Júlio, Is it a modal dialog ? You can use GetWndDefault()[/quote:3e9b0cpi]Yes, it's a modal dialog! I will try your solution Antonio.
getVersion() problems
hi GetVersion() works bad with my fw22/24 it only works well with my fwh24 with w95,xp,vista using fw24 it says always : getversion[1] = 3 getversion[2] = 95 if i use fwh24 all is ok ! Any patch for 16bit version of my fw22,fw24 ? tks Romeo/Zingoni
getcommerror como tratar el resultado?
Ejemplo: GetCommError( nIdComDevice, @cComStat ) El contenido de cComStat es el siguiente: €\{ (casi siempre) un string de 12 caracteres. (128) (92) (123) (0) (0) (0) (0) (0) (0) (0) (0) (0) Puedo determinar de alguna manera leyendo este resultado que la puerta comm esté pronta para recibir/enviar datos? O mejor dicho, que indican cada uno de los 12 valores en este string. Gracias.
getcommerror como tratar el resultado?
This is from Win16 docs: [quote:1zw30gek]GetCommError (2.x) int GetCommError(idComDev, lpStat) int idComDev; /* communications device identifier */ COMSTAT FAR* lpStat; /* address of device-status buffer */ The GetCommError function retrieves the most recent error value and current status for the specified device. When a communications error occurs, Windows locks the communications port until GetCommError clears the error. Parameter Description idComDev Specifies the communications device to be examined. The OpenComm function returns this value. lpStat Points to the COMSTAT structure that is to receive the device status. If this parameter is NULL, the function returns only the error values. Returns The return value specifies the error value for the most recent communications-function call to the specified device, if GetCommError is successful. Errors The return value can be a combination of the following values: Value Meaning CE_BREAK Hardware detected a break condition. CE_CTSTO CTS (clear-to-send) timeout. While a character was being transmitted, CTS was low for the duration specified by the fCtsHold member of the COMSTAT structure. CE_DNS Parallel device was not selected. CE_DSRTO DSR (data-set-ready) timeout. While a character was being transmitted, DSR was low for the duration specified by the fDsrHold member of COMSTAT. CE_FRAME Hardware detected a framing error. CE_IOE I/O error occurred during an attempt to communicate with a parallel device. CE_MODE Requested mode is not supported, or the idComDev parameter is invalid. If set, CE_MODE is the only valid error. CE_OOP Parallel device signaled that it is out of paper. CE_OVERRUN Character was not read from the hardware before the next character arrived. The character was lost. CE_PTO Timeout occurred during an attempt to communicate with a parallel device. CE_RLSDTO RLSD (receive-line-signal-detect) timeout. While a character was being transmitted, RLSD was low for the duration specified by the fRlsdHold member of COMSTAT. CE_RXOVER Receiving queue overflowed. There was either no room in the input queue or a character was received after the end-of-file character was received. CE_RXPARITY Hardware detected a parity error. CE_TXFULL Transmission queue was full when a function attempted to queue a character. See Also OpenComm, COMSTAT[/quote:1zw30gek] EMG
getcommerror como tratar el resultado?
Enrico, vedo che piano piano impari lo spagnolo. Ho letto quanto scrito da te, però, non riesco a capire ancora come tratare la stringa che mi arriva. Secondo questo testo, questa stringa doveve puntare su la struttura dello stato della porta com, però.... come faccio ad accedere a questa struttura? Devo fare, nAnd( GetCommError( nIdComDevice, @cComStat ), CE_CTSTO ) non so da dove cominciare. Grazie SPANISH Enrico, veo que despacito vas aprendiendo español. Lei lo que escribiste, pero no llego a entender como tratar el string que me llega. Según este texto, este string debería apuntar a la estructura del estado de la puerta com, pero... como hago a acceder a dicha estructura? Tengo que hacer, nAnd( GetCommError( nIdComDevice, @cComStat ), CE_CTSTO ) no se por donde comenzar Gracias.
getcommerror como tratar el resultado?
[quote="pymsoft":aa6sg24l]Enrico, vedo che piano piano impari lo spagnolo.[/quote:aa6sg24l] E' abbastanza simile all'italiano. Riesco un po' a leggerlo ma non mi chiedere di scriverlo. <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> [quote="pymsoft":aa6sg24l]Ho letto quanto scrito da te, però, non riesco a capire ancora come tratare la stringa che mi arriva. Secondo questo testo, questa stringa doveve puntare su la struttura dello stato della porta com, però.... come faccio ad accedere a questa struttura? Devo fare, nAnd( GetCommError( nIdComDevice, @cComStat ), CE_CTSTO ) non so da dove cominciare.[/quote:aa6sg24l] Sì, devi fare esattamente così. Il contenuto di cComStat non ti interessa. EMG
getcommerror como tratar el resultado?
Grazie, farò delle prove.
getcommerror como tratar el resultado?
El resultado de GetCommError me da siempre cero, solo cambia cuando hay algun error. Segun la ayuda de FW --> GetCommError Syntax: GetCommError( <nIdComDev>, @<cComStat> ) \\ <nRetCode> This function retrieves the most recent error value and current status for the specified device. Parameters: <nIdComDev> The communications device identifier created with the OpenComm() function. <cComStat> A string that will receive the information for the comm status. --> Entonces, cComStat trae informacion con el status del puerto. Volvemos al principio, ¿como debo tratar cComStat? Gracias
getcommerror como tratar el resultado?
cComStat is the dump of lpStat parameter. These are the fields of COMSTAT structure: [quote:3mmbh4t4]COMSTAT (3.1) typedef struct tagCOMSTAT { /* cmst */ BYTE status; UINT cbInQue; UINT cbOutQue; } COMSTAT; The COMSTAT structure contains information about a communications device. Member Description status Specifies the status of the transmission. This member can be one or more of the following flags: Flag Meaning CSTF_CTSHOLD Specifies whether transmission is waiting for the CTS (clear-to-send) signal to be sent. CSTF_DSRHOLD Specifies whether transmission is waiting for the DSR (data-set-ready) signal to be sent. CSTF_RLSDHOLD Specifies whether transmission is waiting for the RLSD (receive-line-signal-detect) signal to be sent. CSTF_XOFFHOLD Specifies whether transmission is waiting as a result of the XOFF character being received. CSTF_XOFFSENT Specifies whether transmission is waiting as a result of the XOFF character being transmitted. Transmission halts when the XOFF character is transmitted and used by systems that take the next character as XON, regardless of the actual character. CSTF_EOF Specifies whether the end-of-file (EOF) character has been received. CSTF_TXIM Specifies whether a character is waiting to be transmitted. cbInQue Specifies the number of characters in the receive queue. cbOutQue Specifies the number of characters in the transmit queue. See Also GetCommError [/quote:3mmbh4t4] EMG