topic
stringlengths
1
63
text
stringlengths
1
577k
design.prg from FW samples
[quote="Marc Venken":25s9xox5]Thanks.. The ruler works.. The class : I have to explore...[/quote:25s9xox5] you can use also a tbitmap class and insert that two data if you see genteport.prg you can show a obmp white and on it the rulers
designer.prg
Dear Antonio, what is the program designer.prg from the samples for. I can't compile the program. Is it Harbour only. Thanks in advance Otto Generating C source output to 'designer.c'... Done. Lines 215, Functions/Procedures 10, pCodes 2200 C:\fwh\samples\designer.prg(150) Warning W0001 Ambiguous reference: 'OWND' Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland C:\fwh\samples\designer.c: Turbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland Error: Unresolved external '_HB_FUN_HB_COMPILEFROMBUF' referenced from C:\FWH\SAMPLES\DESIGNER.OBJ Error: Unresolved external '_HB_FUN_HB_HRBRUN' referenced from C:\FWH\SAMPLES\DESIGNER.OBJ * Linking errors *
designer.prg
[code=fw:fe7xm0ys]<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;">STATIC</span> oWnd<br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:fe7xm0ys] BUILDH Designer [url:fe7xm0ys]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=6&t=25735&p=140549&hilit=compilefrombuf#p140549[/url:fe7xm0ys] Regards, saludos.
designer.prg
Otto, designer.prg is a test about designing your app at runtime and then generating its source code Please right click on it to start editing it at runtime
desplazamiento browse hernán
Lo probé pero no era el problema, lo que me ocurre cuando uso las flechas de desplazamiento es que cuando llega al tope o al final de las celdas en vez de seguir desplazando las celdas sólo va cambiando la primera fila ó última, si me posicionó sobre la barra de desplazamiento un poco mas arriba que las flechas funciona perfecto... <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> Hay algo para solucionarlo fwh25 y xharbour 99.3 Gracias
desplazamiento por gets del dialogo:Up() y :Down() o por TAB
Hola: Me gustaria asignar dos botones, Up y Down, para que al pulsar sobre ellos se desplacen por los gets del dialogo, del mismo modo que oListbox:GoUp() y oListBox:GoDown(), pero estos metodos no estan definidos. También me valdía que surtiera el mismo efecto que pulsar la tecla TAB. Muchas gracias. Un saludo, Pablo
desplazamiento por gets del dialogo:Up() y :Down() o por TAB
Pablo, Puesto que esos botones al pulsarlos tomarían el foco, entonces hay que usar el dato oJump: [code:qsortdxn] n = 1 // nº de orden del primer GET &#46;&#46;&#46; BUTTON oBtn1 &#46;&#46;&#46; ACTION If&#40; n > 1, oBtn1&#58;oJump &#58;= oDlg&#58;aControls&#91; n-- &#93;, &#41; VALID &#46;t&#46; &#46;&#46;&#46; BUTTON oBtn2 &#46;&#46;&#46; ACTION If&#40; n < Len&#40; oDlg&#58;aControls &#41;, oBtn2&#58;oJump &#58;= oDlg&#58;aControls&#91; n++ &#93;,&#41; VALID &#46;t&#46; [/code:qsortdxn]
desplazar en Xbrowse
Estimados Amigos, necesito su ayuda, tengo una ventana de datos que se carga con una consulta de un archivo MySql, La ventana muestra cinco líneas de datos, en un momento, pero si hay mas líneas de información, el usuario debe hacer movimientos con las flechas cursoras o con el mousse, el desplazamiento necesario para seguir observando mas líneas de información, mi pregunta es, se puede hacer alguna funcion o la clase xbrowse, tiene una opcion para que se vaya desplazando de forma automatica linea a linea por un cierto tiempo y retornar al principio y volver al inicio y empezar de nuevo, la secuencia.
desplazar en Xbrowse
kpidata: La información que proporcionas es escasa, asumo que algún otro usuario agrega más líneas y esas son la que no se ven. Si es el caso, te recomiendo las siguientes dos líneas de código: oRs:Requery() oBrw:Refresh() Espero sirvan de algo Saludos
desplazar en Xbrowse
Mi idea seria poner un Timer para que cada 2 segundos salta de renglón Así le entendí.
desplazar en Xbrowse
Amigos, el tema es que genero un browse con servicios de taller a realizar, estos datos los digita una persona en una oficina y en el taller deben ir viendo esta informacion, el tema es que en la pantalla solo se visualizan 5 lineas de los datos a procesar, para ver mas... el tecnico debe ir al computador y mover el mousse o las flechas cursoras para ir viendo las lineas que estan mas abajo del xbrowse... pero si el tecnico se olvida.. no ve el detalle que esta mas abajo, por lo que necesito saber como es que logro hacer que cada cierto tiempo, el programa con el xbrowse abierto, pase del foco de la linea 1 a la linea 2, y despues a la linea 3 y asi hasta la linea... N, para despues, volver al inicio y empezar de nuevo... aun cuando se agregan nuevas lineas, a lo menos que me muestre el contenido completo de la consulta, y asi.. si son mas de 5 filas, el sistema solo pase a la 6, 7, 9, etc.. y al rato volver a la 1 y asi volver a comenzar...
desplazar en Xbrowse
kpidata: Entonces, creo, es una combinación de la respuesta de Javier (Saludos Javier) y la mía Hacer un timer que cada n segundos haga el ReQuery() y el Refresh() Saludos
desplazar en Xbrowse
Estimados, trato de entender lo que me dicen, pero me pierdo, mi conocimiento de Xbrowse es limitado, en pocas palabras, tengo estas 3 dudas en particular. a) Debo dejar el foco al ingresar a la consulta. b) Ya en la primera linea... como hago para que baje solo a la segunda. c) ya en el final, como hago para que suba a la primera linea... del browse... y empezar de nuevo
desplazar en Xbrowse
Kpidata Utilizando un Timer así te podes mover [code=fw:2lqx7fp8]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oBrw:<span style="color: #000000;">GoDown</span><span style="color: #000000;">&#40;</span>nLine<span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//Abajo</span><br />oBrw:<span style="color: #000000;">GoUp</span><span style="color: #000000;">&#40;</span>nLine<span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//Arriba</span><br />oBrw:<span style="color: #000000;">GoBottom</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//Final</span><br />oBrw:<span style="color: #000000;">GoTop</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//Inicio</span><br /><br /> </div>[/code:2lqx7fp8]
desplazar en Xbrowse
Esto es con DBF pero es casi identico a Mysql [code=fw:qufmy232]<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: #00D7D7;">#include</span> <span style="color: #ff0000;">"xbrowse.ch"</span><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> oChild, oBrw, oTimer<br />&nbsp; &nbsp;USE CUSTOMER <span style="color: #00C800;">NEW</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oChild <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Mueve Solo"</span> <br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">OF</span> oChild <span style="color: #0000ff;">AUTOCOLS</span> <span style="color: #0000ff;">ALIAS</span> <span style="color: #ff0000;">"CUSTOMER"</span> LINES CELL <span style="color: #000000;">105</span>,<span style="color: #000000;">80</span> <span style="color: #0000ff;">pixel</span> <br /><br />&nbsp; &nbsp;WITH OBJECT oBrw<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; &nbsp; :<span style="color: #000000;">bPastEof</span> := <span style="color: #000000;">&#123;</span>|| oBrw:<span style="color: #000000;">GoTop</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span> <span style="color: #B900B9;">//Esto hace que cuando intentes pasar el ultimo registro, vuelva solo al primero</span><br />&nbsp; &nbsp;END<br />&nbsp; &nbsp;oChild:<span style="color: #000000;">oClient</span> := oBrw<br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">TIMER</span> oTimer <span style="color: #0000ff;">INTERVAL</span> <span style="color: #000000;">1000</span> <span style="color: #0000ff;">ACTION</span> Mover<span style="color: #000000;">&#40;</span>oBrw<span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">OF</span> oChild <span style="color: #B900B9;">// Un segundo de demora</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oChild <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#40;</span>oBrw:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oTimer:<span style="color: #0000ff;">Activate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <br /><br />&nbsp; &nbsp;<br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> Mover<span style="color: #000000;">&#40;</span>oBrw<span style="color: #000000;">&#41;</span><br />oBrw:<span style="color: #000000;">GoDown</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">nil</span><br />&nbsp;</div>[/code:qufmy232]
desplazar en Xbrowse
Estimados... amigos... fueron de mucha ayuda... el ultimo comentario me ayudo al final de resolver el problema... quedo super bien
despliegue en listbox con columna angosta
Hola a todos: tengo un listbox en un xbrowse, quisiera saber si se puede mostrar el listbox ampliado a pesar de que la columna asignada este reducida para ello? es decir que el listboxpueda abarcar otras columnas de antemano gracias
destroy bitmaps
I wish erase bitmap from dialog I made @nrow,ncol bitmap obtntemp RESOURCE cardmap SIZE 80,120 OF oDlg NOBORDER and put on odlg bitmap but I not Know How many the user draw on dialog I tried with end() / destroy() with no success !! any idea ?
destroy bitmaps
Silvio, to delete the paited images, You need to repaint the brush of the dialog. best regards Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
destroy bitmaps
I tried also with a small function I can call from another function function clrscr() for n=1 to len(oDlg21:aControls) oCtrl = oDlg21:aControls[ n ] IF oCtrl:ClassName() == "TBITMAP" oDlg21:aControls[ n ]:end() endif next //oDlg21:refresh() return nil it run for one or two time thenit crach with this error [code=fw:2sl4tihz]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> Time <span style="color: #0000ff;">from</span> start: <span style="color: #000000;">0</span> hours <span style="color: #000000;">0</span> mins <span style="color: #000000;">47</span> secs <br />   Error occurred <span style="color: #00C800;">at</span>: <span style="color: #000000;">02</span>/<span style="color: #000000;">13</span>/<span style="color: #000000;">16</span>, <span style="color: #000000;">13</span>:<span style="color: #000000;">02</span>:<span style="color: #000000;">57</span><br />   Error description: <span style="color: #000000;">Error</span> BASE/<span style="color: #000000;">1132</span>  Bound error: <span style="color: #000000;">array</span> access<br />   Args:<br />     <span style="color: #000000;">&#91;</span>   <span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> = A   <span style="color: #000000;">&#123;</span> ... <span style="color: #000000;">&#125;</span> length: <span style="color: #000000;">8</span><br />     <span style="color: #000000;">&#91;</span>   <span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> = N   <span style="color: #000000;">9</span><br /><br />Stack Calls<br />===========<br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">test</span>.prg => CLRSCR<span style="color: #000000;">&#40;</span> <span style="color: #000000;">541</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">test</span>.prg => PLAY21<span style="color: #000000;">&#40;</span> <span style="color: #000000;">525</span> <span style="color: #000000;">&#41;</span><br /><br /> </div>[/code:2sl4tihz] any solution ?
destroy bitmaps
Silvio, why not calling a Gdifunction, BEFORE painting the new images to clear the area ? [b:2c5xikj6]Fills a defined area with a color[/b:2c5xikj6] [color=#0000FF:2c5xikj6]FUNCTION DRAWRECTANGLE(ownd) local hdc:= oWnd:getdc() local oGraphics := Graphics():New( ownd:hDC ) local oPen := Pen():New( 255, 0, 0, 255 , 100 , .T.) // Pensize should be the hight of the area for solid oGraphics:DrawRect( oPen, , 320, 350, 140, 100 ) oGraphics:destroy()[/color:2c5xikj6] best regards Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> oWnd:releasedc() RETURN NIL
destroy bitmaps
see on mail pls
destroy a xbrowse
for the reservations program I show the list of services in an xbrowse, if I change my reservation and it doesn't have the services I must not show the xbrowse I tried with IF oBrw != NIL oBrw:Destroy() //end() Endif but nothing happens the oBrw is allway there any solution pls ?
destroy a xbrowse
Silvio, just use [size=150:2uhk4bl2]oBrw:Move( 0, 0 )[/size:2uhk4bl2] that will not harm any data regards Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
destroy a xbrowse
[quote="ukoenig":2mwlg1fs]Silvio, just use [size=150:2mwlg1fs]oBrw:Move( 0, 0 )[/size:2mwlg1fs] that will not harm any data regards Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->[/quote:2mwlg1fs] Uwe, I explain YOU I have the browse on a Vtaskbar as you can see here I need this xbrowse to view the services for each order but it is also possible that an order may not have the services this is activated when I press on an umbrella, obviously in this figure it is not there because since it doesn't work I have removed it [img:2mwlg1fs]https&#58;//i&#46;postimg&#46;cc/LXhJZ8C3/dddd&#46;jpg[/img:2mwlg1fs] but I think it's clear to give you the idea when I change umbrella I go to load the data from an archive by making a scope on the order number and I create an array aItems to show it on a xbrowse local nInvoice:=alltrim(cNumPre) IF Empty( nInvoice) aItems:={} // Close the vtaskbar I make a switch but the user could b reopen it manually with the mouse oVMenu5:Refresh() oVMenu5:lOpened :=.T. oVMenu5:Switch() // I wish delete the oBrw but it is possible that the oBrw was not built previously because there are also orders without the services included // if Make oBrw:Move(0,0) give me error also if I made oBrw:end() or oBrw:destroy() IF oBrw !=NIL oBrw:Move(0,0) // Not run !!! Endif RETURN NIL ELSE oVMenu5:lOpened :=.F. oVMenu5:Switch() oRighe:= TRigheReserva():New() oRighe:OrdScope( TOPSCOPE, nInvoice ) oRighe:OrdScope( BOTTOMSCOPE, nInvoice ) oRighe:gotop() DO while !oRighe:eof() aadd(aItems,{oRighe:ico,oRighe:Desc,oRighe:Qta,oRighe:dataini,oRighe:datafin} ) oRighe:Skip() ENDDO nInvoice:="" oRighe:OrdScope( TOPSCOPE, NIL ) oRighe:OrdScope( BOTTOMSCOPE, NIL ) oRighe:close() ENDIF IF len(aItems)>0 @30,2 XBROWSE oBrw OF oVMenu5 ; COLUMNS 1, 2, 3 , 4 , 5 ; HEADERS "ico","desc","qta", "dal", "al" ; COLSIZES 20, 40,20,60,60 ; ARRAY aItems ; SIZE -5,-10 PIXEL NOBORDER ..... Endif return nil [img:2mwlg1fs]https&#58;//i&#46;postimg&#46;cc/YSDQcVdr/testvtask&#46;png[/img:2mwlg1fs] when I change umbrella I do the same operation obviously changes the order number but it happens that I always see the same xbrowse with the same content how do I delete the array and the xbrowse every time? to make yourself understood follow the video umbrella 83 does not have services because it does not even have order [img:2mwlg1fs]https&#58;//i&#46;postimg&#46;cc/QMxTD371/k&#46;gif[/img:2mwlg1fs]
destroy a xbrowse
Silvio, Maybe you can consider to Hide the xbrowse in stead of destroy it. If the data has no services, you could hide the colums ? static function ReArrangeCols( oBrw, aCols ) AEval( oBrw:aCols, { |o| o:lHide := .f. } ) oBrw:ReArrangeCols( aCols ) AEval( oBrw:aCols, { |o| o:lHide := .t. }, Len( aCols ) + 1 ) oBrw:Refresh() return nil Showing a empty browse when there are no services is what i would do... but that is your choise !!
destroy a xbrowse
Not Run, I erase all I insert services on a box on msgbar
destroy a xbrowse
I am not sure if I understood what you want correctly. If you want to hide and unhide xbrowse, you can use: Hide [code=fw:3pv88omp]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oBrw:<span style="color: #000000;">Disable</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />oBrw:<span style="color: #000000;">Hide</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:3pv88omp] Show again [code=fw:3pv88omp]<div class="fw" id="{CB}" style="font-family: monospace;">oBrw:<span style="color: #000000;">Show</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />oBrw:<span style="color: #000000;">Enable</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></div>[/code:3pv88omp]
detalle con filexls OBJNEWCLS...
Que tal Amigos, tengo la filexls compilandola con mis demas .prg's , solo que me manda que no ecuentra las sig. funciones OBJNEWCLS,OBJADDMET,OBJSETUSERDATA. ¿Que necesito hacer? de antemano , gracias atte Miguel
detalle con filexls OBJNEWCLS...
Miguel, Parece que no estas usando el objects.ch correcto de FWH. Esas funciones son de 16 bits y no se usan en 32 bits. FWH objects.ch usa las correctas de Harbour (hbclass.ch)
detalle con filexls OBJNEWCLS...
[quote="Antonio Linares":23eh7ob4]Miguel, Parece que no estas usando el objects.ch correcto de FWH. Esas funciones son de 16 bits y no se usan en 32 bits. FWH objects.ch usa las correctas de Harbour (hbclass.ch)[/quote:23eh7ob4] Como puedo reemplazar estas funciones en 32 Bits ?
detect a program inactivity situation
[url:1o4zxzbs]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=6&t=34810&start=0&hilit=PARPADEO[/url:1o4zxzbs] Regards.
detect a program inactivity situation
thanks the first link is good the class run ok
detect a program inactivity situation
Silvio, Yes, I agree it works without problems <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> . I'm working on a autoclose of the message on a second mousemove after zhe message-display and a image-solution instead of a alert, or do You want to keep it like it works. regards Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
detect a program inactivity situation
I want to create a courtesy screen when the user does not move the mouse or press a key, perhaps with advertisements or images chosen by the user.
detect a program inactivity situation
Silvio, It seems some changes are needed. I noticed a [color=#0000FF:1drxgqrj]missing end() [/color:1drxgqrj] of the timer. That means once started, the message will continue running on all different dialogs. As well we need a syntax like : [color=#0000FF:1drxgqrj]oRun := TINATIVO():new( 5, "LOGOFF()", .T. )[/color:1drxgqrj] missing object : activate window oWnd on init tinativo():new(nTempo_espera,cNome_funcao, lTimerContinua) regards Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
detect a program inactivity situation
tomorrow I see it , if you have some suggestion you're wellcome this night i must resolve another problems
detect a program inactivity situation
Mira se ayuda: [url:1jnw7qlb]http&#58;//fivewin&#46;com&#46;br/index&#46;php?/topic/23973-fechar-o-programa-ap%C3%B3s-30-min-sem-uso/[/url:1jnw7qlb] Regards.
detect a program inactivity situation
how to call a function when the operator does not press any key and does not move the mouse, after n minutes I would like the procedure to make an image appear, when the operator moves the mouse or a key the image must disappear
detect default browser and retrieve a cookie [SOLVED]
Hello, I would like to make two questions please. 1) How can I detect the default Internet browser on the PC?. 2) How can I read a cookie?. Thank you in advance.
detect default browser and retrieve a cookie [SOLVED]
Jose Luis, [url:2aqbrblc]http&#58;//support&#46;microsoft&#46;com/kb/299853[/url:2aqbrblc] [quote:2aqbrblc]De manera predeterminada, Windows XP utiliza una configuración global en la clave del registro HKeyLocalMachine (HKLM) para establecer una inicial, el correo electrónico predeterminado y el cliente de explorador Web en el menú Inicio . Windows XP también implementa nuevas claves del registro en HKeyCurrentUser (HKCU) para almacenar individuales de internet y la información de cliente de correo electrónico de cada usuario como parte de su perfil, si los usuarios seleccionan a un cliente diferente a la predeterminada[/quote:2aqbrblc]
detect default browser and retrieve a cookie [SOLVED]
[url:1j95r7jh]http&#58;//stackoverflow&#46;com/questions/7123536/programmatically-read-internet-explorer-cookies[/url:1j95r7jh]
detect default browser and retrieve a cookie [SOLVED]
Antonio, Many thanks!. I don´t know C. Can you please indicate me how can I call this C function from Fivewin?: [code=fw:dsxxmk8q]<div class="fw" id="{CB}" style="font-family: monospace;">BOOL InternetGetCookie<span style="color: #000000;">&#40;</span><br />&nbsp; _In_ &nbsp; &nbsp; LPCTSTR lpszUrl,<br />&nbsp; _In_ &nbsp; &nbsp; LPCTSTR lpszCookieName,<br />&nbsp; _Out_ &nbsp; &nbsp;LPTSTR lpszCookieData,<br />&nbsp; _Inout_ &nbsp;LPDWORD lpdwSize<br /><span style="color: #000000;">&#41;</span>;<br />&nbsp;</div>[/code:dsxxmk8q]
detect default browser and retrieve a cookie [SOLVED]
Please copy this code at the bottom of your main PRG: [code=fw:2pbc025q]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> <windows.h><br /><span style="color: #00D7D7;">#include</span> <hbapi.h><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> INTERNETGETCOOKIE <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;DWORD dwSize = <span style="color: #000000;">0</span>; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;char * buffer;<br /><br />&nbsp; &nbsp;InternetGetCookie<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> LPCTSTR <span style="color: #000000;">&#41;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> LPCTSTR <span style="color: #000000;">&#41;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> LPCTSTR <span style="color: #000000;">&#41;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">NULL</span>, &dwSize <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;buffer = <span style="color: #000000;">&#40;</span> char * <span style="color: #000000;">&#41;</span> hb_xgrab<span style="color: #000000;">&#40;</span> dwSize <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> InternetGetCookie<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> LPCTSTR <span style="color: #000000;">&#41;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> LPCTSTR <span style="color: #000000;">&#41;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> LPCTSTR <span style="color: #000000;">&#41;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>, buffer, &dwSize <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; hb_retclen<span style="color: #000000;">&#40;</span> buffer, dwSize <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; hb_retc<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;hb_xfree<span style="color: #000000;">&#40;</span> buffer <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#41;</span>;<br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP<br />&nbsp;</div>[/code:2pbc025q]
detect default browser and retrieve a cookie [SOLVED]
Antonio, Many thanks, but I get this errors: Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland antonio.c: Warning W8065 antonio.prg 50: Call to function 'InternetGetCookie' with no prototype in function HB_FUN_INTERNETGETCOOKIE Warning W8065 antonio.prg 54: Call to function 'InternetGetCookie' with no prototype in function HB_FUN_INTERNETGETCOOKIE Turbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland Error: Unresolved external '_InternetGetCookie' referenced from C:\API\COOKIES\ANTONIO.OBJ
detect default browser and retrieve a cookie [SOLVED]
Jose Luis, This header file is missing: #include <wininet.h> and you also have to link wininet.lib
detect default browser and retrieve a cookie [SOLVED]
Antonio, Thanks, this is my code: [code=fw:21c8o9c2]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> <windows.h><br /><span style="color: #00D7D7;">#include</span> <wininet.h><br /><span style="color: #00D7D7;">#include</span> <hbapi.h><br /><br /><span style="color: #B900B9;">/*<br />BOOLAPI<br />InternetGetCookie(<br />    __in LPCSTR lpszUrl,<br />    __in_opt LPCSTR lpszCookieName,<br />    __out_ecount_opt(*lpdwSize) LPSTR lpszCookieData,<br />    __inout LPDWORD lpdwSize<br />    );<br />*/</span><br /><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> INTERNETGETCOOKIE <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #000000;">&#123;</span><br />   DWORD dwSize = <span style="color: #000000;">0</span>;<br />   char * buffer;<br /><br />   InternetGetCookie<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> LPCTSTR <span style="color: #000000;">&#41;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> LPCTSTR <span style="color: #000000;">&#41;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">NULL</span>, &dwSize <span style="color: #000000;">&#41;</span>;<br /><br />   buffer = <span style="color: #000000;">&#40;</span> char * <span style="color: #000000;">&#41;</span> hb_xgrab<span style="color: #000000;">&#40;</span> dwSize <span style="color: #000000;">&#41;</span>;<br /><br /><br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> InternetGetCookie<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> LPCTSTR <span style="color: #000000;">&#41;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> LPCTSTR <span style="color: #000000;">&#41;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>, buffer,  &dwSize <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      hb_retclen<span style="color: #000000;">&#40;</span> buffer, dwSize <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #00C800;">else</span><br />      hb_retc<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span>;<br /><br />   hb_xfree<span style="color: #000000;">&#40;</span> buffer <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP<br /> </div>[/code:21c8o9c2] But in your calls you put an extra parameter that gives error: InternetGetCookie( ( LPCTSTR ) hb_parc( 1 ), ( LPCTSTR ) hb_parc( 2 ), [b:21c8o9c2]( LPCTSTR ) hb_parc( 3 )[/b:21c8o9c2], NULL, &dwSize ); if( InternetGetCookie( ( LPCTSTR ) hb_parc( 1 ), ( LPCTSTR ) hb_parc( 2 ), ( LPCTSTR ) hb_parc( 3 ), buffer, &dwSize ) )
detect default browser and retrieve a cookie [SOLVED]
Jose Luis, Yes, you are right. My mistake. I did not test the code, just wrote it here directly on my post. This would be the right version: [code=fw:1u66vz4e]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> <windows.h><br /><span style="color: #00D7D7;">#include</span> <wininet.h><br /><span style="color: #00D7D7;">#include</span> <hbapi.h><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> INTERNETGETCOOKIE <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   DWORD dwSize = <span style="color: #000000;">0</span>;      <br />   char * buffer;<br /><br />   InternetGetCookie<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> LPCTSTR <span style="color: #000000;">&#41;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> LPCTSTR <span style="color: #000000;">&#41;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">NULL</span>, &dwSize <span style="color: #000000;">&#41;</span>;<br /><br />   buffer = <span style="color: #000000;">&#40;</span> char * <span style="color: #000000;">&#41;</span> hb_xgrab<span style="color: #000000;">&#40;</span> dwSize <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> InternetGetCookie<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> LPCTSTR <span style="color: #000000;">&#41;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> LPCTSTR <span style="color: #000000;">&#41;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>, buffer, &dwSize <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      hb_retclen<span style="color: #000000;">&#40;</span> buffer, dwSize <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #00C800;">else</span><br />      hb_retc<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span>;<br /><br />   hb_xfree<span style="color: #000000;">&#40;</span> buffer <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#41;</span>;<br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP<br /> </div>[/code:1u66vz4e]
detect default browser and retrieve a cookie [SOLVED]
Thank you Antonio. It´s working now fine.
detect is os 32 or os 64 bit
help ! how to detect if Opereting System is 32 or 64 bit. Thanks
detect is os 32 or os 64 bit
MsgInfo( IsWin64() )
detect using Wine
Hi, Is there a function to detect if the app is running using Wine under Linux or Mac?. I can´t use windowsversions or registry as Wine emulates Windows XP. I think this code, but is not very optimal: [code=fw:2zaec3gm]<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;<span style="color: #00C800;">LOCAL</span> cNotepad &nbsp; &nbsp;:= GetSysDir<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"<span style="color: #000000;">\n</span>otepad.exe"</span><br />&nbsp;<span style="color: #00C800;">LOCAL</span> cContenido &nbsp;:= MemoRead<span style="color: #000000;">&#40;</span> cNotepad <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #00C800;">LOCAL</span> cResultado &nbsp;:= <span style="color: #00C800;">AT</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Wine"</span>, cContenido <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #00C800;">LOCAL</span> cDevuelve &nbsp; := .F.<br /><br /><br />&nbsp;<span style="color: #00C800;">IF</span> !cResultado = <span style="color: #000000;">0</span><br />&nbsp; &nbsp; cDevuelve := .T.<br />&nbsp;<span style="color: #00C800;">ENDIF</span><br /><br /><br /><br />&nbsp;msgalert<span style="color: #000000;">&#40;</span>cnotepad<span style="color: #000000;">&#41;</span><br />&nbsp;msgalert<span style="color: #000000;">&#40;</span>ccontenido<span style="color: #000000;">&#41;</span><br /><br />&nbsp;msgalert<span style="color: #000000;">&#40;</span>cresultado<span style="color: #000000;">&#41;</span><br /><br />msgalert<span style="color: #000000;">&#40;</span>cdevuelve<span style="color: #000000;">&#41;</span><br /><br /><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> cDevuelve <span style="color: #000000;">&#41;</span></div>[/code:2zaec3gm] Any alternative?. Thanks <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) -->
detectar Drive
Colegas, Necesito determinar si la unidad "A:", "H:" etc, existe? Alguna función o acceso al registro de windows.
detectar Drive
Muy facil Juan: IF File ("H:\.") // notese el punto "." al final MsgInfo("La unidad H existe ENDIF el punto "." es un archivo del sistema operativo que indica "directorio actual" no se exactamente como funciona, pero en todas las carpeta existe el famoso "." y los dos puntos ".." que hacen referencia al directorio anterior. De tal forma que si quieres saber si existe una unidad determianda, simplemente haces refencia al punto, inidicando la unidad deseada y la carpeta razi (todas las unidads tienen carpeta raiz)
detectar ejecución Wine
Hola, ¿Hay alguna forma de detectar si una aplicación está siendo ejecutada en Linux o Mac bajo Wine?. No vale obtener la versión de windows y el registro ya que emula el de Windows XP. Se me ha ocurrido una chapucilla: [code=fw:1unjxqvr]<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;<span style="color: #00C800;">LOCAL</span> cNotepad &nbsp; &nbsp;:= GetSysDir<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"<span style="color: #000000;">\n</span>otepad.exe"</span><br />&nbsp;<span style="color: #00C800;">LOCAL</span> cContenido &nbsp;:= MemoRead<span style="color: #000000;">&#40;</span> cNotepad <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #00C800;">LOCAL</span> cResultado &nbsp;:= <span style="color: #00C800;">AT</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Wine"</span>, cContenido <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #00C800;">LOCAL</span> cDevuelve &nbsp; := .F.<br /><br /><br />&nbsp;<span style="color: #00C800;">IF</span> !cResultado = <span style="color: #000000;">0</span><br />&nbsp; &nbsp; cDevuelve := .T.<br />&nbsp;<span style="color: #00C800;">ENDIF</span><br /><br /><br /><br />&nbsp;msgalert<span style="color: #000000;">&#40;</span>cnotepad<span style="color: #000000;">&#41;</span><br />&nbsp;msgalert<span style="color: #000000;">&#40;</span>ccontenido<span style="color: #000000;">&#41;</span><br /><br />&nbsp;msgalert<span style="color: #000000;">&#40;</span>cresultado<span style="color: #000000;">&#41;</span><br /><br />msgalert<span style="color: #000000;">&#40;</span>cdevuelve<span style="color: #000000;">&#41;</span><br /><br /><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> cDevuelve <span style="color: #000000;">&#41;</span></div>[/code:1unjxqvr] ¿Hay alguna alternativa?. Muchas gracias <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) -->
detectar navegador y leer una cookie [solucionado]
Hola compañeros, Me gustaría por favor haceros dos preguntas. 1) ¿Cómo puedo detectar el navegador por defecto para Internet?. 2) ¿Cómo puedo leer una cookie?. Muchas gracias de antemano.
detectar navegador y leer una cookie [solucionado]
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?p=162514#p162514">viewtopic.php?p=162514#p162514</a><!-- l -->
detectar perdida del foco de un get
Buenos días, si tenemos un get dentro un dialogo, si el foco está en el get y uno pincha con el mouse el dialogo, o mueve el dialogo o pincha el título del dialog, el foco continua en el get, como se prodría detectar ese hecho, desde el objeto get, ya que en oGet:bLostFocus no se detecta ese hecho saludos Marcelo
detectar perdida del foco de un get
Puedes detectar el click izquierdo en el dialogo con oDlg:bLClicked y cuando lo mueve con oDlg:bMoved Esto no te servirá para cuando hace click en el titulo, pero a lo mejor te da una idea. Saludos
detectar perdida del foco de un get
Gracias por tu respuesta, como lo comentas, se podría saber cuando se tiene el foco en el dialogo, pero la idea de hacerlo desde el get es para simplificar la creación de un control, puedes ver un poco en este link [url:5pothrcx]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=28237[/url:5pothrcx] saludos Marcelo
detectar perdida del foco de un get
Marcelo, Podrias capturar el ratón (que todos sus eventos lleguen a él) y asi saber donde esta el cursor, donde se hace click, etc Otra opción seria usando el mensaje WM_NCHITTEST usado en varias clases de FWH: [code=fw:3o7avzf0]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> HandleEvent<span style="color: #000000;">&#40;</span> nMsg, nWParam, nLParam <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TBitmap<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> nMsg == WM_NCHITTEST<br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// aqui podemos comprobar determinadas coordenadas, etc</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> DefWindowProc<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span>, nMsg, nWParam, nLParam <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> ::<span style="color: #00C800;">Super</span>:<span style="color: #000000;">HandleEvent</span><span style="color: #000000;">&#40;</span> nMsg, nWParam, nLParam <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:3o7avzf0]
detectar si el Sistema Operativo es de 32 o 64 bits
Hola: ¿Hay alguna forma de saberlo?. Muchas gracias, <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
detectar si el Sistema Operativo es de 32 o 64 bits
??? [code=fw:ln55gk5c]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">IF</span> ISWINXP<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;? <span style="color: #000000;">&#91;</span><span style="color: #000000;">32</span><span style="color: #000000;">&#93;</span><br /><span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; ? <span style="color: #000000;">&#91;</span><span style="color: #000000;">16</span><span style="color: #000000;">&#93;</span><br /><span style="color: #00C800;">ENDIF</span><br />&nbsp;</div>[/code:ln55gk5c]
detectar si el Sistema Operativo es de 32 o 64 bits
[url:2n8mxn4b]http&#58;//stackoverflow&#46;com/questions/601089/detect-whether-current-windows-version-is-32-bit-or-64-bit[/url:2n8mxn4b]
detectar si el Sistema Operativo es de 32 o 64 bits
Maestro Antonio: Muchas gracias por la info, ¿Cómo detecto si existe el proceso IsWow64Process?. Muchas gracias, <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
detectar si el Sistema Operativo es de 32 o 64 bits
Aqui tienes el código adaptado y funcionando. Ojo no lo he probado en Windows 64, solo en Windows 7 32. [url:f1f7bym4]http&#58;//msdn&#46;microsoft&#46;com/en-us/library/ms684139(VS&#46;85)&#46;aspx[/url:f1f7bym4] [code=fw:f1f7bym4]<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 />   <span style="color: #00C800;">if</span> ISWOW64<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Windows 64 bits"</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">else</span><br />      <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Windows 32 bits"</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> <windows.h><br /><span style="color: #00D7D7;">#include</span> <hbapi.h><br /><br />typedef BOOL <span style="color: #000000;">&#40;</span>WINAPI *LPFN_ISWOW64PROCESS<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#40;</span>HANDLE, PBOOL<span style="color: #000000;">&#41;</span>;<br /><br />LPFN_ISWOW64PROCESS fnIsWow64Process;<br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> ISWOW64 <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />    BOOL bIsWow64 = <span style="color: #00C800;">FALSE</span>;<br /><br />    fnIsWow64Process = <span style="color: #000000;">&#40;</span> LPFN_ISWOW64PROCESS <span style="color: #000000;">&#41;</span> <br />                       GetProcAddress<span style="color: #000000;">&#40;</span> GetModuleHandle<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">TEXT</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"kernel32"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">"IsWow64Process"</span> <span style="color: #000000;">&#41;</span>;<br />  <br />    <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> fnIsWow64Process <span style="color: #000000;">&#41;</span><br />        bIsWow64 = ! fnIsWow64Process<span style="color: #000000;">&#40;</span> GetCurrentProcess<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, &bIsWow64 <span style="color: #000000;">&#41;</span>;<br /><br />    hb_retl<span style="color: #000000;">&#40;</span> bIsWow64 <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span>  <br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP<br /> </div>[/code:f1f7bym4]
detectar si el Sistema Operativo es de 32 o 64 bits
Hola: Al final hice: function IsOS64Bits() LOCAL Win64 := GetENV("ProgramFiles(x86)") LOCAL Result := .F. IF !Empty(Win64) Result := .T. ELSE Result := .F. ENDIF RETURN( Result ) Un saludo <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
detectar si el Sistema Operativo es de 32 o 64 bits
Puedes simplificarla asi <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> [code=fw:1o2s8f2e]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> IsOS64Bits<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> ! Empty<span style="color: #000000;">&#40;</span> GetEnv<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ProgramFiles(x86)"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:1o2s8f2e]
detectar si el Sistema Operativo es de 32 o 64 bits
o mas facil, Clic alterno a MIPC/Propiedades.. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
detectar si el Sistema Operativo es de 32 o 64 bits
Antonio: Muchas gracias. César: Lo que busco es detectarlo desde el código, de modo que la solución del maestro es la adecuada. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
developer tools (F12) in WebView?
Hello friends, How can I enable and open the developer tools (F12) in WebView? Best regards, Otto
developer tools (F12) in WebView?
Dear Otto, try [code=fw:fvk80997]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oWebView := TWebView<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:fvk80997]
developer tools (F12) in WebView?
Dear Cristobal, thank you. Best regards, Otto
devolución recibos SEPA
Hola compañeros: Por favor, ¿alguien puede compartir la función para leer las devoluciones de recibos SEPA en el formato XML?. Muchas gracias.
dialog and button
Why I must in Dialog use FROM 0,0 to 400,500 PIXEL where in "last button" I have row 200 /to see last button/ my source static function EditWplaty( oLBX2, lAppend ) local oDLG2 local lSave := .f. local NR_REK := RecNo() local oFont local nr_ord:=indexord() // DEFAULT lAppend := .f. if lAppend zeruj('k') dbsetorder(1) GOTO BOTTOM kNR:=mNR kROK:=ROK_M kMSC:=MSC_M else podstaw('k') endif DEFINE FONT oFont NAME "ARIAL CE" SIZE 0, -12 DEFINE DIALOG oDLG2 FROM 0,0 to 400,500 PIXEL ; TITLE If( lAppend, "Nowy", "Modyfikacja" ) FONT oFont k1:=10 k2:=30 k3:=80 k4:=100 k5:=150 k6:=170 @ 10, k1 SAY "D01:" OF oDLG2 PIXEL @ 10, k2 GET kD01 picture '!' OF oDLG2 PIXEL @ 25, k1 SAY "D02:" OF oDLG2 PIXEL @ 25, k2 GET kD02 picture '!' OF oDLG2 PIXEL @ 40, k1 SAY "D03:" OF oDLG2 PIXEL @ 40, k2 GET kD03 picture '!' OF oDLG2 PIXEL @ 55, k1 SAY "D04:" OF oDLG2 PIXEL @ 55, k2 GET kD04 picture '!' OF oDLG2 PIXEL @ 70, k1 SAY "D05:" OF oDLG2 PIXEL @ 70, k2 GET kD05 picture '!' OF oDLG2 PIXEL @ 85, k1 SAY "D06:" OF oDLG2 PIXEL @ 85, k2 GET kD06 picture '!' OF oDLG2 PIXEL @100, k1 SAY "D07:" OF oDLG2 PIXEL @100, k2 GET kD07 picture '!' OF oDLG2 PIXEL @115, k1 SAY "D08:" OF oDLG2 PIXEL @115, k2 GET kD08 picture '!' OF oDLG2 PIXEL @130, k1 SAY "D09:" OF oDLG2 PIXEL @130, k2 GET kD09 picture '!' OF oDLG2 PIXEL @145, k1 SAY "D10:" OF oDLG2 PIXEL @145, k2 GET kD10 picture '!' OF oDLG2 PIXEL @ 10, k3 SAY "D11:" OF oDLG2 PIXEL @ 10, k4 GET kD11 picture '!' OF oDLG2 PIXEL @ 25, k3 SAY "D12:" OF oDLG2 PIXEL @ 25, k4 GET kD12 picture '!' OF oDLG2 PIXEL @ 40, k3 SAY "D13:" OF oDLG2 PIXEL @ 40, k4 GET kD13 picture '!' OF oDLG2 PIXEL @ 55, k3 SAY "D14:" OF oDLG2 PIXEL @ 55, k4 GET kD14 picture '!' OF oDLG2 PIXEL @ 70, k3 SAY "D15:" OF oDLG2 PIXEL @ 70, k4 GET kD15 picture '!' OF oDLG2 PIXEL @ 85, k3 SAY "D16:" OF oDLG2 PIXEL @ 85, k4 GET kD16 picture '!' OF oDLG2 PIXEL @100, k3 SAY "D17:" OF oDLG2 PIXEL @100, k4 GET kD17 picture '!' OF oDLG2 PIXEL @115, k3 SAY "D18:" OF oDLG2 PIXEL @115, k4 GET kD18 picture '!' OF oDLG2 PIXEL @130, k3 SAY "D19:" OF oDLG2 PIXEL @130, k4 GET kD19 picture '!' OF oDLG2 PIXEL @145, k3 SAY "D20:" OF oDLG2 PIXEL @145, k4 GET kD20 picture '!' OF oDLG2 PIXEL @ 10, k5 SAY "D21:" OF oDLG2 PIXEL @ 10, k6 GET kD21 picture '!' OF oDLG2 PIXEL @ 25, k5 SAY "D22:" OF oDLG2 PIXEL @ 25, k6 GET kD22 picture '!' OF oDLG2 PIXEL @ 40, k5 SAY "D23:" OF oDLG2 PIXEL @ 40, k6 GET kD23 picture '!' OF oDLG2 PIXEL @ 55, k5 SAY "D24:" OF oDLG2 PIXEL @ 55, k6 GET kD24 picture '!' OF oDLG2 PIXEL @ 70, k5 SAY "D25:" OF oDLG2 PIXEL @ 70, k6 GET kD25 picture '!' OF oDLG2 PIXEL @ 85, k5 SAY "D26:" OF oDLG2 PIXEL @ 85, k6 GET kD26 picture '!' OF oDLG2 PIXEL @100, k5 SAY "D27:" OF oDLG2 PIXEL @100, k6 GET kD27 picture '!' OF oDLG2 PIXEL @115, k5 SAY "D28:" OF oDLG2 PIXEL @115, k6 GET kD28 picture '!' OF oDLG2 PIXEL @130, k5 SAY "D29:" OF oDLG2 PIXEL @130, k6 GET kD29 picture '!' OF oDLG2 PIXEL @145, k5 SAY "D30:" OF oDLG2 PIXEL @145, k6 GET kD30 picture '!' OF oDLG2 PIXEL @160, k5 SAY "D31:" OF oDLG2 PIXEL @160, k6 GET kD31 picture '!' OF oDLG2 PIXEL @200, 60 BUTTON "&Rezygnacja" OF oDLG2 SIZE 50, 12 PIXEL ACTION oDLG2:End() @200, 120 BUTTON "&Zapis" OF oDLG2 SIZE 50, 12 PIXEL ACTION ( lSave := .T., oDLG2:End() ) ACTIVATE DIALOG oDLG2 CENTER if lSave //.and. !empty( cNazwisko ) if lAppend APPEND BLANK else if !rlock() msginfo('Baza KARTA zaj&#281;ta') break endif endif zapisz('k') else DBGOTO(nr_rek) endif dbunlock() dbsetorder(nr_ord) oLBX2:Refresh() return nil regards kajot
dialog and button
<!-- m --><a class="postlink" href="http://fivetechsoft.com/forums/viewtopic.php?t=8465&highlight=dialog+window+pixel">http://fivetechsoft.com/forums/viewtopi ... ndow+pixel</a><!-- m -->
dialog and button
if I have to divide any rows and cols by 2.05 in say, get and button ? @ 10/2.05, k1/2,05 SAY "&NR:" OF oDlg PIXEL @ 10/2.05, k2/2.05 GET cNR picture '99999' OF oDlg PIXEL //WHEN .f. regards kajot
dialog box con modalità nowait
ho una window (oWnd in modalità MDI) che tramite menù richiama una procedura con una dialog, la stessa dialog si trova in una DLL quindi la richiamo con: DEFINE DIALOG oDLG RESOURCE "STCLIE1" OF oWnd FONT oFont GET GET etc e la attivo con ACTIVATE DIALOG oDlg NOWAIT; CENTERED quando apro la procedura la dialog va in Loop (si attiva continuamente), per risolvere devo settare qualcosa nel file resource ? in workshop è settato così: window type - Popup Frame Style - Caption in Dialog Style sono in ON System menu minimize box maximized box system modal modal frame visibile grazie
dialog box con modalità nowait
Tieni presente che una DIALOG non modale non blocca l'esecuzione la quale continua invece allegramente ad eseguire ciò che si trova appresso all'ACTIVATE DIALOG senza attendere la chiusura della stessa. EMG
dialog creation
Dear Antonio,Can I create two dialog into a main window oWnd ?the dialog must have not the border and captionand the second dialog must be create down the firstas two rectangulesCan I create it and How ?
dialog creation
Silvio,You have to ACTIVATE them as NOWAIT (non modal) and use the STYLE clause to specify the desired style when DEFINE them
dialog creation
Sorry Antonio,Perhaps I explain You badI Knw How to create two dialog NOwait or WS stylesMy problem is anotherTwo dialog are as two line of ListboxI want add a dialog from user sample:oDlg1oDlg2the use want add a dialog between odlg1 and odlg2How I can make it?
dialog creation
Falconi,[quote:afcjmrla]My problem is another Two dialog are as two line of Listbox I want add a dialog from user sample: oDlg1 oDlg2 the use want add a dialog between odlg1 and odlg2 [/quote:afcjmrla]I don't understand. Are you saying you want a user to design a dialog and then automatically have it placed it on the screen between two existing dialogs?Can you show us a screenshot?James
dialog creation
look to private email pls
dialog creation ..
<!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> Changes the Info at the Bar-End on Buttonclick : Could be possible from a Buttonclick inside a Dialog as well. [img:f2lfwe5l]http&#58;//www&#46;pflegeplus&#46;com/pictures/info1&#46;jpg[/img:f2lfwe5l] Best Regards Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
dialog creation ..
maybe it's what you need DEFINE DIALOG oDlgb FROM 0, 0 TO 180, 500 TRANSPARENT [u:1nbpfj4x]STYLE NOR( WS_VISIBLE)[/u:1nbpfj4x] PIXEL saluti Stefano
dialog creation ..
please I mean something of it [img:15i2c8q4]http&#58;//img62&#46;imageshack&#46;us/img62/4991/restaurantd&#46;jpg[/img:15i2c8q4] when I click on a table the procedure show a dialog ( with other info) and the it must be hide when I click on another table or another point of dialog it is possible with fwh ?
dialog creation ..
I understand, was a mistake of mine ( Action from inside the Bar ). Your Question : [color=#0000FF:3eor6rno]is is it possible, to create a dialog ( with no border )[/color:3eor6rno] [color=#FF0000:3eor6rno]at the end of Buttonbar[/color:3eor6rno] <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> That means to me, a Buttonaction from inside the Dialog shows a Message inside the Ribbonbar or [color=#FF0000:3eor6rno]below[/color:3eor6rno] ( outside ) like Your Screenshot shows ( Both could be done ). Best Regards Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
dialog creation ..
under the buttonbar or under the ribbonbar it is the same but I must click on a btnbmp and it open the dialog if I click on white box or on tree for sample it must be hide it must be showed only if I click on table( btnbmp)
dialog creation ..
I tried to create a dialog as ribbonbar use when create a popup dialog when lStretch see PopupGroup() ( trbgroup) but the n I not know how close it
dialog creation ..
Dialog with Buttons Message on Mainwindow Message changes on Buttonclick inside the Dialog Dialog-click on Blank-area closes the Message. [img:34omairr]http&#58;//www&#46;pflegeplus&#46;com/pictures/info2&#46;jpg[/img:34omairr] Works the same : a Message from a Dialog shown inside a Ribbonbar : [img:34omairr]http&#58;//www&#46;pflegeplus&#46;com/pictures/info3&#46;jpg[/img:34omairr] Best Regards Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
dialog creation ..
it is possible create a dialog ( with no border ) at the end of Buttonbar When I click a btnbmp ? I hace on a dialog some btnbmp as tables of a restaurant when I click each button I wish show a dialog at the end the button bar of wndmain to show other information when I clich into dialog and not click on btnbmp it must not showed How make it with fwh please ?
dialog creation ..
Have you thought of using a tooltip? It would automatically appear, then disappear automatically also. Perhaps it wouldn't be displayed long enough? Regards, James
dialog creation ..
James, I wish a tooltip but on tooltip I cannot insert a xbrowse I need something of this [img:3l89pfkn]http&#58;//www&#46;ilmuwebsite&#46;com/wp-content/uploads/2010/07/normals_tooltip&#46;png[/img:3l89pfkn] I want showed this tooltip from btn bmp
dialog creation ..
As I told, with BtnBmp it is not possible. I don't know why my working Solutions and Proposals are ignored ? A Dialog-tooltip : visible, as long there is a Focus on the Temperature-area ( only Info ), or can be forced to stay on Screen ( must be closed with a included Button ) Mouseclick on a Temperature, performs a Action. [img:1a8lzj4w]http&#58;//www&#46;pflegeplus&#46;com/pictures/hot5&#46;jpg[/img:1a8lzj4w] Best Regards Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
dialog creation ..
[quote="ukoenig":dvq39j21]As I told, with BtnBmp it is not possible. I don't know why my working Solutions and Proposals are ignored ? Best Regards Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->[/quote:dvq39j21] on espanòl No voy a discutir por su respuesta, pero creo que si una persona no sabe cómo ayudar a otra persona, ¿por qué necesariamente debe imponer otra solución que es claramente erróneo porque no se puede construir cualquier aplicación porque no se puede hacer una cosa: creo que en lugar de una tooltip con una xBrowse usted puede hacer, FWH no podía hacer nada y luego te aviso que usted puede hacer muchas cosas, sólo la voluntad de ayudar a resolver problemas y no imponer otras cosas ... on english (sorry for my english) I will not argue for your answer, but I think if a person does not know how to help someone, why must necessarily impose another solution that is clearly wrong because you can not build any application because you can not do one thing: I instead of a tooltip with a xBrowse you can do, FWH could do nothing and then you notice you can do many things, just a willingness to help solve problems and not to impose other things ... if I cannot create a big tooltip i can create a dialog or I can create another solution but I cannot re build all the application because I cannot found a solution for this problem My customer have his application and use allready it from 1 year , i must only found a solution for show a message for each tables to see the reservation , if this is no possibile with fwh ok I cannot make it ...
dialog creation ..
on web I found this : <!-- m --><a class="postlink" href="http://www.devcomponents.com/dotnetbar/SuperTooltips.aspx">http://www.devcomponents.com/dotnetbar/ ... ltips.aspx</a><!-- m --> please go to see it tolltip with image and controls With fwh why it no possible ?
dialog creation ..
I think it can be done, but you will have to write your own new control class to be able to do it. And you can't subclass from FW's tooltip because it isn't a separate class--it is static functions within another class. So you would have to start from scratch. The easier solution is to just use a dialog. Regards, James
dialog creation ..
James you're right but I 'm sure I'm not able to make class but I tried to make a class but I saw otooltip on Windows class is not a classdata but only a variable static !! for the dialog how I can make it ?
dialog creation ..
>but I tried to make a class but I saw oTooltip on Windows class is not a classdata but only a variable static !! I think Antonio told me it was done this way for speed. >for the dialog how I can make it ? The easiest way is to just use the ACTION clause of the button define. If you are already using that for something else, then you could use bRClicked instead. I think to popup the dialog whenever the mouse is over it will be more complex. There is a bMMoved codeblock, and if you use a modal dialog this might work. But if you wanted a window or non-modal dialog this would probably pop them up multiple times as the mouse was moving over the button so you would have to set a flag to keep this from happening. Regards, James