topic
stringlengths
1
63
text
stringlengths
1
577k
schedule system
Hello, I had to make some changes to the ribbon class today. I've been thinking for a long time about how best to do it. Then I decided to delete all entries in the ribbon class that are not needed for my style. The class is much clearer for me. (2007,2010,2013,2015,2016, etc. ) Best regards, Otto [img:y2se5qym]https://mybergland.com/fwforum/xdoclikeword.png[/img:y2se5qym]
school schedule project
I have to schedule a time for a private school  but do not know how to do the initial scheme. I explain you : I have a teacher , this teacher must make 18 hours on a classroom ( 1A) the matter of this teacher is aerobic we called with the code "AER" How do I put the hours in a filing this teacher in a week? FOR N_GIORNO = 1 TO 6 // 6 ARE THE DAY IN A WEEK FOR N_ORA = 1 TO 6 // 6 ARE THE TIME SCHEDULE append blank Now I have to enter the teacher (1), where he teaches the class (1A), matter (EAR), the date and time day and time must be stored in this way: 1 = Monday 2 = Tuesday 3 = Wednesday 4 = Thursday 5 = Friday 6 = Saturday sample if I insert on mondat time 2 imust inser 12 PROF CLASSROOM MATTER DAY/TIME 1 1A AER 12 Initially I must try to insert a field one day and no one during the week but I not Know How make it and the teacher ( for sample the first) must make only 18 hour for week Could give me the initial input ? How Make to save the record on a week ? thanks in advance
scope en xbrowse
Que tal foro tengo los sigte:curso->(quickscope(empleado->clave)) ... curso->(browse()) // muestra los que necesitopero no me actualiza un xbrowse que tengo ya le puse oBrw:refresh()¿?...
scope en xbrowse
Intente,oBrw:GoBottom() oBrw:Refresh() oBrw:GoTop() oBrw:SetFocus() Saludos.
screen design
Hello. I am still in the dark ages when it comes to design. Is there a library or tool or something that could enable me to design more contemporary looking input screens while still using the same old code I have been using forever?
screen design
Are you hardcoding your dialogs? If not, I use Pelles C Ide to create mi RC's, with no problem at all. On the other hand, I would like to find another tool that can make mi designs look like "modern", maybe like the posibility of having "Themes" or change the actual colors. Greetings From Chile
screen design
We advice to use ResEdit: [url:27jjh29k]http&#58;//www&#46;resedit&#46;net/[/url:27jjh29k] There are some others that you can review: <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=17&t=12773&start=0&hilit=resources+editors">viewtopic.php?f=17&t=12773&start=0&hilit=resources+editors</a><!-- l -->
screen design
I use ResEdit too.
screen resolution
Is there a function that indicates what resolution a screen is using?
screen resolution
Hello Harvey: [quote="hag":3snte2pj]Is there a function that indicates what resolution a screen is using?[/quote:3snte2pj] Here you are two ways to get the screen resolution in pixels:[code=fw:3snte2pj]<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> nWidth, nHeight, ;<br />         aRes := ScrResolution<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   ? nWidth  := aRes<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br />   ? nHeight := aRes<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span><br />   ? nWidth  := GetSysMetrics<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   ? nHeight := GetSysMetrics<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span></div>[/code:3snte2pj] Best regards. Manuel Mercado.
screen resolution
Thanks for the help. I'll try it later today.
screenheight
I use the function ScreenHeight() in my app. But when I calculate with this there are some strange things. -When the dock is at the bottom my window and controls are placed correct [img:1yval773]http&#58;//www&#46;plantenkennis&#46;com/FiveMac/screen_1&#46;png[/img:1yval773] -When the dock is on the right side the window is shown full height, but the controls are not at the top. [img:1yval773]http&#58;//www&#46;plantenkennis&#46;com/FiveMac/screen_2&#46;png[/img:1yval773] How can I detect whether the dock is at the bottom or on the side of the screen?
screenheight
Yes is posible ... I'm going to implement this functions : SCREENVISIBLEWIDTH -> width screen ( no dock include if possition is left .or. right ) SCREENVISIBLEHEIGHT -> Height position ( no include statusbar and dock , if is bottom ) STATUSBARHEIGHT -> Height statusbar GETDOCKPOSITION -> Return "left", "right" o "bottom" text GETDOCKSIZE -> size dock ISDOCKHIDDEN -> bold true for hidden ,false for visible . Saludos.
screensavers en fivewin
saludos, necesito hacer un protector de pantalla con noticias para la empresa, y basandome en la idea que lei en este post [url:1jruv2aw]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=18&t=14125&p=72816&hilit=screensavers#p72816[/url:1jruv2aw] y aunque he hecho algo mas rudimentario, si ven la web que comenta antonio no veo la manera de hacer algo parecido con fivewin, para comenzar les comentare los problemas que he encontrado a ver en que me pueden ayudar - la ventana o dialogo no quedan siempre on top, si bien se activa como protector y aparece la ventana maximizada si le doy a la tecla de inicio pierde el foco, etc - a la ventana o dialogo me veo obligado ponerle los iconos de salir, minimizar, etc para que pueda salir con esc, de lo contrario no sale con esc y al darle alf+f4 cierra la aplicacion pero permanece en memoria - eso sin mencionar que la imagen debe ser bmp, y aunque puedo con freeimage ponerle con jpg no consigo que tome el tamaño del escritorio saludos y gracias por su comentarios e ideas
screensavers en fivewin
<!-- s:arrow: --><img src="{SMILIES_PATH}/icon_arrow.gif" alt=":arrow:" title="Arrow" /><!-- s:arrow: -->
screensavers en fivewin
Hola... Por favor podrias colocar la rutina que usas, talvez podriamos ayudarte a lograr lo que quieres hacer y seria mas facil tener el punto de partida
screensavers en fivewin
Alex, En samples\GetTime.prg tienes un ejemplo que tal vez pueda serte útil.
screensavers en fivewin
Excelente con el ejemplo que me comento antonio pude darme cuenta de que estaba mal y en base a ese solucione el problema, gracias a ambos
screensavers en fivewin
El ejemplo FWH\Samples\GetTime.prg mejorado: [code=fw:1cpitife]<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> nTime := <span style="color: #000000;">0</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, oSay, oGet, cTest := Space<span style="color: #000000;">&#40;</span> <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Test"</span><br /><br />   @ <span style="color: #000000;">0.5</span>, <span style="color: #000000;">8</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Elapsed time: "</span> + AllTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> nTime <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">" secs."</span><br /><br />   @ <span style="color: #000000;">3</span>, <span style="color: #000000;">7</span> <span style="color: #0000ff;">GET</span> oGet <span style="color: #0000ff;">VAR</span> cTest PASSWORD<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> BuildTimer<span style="color: #000000;">&#40;</span> oDlg, oSay, oGet <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: #00C800;">function</span> BuildTimer<span style="color: #000000;">&#40;</span> oDlg, oSay, oGet <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oTmr<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">TIMER</span> oTmr <span style="color: #0000ff;">OF</span> oDlg ;<br />      <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> nTime++, oSay:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nTime > <span style="color: #000000;">02</span>, ScreenSaver<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">INTERVAL</span> <span style="color: #000000;">1000</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">TIMER</span> oTmr<br /><br />   oGet:<span style="color: #000000;">bKeyDown</span> = <span style="color: #000000;">&#123;</span> | nKey | nTime := <span style="color: #000000;">0</span>, nKey <span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><br /><span style="color: #00C800;">function</span> ScreenSaver<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">LOCAL</span> oTimer2, oSay, oFont<br /><br />   <span style="color: #00C800;">static</span> oDlg<br /><br />   nTime = <span style="color: #000000;">0</span><br /><br />   <span style="color: #00C800;">if</span> oDlg == <span style="color: #00C800;">nil</span><br /><br />      ShowWindow<span style="color: #000000;">&#40;</span> FindWindow<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Shell_TrayWnd"</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Taskbar</span><br />      ShowWindow<span style="color: #000000;">&#40;</span> FindWindow<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Button"</span>, <span style="color: #ff0000;">"Start"</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Vista round button</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;">20</span> BOLD<br />      <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">STYLE</span> WS_VISIBLE <span style="color: #0000ff;">COLOR</span> nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">255</span>,<span style="color: #000000;">255</span>,<span style="color: #000000;">255</span><span style="color: #000000;">&#41;</span>,nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">125</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">SIZE</span> GetSysMetrics<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>, GetSysMetrics<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br /><br />      @ <span style="color: #000000;">10</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"This is a screensaver"</span> COLORS nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">255</span>,<span style="color: #000000;">255</span>,<span style="color: #000000;">255</span><span style="color: #000000;">&#41;</span>,nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">125</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br />      oDlg:<span style="color: #000000;">bKeyDown</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 ;<br />         <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#40;</span>BuildTimer2<span style="color: #000000;">&#40;</span>oDlg, oSay<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />         <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CLICK</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />      ShowWindow<span style="color: #000000;">&#40;</span> FindWindow<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Shell_TrayWnd"</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />      ShowWindow<span style="color: #000000;">&#40;</span> FindWindow<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Button"</span>, <span style="color: #ff0000;">"Start"</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br /><br />      oDlg = <span style="color: #00C800;">nil</span><br />      nTime = <span style="color: #000000;">0</span><br />   <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><br /><br /><span style="color: #00C800;">function</span> BuildTimer2<span style="color: #000000;">&#40;</span> oDlg, oSay <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> oTmr<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">TIMER</span> oTmr <span style="color: #0000ff;">OF</span> oDlg ;<br />      <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> MoveSay<span style="color: #000000;">&#40;</span>oDlg,oSay<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">INTERVAL</span> <span style="color: #000000;">1000</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">TIMER</span> oTmr<br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><br />Procedure MoveSay<span style="color: #000000;">&#40;</span>oDlg,oSay<span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> nHeightScr := <span style="color: #000000;">768</span>  - <span style="color: #000000;">30</span><br />   <span style="color: #00C800;">local</span> nWidthScr  := <span style="color: #000000;">1024</span> - <span style="color: #000000;">54</span><br />   <span style="color: #00C800;">local</span> nRow       := nRandom<span style="color: #000000;">&#40;</span>nHeightScr<span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> nCol       := nRandom<span style="color: #000000;">&#40;</span>nWidthScr<span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> nColorR    := nRandom<span style="color: #000000;">&#40;</span><span style="color: #000000;">255</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> nColorG    := nRandom<span style="color: #000000;">&#40;</span><span style="color: #000000;">255</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> nColorB    := nRandom<span style="color: #000000;">&#40;</span><span style="color: #000000;">255</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> nTextWidth := GetTextWidth<span style="color: #000000;">&#40;</span>oSay:<span style="color: #000000;">hDC</span>,<span style="color: #ff0000;">"This is a screensaver"</span>,oSay:<span style="color: #000000;">oFont</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> lFlg1 := .F. , lFlg2 := .F. , lFlg3 := .F.<br /><br />   nRow := iif<span style="color: #000000;">&#40;</span>nRow==<span style="color: #000000;">0</span>,<span style="color: #000000;">1</span>,nRow<span style="color: #000000;">&#41;</span><br />   nCol := iif<span style="color: #000000;">&#40;</span>nCol==<span style="color: #000000;">0</span>,<span style="color: #000000;">1</span>,nCol<span style="color: #000000;">&#41;</span><br />   nCol := iif<span style="color: #000000;">&#40;</span>nCol > <span style="color: #000000;">&#40;</span>nWidthScr-nTextWidth<span style="color: #000000;">&#41;</span>,nWidthScr-nTextWidth,nCol<span style="color: #000000;">&#41;</span><br /><br />   lFlg1 := nColorR >=  <span style="color: #000000;">0</span> .AND. nColorR <=  <span style="color: #000000;">50</span>   <span style="color: #B900B9;">//   33</span><br />   lflg2 := nColorG >=  <span style="color: #000000;">0</span> .AND. nColorG <=  <span style="color: #000000;">50</span>   <span style="color: #B900B9;">//   49</span><br />   lFlg3 := nColorB >= <span style="color: #000000;">75</span> .AND. nColorB <= <span style="color: #000000;">175</span>   <span style="color: #B900B9;">//  132</span><br />   <span style="color: #00C800;">if</span> lFlg1 .AND. lFlg2 .AND. lFlg3<br />      nColorR += <span style="color: #000000;">50</span><br />      nColorG += <span style="color: #000000;">50</span><br />      nColorB += <span style="color: #000000;">50</span><br />   <span style="color: #00C800;">endif</span><br /><br />   oSay:<span style="color: #000000;">Hide</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oSay:<span style="color: #0000ff;">Move</span><span style="color: #000000;">&#40;</span>nRow,nCol,,.T.<span style="color: #000000;">&#41;</span><br />   oSay:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> nRGB<span style="color: #000000;">&#40;</span>nColorR,nColorG,nColorB<span style="color: #000000;">&#41;</span> , nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">125</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   oSay:<span style="color: #000000;">Show</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Return</span></div>[/code:1cpitife] Saludos, Carlos Gallego
screenshots with FWH
Is it possible to make screenshots with FWH from other running application as word . Thank in advance and best regards, Otto
screenshots with FWH
Otto, Yes, you can do it. All you need is to locate the hWnd of the window to make its screenshot.
script SENDMAIL enviar email LINUX
alguem sabe como enviar email no linux usando script do sendmail?
script to create lib (FWH)
is the script to create lib (FWH) in xHARBOUR.COM
script to create lib (FWH)
[b:3kxlo95i]I use two batch files[/b:3kxlo95i][b:3kxlo95i]bx.bat[/b:3kxlo95i][i:3kxlo95i]@ECHO OFF CLS ECHO ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ&#380; ECHO &#322; FiveWin for xHarbour 2.7 - June 2006 RF xHarbour development power &#322;Ü ECHO &#322; (c) FiveTech, 1993-2006 for Microsoft Windows 95/98/NT/2000/ME and XP &#322;&#368; ECHO &#340;ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ&#366;&#368; ECHO &#729; ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß if A%1 == A GOTO :SINTAX if NOT EXIST %1.prg GOTO :NOEXIST ECHO Compiling... set hdir=c:\xharbour set bcdir=c:\Borland\bcc55 set fwhdir=c:\FWH %hdir%\bin\harbour %1 /n /i..\include;%hdir%\include;%fwhdir%\include /w /p %2 %3 > clip.log @type clip.log IF ERRORLEVEL 1 PAUSE IF ERRORLEVEL 1 GOTO EXIT echo -O2 -e%1.exe -I%hdir%\include %1.c > b32.bc %bcdir%\bin\bcc32 -M -c -v @b32.bc <!-- s:P --><img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" /><!-- s:P -->AUSE :EXIT[/i:3kxlo95i][b:3kxlo95i]and amake.bat[/b:3kxlo95i][i:3kxlo95i]call bx.bat X_CDX call bx.bat X_D2MC call bx.bat X_DATA call bx.bat X_FIMED call bx.bat X_FIRMA call bx.bat X_GETIP call bx.bat X_HISTOG call bx.bat X_KEYTST call bx.bat X_MC call bx.bat X_PASSWO call bx.bat X_PESEL call bx.bat X_POLSKA call bx.bat X_POMOCE call bx.bat X_ROKWIN call bx.bat X_SIEC call bx.bat X_TRACE call bx.bat X_USE del MyToolsH.lib c:\Borland\BCC55\Bin\tlib MyToolsH +X_CDX c:\Borland\BCC55\Bin\tlib MyToolsH +X_D2MC c:\Borland\BCC55\Bin\tlib MyToolsH +X_DATA c:\Borland\BCC55\Bin\tlib MyToolsH +X_FIMED c:\Borland\BCC55\Bin\tlib MyToolsH +X_FIRMA c:\Borland\BCC55\Bin\tlib MyToolsH +X_GETIP c:\Borland\BCC55\Bin\tlib MyToolsH +X_HISTOG c:\Borland\BCC55\Bin\tlib MyToolsH +X_KEYTST c:\Borland\BCC55\Bin\tlib MyToolsH +X_MC c:\Borland\BCC55\Bin\tlib MyToolsH +X_PASSWO c:\Borland\BCC55\Bin\tlib MyToolsH +X_PESEL c:\Borland\BCC55\Bin\tlib MyToolsH +X_POLSKA c:\Borland\BCC55\Bin\tlib MyToolsH +X_POMOCE c:\Borland\BCC55\Bin\tlib MyToolsH +X_ROKWIN c:\Borland\BCC55\Bin\tlib MyToolsH +X_SIEC c:\Borland\BCC55\Bin\tlib MyToolsH +X_TRACE c:\Borland\BCC55\Bin\tlib MyToolsH +X_USE copy MyToolsH.lib c:\FWH_MYLB\MyToolsH.lib del *.obj del *.ppo del *.c del *.bc[/i:3kxlo95i][b:3kxlo95i]to create one of my lib files[/b:3kxlo95i]
script to create lib (FWH)
I used xHarbour.com where C compiler is xCC
script to create lib (FWH)
I created fivewin.lib ( FWH 8.05), but when I compile some prg I get errorType: C >>>xlink.exe -NOEXPOBJ -MAP -FORCE:MULTIPLE -NOIMPLIB -subsystem:windows -UNMANGLE -LIBPATH:"D:\xHB\lib" -LIBPATH:"D:\xHB\c_lib" -LIBPATH:"D:\xHB\c_lib\win" -LIBPATH:"D:\fwh\lib" "report.obj" "FiveHCM.lib" "FiveHMX.lib" "OptG.lib" "xhb.lib" "dbf.lib" "ntx.lib" "cdx.lib" "rmdbfcdx.lib" "ct3.lib" crt.lib kernel32.lib user32.lib winspool.lib ole32.lib oleaut32.lib odbc32.lib odbccp32.lib uuid.lib wsock32.lib ws2_32.lib wininet.lib advapi32.lib shlwapi.lib msimg32.lib mpr.lib comctl32.lib comdlg32.lib gdi32.lib shell32.lib winmm.lib lz32.lib Netapi32.lib -out:"report.exe"<<<xLINK: error: Unresolved external symbol '_HB_FUN_CHMHELPTOPIC'.xLINK: error: Unresolved external symbol '_HB_FUN_CHMHELPINDEX'.xLINK: error: Unresolved external symbol '_HB_FUN_CHMHELPPOPUP'.xLINK: fatal error: 3 unresolved external(s).Type: C >>>Couldn't build: report.exe<<<Type: C >>>TMAKEPROJECT<<<Type: C >>>TMAKEPROJECT:REFRESH<<<Type: N >>> 1360<<<
script to create lib (FWH)
Kajot,There is a new HelpChm.prg that has to be included in the library
script to create lib (FWH)
thank YOU
scripts.prg no puedo ejecutar ""hello world""
hola grupo scripts.prg => ejemplo en ejecución muestra lo siguiente: Error F0029 Can't open #include file 'FiveWin.ch' la adición la ruta al archivo => #include "e:\fwh1111\include\FiveWin.ch" .... muestra lo siguiente: e:\fwh1111\include\Objects.ch(5) Error F0029 Can't open #include file 'hbclass.ch' ¿Qué debo hacer? Solucionado! basta retirar la línea <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
scripts.prg no puedo ejecutar ""hello world""
Please change the following line in Scripts.Prg to match the path with your FWH and Harbour installation path [code=fw:k0rl0ash]<div class="fw" id="{CB}" style="font-family: monospace;">oHrb = HB_CompileFromBuf<span style="color: #000000;">&#40;</span> Scripts->Code, <span style="color: #ff0000;">"-n"</span>, <span style="color: #ff0000;">"-Ic:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\i</span>nclude"</span>, <span style="color: #ff0000;">"-Ic:<span style="color: #000000;">\h</span>arbour<span style="color: #000000;">\i</span>nclude"</span> <span style="color: #000000;">&#41;</span></div>[/code:k0rl0ash] For eg. If you have installed FWH and Harbour on your D: drive then change the code to [code=fw:k0rl0ash]<div class="fw" id="{CB}" style="font-family: monospace;">oHrb = HB_CompileFromBuf<span style="color: #000000;">&#40;</span> Scripts->Code, <span style="color: #ff0000;">"-n"</span>, <span style="color: #ff0000;">"-Id:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\i</span>nclude"</span>, <span style="color: #ff0000;">"-Id:<span style="color: #000000;">\h</span>arbour<span style="color: #000000;">\i</span>nclude"</span> <span style="color: #000000;">&#41;</span></div>[/code:k0rl0ash] It is working fine here. Regards [b:k0rl0ash]Anser[/b:k0rl0ash]
scripts.prg no puedo ejecutar ""hello world""
Así es, gracias
scroll Horizonta y Vertical en una Window
Necesito mostrar una imagen en formato bmp cuyo tamano es mayor que la capacidad de la pantalla del Pocket Pc. Mi idea es mediante una Window con barras de desplazamiento vertical y horizontal, pero no logro que la imagen se desplace al mover las barras, alguien tiene algun ejemplo o alguna idea sobre este tema? Gracias Miguel
scroll Horizonta y Vertical en una Window
Miguel, Vamos a intentar proporcionarte un ejemplo lo antes posible. Disculpa nuestro retraso en responderte. Gracias.
scroll Horizonta y Vertical en una Window
Antonio, Gracias de todos modos ya logre resolverlo. Saludos Miguel
scroll Horizonta y Vertical en una Window
Miguel, Te importaría mostrarnos el código en un pequeño ejemplo para que le sirva así a otros usuarios ? Gracias.
scroll Horizonta y Vertical en una Window
Si Antonio, disculpa, es que se me paso. El codigo es mas simple de lo que parece y resulta de maravillas. #include "FWCE.ch" #include "WINAPI.ch" Static oWnd Function Main() local oBmp DEFINE WINDOW oWnd TITLE "GRILLA DE PERFORACION"; MENU BuildMenu() @ 1, 1 BITMAP oBmp FILENAME Curdir() + "\malla.bmp" SIZE 230,255 SCROLL of oWnd ACTIVATE WINDOW oWnd oBmp:End() Return Nil //------------------------------------------ Function BuildMenu() //------------------------------------------ Local oMenu DEFINE oMenu RESOURCE 102 REDEFINE MENUITEM ID 100 of oMenu ACTION ..... REDEFINE MENUITEM ID 110 of oMenu ACTION oWnd:End() Return oMenu Espero que les sirva Saludos
scroll Horizonta y Vertical en una Window
gracias <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
scroll Horizontal button
How scroll buttons on Horizontal ? I think to scroll buttons from a dbf to use it on tablet sample : I have many products and I wish scroll all images on horizontal and click on each any test?
scroll Horizontal button
Please post a screenshot <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
scroll Horizontal button
I do not have an image to show you, I need to create on tablet app buttons from an archive dbf with an animation that slide to the left and the new ones scroll from the right ... the user can select one scrooling all archive them with your finger and click one on it (action) I found now a image [img:4dcc9zjv]https&#58;//www&#46;junktheme&#46;com/wp-content/uploads/2017/05/shopify-products-carousel-slider&#46;jpg[/img:4dcc9zjv]
scroll Horizontal button
i made a test but I not Know How move the buttons Imagine to use a finger and move the buttons on right and left [img:s2l53jpm]https&#58;//s10&#46;postimg&#46;org/rh8e3e1ix/image&#46;jpg[/img:s2l53jpm] [code=fw:s2l53jpm]<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;">"Ribbon.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"constant.ch"</span><br /><br /><span style="color: #00C800;">Function</span> test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> oDlg,oFld<br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> oFontTablet<br /><br />&nbsp;<span style="color: #B900B9;">// variabili per la dialog</span><br />&nbsp; &nbsp; <span style="color: #00C800;">Local</span> &nbsp;nBottom &nbsp; := <span style="color: #000000;">13</span><br />&nbsp; &nbsp; <span style="color: #00C800;">Local</span> &nbsp;nRight &nbsp; &nbsp;:= <span style="color: #000000;">78</span><br />&nbsp; &nbsp; <span style="color: #00C800;">Local</span> &nbsp;nWidth := &nbsp;<span style="color: #0000ff;">Max</span><span style="color: #000000;">&#40;</span> nRight * DLG_CHARPIX_W, <span style="color: #000000;">180</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">Local</span> &nbsp;nHeight := nBottom * DLG_CHARPIX_H<br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> nRow:= <span style="color: #000000;">10</span><br />&nbsp; &nbsp; <span style="color: #00C800;">Local</span> nCol:= <span style="color: #000000;">10</span><br />&nbsp; &nbsp; <span style="color: #00C800;">Local</span> n:= <span style="color: #000000;">1</span><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> nTipo:=<span style="color: #000000;">0</span><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> abtn<br />&nbsp; &nbsp; USE TIPO <span style="color: #0000ff;">ALIAS</span> TIPO<br />&nbsp; &nbsp; TIPO-><span style="color: #000000;">&#40;</span>DbGoTop<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; abtn:= array<span style="color: #000000;">&#40;</span>tipo-><span style="color: #000000;">&#40;</span>OrdKeyCount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFontTablet <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;">-25</span><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg &nbsp;<span style="color: #0000ff;">SIZE</span> nWidth, nHeight;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Selezione prodotti"</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">STYLE</span> nOr<span style="color: #000000;">&#40;</span> DS_MODALFRAME, WS_POPUP, WS_CAPTION, &nbsp;<span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">DO</span> <span style="color: #00C800;">WHILE</span> .not. TIPO-><span style="color: #000000;">&#40;</span>EOF<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;@ &nbsp;nRow,nCol RBBTN abtn<span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span> &nbsp; BITMAP <span style="color: #ff0000;">".<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\n</span>ormale.png"</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">60</span>,<span style="color: #000000;">60</span> &nbsp;<span style="color: #0000ff;">OF</span> &nbsp;oDlg &nbsp; <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #0000ff;">Right</span><span style="color: #000000;">&#40;</span>tipo->desc,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> &nbsp; <span style="color: #000000;">&#40;</span> abtn<span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lSelected</span>:=.t. ,nTipo:= n<span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #0000ff;">FONT</span> oFontTablet<br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;TIPO-><span style="color: #000000;">&#40;</span>DBSKIP<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;n++<br />&nbsp; &nbsp; nCol+=<span style="color: #000000;">65</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDDO</span><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg<br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span> <br /><br />&nbsp;</div>[/code:s2l53jpm]
scroll Horizontal button
Perhaps using TScrollPanel ? [code=fw:2357vmhe]<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;">"Ribbon.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"constant.ch"</span><br /><br /><span style="color: #00C800;">Function</span> test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> oDlg,oFld<br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> oFontTablet<br /><br />&nbsp;<span style="color: #B900B9;">// variabili per la dialog</span><br />&nbsp; &nbsp; <span style="color: #00C800;">Local</span> &nbsp;nBottom &nbsp; := <span style="color: #000000;">13</span><br />&nbsp; &nbsp; <span style="color: #00C800;">Local</span> &nbsp;nRight &nbsp; &nbsp;:= <span style="color: #000000;">78</span><br />&nbsp; &nbsp; <span style="color: #00C800;">Local</span> &nbsp;nWidth := &nbsp;<span style="color: #0000ff;">Max</span><span style="color: #000000;">&#40;</span> nRight * DLG_CHARPIX_W, <span style="color: #000000;">180</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">Local</span> &nbsp;nHeight := nBottom * DLG_CHARPIX_H<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">Local</span> oScrPanel<br /><br /><br /><br />&nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFontTablet <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;">-25</span><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg &nbsp;<span style="color: #0000ff;">SIZE</span> nWidth, nHeight;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Selezione prodotti"</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">STYLE</span> nOr<span style="color: #000000;">&#40;</span> DS_MODALFRAME, WS_POPUP, WS_CAPTION, &nbsp;<span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oScrPanel := TScrollPanel<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;">1</span>, <span style="color: #000000;">50</span>, oDlg:<span style="color: #000000;">nRight</span><span style="color: #000000;">-100</span>, oDlg <span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> Show_Record<span style="color: #000000;">&#40;</span>oScrPanel,oFontTablet<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><span style="color: #B900B9;">//--------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">Function</span> Show_Record<span style="color: #000000;">&#40;</span>oScrPanel,oFontTablet<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> nRow:= <span style="color: #000000;">10</span><br />&nbsp; &nbsp; <span style="color: #00C800;">Local</span> nCol:= <span style="color: #000000;">10</span><br />&nbsp; &nbsp; <span style="color: #00C800;">Local</span> n:= <span style="color: #000000;">1</span><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> nTipo:=<span style="color: #000000;">0</span><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> abtn<br /><br />&nbsp; &nbsp;USE TIPO <span style="color: #0000ff;">ALIAS</span> TIPO<br />&nbsp; &nbsp; TIPO-><span style="color: #000000;">&#40;</span>DbGoTop<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; abtn:= array<span style="color: #000000;">&#40;</span>tipo-><span style="color: #000000;">&#40;</span>OrdKeyCount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">DO</span> <span style="color: #00C800;">WHILE</span> .not. TIPO-><span style="color: #000000;">&#40;</span>EOF<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;@ &nbsp;nRow,nCol RBBTN abtn<span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span> &nbsp; BITMAP <span style="color: #ff0000;">".<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\n</span>ormale.png"</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">120</span> &nbsp;<span style="color: #0000ff;">OF</span> &nbsp;oScrPanel &nbsp; <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #0000ff;">Right</span><span style="color: #000000;">&#40;</span>tipo->desc,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> &nbsp; <span style="color: #000000;">&#40;</span> abtn<span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lSelected</span>:=.t. ,nTipo:= n<span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #0000ff;">FONT</span> oFontTablet<br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;TIPO-><span style="color: #000000;">&#40;</span>DBSKIP<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;n++<br />&nbsp; &nbsp; nCol+=<span style="color: #000000;">120</span><br />&nbsp;<span style="color: #00C800;">ENDDO</span><br /><br />&nbsp;<span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br />&nbsp;</div>[/code:2357vmhe]
scroll Horizontal button
Antonio, this is my last test I use tscrollpanel but I can only scroll on vertical How scroll on Horizontal ? it create the archive [code=fw:20ksr31l]<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;">"Ribbon.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"constant.ch"</span><br /><br /><br />REQUEST DBFCDX<br />REQUEST DBFFPT<br />EXTERNAL ORDKEYNO,ORDKEYCOUNT,ORDCREATE,ORDKEYGOTO<br /><span style="color: #00D7D7;">#define</span> CLR_DIALOGS RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">123</span>, <span style="color: #000000;">140</span>, <span style="color: #000000;">223</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">/*<br />  METHOD finger(x) CLASS TScrollPanel<br />    ::GoToPos( x )<br />return nil<br /><br />*/</span><br /><br /><br /><br /><span style="color: #00C800;">Function</span> test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">Local</span> oDlg,oFld<br />   <span style="color: #00C800;">Local</span> oFontTablet<br /><br /> <span style="color: #B900B9;">// variabili per la dialog</span><br />    <span style="color: #00C800;">Local</span>  nBottom   := <span style="color: #000000;">13</span><br />    <span style="color: #00C800;">Local</span>  nRight    := <span style="color: #000000;">78</span><br />    <span style="color: #00C800;">Local</span>  nWidth :=  <span style="color: #0000ff;">Max</span><span style="color: #000000;">&#40;</span> nRight * DLG_CHARPIX_W, <span style="color: #000000;">180</span> <span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">Local</span>  nHeight := nBottom * DLG_CHARPIX_H<br />    <span style="color: #00C800;">Local</span> lSlider := .t.<br /><br />    <span style="color: #00C800;">Local</span> oScrPanel<br />    RddSetDefault<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"DBFCDX"</span> <span style="color: #000000;">&#41;</span><br /><br />    Create_Test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><br />    <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFontTablet <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;">-25</span><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg  <span style="color: #0000ff;">SIZE</span> nWidth, nHeight;<br />            <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Selec Ticket"</span>;<br />            <span style="color: #0000ff;">STYLE</span> nOr<span style="color: #000000;">&#40;</span> DS_MODALFRAME, WS_POPUP, WS_CAPTION,  <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span><br /><br />oScrPanel := TScrollPanel<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;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">90</span>, oDlg:<span style="color: #000000;">nRight</span><span style="color: #000000;">-100</span>, oDlg,.t. <span style="color: #000000;">&#41;</span><br />oScrPanel:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> CLR_WHITE, CLR_DIALOGS <span style="color: #000000;">&#41;</span><br /><br />oScrPanel:<span style="color: #000000;">bLClicked</span>    := <span style="color: #000000;">&#123;</span> || oScrPanel:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,lSlider := .t. <span style="color: #000000;">&#125;</span><br />oScrPanel:<span style="color: #000000;">bLButtonUp</span>     := <span style="color: #000000;">&#123;</span> |r,c,f,lDrag | lSlider := .f. <span style="color: #000000;">&#125;</span><br />oScrPanel:<span style="color: #000000;">bMMoved</span>  := <span style="color: #000000;">&#123;</span> |r,c,f,lDrag| <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> lSlider = .t. ,oScrPanel:<span style="color: #000000;">finger</span><span style="color: #000000;">&#40;</span>r<span style="color: #000000;">&#41;</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 ;<br />          <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> Show_Record<span style="color: #000000;">&#40;</span>oScrPanel,oFontTablet<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><span style="color: #B900B9;">//--------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">Function</span> Show_Record<span style="color: #000000;">&#40;</span>oScrPanel,oFontTablet<span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">LOCAL</span> nRow:= <span style="color: #000000;">10</span><br />    <span style="color: #00C800;">Local</span> nCol:= <span style="color: #000000;">10</span><br />    <span style="color: #00C800;">Local</span> n:= <span style="color: #000000;">1</span><br />    <span style="color: #00C800;">local</span> nTipo:=<span style="color: #000000;">0</span><br />    <span style="color: #00C800;">local</span> abtn<br /><br />    USE TIPO <span style="color: #0000ff;">ALIAS</span> TIPO   <span style="color: #00C800;">NEW</span><br /><br />    TIPO-><span style="color: #000000;">&#40;</span>DbGoTop<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />    abtn:= array<span style="color: #000000;">&#40;</span>tipo-><span style="color: #000000;">&#40;</span>OrdKeyCount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />    <span style="color: #00C800;">DO</span> <span style="color: #00C800;">WHILE</span> .not. TIPO-><span style="color: #000000;">&#40;</span>EOF<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />   @  nRow,nCol RBBTN abtn<span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>   BITMAP <span style="color: #ff0000;">".<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\n</span>ormale.png"</span>;<br />              <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">120</span>  <span style="color: #0000ff;">OF</span>  oScrPanel   <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #0000ff;">lEFT</span><span style="color: #000000;">&#40;</span>tipo->desc,<span style="color: #000000;">8</span><span style="color: #000000;">&#41;</span>;<br />            <span style="color: #0000ff;">ACTION</span>   <span style="color: #000000;">&#40;</span> abtn<span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lSelected</span>:=.t. ,nTipo:= n<span style="color: #000000;">&#41;</span>  <span style="color: #0000ff;">FONT</span> oFontTablet<br /><br /><br />       TIPO-><span style="color: #000000;">&#40;</span>DBSKIP<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />   n++<br />    nCol+=<span style="color: #000000;">120</span><br /> <span style="color: #00C800;">ENDDO</span><br />   oScrPanel:<span style="color: #000000;">SetRange</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 /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">Function</span> Create_Test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />     DbCreate<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'TI'</span>, <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"CODICE"</span>    , <span style="color: #ff0000;">"C"</span>,     <span style="color: #000000;">4</span>,    <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                     <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"DESC"</span>  , <span style="color: #ff0000;">"C"</span>,     <span style="color: #000000;">30</span>,    <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> , <span style="color: #ff0000;">'DBFCDX'</span><span style="color: #000000;">&#41;</span><br /><br /><br />      close all<br />      use &<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'TI'</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">new</span><br />      <span style="color: #0000ff;">select</span> TI<br />      <span style="color: #00C800;">if</span> FILE<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'TIPO.DBF'</span><span style="color: #000000;">&#41;</span><br />         delete file &<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'TIPO.cdx'</span><span style="color: #000000;">&#41;</span><br />         append <span style="color: #0000ff;">from</span> &<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'TIPO'</span><span style="color: #000000;">&#41;</span><br />         dbcommitall<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />         close all<br />         delete file &<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'TIPO.dbf'</span><span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">endif</span><br />      close all<br />      rename &<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'TI.dbf'</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">to</span> &<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'TIPO.dbf'</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">if</span> File<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'tipo.CDX'</span><span style="color: #000000;">&#41;</span><br />      delete file &<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'tipo.cdx'</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">endif</span><br /><br /><br />    USE TIPO <span style="color: #0000ff;">ALIAS</span> TIPO   <span style="color: #00C800;">NEW</span><br /><br />    <span style="color: #00C800;">IF</span> TIPO-><span style="color: #000000;">&#40;</span>EOF<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />       <span style="color: #00C800;">For</span> n=<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">20</span><br />          TIPO-><span style="color: #000000;">&#40;</span>DbAppend<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />          Replace Tipo->Codice with strzero<span style="color: #000000;">&#40;</span>tipo-><span style="color: #000000;">&#40;</span>recno<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span><br />          Replace Tipo->Desc with <span style="color: #ff0000;">"BTN"</span>+strzero<span style="color: #000000;">&#40;</span>tipo-><span style="color: #000000;">&#40;</span>recno<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span><br />          TIPO-><span style="color: #000000;">&#40;</span>DbCommit<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />       <span style="color: #00C800;">Next</span> n<br />    <span style="color: #00C800;">Endif</span><br /><br />      <span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> <span style="color: #000000;">&#40;</span>codice<span style="color: #000000;">&#41;</span> TAG tipo01     <span style="color: #00C800;">FOR</span> ! deleted<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><br />      DbCloseAll<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><br />   <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /> </div>[/code:20ksr31l]
scroll Panel
TScrollPanel can run also on Horizontal scroll ? On tablet I wish scroll products in horizontal [img:1i8ox1iu]https&#58;//s13&#46;postimg&#46;org/ljecw5647/selpro&#46;png[/img:1i8ox1iu] How I can modify this test ? thanks [code=fw:1i8ox1iu]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">Function</span> test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">Local</span> oDlg,oFld<br />   <span style="color: #00C800;">Local</span> oFontTablet<br /><br /> <span style="color: #B900B9;">// variabili per la dialog</span><br />    <span style="color: #00C800;">Local</span>  nBottom   := <span style="color: #000000;">13</span><br />    <span style="color: #00C800;">Local</span>  nRight    := <span style="color: #000000;">78</span><br />    <span style="color: #00C800;">Local</span>  nWidth :=  <span style="color: #0000ff;">Max</span><span style="color: #000000;">&#40;</span> nRight * DLG_CHARPIX_W, <span style="color: #000000;">180</span> <span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">Local</span>  nHeight := nBottom * DLG_CHARPIX_H<br /><br />    <span style="color: #00C800;">Local</span> oScrPanel<br /><br /><br /><br />    <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFontTablet <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;">-25</span><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg  <span style="color: #0000ff;">SIZE</span> nWidth, nHeight;<br />            <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Selezione prodotti"</span>;<br />            <span style="color: #0000ff;">STYLE</span> nOr<span style="color: #000000;">&#40;</span> DS_MODALFRAME, WS_POPUP, WS_CAPTION,  <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span><br /><br />   oScrPanel := TScrollPanel<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;">1</span>, <span style="color: #000000;">50</span>, oDlg:<span style="color: #000000;">nRight</span><span style="color: #000000;">-100</span>, oDlg <span style="color: #000000;">&#41;</span><br /><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg ;<br />          <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> Show_Record<span style="color: #000000;">&#40;</span>oScrPanel,oFontTablet<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><span style="color: #B900B9;">//--------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">Function</span> Show_Record<span style="color: #000000;">&#40;</span>oScrPanel,oFontTablet<span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">LOCAL</span> nRow:= <span style="color: #000000;">10</span><br />    <span style="color: #00C800;">Local</span> nCol:= <span style="color: #000000;">10</span><br />    <span style="color: #00C800;">Local</span> n:= <span style="color: #000000;">1</span><br />    <span style="color: #00C800;">local</span> nTipo:=<span style="color: #000000;">0</span><br />    <span style="color: #00C800;">local</span> abtn<br /><br />   USE TIPO <span style="color: #0000ff;">ALIAS</span> TIPO<br />    TIPO-><span style="color: #000000;">&#40;</span>DbGoTop<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />    abtn:= array<span style="color: #000000;">&#40;</span>tipo-><span style="color: #000000;">&#40;</span>RecCount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br /><br />    <span style="color: #00C800;">DO</span> <span style="color: #00C800;">WHILE</span> .not. TIPO-><span style="color: #000000;">&#40;</span>EOF<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />   @  nRow,nCol RBBTN abtn<span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>   BITMAP <span style="color: #ff0000;">".<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\n</span>ormale.png"</span>;<br />              <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">120</span>  <span style="color: #0000ff;">OF</span>  oScrPanel   <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #0000ff;">Right</span><span style="color: #000000;">&#40;</span>tipo->desc,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>;<br />            <span style="color: #0000ff;">ACTION</span>   <span style="color: #000000;">&#40;</span> abtn<span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lSelected</span>:=.t. ,nTipo:= n<span style="color: #000000;">&#41;</span>  <span style="color: #0000ff;">FONT</span> oFontTablet<br /><br /><br />       TIPO-><span style="color: #000000;">&#40;</span>DBSKIP<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />   n++<br />    nCol+=<span style="color: #000000;">120</span><br /> <span style="color: #00C800;">ENDDO</span><br /> </div>[/code:1i8ox1iu]
scroll bar with combo box
How can I add a scroll bar and hotpick to combo box ?
scroll buttons tablet win10
I must create a dialog with buttons ( btnbmp flat) to simulate tables of restaurant on a tablet win10 pro on screen I cannot insert all tables of restaurant because there's no space I'm thinking to create only on a page 4X5 lines and only 20 buttons then two buttons to scroll pages up and down I'm tinking no use a dbf but an array type aTable:= {numtable,place,mesero,opentime,closetime } sample : Table number : 1 Place : garden mesero : Otto Open table : 12:45 aTable:= {1,"garden","Otto","12:45:55","" } each time the user can open a table and I can add a record on aTable array at init the array a table is empty and the procedure must no show any tables then when the user open a table it must show the btnbmp on dialog with the info of table How I can make it ?
scroll buttons tablet win10
Maybe you can use an xBrowse with a multi dimensional array. Put table bitmaps on the fields. When a bitmap is selected, have it popup a diagram of the full table. Store the values for the tables in a dbf that is associated with the array of tables. Your bitmaps in the browse can have three different symbols: Empty table, Full Table, Partial Table This sounds like a fun project. Good luck.
scroll buttons tablet win10
I wish use buttons no xbrowse I have the sources with sbutton but I wish use fw button flat
scroll buttons tablet win10
Hier is a Video: [url:9t854nyo]http&#58;//atzwanger-software&#46;com/fw/flatbtn&#46;mp4[/url:9t854nyo] Hello Silvio, I think FLATBTN is exactly what you need. Change or overwrite the painting method. I do it for my dashbord where I show the free rooms in a hotel. The graphic shows for how many days the room is free. Depending on the width of the Dialog the buttons are rearranged. This dialog is a kind of responsive. This is a work in progress. Please post a picture/sketch of what you want. Best regards, Otto [img:9t854nyo]http&#58;//www&#46;atzwanger-software&#46;com/fh/flatbtn&#46;jpg[/img:9t854nyo]
scroll buttons tablet win10
What about using Tabs/Folder? Each tab could hold so many tables/buttons.
scroll buttons tablet win10
gale, a restaurant have many saloon and each saloon have many tables i wish show only 4 buttons for saloon scrolled and only 20 tables buttons scrolled I think it cannot hard to make all can be show on a table win 10
scroll dialod tab and buttons
Dear Anotnio,I saw your scroll sampleI 'd like create this dialog with 4 folder or tab 1- 50, 51-100, 101-150, 151-200on each folder I'd like to insert a oPanel scroll where I can insert 50 buttons on each panelIt 's possible ?
scroll dialod tab and buttons
Silvio,Please try it yourself, thanks <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->It should work, but we will not be sure about it until we try it.
scroll dialod tab and buttons
I try it but not run ok [code:2nm8ey7i] #include "FWCE&#46;ch" // test with folder , panel and button function Main&#40;&#41; local oWnd, cValue, cText &#58;= "Hello world!", oFld, i Local abtn&#91;120&#93; Local oPanel&#91;6&#93; DEFINE WINDOW oWnd TITLE "Tables" // USE &#40; CurDir&#40;&#41; + "\tavoli" &#41; @ 0&#46;5, 1 FOLDER oFld PROMPTS "1-20", "21-40", "41-60","61-80","81-100","101-120" ; SIZE 225, 245 @ 0&#46;6, 1&#46;5 PANEL oPanel&#91;1&#93; OF oFld&#58;aDialogs&#91; 1 &#93; ; SIZE oFld&#58;nWidth&#40;&#41;-5 , oFld&#58;nHeight&#40;&#41; - 20 PIXEL FOR i = 1 TO 20 CREAPULSANTI&#40; aBtn, i ,oPanel&#91;1&#93;&#41; NEXT @ 0&#46;6, 1&#46;5 PANEL oPanel&#91;2&#93; OF oFld&#58;aDialogs&#91; 2 &#93; ; SIZE oFld&#58;nWidth&#40;&#41;-5 , oFld&#58;nHeight&#40;&#41; - 20 PIXEL FOR i = 21 TO 40 CREAPULSANTI&#40; aBtn, i ,oPanel&#91;2&#93;&#41; NEXT @ 0&#46;6, 1&#46;5 PANEL oPanel&#91;3&#93; OF oFld&#58;aDialogs&#91; 3 &#93; ; SIZE oFld&#58;nWidth&#40;&#41;-5 , oFld&#58;nHeight&#40;&#41; - 20 PIXEL FOR i = 41 TO 60 CREAPULSANTI&#40; aBtn, i ,oPanel&#91;3&#93;&#41; NEXT @ 0&#46;6, 1&#46;5 PANEL oPanel&#91;4&#93; OF oFld&#58;aDialogs&#91; 4 &#93; ; SIZE oFld&#58;nWidth&#40;&#41;-5 , oFld&#58;nHeight&#40;&#41; - 20 PIXEL FOR i = 61 TO 80 CREAPULSANTI&#40; aBtn, i ,oPanel&#91;4&#93;&#41; NEXT @ 0&#46;6, 1&#46;5 PANEL oPanel&#91;5&#93; OF oFld&#58;aDialogs&#91; 5 &#93; ; SIZE oFld&#58;nWidth&#40;&#41;-5 , oFld&#58;nHeight&#40;&#41; - 20 PIXEL FOR i = 81 TO 100 CREAPULSANTI&#40; aBtn, i ,oPanel&#91;5&#93;&#41; NEXT @ 0&#46;6, 1&#46;5 PANEL oPanel&#91;6&#93; OF oFld&#58;aDialogs&#91;6&#93; ; SIZE oFld&#58;nWidth&#40;&#41;-5 , oFld&#58;nHeight&#40;&#41; - 20 PIXEL FOR i = 101 TO 120 CREAPULSANTI&#40; aBtn, i ,oPanel&#91;6&#93;&#41; NEXT ACTIVATE WINDOW oWnd return nil //---------------------------------------------------------------------------- STATIC FUNCTION CREAPULSANTI&#40; aBtn, nBtn,odlgscroll &#41; @ 0&#46;5 + &#40; nBtn - 1 &#41; * 40, 12 BUTTON abtn&#91;nBtn&#93; PROMPT "TAV&#46;" + STR&#40; nBtn, 2 &#41;; PIXEL of odlgscroll SIZE 40,40 *abtn&#91;nBtn&#93;&#58;bAction &#58;= &#123;|| menupopup&#40; aBtn&#91;nBtn &#93; &#41; &#125; *abtn&#91;nBtn&#93;&#58;cToolTip &#58;="TAVOLO" + STR&#40; nBtn, 2 &#41; RETURN NIL [/code:2nm8ey7i]I see only the first 20 tables I wish in each folder 20 tables 4 for col for 5 row ( 4x5)
scroll en wbrowse 1.7 de Hernán
Hola a todos, porque cuando me posiciono sobre la flechita del scroll vertical de browse, cuando llego al tope o al fin de la vista no me refresca el browse y va cambiando solo la línea. Estuve buscando en los mensajes viejos del foro pero no pude encontrar nada al respecto. Utilizo fwh26 Xharbour 0.99.61 y el Browse de Hernán Gracias
scroll en wbrowse 1.7 de Hernán
Puedes poner el codigo donde se te comporta así
scroll en wbrowse 1.7 de Hernán
Se reproduce el error en todos los casos que utilizo el wbrowse sea con campos como con vectores, hace como dos años que utilizan el sistema y nunca me había percatado del error, el sistema funcionaba antes con fw 16 bits y no había problemas, el wbrowse es la publicada en el foro Gracias REDEFINE LISTBOX oLbx FIELDS (oProex:calias)->proveedor, transform((oProex:calias)->forigen,"@d"),; (oProex:calias)->factura ,transform((oProex:calias)->importe,"@e 999,999.99"),; transform((oProex:calias)->valordol,"@e 999,999.99"),(oProex:calias)->remito,; transform((oProex:cAlias)->fecha_f,"@d"),(oProex:calias)->cobranza,(oProex:calias)->despacho; id 108 ON DBLCLICK cambio(oLbx,.f.,oProex) of odlg oLbx:aheaders:= {"Proveedor","F. Factura","Factura","Importe","u$s","Remito","Fecha","Cobranza","Despacho"} oLbx:aJustify := {HA_LEFT,HA_RIGHT,HA_LEFT,HA_RIGHT,HA_RIGHT,HA_RIGHT,HA_RIGHT,HA_RIGHT,HA_RIGHT} oLbx:aHJustify :={HA_CENTER,HA_CENTER,HA_CENTER,HA_CENTER,HA_CENTER,HA_CENTER,HA_CENTER,HA_CENTER,HA_CENTER} oLbx:aColSizes := {170,80,85,80,85,110,92,85,130 } oLbx:bSkip = { | nRecs | oProex:Skipper( nRecs ) } oLbx:nLineStyle := 3 oLbx:lAdjlastcol:= .T. oLbx:nClrBackFocus := CLR_CYAN oLbx:nClrForeFocus := CLR_WHITE oLbx:nClrPane := { || iif(!empty(oProex:dolar),rgb(175,221,245),rgb(255,255,255)) }
scroll en wbrowse 1.7 de Hernán
prueba definiendo: oLbx:cAlias:=oProex:calias
scroll en wbrowse 1.7 de Hernán
No así tampoco. este código es la copia de otro hecho en 16 bits y funciona correctamente, en wbrowse de Hernán dice estar reparado este bug, pero... fwh2.6, xharbour .99.61, workshop, verce. Gracias
scroll en wbrowse 1.7 de Hernán
A mi se presento ese problema y era que desconocía la tabla, (en mysql) y logré corregirla con oLbx2:cAlias := "ARRAY" Pero no creo que sea tu caso
scroll en wbrowse 1.7 de Hernán
surgom, a mi no me pasa eso, y lo uso asi: REDEFINE LISTBOX oBTmp ; FIELDS Rg_Bmp(cBmp),; (oDTmp)->TMP_DESCRI,; Rg2_Bmp(cBmp2),; Tran((oDTmp)->TMP_CANTID,"999,999.999"),; Tran((oDTmp)->TMP_PREUNI,"9999,999.99"),; Tran((oDTmp)->TMP_IMPORT,"9999,999.99") ; HEADERS "","D E S C R I P C I O N","","CANT","PRECIO","IMPORTE" ; SIZES 16,262,17,64,77,82 ; ON DBLCLICK ( IF(oBTmp:nAtCol(nCol)==1,BorraPartidas(),) ) ; WHEN (!DbEmpty(oDTmp) .AND. !lPago) ID 108 OF oDlg oBTmp:cAlias := oDTmp oBTmp:SetFont(oFnt[2]) oBTmp:bLogicLen := { || (oDTmp)->(OrdKeyCount()) } oBTmp:aHJustify := { 2,2,2,2,2,2 } oBTmp:aJustify := { 2,0,2,1,1,1 } oBTmp:lAdjLastCol := .F. oBTmp:lDrawFocusRect:= .T. oBTmp:nHeaderHeight := 32
scroll en wbrowse 1.7 de Hernán
Antes que nada, les pido disculpas a todos los que se interesaron en el problema que me surgió. El error radicaba en que mi compilación (en la oficina) había agregado hace un tiempo wbrowse en el script, ya que estaba haciendo unas pruebas... y me olvidé. Como también trabajo en mi casa y en la empresa que usa el software, no me percataba del error ya que en la empresa llevo en un pendrive las fuentes y los compiladores en los cuales no hacía la llamada al wbrowse y sólo utilizaba la librería que contiene enlazados los prg del wbrowse. Les pido mil disculpas por mi distracción Luis
scroll en wbrowse 1.7 de Hernán
<!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: --> No te preocupes, eso ocurre hasta en las mejores Familias!
scroll lock
¿Como puedo detectar y cambiar el estado de scroll lock (creo que generalmente está entre las teclas de imprimir pantalla y break) ?
scroll lock
Quique, Tienes un ejemplo completo en: [url:j5p61s3s]http&#58;//msdn&#46;microsoft&#46;com/en-us/library/ms646304%28VS&#46;85%29&#46;aspx[/url:j5p61s3s] tan sencillo como buscar en google: scroll lock programmatically check y lo he encontrado en el segundo resultado <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
scroll lock
Gracias Antonio, aunque ahora que lo veo bien, creo que la pregunta no estuvo totalmente clara, porque la idea era detectar el estado, o sea, si el foquito esta preindido o apagado :p , tu respuesta me ayudo bastante, ademas de activar o desactivar el scroll lock, también me ayudara a corregir la barra de mensajes, las secciones caps y num, que no funcionan con el click del ratón. Pero justificando mi ineptitud por la simplicidad que me dices para encontrar la solución (sin contar que de C solo C que existe, y cuando no lo evito yo, me evita él, por eso buscaba respuesta en fivewin, soy un simple usuario común y corriente, mas corriente que común, de fivewin, el GM eres tu, o que de inglés solo se decir "open the house") mi navegador creo que es mas sope (jerga mexicana, sería algo así como gilipolla por allá) que yo, porque le copié a google lo mismo que pusiste (no se me ocurrió, lo copié de tu respuesta) y me mandó a otras ligas. Weno, despues del rollote, muchos tenkius <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
scroll lock
Quique, Funciona perfecto, enciende y apaga focos num y cap lock: [code=fw:1w9izykg]<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> <span style="color: #ff0000;">"hbapi.h"</span><br /><br /><span style="color: #00D7D7;">#define</span> TOGGLED 0x0001<br /><br />void SetKeyLock<span style="color: #000000;">&#40;</span> BYTE vKey, BOOL bState <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   BOOL bCurrentState;<br />   bCurrentState = <span style="color: #000000;">&#40;</span> GetKeyState<span style="color: #000000;">&#40;</span> vKey <span style="color: #000000;">&#41;</span> & TOGGLED <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>bState && !bCurrentState<span style="color: #000000;">&#41;</span> ||<br />       <span style="color: #000000;">&#40;</span>!bState && bCurrentState<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      <span style="color: #B900B9;">// Simulate a key press</span><br />      keybd_event<span style="color: #000000;">&#40;</span> vKey,<br />                   <span style="color: #000000;">0</span>,<br />                   KEYEVENTF_EXTENDEDKEY | <span style="color: #000000;">0</span>,<br />                   <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br />      <span style="color: #B900B9;">// Simulate a key release</span><br />      keybd_event<span style="color: #000000;">&#40;</span> vKey,<br />                   <span style="color: #000000;">0</span>,<br />                   KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP,<br />                   <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>;<br />   <span style="color: #000000;">&#125;</span><br /><span style="color: #000000;">&#125;</span><br /><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> KEYTOGGLE <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// ( nVKey )</span><br /><span style="color: #000000;">&#123;</span><br />   BYTE pBuffer<span style="color: #000000;">&#91;</span> <span style="color: #000000;">256</span> <span style="color: #000000;">&#93;</span>;<br />   WORD wKey = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br /><br />   GetKeyboardState<span style="color: #000000;">&#40;</span> pBuffer <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> pBuffer<span style="color: #000000;">&#91;</span> wKey <span style="color: #000000;">&#93;</span> & 0x01 <span style="color: #000000;">&#41;</span><br />      SetKeyLock<span style="color: #000000;">&#40;</span> wKey, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #00C800;">else</span><br />      SetKeyLock<span style="color: #000000;">&#40;</span> wKey, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />  <span style="color: #B900B9;">// SetKeyboardState( pBuffer );</span><br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP</div>[/code:1w9izykg]
scroll lock
Mira si ayuda: [code=fw:3vgw0xpw]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">/*<br />06/07/07 - Desativar teclas especiais <br />&nbsp; Olá,<br /><br />Neste exemplo que fiz associado a dll que é encontrada no endereço:<br /><br /><!-- m --><a class="postlink" href="http://www.codeproject.com/win32/AntonioWinLock.asp">http://www.codeproject.com/win32/AntonioWinLock.asp</a><!-- m --><br /><br />...é possível fazer o seguinte em FWH:<br /><br />- Ativa/Desativar alt+tab<br />- Ativa/Desativar alt+esc<br />- Ativa/Desativar ctrl+alt+del<br />- Mostrar/Esconder a barra de tarefas<br />- Mostrar/Esconder o desktop<br />- Mostrar/Esconder o Start Button<br />- Mostrar/Esconder o System Clock<br />- Rodar um processo em outro desktop<br /><br />Espero que gostem :-)<br /><br />Abraços,<br /><br />Rossine.<br />&nbsp;<br /><br />esta em ALTTAB.ZIP em dicas mais dicas<br /><br />==============================================================================<br /><br />En: 21/08/2008 - Manuel Mercado Gentilmente Converteu Para FIVEWIN FOR XHARBOUR<br /><br />Hola João<br /><br />Una conversión rápida del ejemplo de Rossine a su versión en C directamente<br />con FWH sin Dll's<br />Manuel Mercado<br />*/</span><br /><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;">"Dll.Ch"</span><br /><br /><span style="color: #00C800;">Function</span> Teclado<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//Main()</span><br /><br /><span style="color: #B900B9;">/*<br />&nbsp; &nbsp;MsgStop( StartButton( .F. ), "Desabilitando o botão Start(Iniciar) - Win 9x, NT, 2K, XP" )<br /><br />&nbsp; &nbsp;MsgStop( StartButton( .T. ), "Habilitando &nbsp; o botão Start(Iniciar) - Win 9x, NT, 2K, XP" )<br /><br />&nbsp; &nbsp;MsgStop( ShowDesktop( .F. ), "Desabilitando o Desktop - Win 9x, NT, 2K, XP" )<br /><br />&nbsp; &nbsp;MsgStop( DesktopProc( "MyDesktop2", "Calc.exe" ), "Executando uma tarefa em outro desktop - Win NT, 2K, XP" )<br /><br />&nbsp; &nbsp;MsgStop( ShowDesktop( .T. ), "Habilitando o Desktop - Win 9x, NT, 2K, XP" )<br /><br />&nbsp; &nbsp;MsgStop( ShowTaskbar( .F. ), "Desabilitando o Taskbar(Barra de Tarefas) - Win 9x, NT, 2K, XP" )<br /><br />&nbsp; &nbsp;MsgStop( ShowTaskbar( .T. ), "Habilitando &nbsp; o Taskbar(Barra de Tarefas) - Win 9x, NT, 2K, XP" )<br /><br />&nbsp; &nbsp;MsgStop( ShowClock( .F. ), "Desabilitando o Clock(Relogio) - Win 9x, NT, 2K, XP" )<br /><br />&nbsp; &nbsp;MsgStop( ShowClock( .T. ), "Habilitando o Clock(Relogio) - Win 9x, NT, 2K, XP" )<br /><br />&nbsp; &nbsp;MsgStop( AltTabEnable( 0, .F. ), "Desabilitando ALT+TAB e ALT+ESC - Windows NT, 2k" )<br /><br />&nbsp; &nbsp;MsgStop( AltTabEnable( 0, .T. ), "Habilitando &nbsp; ALT+TAB e ALT+ESC - Windows NT, 2k" )<br /><br />&nbsp; &nbsp;// Para Windows XP/NT e 2000 / 2003<br />&nbsp; &nbsp;IF IsWinNT() .OR. IsWin2000() &nbsp;//??? Nao testei em 2000/2003<br /><br />&nbsp; &nbsp; &nbsp; &nbsp;MsgStop( CtrlAltDel( .F. ), "Desabilitando o Ctrl+Alt+Del - Windows NT, 2k" )<br /><br />&nbsp; &nbsp; &nbsp; &nbsp;MsgStop( CtrlAltDel( .T. ), "Habilitando &nbsp; o Ctrl+Alt+Del - Windows NT, 2k" )<br /><br />&nbsp; &nbsp;ELSE &nbsp;//-> Windows 95/98 - Millenium Edition<br /><br />&nbsp; &nbsp; &nbsp; Ctrl_Alt_Del( .f. )<br /><br />&nbsp; &nbsp; &nbsp; MsgAlert( "CTRL+ALT+DEL DESLIGADO" + CRLF + "Please, press CTRL + ALT + DEL", "Desligado" )<br /><br />&nbsp; &nbsp; &nbsp; Ctrl_Alt_Del( .t. )<br /><br />&nbsp; &nbsp; &nbsp; MsgAlert( "CTRL+ALT+DEL LIGADO" + CRLF + "Please, press CTRL + ALT + DEL", "Ligado" )<br /><br />&nbsp; &nbsp;ENDIF<br />*/</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">//-> Comentario: Simplesmente, FANTASTICO!!!</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">//-> Complementando para Windows 95/98 Milleniun Edition</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// Antonio Carlos Pantaglione</span><br /><span style="color: #B900B9;">// <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --></span><br /><span style="color: #B900B9;">// Agosto/2001</span><br /><span style="color: #B900B9;">//</span><br /><br /><span style="color: #B900B9;">//#include "fivewin.ch"</span><br /><span style="color: #B900B9;">//#include "dll.ch"</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #B900B9;">//-> Modifiquei para nao ter choque com a funcao par o Windows NT(XP)</span><br /><span style="color: #00C800;">Function</span> Ctrl_Alt_Del<span style="color: #000000;">&#40;</span> lState <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> !lState<br />&nbsp; &nbsp; &nbsp; SysParInfo<span style="color: #000000;">&#40;</span> <span style="color: #000000;">97</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; SysParInfo<span style="color: #000000;">&#40;</span> <span style="color: #000000;">97</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <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;">Nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />dll32 <span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> SysParInfo<span style="color: #000000;">&#40;</span> uAction AS LONG, uParam AS LONG, vParam AS LONG, uWinIni AS LONG <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; AS LONG PASCAL &nbsp;<span style="color: #0000ff;">FROM</span> <span style="color: #ff0000;">"SystemParametersInfoA"</span> LIB <span style="color: #ff0000;">"User32.dll"</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #B900B9;">//-> Rotina em C -> By Manuel Mercado - The Best</span><br /><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> &nbsp; &nbsp;<windows.h><br /><span style="color: #00D7D7;">#include</span> &nbsp; &nbsp;<stdlib.h><br /><span style="color: #00D7D7;">#include</span> &nbsp; &nbsp;<hbapi.h><br /><span style="color: #00D7D7;">#define</span> &nbsp; &nbsp; ID_STARTBUTTON &nbsp;0x130&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Start button ID</span><br /><span style="color: #00D7D7;">#define</span> &nbsp; &nbsp; ID_TRAY &nbsp; &nbsp; &nbsp; &nbsp; 0x12F&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// System tray ID</span><br /><span style="color: #00D7D7;">#define</span> &nbsp; &nbsp; ID_CLOCK &nbsp; &nbsp; &nbsp; &nbsp;0x12F&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// System clock ID</span><br /><span style="color: #00D7D7;">#define</span> &nbsp; &nbsp; PROGRAM_MANAGER <span style="color: #ff0000;">"Program Manager"</span>&nbsp; &nbsp;<span style="color: #B900B9;">// Program manager window name</span><br /><span style="color: #00D7D7;">#define</span> &nbsp; &nbsp; TASKBAR &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"Shell_TrayWnd"</span>&nbsp;&nbsp; &nbsp; <span style="color: #B900B9;">// Taskbar class name</span><br /><br />int WINAPI TaskManager_Enable_Disable<span style="color: #000000;">&#40;</span> BOOL <span style="color: #000000;">&#41;</span> ;<br />int WINAPI StartButton_Show_Hide<span style="color: #000000;">&#40;</span> BOOL <span style="color: #000000;">&#41;</span> ;<br />int WINAPI Desktop_Show_Hide<span style="color: #000000;">&#40;</span> BOOL <span style="color: #000000;">&#41;</span> ;<br />int WINAPI Process_Desktop<span style="color: #000000;">&#40;</span>char *, char * <span style="color: #000000;">&#41;</span> ;<br />int WINAPI Taskbar_Show_Hide<span style="color: #000000;">&#40;</span> BOOL <span style="color: #000000;">&#41;</span> ;<br />int WINAPI Clock_Show_Hide<span style="color: #000000;">&#40;</span> BOOL <span style="color: #000000;">&#41;</span> ;<br />int WINAPI AltTab_Enable_Disable<span style="color: #000000;">&#40;</span> HWND, BOOL <span style="color: #000000;">&#41;</span> ;<br />BOOL StartProcess<span style="color: #000000;">&#40;</span> char *, char * <span style="color: #000000;">&#41;</span> ;<br />LRESULT CALLBACK LowLevelMouseHookProc<span style="color: #000000;">&#40;</span> int nCode, WORD wParam, DWORD lParam <span style="color: #000000;">&#41;</span> ;<br />LRESULT CALLBACK MouseHookProc<span style="color: #000000;">&#40;</span> int nCode, WORD wParam, DWORD lParam <span style="color: #000000;">&#41;</span> ;<br /><br />HHOOK&nbsp; &nbsp;&nbsp; &nbsp; hHook ; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Mouse hook</span><br />HINSTANCE&nbsp; &nbsp;hInst ;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Instance handle</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> ALTTABENABLE <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;HWND hWnd &nbsp; &nbsp;= <span style="color: #000000;">&#40;</span>HWND <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp;BOOL bEnable = hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp;int iRet ;<br /><br />&nbsp; &nbsp;iRet = AltTab_Enable_Disable<span style="color: #000000;">&#40;</span> hWnd, bEnable <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp;hb_retni<span style="color: #000000;">&#40;</span> iRet <span style="color: #000000;">&#41;</span> ;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> SHOWCLOCK <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;BOOL bShow = hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp;int iRet ;<br /><br />&nbsp; &nbsp;iRet = Clock_Show_Hide<span style="color: #000000;">&#40;</span> bShow <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp;hb_retni<span style="color: #000000;">&#40;</span> iRet <span style="color: #000000;">&#41;</span> ;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> SHOWTASKBAR <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;BOOL bShow = hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp;int iRet ;<br /><br />&nbsp; &nbsp;iRet = Taskbar_Show_Hide<span style="color: #000000;">&#40;</span> bShow <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp;hb_retni<span style="color: #000000;">&#40;</span> iRet <span style="color: #000000;">&#41;</span> ;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> DESKTOPPROC <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;char* c1 = hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp;char* c2 = hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp;int iRet ;<br /><br />&nbsp; &nbsp;iRet = Process_Desktop<span style="color: #000000;">&#40;</span> c1, c2 <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp;hb_retni<span style="color: #000000;">&#40;</span> iRet <span style="color: #000000;">&#41;</span> ;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> SHOWDESKTOP <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;BOOL bShow = hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp;int iRet ;<br /><br />&nbsp; &nbsp;iRet = Desktop_Show_Hide<span style="color: #000000;">&#40;</span> bShow <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp;hb_retni<span style="color: #000000;">&#40;</span> iRet <span style="color: #000000;">&#41;</span> ;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> STARTBUTTON <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;BOOL bShow = hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp;int iRet ;<br /><br />&nbsp; &nbsp;iRet = StartButton_Show_Hide<span style="color: #000000;">&#40;</span> bShow <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp;hb_retni<span style="color: #000000;">&#40;</span> iRet <span style="color: #000000;">&#41;</span> ;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> CTRLALTDEL <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;BOOL bEnable = hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp;int iRet ;<br /><br />&nbsp; &nbsp;iRet = TaskManager_Enable_Disable<span style="color: #000000;">&#40;</span> bEnable <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp;hb_retni<span style="color: #000000;">&#40;</span> iRet <span style="color: #000000;">&#41;</span> ;<br /><span style="color: #000000;">&#125;</span><br /><br />int WINAPI TaskManager_Enable_Disable<span style="color: #000000;">&#40;</span>BOOL bEnableDisable<span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; <span style="color: #00D7D7;">#define</span> KEY_DISABLETASKMGR &nbsp;<span style="color: #ff0000;">"Software<span style="color: #000000;">\\</span>Microsoft<span style="color: #000000;">\\</span>Windows<span style="color: #000000;">\\</span>CurrentVersion<span style="color: #000000;">\\</span>Policies<span style="color: #000000;">\\</span>System"</span><br />&nbsp; &nbsp; <span style="color: #00D7D7;">#define</span> VAL_DISABLETASKMGR &nbsp;<span style="color: #ff0000;">"DisableTaskMgr"</span><br /><br />&nbsp; &nbsp; HKEY &nbsp; &nbsp;hKey;<br />&nbsp; &nbsp; DWORD &nbsp; val;<br />&nbsp; &nbsp; LONG&nbsp; &nbsp; r;<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>RegOpenKey<span style="color: #000000;">&#40;</span>HKEY_CURRENT_USER, KEY_DISABLETASKMGR, &hKey<span style="color: #000000;">&#41;</span> != ERROR_SUCCESS<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>RegCreateKey<span style="color: #000000;">&#40;</span>HKEY_CURRENT_USER, KEY_DISABLETASKMGR, &hKey<span style="color: #000000;">&#41;</span> != ERROR_SUCCESS<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #000000;">0</span>;<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>bEnableDisable<span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Enable</span><br />&nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; r = RegDeleteValue<span style="color: #000000;">&#40;</span>hKey, VAL_DISABLETASKMGR<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">else</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Disable</span><br />&nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; val = <span style="color: #000000;">1</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; r = RegSetValueEx<span style="color: #000000;">&#40;</span>hKey, VAL_DISABLETASKMGR, <span style="color: #000000;">0</span>, REG_DWORD, <span style="color: #000000;">&#40;</span>BYTE *<span style="color: #000000;">&#41;</span>&val, sizeof<span style="color: #000000;">&#40;</span>val<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; RegCloseKey<span style="color: #000000;">&#40;</span>hKey<span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #000000;">&#40;</span>r == ERROR_SUCCESS ? <span style="color: #000000;">1</span> : <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span> ;<br /><span style="color: #000000;">&#125;</span><br /><br />int WINAPI StartButton_Show_Hide<span style="color: #000000;">&#40;</span> BOOL bShowHide <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; HWND &nbsp; &nbsp;hWnd;<br /><br />&nbsp; &nbsp; hWnd = GetDlgItem<span style="color: #000000;">&#40;</span> FindWindow<span style="color: #000000;">&#40;</span> TASKBAR, <span style="color: #00C800;">NULL</span> <span style="color: #000000;">&#41;</span>, ID_STARTBUTTON <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> hWnd == <span style="color: #00C800;">NULL</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">return</span> <span style="color: #000000;">0</span> ;<br /><br />&nbsp; &nbsp; ShowWindow<span style="color: #000000;">&#40;</span> hWnd, bShowHide ? SW_SHOW : <span style="color: #000000;">SW_HIDE</span><span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; UpdateWindow<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #000000;">1</span> ;<br /><span style="color: #000000;">&#125;</span><br /><br />int WINAPI Taskbar_Show_Hide<span style="color: #000000;">&#40;</span> BOOL bShowHide <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; HWND &nbsp; &nbsp;hWnd;<br /><br />&nbsp; &nbsp; hWnd = FindWindow<span style="color: #000000;">&#40;</span> TASKBAR, <span style="color: #00C800;">NULL</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> hWnd == <span style="color: #00C800;">NULL</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #000000;">0</span> ;<br /><br />&nbsp; &nbsp; ShowWindow<span style="color: #000000;">&#40;</span> hWnd, bShowHide ? SW_SHOW : <span style="color: #000000;">SW_HIDE</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; UpdateWindow<span style="color: #000000;">&#40;</span>hWnd<span style="color: #000000;">&#41;</span> ;<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #000000;">1</span> ;<br /><span style="color: #000000;">&#125;</span><br /><br />int WINAPI Desktop_Show_Hide<span style="color: #000000;">&#40;</span> BOOL bShowHide <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; OSVERSIONINFO&nbsp; &nbsp;osvi ;<br />&nbsp; &nbsp; BOOL&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bIsWindowsNT4SP3orLater ;<br />&nbsp; &nbsp; int&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; iServicePack ;<br />&nbsp; &nbsp; char &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *p ;<br /><br />&nbsp; &nbsp; <span style="color: #B900B9;">// Determine the current windows version</span><br />&nbsp; &nbsp; osvi.dwOSVersionInfoSize = sizeof<span style="color: #000000;">&#40;</span> OSVERSIONINFO <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; GetVersionEx<span style="color: #000000;">&#40;</span> &osvi <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; <span style="color: #00C800;">for</span> <span style="color: #000000;">&#40;</span>p = osvi.szCSDVersion; *p &nbsp;&& ! isdigit<span style="color: #000000;">&#40;</span> *p <span style="color: #000000;">&#41;</span> ; *p++ <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; iServicePack = atoi<span style="color: #000000;">&#40;</span> p <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; bIsWindowsNT4SP3orLater = <span style="color: #000000;">&#40;</span> osvi.dwPlatformId == VER_PLATFORM_WIN32_NT <span style="color: #000000;">&#41;</span> &&<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> osvi.dwMajorVersion == <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span> && <span style="color: #000000;">&#40;</span> iServicePack >= <span style="color: #000000;">3</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;<span style="color: #000000;">&#40;</span> osvi.dwMajorVersion > <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> ! bShowHide <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> ! hHook <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hHook &nbsp;= SetWindowsHookEx<span style="color: #000000;">&#40;</span> bIsWindowsNT4SP3orLater ? WH_MOUSE_LL : <span style="color: #000000;">WH_MOUSE</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bIsWindowsNT4SP3orLater ? <span style="color: #000000;">&#40;</span> HOOKPROC <span style="color: #000000;">&#41;</span>LowLevelMouseHookProc : <span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> HOOKPROC <span style="color: #000000;">&#41;</span>MouseHookProc,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hInst, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> ! hHook <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #000000;">0</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; UnhookWindowsHookEx<span style="color: #000000;">&#40;</span>hHook<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; hHook = <span style="color: #00C800;">NULL</span>;<br />&nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">return</span> SetWindowPos<span style="color: #000000;">&#40;</span> FindWindow<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">NULL</span>, PROGRAM_MANAGER <span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">NULL</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bShowHide ? SWP_SHOWWINDOW : <span style="color: #000000;">SWP_HIDEWINDOW</span> | SWP_NOSIZE | SWP_NOMOVE | SWP_NOZORDER<span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br />LRESULT CALLBACK LowLevelMouseHookProc<span style="color: #000000;">&#40;</span> int nCode, WORD wParam, DWORD lParam <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; PMSLLHOOKSTRUCT p = <span style="color: #000000;">&#40;</span>PMSLLHOOKSTRUCT<span style="color: #000000;">&#41;</span>lParam ;<br />&nbsp; &nbsp; HWND hWnd = WindowFromPoint<span style="color: #000000;">&#40;</span> p->pt <span style="color: #000000;">&#41;</span> ;<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> nCode >= <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> wParam == WM_LBUTTONDOWN || wParam == WM_RBUTTONDOWN <span style="color: #000000;">&#41;</span> && hWnd == GetDesktopWindow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #000000;">1</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">return</span> CallNextHookEx<span style="color: #000000;">&#40;</span> hHook, nCode, wParam, lParam <span style="color: #000000;">&#41;</span> ;<br /><span style="color: #000000;">&#125;</span><br /><br />LRESULT CALLBACK MouseHookProc<span style="color: #000000;">&#40;</span> int nCode, WORD wParam, DWORD lParam <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> nCode >= <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wParam == WM_LBUTTONDBLCLK <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> MOUSEHOOKSTRUCT * <span style="color: #000000;">&#41;</span>lParam <span style="color: #000000;">&#41;</span>->hwnd == GetDesktopWindow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #000000;">1</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">return</span> CallNextHookEx<span style="color: #000000;">&#40;</span> hHook, nCode, wParam, lParam <span style="color: #000000;">&#41;</span> ;<br /><span style="color: #000000;">&#125;</span><br /><br />int WINAPI Process_Desktop<span style="color: #000000;">&#40;</span>char *szDesktopName, char *szPath <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; HDESK&nbsp; &nbsp;hOriginalThread ;<br />&nbsp; &nbsp; HDESK&nbsp; &nbsp;hOriginalInput ;<br />&nbsp; &nbsp; HDESK&nbsp; &nbsp;hNewDesktop ;<br /><br />&nbsp; &nbsp; <span style="color: #B900B9;">// Save original ...</span><br />&nbsp; &nbsp; hOriginalThread = GetThreadDesktop<span style="color: #000000;">&#40;</span> GetCurrentThreadId<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; hOriginalInput = OpenInputDesktop<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #00C800;">FALSE</span>, DESKTOP_SWITCHDESKTOP <span style="color: #000000;">&#41;</span> ;<br /><br />&nbsp; &nbsp; <span style="color: #B900B9;">// Create a new Desktop and switch to it</span><br />&nbsp; &nbsp; hNewDesktop = CreateDesktop<span style="color: #000000;">&#40;</span> szDesktopName, <span style="color: #00C800;">NULL</span>, <span style="color: #00C800;">NULL</span>, <span style="color: #000000;">0</span>, GENERIC_ALL, <span style="color: #00C800;">NULL</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; SetThreadDesktop<span style="color: #000000;">&#40;</span> hNewDesktop <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; SwitchDesktop<span style="color: #000000;">&#40;</span> hNewDesktop <span style="color: #000000;">&#41;</span> ;<br /><br />&nbsp; &nbsp; <span style="color: #B900B9;">// Execute process in new desktop</span><br />&nbsp; &nbsp; StartProcess<span style="color: #000000;">&#40;</span> szDesktopName, szPath <span style="color: #000000;">&#41;</span> ;<br /><br />&nbsp; &nbsp; <span style="color: #B900B9;">// Restore original ...</span><br />&nbsp; &nbsp; SwitchDesktop<span style="color: #000000;">&#40;</span> hOriginalInput <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; SetThreadDesktop<span style="color: #000000;">&#40;</span> hOriginalThread <span style="color: #000000;">&#41;</span> ;<br /><br />&nbsp; &nbsp; <span style="color: #B900B9;">// Close the Desktop</span><br />&nbsp; &nbsp; CloseDesktop<span style="color: #000000;">&#40;</span> hNewDesktop <span style="color: #000000;">&#41;</span> ;<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #000000;">0</span> ;<br /><span style="color: #000000;">&#125;</span><br /><br />BOOL StartProcess<span style="color: #000000;">&#40;</span> char *szDesktopName, char *szPath <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; STARTUPINFO &nbsp; &nbsp; &nbsp; &nbsp; si ;<br />&nbsp; &nbsp; PROCESS_INFORMATION pi ;<br /><br />&nbsp; &nbsp; <span style="color: #B900B9;">// Zero these structs</span><br />&nbsp; &nbsp; ZeroMemory<span style="color: #000000;">&#40;</span> &si, sizeof<span style="color: #000000;">&#40;</span> si <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; si.cb = sizeof<span style="color: #000000;">&#40;</span> si <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp;si.lpTitle = szDesktopName ;<br />&nbsp; &nbsp; &nbsp;si.lpDesktop = szDesktopName ;<br />&nbsp; &nbsp; ZeroMemory<span style="color: #000000;">&#40;</span> &pi, sizeof<span style="color: #000000;">&#40;</span> pi <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br /><br />&nbsp; &nbsp; <span style="color: #B900B9;">// Start the child process</span><br />&nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>!CreateProcess<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">NULL</span>, &nbsp; &nbsp;<span style="color: #B900B9;">// No module name (use command line).</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; szPath, &nbsp;<span style="color: #B900B9;">// Command line.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">NULL</span>, &nbsp; &nbsp;<span style="color: #B900B9;">// Process handle not inheritable.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">NULL</span>, &nbsp; &nbsp;<span style="color: #B900B9;">// Thread handle not inheritable.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">FALSE</span>, &nbsp; <span style="color: #B900B9;">// Set handle inheritance to FALSE.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">0</span>, &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// No creation flags.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">NULL</span>, &nbsp; &nbsp;<span style="color: #B900B9;">// Use parent's environment block.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">NULL</span>, &nbsp; &nbsp;<span style="color: #B900B9;">// Use parent's starting directory.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &si, &nbsp; &nbsp; <span style="color: #B900B9;">// Pointer to STARTUPINFO structure.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &pi <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// Pointer to PROCESS_INFORMATION structure.</span><br />&nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #00C800;">FALSE</span> ;<br />&nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; <span style="color: #B900B9;">// Wait until process exits</span><br />&nbsp; &nbsp; WaitForSingleObject<span style="color: #000000;">&#40;</span> pi.hProcess, INFINITE <span style="color: #000000;">&#41;</span> ;<br /><br />&nbsp; &nbsp; <span style="color: #B900B9;">// Close process and thread handles</span><br />&nbsp; &nbsp; CloseHandle<span style="color: #000000;">&#40;</span> pi.hProcess <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; CloseHandle<span style="color: #000000;">&#40;</span> pi.hThread <span style="color: #000000;">&#41;</span> ;<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #00C800;">TRUE</span> ;<br /><span style="color: #000000;">&#125;</span><br /><br />int WINAPI Clock_Show_Hide<span style="color: #000000;">&#40;</span> BOOL bShowHide <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; HWND &nbsp; &nbsp;hWnd ;<br /><br />&nbsp; &nbsp; hWnd = GetDlgItem<span style="color: #000000;">&#40;</span> FindWindow<span style="color: #000000;">&#40;</span> TASKBAR, <span style="color: #00C800;">NULL</span> <span style="color: #000000;">&#41;</span>, ID_TRAY <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp;hWnd = GetDlgItem<span style="color: #000000;">&#40;</span> hWnd, ID_CLOCK <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> hWnd == <span style="color: #00C800;">NULL</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #000000;">0</span> ;<br /><br />&nbsp; &nbsp; ShowWindow<span style="color: #000000;">&#40;</span> hWnd, bShowHide ? SW_SHOW : <span style="color: #000000;">SW_HIDE</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; UpdateWindow<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span> ;<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #000000;">1</span> ;<br /><span style="color: #000000;">&#125;</span><br /><br />int WINAPI AltTab_Enable_Disable<span style="color: #000000;">&#40;</span> HWND hWnd, BOOL bEnableDisable <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; <span style="color: #00D7D7;">#define</span> m_nHotKeyID <span style="color: #000000;">100</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> ! bEnableDisable <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> ! RegisterHotKey<span style="color: #000000;">&#40;</span> hWnd, m_nHotKeyID<span style="color: #000000;">+0</span>, MOD_ALT, VK_TAB <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>&nbsp;&nbsp; &nbsp; <span style="color: #B900B9;">// Alt+Tab</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #000000;">0</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> ! RegisterHotKey<span style="color: #000000;">&#40;</span> hWnd, m_nHotKeyID<span style="color: #000000;">+1</span>, MOD_ALT, VK_ESCAPE <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>&nbsp; &nbsp; <span style="color: #B900B9;">// Alt+Esc</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #000000;">0</span> ;<br />&nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> ! UnregisterHotKey<span style="color: #000000;">&#40;</span> hWnd, m_nHotKeyID + <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #000000;">0</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> ! UnregisterHotKey<span style="color: #000000;">&#40;</span> hWnd, m_nHotKeyID + <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #000000;">0</span> ;<br />&nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #000000;">1</span> ;<br /><span style="color: #000000;">&#125;</span><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP<br /><br /><span style="color: #B900B9;">/*<br />Saludos<br /><br />Manuel Mercado<br />*/</span><br />&nbsp;</div>[/code:3vgw0xpw]
scroll lock
Carlos, muchas gracias, la solución que encontró Antonio no siempre funcionaba bien (o no supe implementarla) pero de repente dejaba de funcionar, con la solución que das no me falló en todas las pruebas que hice <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> Karinha, tu mensaje está muy interesante, aunque no funcionaron todas las opciones, pero me pareció muy interesante para tomarlo en cuenta.
scroll on folder
nada no funciona does not work ?? ?? ???????? het werkt niet nó không ho?t ??ng es funktioniert nicht
scroll on folder
only with this command can I see the scroll, the vertical scroll is shown even when it should not be shown oApp():oFolder:adialogs[1]:nSTYLE := nOR( WS_CHILD, WS_VSCROLL ) it show vertical scroll on first tab when I click on the scroll button I can not see the other controls i think the tfolder class has to be re-edited so that when it gets smaller, it automatically create the scroll and scroll all the controls that are on the tabs. in particular the last control must be extended until the end of the obj folder
scroll on folder
when I resize my window test I saw the folder not have the vertical scrollbar to show also all the controls I insert on that folder [img:350pdd6a]https&#58;//s13&#46;postimg&#46;org/m01mrllzb/mio_folder_err&#46;jpg[/img:350pdd6a] any solution ?
scroll on folder
Silvio, You have to use WS_VSCROLL style on your folder pages RC definitions
scroll on folder
Sorry I use @x,y no resource
scroll on folder
I am not sure (i did not try) mut in this case you should use the method winstyle: [code=fw:3gsf8oje]<div class="fw" id="{CB}" style="font-family: monospace;">oFolder:<span style="color: #000000;">winStyle</span><span style="color: #000000;">&#40;</span>WS_VSCROLL,.t.<span style="color: #000000;">&#41;</span></div>[/code:3gsf8oje] and you obtain the scroll in this way: [code=fw:3gsf8oje]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">DEFINE</span> SCROLLBAR oVScroll <span style="color: #0000ff;">VERTICAL</span> <span style="color: #0000ff;">OF</span> oFolder</div>[/code:3gsf8oje] WS_VSCROLL is defined in winapi.ch: [code=fw:3gsf8oje]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#define</span> WS_VSCROLL           <span style="color: #000000;">2097152</span>  <span style="color: #B900B9;">// 0x00200000L</span></div>[/code:3gsf8oje] Ciao silvio <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
scroll on folder
On explorer bar there is a dispositive create a vertical scroll when we resize it...why we cannot insert it on folder class ? here a test ( but not run) #include "fivewin.ch" #include "constant.ch" #define WS_VSCROLL 2097152 // 0x00200000L Function test() Local oDlg,oFolder,oVScroll Local nBottom := 33 Local nRight := 115 Local nWidth := Max( nRight * DLG_CHARPIX_W, 180 ) Local nHeight := nBottom * DLG_CHARPIX_H local noption := 1 DEFINE DIALOG oDlg ; TITLE "test folder" ; SIZE nWidth, nHeight TRANSPARENT PIXEL @ 10,10 FOLDER oFolder of oDlg ; ITEMS "Anagrafica","Rapporti Commerciali","Varie" ; SIZE 100,200 PIXEL oFolder:adialogs[nOption]:nSTYLE := nOR( WS_CHILD, WS_VSCROLL, WS_HSCROLL ) DEFINE SCROLLBAR oVScroll VERTICAL OF oFolder oFolder:winStyle(WS_VSCROLL,.t.) oDlg:nStyle := nOr( WS_OVERLAPPED,WS_THICKFRAME,WS_MAXIMIZEBOX, 0 ) ACTIVATE DIALOG oDlg CENTERED return nil
scroll wheel mouse
I use FWv1.95, and can't find a mousewheel function. How to code the scroll wheel with Listbox or wbrowse ?
scroll wheel mouse
Hoe, In 16 bits you can only manage mousewheel scroll down event. There is no support for scroll up. You should consider to migrate your application to FWH and Harbour/xHarbour in 32 bits
scrollbar position
If there are only some items more in the dbf-file than lines on the screen the scrollbar is not positioned right. At the screenshot the browser reached the end but the scrollbar is only at 2/3 of the range. Best regards, Otto [img:3fbgisvd]http&#58;//atzwanger-software&#46;com/fh/scrollbar&#46;jpg[/img:3fbgisvd]
scrollbar position
Otto, Do you use an index file for that DBF ? Do you have deleted records in your DBF ? If so, then remember to INDEX using FOR ! Deleted()
scrolling
I would like to write many lines of text into a window and then to scroll. Is scrolling automatically or do I have to programm? Thanks in advance Otto static oWnd function Main() DEFINE WINDOW oWnd from 1,1 TO 30,60 TITLE "Kontoauszug"; VSCROLL; MENU bldMenu() ACTIVATE WINDOW oWnd return nil function bldMenu() LOCAL oMenu set exclusive off MENU oMenu MENUITEM "Start" ; ACTION f_code() ENDMENU return oMenu func f_code LOCAL nRow1 := 0 local hVert := 25 local planfont Local I:=0 local oSay DEFINE FONT planFont NAME "Arial" SIZE 6,22 FOR I := 1 TO 100 nRow1 := nRow1 + hVert * Line( nTop nLeft nBottom nRight oWnd:say( nRow1+2, 1, "TEST",255,16777215,planFont,.T.) NEXT RETURN NIL
scrolling
Otto, Yes, you have yo perform the scrolling yourself. You may review wbrowse.prg source code as it also scrolls. Another way is to use a GET multiline that will scroll automatically though it may be limited into the amount of text to contain. Another possibility is to show a browse and then use a DBF where each record is a text line, so to add a text line, you add a record, fill the field, and refresh the browse.
scrolling
Thank you for your answer. As I want to use different fonts I think that multiget and wbrowse are not a solution. Don't you have a working example? Thanks again Otto
scrolling
Try the RichEdit control. EMG
scrolling
That’s what I thought first. But how can you prevent that someone chances the text and I need the position of the mouse.
scrolling
Otto, You may disable the richedit control, so it does not accept any input.
scrolling
[quote="Otto":1nxgd0n5]That’s what I thought first. But how can you prevent that someone chances the text and I need the position of the mouse.[/quote:1nxgd0n5] Try READONLY clause. For mouse position try GetCol() and GetRow() methods. EMG
scrolling
Thanks Antonio, thanks Enrico, As I need better display possibilities for my billing-software I tried several options. Now I think I found a good solution. This is only a test if it could work but you see how I would like to do it. Maybe someone does like it and joins development for this “invoice-browser” Regards Otto Here is a link for a demo: <!-- w --><a class="postlink" href="http://www.atzwanger.com/invoice">www.atzwanger.com/invoice</a><!-- w -->
scrollpanel not refresh the bar
if I add setrange then lose the btnbmp I added. not run ok
scrollpanel not refresh the bar
I insert on a Scroll panel btnbmp control as records the scroll bar not run as you can see on this picture [img:37weoxek]https&#58;//i&#46;postimg&#46;cc/VLDfY9TM/ff&#46;jpg[/img:37weoxek] When I inizialize the Panel Scroll I insert a "fake" small btnbmp (size 1,1) because the scrollpanel class return me an error on setrange method I hope someone can help me I made a small test to explain what not run [code=fw:37weoxek]<div class="fw" id="{CB}" style="font-family: monospace;"> <br /><br /><span style="color: #00C800;">Static</span> aData<br />&nbsp; &nbsp;<span style="color: #00C800;">Static</span> nRow,nCol<br /><br /><span style="color: #00C800;">Function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> oDlg,oFont<br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> oPanelInvoice<br /><br />&nbsp; &nbsp;aData:= <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;nNumber:=<span style="color: #000000;">0</span><br />&nbsp; &nbsp;nRow &nbsp;:= <span style="color: #000000;">20</span><br />&nbsp; &nbsp;nCol &nbsp;:= <span style="color: #000000;">20</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;">-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;">700</span>,<span style="color: #000000;">400</span> <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL <span style="color: #0000ff;">FONT</span> oFont<br /><br /><br /><br />&nbsp; &nbsp; @ oDlg:<span style="color: #000000;">nbottom</span><span style="color: #000000;">-40</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Add Element"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">82</span>,<span style="color: #000000;">18</span> &nbsp;<span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">of</span> oDlg <span style="color: #0000ff;">ACTION</span> Add_Element<span style="color: #000000;">&#40;</span>oPanelInvoice,oFont<span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> ;<br />&nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#40;</span>oPanelInvoice:=Create_Panel_Invoice<span style="color: #000000;">&#40;</span>oDlg,oFont<span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPanelInvoice:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPanelInvoice:<span style="color: #000000;">CheckResize</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><span style="color: #B900B9;">//---------------------------------------------------------------//</span><br /><span style="color: #00C800;">Function</span> Add_Element<span style="color: #000000;">&#40;</span>oPanelInvoice,oFont<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">//Insert new Element</span><br />&nbsp; &nbsp; nNumber++<br />&nbsp; &nbsp; AaDd<span style="color: #000000;">&#40;</span>adata,<span style="color: #000000;">&#123;</span>nNumber<span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; Insert_Element<span style="color: #000000;">&#40;</span>oPanelInvoice,<span style="color: #000000;">1</span>,oFont,nNumber<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Function</span> Create_Panel_Invoice<span style="color: #000000;">&#40;</span>oDlg,oFont<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oPanel<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aGrad &nbsp;:= <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">216</span>, <span style="color: #000000;">230</span>, <span style="color: #000000;">238</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">103</span>, <span style="color: #000000;">154</span>, <span style="color: #000000;">194</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;oDlg:<span style="color: #000000;">aMinMaxInfo</span> := <span style="color: #000000;">&#123;</span> <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span>, <span style="color: #000000;">878</span>, <span style="color: #000000;">570</span>, <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#125;</span> <span style="color: #B900B9;">//878, 570</span><br /><br />&nbsp; &nbsp;oPanel &nbsp; := TScrollPanel<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;">0</span>,<span style="color: #000000;">010</span>,<span style="color: #000000;">180</span>,<span style="color: #000000;">550</span>,oDlg, .t. <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oPanel:<span style="color: #000000;">nRightMargin</span> &nbsp; &nbsp; := <span style="color: #000000;">10</span><br />&nbsp; &nbsp;oPanel:<span style="color: #000000;">nBottomMargin</span> &nbsp; &nbsp;:= <span style="color: #000000;">60</span><br />&nbsp; &nbsp;oPanel:<span style="color: #000000;">WinStyle</span><span style="color: #000000;">&#40;</span>WS_BORDER, .t.<span style="color: #000000;">&#41;</span><br /><br /><br /><br />&nbsp; &nbsp; &nbsp;Insertline<span style="color: #000000;">&#40;</span>oPanel<span style="color: #000000;">&#41;</span> &nbsp; <span style="color: #B900B9;">// button fake</span><br /><br /><br />&nbsp; &nbsp; &nbsp;oPanel:<span style="color: #000000;">SetRange</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">return</span> oPanel<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------//</span><br /><span style="color: #00C800;">Function</span> Insertline<span style="color: #000000;">&#40;</span>oDlg<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> oBtnLine<br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> nRow:=<span style="color: #000000;">1</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> nCol:=<span style="color: #000000;">1</span><br /><br />&nbsp; &nbsp;@ nRow,nCol <span style="color: #0000ff;">BTNBMP</span> oBtnLine ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">PROMPT</span> &nbsp;<span style="color: #ff0000;">" "</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg FLAT<br /><br />&nbsp; &nbsp;oBtnLine:<span style="color: #000000;">end</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 /><span style="color: #B900B9;">//------------------------------------------------------------//</span><br /><br />I insert &nbsp;<span style="color: #0000ff;">btnbmp</span> controls into a scrollpanel &nbsp;pressin <span style="color: #ff0000;">"add element"</span> <span style="color: #0000ff;">button</span><br /><br />the scrollBar not run good<br /><br /><span style="color: #00C800;">At</span> <span style="color: #0000ff;">init</span> <span style="color: #0000ff;">when</span> I &nbsp;draw the Panel <span style="color: #0000ff;">Scroll</span> &nbsp;I insert a <span style="color: #ff0000;">"fake"</span> small &nbsp;<span style="color: #0000ff;">btnbmp</span> <span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">1</span>,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span> and then destroy it <br />&nbsp;because the scrollpanel &nbsp;give me an error <span style="color: #0000ff;">of</span> setrange<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">method</span><br /><br /><br /><span style="color: #000000;">&#91;</span>img<span style="color: #000000;">&#93;</span>https:<span style="color: #B900B9;">//i.postimg.cc/VLDfY9TM/ff.jpg[/img]</span><br /><br /><br /><br /><span style="color: #000000;">&#91;</span>code<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>/code<span style="color: #000000;">&#93;</span><br />&nbsp; <span style="color: #00C800;">function</span> Insert_Element<span style="color: #000000;">&#40;</span>oDlg,nTypeE,oFont,nNumber<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oBtn, oBold<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> n<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">//info element</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nPrice:= <span style="color: #000000;">30</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> cDesc:=<span style="color: #ff0000;">"record"</span>+str<span style="color: #000000;">&#40;</span>nNumber<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> fromdate := date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> todate &nbsp; := date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> ggiorni:= <span style="color: #ff0000;">" 1 gg"</span><br /><br /><br /><br />&nbsp; &nbsp;nHeigh:= <span style="color: #000000;">120</span><br />&nbsp; &nbsp;nSpaceh:= <span style="color: #000000;">2</span><br />&nbsp; &nbsp;nLen := Len<span style="color: #000000;">&#40;</span>adata<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> nLen = <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; nRow := <span style="color: #000000;">20</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Endif</span><br /><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">If</span> nLen ><span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp;nrow += <span style="color: #000000;">120</span>+ nSpaceh<br />&nbsp; &nbsp; <span style="color: #00C800;">endif</span><br /><br /><br /><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;">-14</span> BOLD<br /><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@ nRow,nCol <span style="color: #0000ff;">BTNBMP</span> oBtn ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">PROMPT</span> cDesc + CRLF+ CRLF+;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SPACE<span style="color: #000000;">&#40;</span><span style="color: #000000;">20</span><span style="color: #000000;">&#41;</span>+ dtoc<span style="color: #000000;">&#40;</span>fromdate<span style="color: #000000;">&#41;</span>+ CRLF +CRLF +;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SPACE<span style="color: #000000;">&#40;</span><span style="color: #000000;">20</span><span style="color: #000000;">&#41;</span>+ dtoc<span style="color: #000000;">&#40;</span>todate<span style="color: #000000;">&#41;</span>+ <span style="color: #ff0000;">" "</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">640</span>, nHeigh <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg FLAT <span style="color: #0000ff;">RIGHT</span> &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TOOLTIP <span style="color: #ff0000;">"fai click per aggiungere un servizio"</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">COLOR</span> CLR_CYAN,CLR_WHITE<br /><br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;oBtn:<span style="color: #000000;">oFontBold</span> &nbsp;:= oBold &nbsp; <span style="color: #B900B9;">// <-- NOTE &nbsp;RGB( 225, 225, 225 )</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oBtn:<span style="color: #000000;">nClrBorder</span> := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#40;</span>IIF<span style="color: #000000;">&#40;</span>oBtn:<span style="color: #000000;">lMOver</span>,CLR_BLUE,CLR_RED<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oBtn:<span style="color: #000000;">bClrGrad</span> &nbsp; := <span style="color: #000000;">&#123;</span> | lInvert | <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ! lInvert,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, CLR_WHITE, CLR_WHITE <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">229</span>,<span style="color: #000000;">241</span>,<span style="color: #000000;">251</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">229</span>,<span style="color: #000000;">241</span>,<span style="color: #000000;">251</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; <br /><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont, oBold<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------------------------------//</span><br />&nbsp;</div>[/code:37weoxek]
scrool de texto en ventana o dialogo
Compañeros buenas tardes alguien ha desarrollado un control o ha resuelto de alguna forma que se vaya mostrando un texto como hacen los instaladores de los programas en windows, no se si me explico se van mostrando texto y se va haciendo scroll automatico Si alguien lo ha hecho muchas gracias si comparte codigo saludos cordiales Wilson
scrool de texto en ventana o dialogo
Yo, que acabo de empezar con FW, me he hecho un LogDebuger para ir enviando "señales", valores de variables, alertas sin que la aplicación se detenga... y lo hago con un GET...MEMO La idea es tener una ventana "flotante" a la cual se le pueda mandar cualquier valor y lo muestre sin detener la aplicación. Este es el código que a mi me está funcionando y que puedes coger como pauta... [code=fw:2x2e0yv8]<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> oDlg, nContador<br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">FUNCTION</span> LogDebug<span style="color: #000000;">&#40;</span> xValor <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> oGet, cVar := <span style="color: #ff0000;">""</span>, nAscan<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">If</span> <span style="color: #000000;">&#40;</span>nAscan := AScan<span style="color: #000000;">&#40;</span> GetAllWin<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#123;</span>|o| o:<span style="color: #000000;">ClassName</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"TDIALOG"</span> .and. o:<span style="color: #000000;">Cargo</span> = <span style="color: #ff0000;">"LogDebug"</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> = <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; nContador := <span style="color: #000000;">0</span> &nbsp;<span style="color: #B900B9;">//Solo crear la ventana 1 unica vez</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">600</span>, <span style="color: #000000;">280</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"LogDebugFW"</span> <span style="color: #0000ff;">PIXEL</span><br /><br />&nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">GET</span> oGet <span style="color: #0000ff;">VAR</span> cVar MEMO <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">140</span>, <span style="color: #000000;">300</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />&nbsp; &nbsp; &nbsp; oDlg:<span style="color: #000000;">Cargo</span> := <span style="color: #ff0000;">"LogDebug"</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">NOWAIT</span><br />&nbsp; &nbsp;<span style="color: #00C800;">EndIf</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">//Convertir xValor en tipo caracter para poder mostrar</span><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> xValor = <span style="color: #00C800;">Nil</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">//Nul</span><br />&nbsp; &nbsp; &nbsp; xValor := <span style="color: #ff0000;">"Nil"</span><br />&nbsp; &nbsp;elseif ValType<span style="color: #000000;">&#40;</span>xValor<span style="color: #000000;">&#41;</span> = <span style="color: #ff0000;">"N"</span> &nbsp; <span style="color: #B900B9;">//Numero</span><br />&nbsp; &nbsp; &nbsp; xValor := LTrim<span style="color: #000000;">&#40;</span>Str<span style="color: #000000;">&#40;</span>xValor<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;elseif ValType<span style="color: #000000;">&#40;</span>xValor<span style="color: #000000;">&#41;</span> = <span style="color: #ff0000;">"D"</span> &nbsp; <span style="color: #B900B9;">//Data</span><br />&nbsp; &nbsp; &nbsp; xValor := DToC<span style="color: #000000;">&#40;</span>xValor<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;elseif ValType<span style="color: #000000;">&#40;</span>xValor<span style="color: #000000;">&#41;</span> = <span style="color: #ff0000;">"L"</span> &nbsp; <span style="color: #B900B9;">//Logic</span><br />&nbsp; &nbsp; &nbsp; xValor := <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> xValor, <span style="color: #ff0000;">".T."</span>, <span style="color: #ff0000;">".F."</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;elseif ValType<span style="color: #000000;">&#40;</span>xValor<span style="color: #000000;">&#41;</span> = <span style="color: #ff0000;">"A"</span> &nbsp; <span style="color: #B900B9;">//Array... Habria que mostrar los valores del array, pero de momento me vale</span><br />&nbsp; &nbsp; &nbsp; xValor := <span style="color: #ff0000;">"{...}"</span><br />&nbsp; &nbsp;elseif ValType<span style="color: #000000;">&#40;</span>xValor<span style="color: #000000;">&#41;</span> = <span style="color: #ff0000;">"O"</span> &nbsp; <span style="color: #B900B9;">//Object</span><br />&nbsp; &nbsp; &nbsp; xValor := xValor:<span style="color: #000000;">ClassName</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">//Añado en la ventana FWDebug una linea más mostrando TODAS las anteriores + xValor</span><br />&nbsp; &nbsp;WITH OBJECT oDlg:<span style="color: #000000;">aControls</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp;:<span style="color: #000000;">VarPut</span><span style="color: #000000;">&#40;</span> :<span style="color: #000000;">VarGet</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> + CRLF + <span style="color: #ff0000;">"#"</span>+ AllTrim<span style="color: #000000;">&#40;</span>Str<span style="color: #000000;">&#40;</span>++nContador<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> +<span style="color: #ff0000;">" &nbsp;"</span>+ xValor &nbsp; <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;:<span style="color: #000000;">GoBottom</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;END<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">Nil</span><br />&nbsp;</div>[/code:2x2e0yv8]
scrool de texto en ventana o dialogo
Xevi muchas gracias por el código se le ve interesante ya lo reviso saludos cordiales Wilson
sdf file
can I open a sdf file from fwh and browse all tables ? can I have a easy small test ?
sdf file
DEVO APRIRE UN SDF FILE COME POSSO FARE ? ESISTE UN TOOL FREEWARE ?
sdf file
è un database SQL Server, hai bisogno di un database sql, puoi scaricare la develop o la express da <!-- m --><a class="postlink" href="https://www.microsoft.com/it-it/sql-server/sql-server-downloads">https://www.microsoft.com/it-it/sql-ser ... -downloads</a><!-- m --> e farti un server locale, poi in management studio fai "attach" al file e dovresti avere il db. a questo punto da management studio puoi fare le query. Dopo questo puoi collegarti al database da harbour usando odbc.
sdf file
onestamente non ricordo per quale motivo ho scritto questo messaggio cmq grazie
se Pierde el Foco en un listbox
Compañeros del foro, tengo este problema: En un dialogo tengo 2 listbox, cada uno con una tabla diferente, al hacer click en el primer listbox, me debe buscar un dato en el segundo listbox, y dejármelo listo para usarlo, y la búsqueda en el segundo la hace bien con un dbseek, pero al hacer click con el mouse dentro del segundo listbox, el foco se traslada al final de la tabla. ¿ ? . que debo implementar mas, para que al hace click con el mosue lo haga sobre el registro encontrado? hago: oLbx:UpStable () oLbx:Refresh () oLbx:SetFocus () en ese orden..... Agradezco alguna idea....
se Pierde el Foco en un listbox
Prueba asi, al hacer click en el 1er listbox le pasas el focus al 2do.listbox, oLbx2:SetFocus(), select area oLbx2, oLbx2:dbseek( oLbx1_tu_campo_clave ), oLbx2:refresh(), intenta y comenta, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
se nos fue Ignacio Vizcaino Tapia
se nos adelanto, en Ciudad de Mexico don Ignacio Vizcaino Tapia un gran programador clipper Harbour Fwh padre del erp CressWin y excelente persona cuando le hice consulta jamás me negó sus conocimientos, era aficionado a la aviación y la avioneta que piloteaba se precipito a tierra PAZ en su tumba y un hasta luego Nacho !! un fuerte abrazo a sus familiares