topic
stringlengths 1
63
| text
stringlengths 1
577k
⌀ |
---|---|
A new Surface Pro ad is here
|
Hello Antonio,
look at the YouTube view counter of this ad page.
It is increasing by more than 10000 each hour.
Best regards,
Otto
|
A new Surface Pro ad is here
|
Dear Otto,
Sorry but I don't get it.
Sales figures are the exact reflection of the market acceptance of a product, not the number of views of a video...
Lots of people watch a movie trailer, but not all of them go to the cinema to watch the movie...
|
A new Surface Pro ad is here
|
Hello Antonio,
you are totally right.
But from the marketing point of view this youtube couter is interesting to follow.
When I first saw the ad there have been 70000 views now 4 days later 340000.
I am curious what the number will be in 10 days.
Today there was a DELL advertising supplement in Austrias most read newspaper.
On every screen only WINDOWS 8. The main food-discounters over here – all of them also sell PCs <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> – have WINWOS 8 PC and notebook in their current offer on the first page.
Every company over here who wants a modern touch do have somewhere a product placing with a WINDOWS 8 start screen.
This is the situation here in Austria.
Best regards,
Otto
|
A new Surface Pro ad is here
|
Cool thread ...
I like both Surface (RT and PRO) commercials. BTW, the dancer is also featuring in the latest Bob Dylan's video:
<!-- m --><a class="postlink" href="http://www.youtube.com/watch?v=mns9VeRguys">http://www.youtube.com/watch?v=mns9VeRguys</a><!-- m -->
Here is also the remix of both ads by photographer Stay Classy:
<!-- m --><a class="postlink" href="http://www.youtube.com/watch?v=2dFcfGwzFTU">http://www.youtube.com/watch?v=2dFcfGwzFTU</a><!-- m -->
> amazing human beatbox
Here is another one (Sašo Vrabi?) who sings in group Perpetuum Jazzile:
<!-- m --><a class="postlink" href="http://www.youtube.com/watch?v=XgAcPRsEKe4">http://www.youtube.com/watch?v=XgAcPRsEKe4</a><!-- m -->
<!-- m --><a class="postlink" href="http://www.youtube.com/watch?v=yjbpwlqp5Qw">http://www.youtube.com/watch?v=yjbpwlqp5Qw</a><!-- m -->
Cheers, Roman
|
A new Surface Pro ad is here
|
It is quite logical that lots of people will watch the Microsoft's 8 adds as Microsoft is very important in the software industry.
Everybody know about the iPad, so I think that the adds should focus on why people should buy a Microsoft tablet instead of the iPad.
Along this year we will see whats happens <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
A nice sample to show what is possible with xBrowse
|
Hello,It is easy, to repaint xBrowse with stored settings from a database.For a new Template-Manager ( xBrowse ), i stored the complete style of the browser ( preview ) in a database. With just a change of a recordi can change the xBrowse-display, no extra preview-dialog is needed.Even the dialog-background is repainted with values, stored in a DBF-record.It is a much better solution, than to create a INI-file.[img:1fk3jh6k]http://www.pflegeplus.com/pictures/xBrw51.jpg[/img:1fk3jh6k][img:1fk3jh6k]http://www.pflegeplus.com/pictures/xBrw50.jpg[/img:1fk3jh6k]RegardsUwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
A nice sense of achievement
|
[url:q4ijlxyq]https://www.youtube.com/watch?v=Zwlu_FwPFtc[/url:q4ijlxyq]
[url:q4ijlxyq]https://mybergland.com/fwforum/install_xampp_and_modharbour.exe[/url:q4ijlxyq]
[img:q4ijlxyq]https://mybergland.com/fwforum/installmodhb2.jpg[/img:q4ijlxyq]
|
A nice sense of achievement
|
Dear Otto,
You are a great mod_harbour ambassador and promoter <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
big thank you for all you do!
|
A painting problem Func. GradientBrush and folders ?
|
Hello,
I wanted to use the function [color=#FF0000:1nah7vxj]GradientBrush[/color:1nah7vxj] for a transparent Tab-display
in folders. As long I use a color or a tiled background, there is no problem.
With a gradient it shows, the color of the tab-area is not equal with the dialog.
A test-gradient ( direction use .F. = vertical )
aGrad := { { 0.95,8388608,16777215 },{ 0.95,16777215,8388608 } }
[img:1nah7vxj]http://www.pflegeplus.com/pictures/gradpos1.jpg[/img:1nah7vxj]
Like You can see :
the calculation to replace the color of the tab-area, starts with the left side of the folder
uses the left start-color of the dialog.
Is it possible, to fix this ?
The same with a Horizontal gradient. The transparent tab-area of the folder must be white
but uses the blue from top of the dialog.
[img:1nah7vxj]http://www.pflegeplus.com/pictures/gradpos3.jpg[/img:1nah7vxj]
[code=fw:1nah7vxj]<div class="fw" id="{CB}" style="font-family: monospace;"><br />...<br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg5 <span style="color: #0000ff;">CENTERED</span> ; <br /><span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> DLG_GRAD<span style="color: #000000;">(</span> oDlg <span style="color: #000000;">)</span> <br /><br /><span style="color: #B900B9;">// ---------- Dialog - Gradient -------------------</span><br /><br /><span style="color: #00C800;">FUNCTION</span> DLG_GRAD<span style="color: #000000;">(</span> oDlg <span style="color: #000000;">)</span><br /><br /><span style="color: #B900B9;">// D_DIRECT = Horizontal or Vertical</span><br /><span style="color: #B900B9;">// D_MOVE = Color-Position</span><br /><span style="color: #B900B9;">// D_COLOR1 = 1. Gradient-Color</span><br /><span style="color: #B900B9;">// D_COLOR2 = 2. Gradient-Color</span><br /><br /><span style="color: #00C800;">IF</span> D_DIRECT = <span style="color: #000000;">1</span> <span style="color: #B900B9;">// Gradient direction</span><br /> GradientBrush<span style="color: #000000;">(</span> oDlg, <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> D_MOVE, D_COLOR1, D_COLOR2 <span style="color: #000000;">}</span>, ;<br /> <span style="color: #000000;">{</span> D_MOVE, D_COLOR2, D_COLOR1 <span style="color: #000000;">}</span> <span style="color: #000000;">}</span>, .T. <span style="color: #000000;">)</span><br /><span style="color: #00C800;">ELSE</span><br /> GradientBrush<span style="color: #000000;">(</span> oDlg, <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> D_MOVE, D_COLOR1, D_COLOR2 <span style="color: #000000;">}</span>, ;<br /> <span style="color: #000000;">{</span> D_MOVE, D_COLOR2, D_COLOR1 <span style="color: #000000;">}</span> <span style="color: #000000;">}</span>, .F. <span style="color: #000000;">)</span><br /><span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">(</span> <span style="color: #00C800;">NIL</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #B900B9;">// --------------------------------</span><br /><br /><span style="color: #00C800;">FUNCTION</span> GradientBrush<span style="color: #000000;">(</span> oDlg, aColors, lPos <span style="color: #000000;">)</span><br /><span style="color: #00C800;">local</span> hDC, hBmp, hBmpOld, oBrush<br /><br /><span style="color: #00C800;">if</span> Empty<span style="color: #000000;">(</span> oDlg:<span style="color: #000000;">oBrush</span>:<span style="color: #000000;">hBitmap</span> <span style="color: #000000;">)</span><br /> hDC = CreateCompatibleDC<span style="color: #000000;">(</span> oDlg:<span style="color: #000000;">GetDC</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> hBmp = CreateCompatibleBitMap<span style="color: #000000;">(</span> oDlg:<span style="color: #000000;">hDC</span>, oDlg:<span style="color: #000000;">nWidth</span>, oDlg:<span style="color: #000000;">nHeight</span> <span style="color: #000000;">)</span><br /> hBmpOld = SelectObject<span style="color: #000000;">(</span> hDC, hBmp <span style="color: #000000;">)</span><br /> GradientFill<span style="color: #000000;">(</span> hDC, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, oDlg:<span style="color: #000000;">nHeight</span>, oDlg:<span style="color: #000000;">nWidth</span>, aColors, lPos <span style="color: #000000;">)</span><br /> DeleteObject<span style="color: #000000;">(</span> oDlg:<span style="color: #000000;">oBrush</span>:<span style="color: #000000;">hBrush</span> <span style="color: #000000;">)</span><br /> oDlg:<span style="color: #000000;">oBrush</span>:<span style="color: #000000;">hBitmap</span> = hBmp<br /> oDlg:<span style="color: #000000;">oBrush</span>:<span style="color: #000000;">hBrush</span> = CreatePatternBrush<span style="color: #000000;">(</span> hBmp <span style="color: #000000;">)</span> <br /> SelectObject<span style="color: #000000;">(</span> hDC, hBmpOld <span style="color: #000000;">)</span><br /> oDlg:<span style="color: #000000;">ReleaseDC</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">endif</span> <br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /> </div>[/code:1nah7vxj]
Best Regards
Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
A partir de que version de FW funciona TDolphin?
|
Estoy tratando de compilar con tDolphin me da muchos errores, es la Version de FW el problema?
un Saludo a todos
|
A partir de que version de FW funciona TDolphin?
|
Hola...
1. creo que no seria tanto compatibilidad con fivewin sino con [x]Harbour
2. Que version de fivewin estas usando
3. Cuales son los errores que te genera?
|
A partir de que version de FW funciona TDolphin?
|
Hola Daniel..
xharbour 1.1.0
fw 8.02
"sintax error at 'oServer' "
"sintax error at 'aServer' "
saludos
|
A partir de que version de FW funciona TDolphin?
|
Miguel
Reitero mi peticion por este hilo
[quote="Daniel Garcia-Gil":11du5ot1]Hola
en que linea se genera el error?
podrias colocar parte del error.log que describa el error... gracias[/quote:11du5ot1]
|
A partir de que version de FW funciona TDolphin?
|
[code=fw:2rvdlxv1]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">FUNCTION</span> ConnectTo<span style="color: #000000;">(</span> n <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">LOCAL</span> c<br /> <span style="color: #00C800;">LOCAL</span> hIni<br /> <span style="color: #00C800;">LOCAL</span> oServer<br /> <span style="color: #00C800;">LOCAL</span> cServer, cUser, cPassword, nPort, cDBName,nFlags<br /> <span style="color: #00C800;">LOCAL</span> oErr<br /><br /> c = <span style="color: #ff0000;">"mysql"</span><br /><br /> <span style="color: #00C800;">if</span> n != <span style="color: #00C800;">NIL</span><br /> c = <span style="color: #ff0000;">"mysql"</span> + AllTrim<span style="color: #000000;">(</span> Str<span style="color: #000000;">(</span> n <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /> hIni := HB_ReadIni<span style="color: #000000;">(</span> <span style="color: #ff0000;">"connect.ini"</span> <span style="color: #000000;">)</span><br /> oServer := <span style="color: #00C800;">NIL</span><br /> cServer := hIni<span style="color: #000000;">[</span> c <span style="color: #000000;">]</span><span style="color: #000000;">[</span><span style="color: #ff0000;">"host"</span><span style="color: #000000;">]</span><br /> cUser := hIni<span style="color: #000000;">[</span> c <span style="color: #000000;">]</span><span style="color: #000000;">[</span><span style="color: #ff0000;">"user"</span><span style="color: #000000;">]</span><br /> cPassword := hIni<span style="color: #000000;">[</span> c <span style="color: #000000;">]</span><span style="color: #000000;">[</span><span style="color: #ff0000;">"psw"</span><span style="color: #000000;">]</span><br /> nPort := val<span style="color: #000000;">(</span>hIni<span style="color: #000000;">[</span> c <span style="color: #000000;">]</span><span style="color: #000000;">[</span><span style="color: #ff0000;">"port"</span><span style="color: #000000;">]</span><span style="color: #000000;">)</span><br /> cDBName := hIni<span style="color: #000000;">[</span> c <span style="color: #000000;">]</span><span style="color: #000000;">[</span><span style="color: #ff0000;">"dbname"</span><span style="color: #000000;">]</span><br /> nFlags := val<span style="color: #000000;">(</span>hIni<span style="color: #000000;">[</span> c <span style="color: #000000;">]</span><span style="color: #000000;">[</span><span style="color: #ff0000;">"flags"</span><span style="color: #000000;">]</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">TRY</span><br /> nFlags := <span style="color: #000000;">0</span><br /><br /> CONNECT oServer HOST cServer ; <span style="color: #B900B9;">// aqui marca sintax error at 'oServer'</span><br /> USER cUser ;<br /> PASSWORD cPassword ;<br /> PORT nPort ;<br /> FLAGS nFlags;<br /> DATABASE cDBName<br /><br /> CATCH oErr<br /> <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /> END<br /><br /><span style="color: #00C800;">RETURN</span> oServer<br /><br /><span style="color: #00C800;">FUNCTION</span> ConnectTo2<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">LOCAL</span> hIni := HB_ReadIni<span style="color: #000000;">(</span> <span style="color: #ff0000;">"connect.ini"</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">LOCAL</span> aServer := <span style="color: #000000;">{</span><span style="color: #00C800;">NIL</span>, <span style="color: #00C800;">NIL</span><span style="color: #000000;">}</span><br /> <span style="color: #00C800;">LOCAL</span> aHost := <span style="color: #000000;">{</span> hIni<span style="color: #000000;">[</span><span style="color: #ff0000;">"mysql"</span><span style="color: #000000;">]</span><span style="color: #000000;">[</span><span style="color: #ff0000;">"host"</span><span style="color: #000000;">]</span>, hIni<span style="color: #000000;">[</span><span style="color: #ff0000;">"mysql2"</span><span style="color: #000000;">]</span><span style="color: #000000;">[</span><span style="color: #ff0000;">"host"</span><span style="color: #000000;">]</span> <span style="color: #000000;">}</span> ,;<br /> aUser := <span style="color: #000000;">{</span> hIni<span style="color: #000000;">[</span><span style="color: #ff0000;">"mysql"</span><span style="color: #000000;">]</span><span style="color: #000000;">[</span><span style="color: #ff0000;">"user"</span><span style="color: #000000;">]</span>, hIni<span style="color: #000000;">[</span><span style="color: #ff0000;">"mysql2"</span><span style="color: #000000;">]</span><span style="color: #000000;">[</span><span style="color: #ff0000;">"user"</span><span style="color: #000000;">]</span> <span style="color: #000000;">}</span>,;<br /> aPassword := <span style="color: #000000;">{</span> hIni<span style="color: #000000;">[</span><span style="color: #ff0000;">"mysql"</span><span style="color: #000000;">]</span><span style="color: #000000;">[</span><span style="color: #ff0000;">"psw"</span><span style="color: #000000;">]</span>, hIni<span style="color: #000000;">[</span><span style="color: #ff0000;">"mysql2"</span><span style="color: #000000;">]</span><span style="color: #000000;">[</span><span style="color: #ff0000;">"psw"</span><span style="color: #000000;">]</span> <span style="color: #000000;">}</span>,;<br /> aPort := <span style="color: #000000;">{</span> val<span style="color: #000000;">(</span>hIni<span style="color: #000000;">[</span><span style="color: #ff0000;">"mysql"</span><span style="color: #000000;">]</span><span style="color: #000000;">[</span><span style="color: #ff0000;">"port"</span><span style="color: #000000;">]</span><span style="color: #000000;">)</span>, val<span style="color: #000000;">(</span>hIni<span style="color: #000000;">[</span><span style="color: #ff0000;">"mysql2"</span><span style="color: #000000;">]</span><span style="color: #000000;">[</span><span style="color: #ff0000;">"port"</span><span style="color: #000000;">]</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span>, ;<br /> aDBName := <span style="color: #000000;">{</span> hIni<span style="color: #000000;">[</span><span style="color: #ff0000;">"mysql"</span><span style="color: #000000;">]</span><span style="color: #000000;">[</span><span style="color: #ff0000;">"dbname"</span><span style="color: #000000;">]</span>, hIni<span style="color: #000000;">[</span><span style="color: #ff0000;">"mysql2"</span><span style="color: #000000;">]</span><span style="color: #000000;">[</span><span style="color: #ff0000;">"dbname"</span><span style="color: #000000;">]</span> <span style="color: #000000;">}</span>,;<br /> aFlags := <span style="color: #000000;">{</span> val<span style="color: #000000;">(</span>hIni<span style="color: #000000;">[</span><span style="color: #ff0000;">"mysql"</span><span style="color: #000000;">]</span><span style="color: #000000;">[</span><span style="color: #ff0000;">"flags"</span><span style="color: #000000;">]</span><span style="color: #000000;">)</span>, val<span style="color: #000000;">(</span>hIni<span style="color: #000000;">[</span><span style="color: #ff0000;">"mysql2"</span><span style="color: #000000;">]</span><span style="color: #000000;">[</span><span style="color: #ff0000;">"flags"</span><span style="color: #000000;">]</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span><br /> <span style="color: #00C800;">LOCAL</span> oError<br /><br /> <span style="color: #00C800;">TRY</span><br /><br /> CONNECT aServer<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> HOST aHost<span style="color: #000000;">[</span> <span style="color: #000000;">1</span><span style="color: #000000;">]</span> ; <span style="color: #B900B9;">// "AQUI MARCA "SINTAX ERROR AT 'ASERVER' "</span><br /> USER aUser<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> ;<br /> PASSWORD aPassword<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> ;<br /> PORT aPort<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> ;<br /> FLAGS aFlags<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>;<br /> <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"CONNECT1"</span><br /><br /> CONNECT aServer<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span> HOST aHost<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span> ; <span style="color: #B900B9;">// AQUI MARCA "SINTAX ERROR AT 'ASERVER' "</span><br /> USER aUser<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span> ;<br /> PASSWORD aPassword<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span> ;<br /> PORT aPort<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span> ;<br /> FLAGS aFlags<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span>;<br /> <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"CONNECT2"</span><br /><br /> CATCH oError<br /> <span style="color: #00C800;">IF</span> aServer<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> != <span style="color: #00C800;">NIL</span><br /> aServer<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDIF</span><br /> <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">nil</span><br /> END<br /><br /><span style="color: #00C800;">RETURN</span> aServer<br /><br /> </div>[/code:2rvdlxv1]
Sludos Daniel y gracias por tus respuestas
atte Miguel
|
A partir de que version de FW funciona TDolphin?
|
Miguel
estas usando la version del SVN?
el error que marca es porque o falta o esta mal el xcommand en el archivo de cabecera tdolphin.ch
verifica que ese comando exista en el ch que tienes, sino existe es porque estas usando una version muy vieja de dolphin y no has actualizado tu codigo del SVN
|
A partir de que version de FW funciona TDolphin?
|
[code=fw:1zishgcp]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">/*<br /> * $Id: 22-Sep-10 9:27:27 PM tdolphin.ch Z dgarciagil $<br /> */</span><br /> <br /><span style="color: #B900B9;">/*<br /> * TDOLPHIN PROJECT source code:<br /> * Manager MySql server connection<br /> *<br /> * Copyright 2010 Daniel Garcia-Gil<danielgarciagil@gmail.com><br /> * www - <!-- m --><a class="postlink" href="http://tdolphin.blogspot.com/">http://tdolphin.blogspot.com/</a><!-- m --><br /> *<br /> * This program is free software; you can redistribute it and/or modify<br /> * it under the terms of the GNU General Public License as published by<br /> * the Free Software Foundation; either version 2, or (at your option)<br /> * any later version.<br /> *<br /> * This program is distributed in the hope that it will be useful,<br /> * but WITHOUT ANY WARRANTY; without even the implied warranty of<br /> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the<br /> * GNU General Public License for more details.<br /> *<br /> * You should have received a copy of the GNU General Public License<br /> * along with this software. If not, write to<br /> * the Free Software Foundation, Inc., 59 Temple Place, Suite 330,<br /> * Boston, MA 02111-1307 USA (or visit the web site <!-- m --><a class="postlink" href="http://www.gnu.org/">http://www.gnu.org/</a><!-- m -->).<br /> *<br /> * As a special exception, the tdolphin Project gives permission for<br /> * additional uses of the text contained in its release of tdolphin.<br /> *<br /> * The exception is that, if you link the tdolphin libraries with other<br /> * files to produce an executable, this does not by itself cause the<br /> * resulting executable to be covered by the GNU General Public License.<br /> * Your use of that executable is in no way restricted on account of<br /> * linking the tdolphin library code into it.<br /> *<br /> * This exception does not however invalidate any other reasons why<br /> * the executable file might be covered by the GNU General Public License.<br /> *<br /> * This exception applies only to the code released by the tdolphin<br /> * Project under the name tdolphin. If you copy code from other<br /> * tdolphin Project or Free Software Foundation releases into a copy of<br /> * tdolphin, as the General Public License permits, the exception does<br /> * not apply to the code that you add in this way. To avoid misleading<br /> * anyone as to the status of such modified files, you must delete<br /> * this exception notice from them.<br /> *<br /> * If you write modifications of your own for tdolphin, it is your choice<br /> * whether to permit this exception to apply to your modifications.<br /> * If you do not wish that, delete this exception notice.<br /> *<br /> */</span><br /><br /><span style="color: #B900B9;">// MySQL field types</span><br />#ifndef _TDOLPHIN_CH_<br /><span style="color: #00D7D7;">#define</span> _TDOLPHIN_CH_<br /><br /><span style="color: #00D7D7;">#define</span> MYSQL_DECIMAL_TYPE <span style="color: #000000;">0</span><br /><span style="color: #00D7D7;">#define</span> MYSQL_TINY_TYPE <span style="color: #000000;">1</span><br /><span style="color: #00D7D7;">#define</span> MYSQL_SHORT_TYPE <span style="color: #000000;">2</span><br /><span style="color: #00D7D7;">#define</span> MYSQL_LONG_TYPE <span style="color: #000000;">3</span><br /><span style="color: #00D7D7;">#define</span> MYSQL_FLOAT_TYPE <span style="color: #000000;">4</span><br /><span style="color: #00D7D7;">#define</span> MYSQL_DOUBLE_TYPE <span style="color: #000000;">5</span><br /><span style="color: #00D7D7;">#define</span> MYSQL_NULL_TYPE <span style="color: #000000;">6</span><br /><span style="color: #00D7D7;">#define</span> MYSQL_TIMESTAMP_TYPE <span style="color: #000000;">7</span><br /><span style="color: #00D7D7;">#define</span> MYSQL_LONGLONG_TYPE <span style="color: #000000;">8</span><br /><span style="color: #00D7D7;">#define</span> MYSQL_INT24_TYPE <span style="color: #000000;">9</span><br /><span style="color: #00D7D7;">#define</span> MYSQL_DATE_TYPE <span style="color: #000000;">10</span><br /><span style="color: #00D7D7;">#define</span> MYSQL_TIME_TYPE <span style="color: #000000;">11</span><br /><span style="color: #00D7D7;">#define</span> MYSQL_DATETIME_TYPE <span style="color: #000000;">12</span><br /><span style="color: #00D7D7;">#define</span> MYSQL_YEAR_TYPE <span style="color: #000000;">13</span><br /><span style="color: #00D7D7;">#define</span> MYSQL_NEWDATE_TYPE <span style="color: #000000;">14</span><br /><span style="color: #00D7D7;">#define</span> MYSQL_NUMERIC_TYPE <span style="color: #000000;">15</span><br /><span style="color: #00D7D7;">#define</span> MYSQL_ENUMTYPE <span style="color: #000000;">247</span><br /><span style="color: #00D7D7;">#define</span> MYSQL_SET_TYPE <span style="color: #000000;">248</span><br /><span style="color: #00D7D7;">#define</span> MYSQL_TINY_BLOB_TYPE <span style="color: #000000;">249</span><br /><span style="color: #00D7D7;">#define</span> MYSQL_MEDIUM_BLOB_TYPE <span style="color: #000000;">250</span><br /><span style="color: #00D7D7;">#define</span> MYSQL_LONG_BLOB_TYPE <span style="color: #000000;">251</span><br /><span style="color: #00D7D7;">#define</span> MYSQL_BLOB_TYPE <span style="color: #000000;">252</span><br /><span style="color: #00D7D7;">#define</span> MYSQL_VAR_STRING_TYPE <span style="color: #000000;">253</span><br /><span style="color: #00D7D7;">#define</span> MYSQL_STRING_TYPE <span style="color: #000000;">254</span><br /><br />#ifndef MAX_BLOCKSIZE<br /><span style="color: #00D7D7;">#define</span> MAX_BLOCKSIZE <span style="color: #000000;">65535</span><br />#endif<br /><br /><br /><span style="color: #B900B9;">// MySQL field structure </span><br /><span style="color: #00D7D7;">#define</span> MYSQL_FS_NAME <span style="color: #000000;">1</span> <span style="color: #B900B9;">/* Name of column */</span><br /><span style="color: #00D7D7;">#define</span> MYSQL_FS_TABLE <span style="color: #000000;">2</span> <span style="color: #B900B9;">/* Table of column if column was a field */</span><br /><span style="color: #00D7D7;">#define</span> MYSQL_FS_DEF <span style="color: #000000;">3</span> <span style="color: #B900B9;">/* Default value (set by mysql_list_fields) */</span><br /><span style="color: #00D7D7;">#define</span> MYSQL_FS_TYPE <span style="color: #000000;">4</span> <span style="color: #B900B9;">/* Type of field. Se mysql_com.h for types */</span><br /><span style="color: #00D7D7;">#define</span> MYSQL_FS_LENGTH <span style="color: #000000;">5</span> <span style="color: #B900B9;">/* Width of column */</span><br /><span style="color: #00D7D7;">#define</span> MYSQL_FS_MAXLEN <span style="color: #000000;">6</span> <span style="color: #B900B9;">/* Max width of selected set */</span><br /><span style="color: #00D7D7;">#define</span> MYSQL_FS_FLAGS <span style="color: #000000;">7</span> <span style="color: #B900B9;">/* Div flags */</span><br /><span style="color: #00D7D7;">#define</span> MYSQL_FS_DECIMALS <span style="color: #000000;">8</span> <span style="color: #B900B9;">/* Number of decimals in field */</span><br /><span style="color: #00D7D7;">#define</span> MYSQL_FS_CLIP_TYPE <span style="color: #000000;">9</span> <span style="color: #B900B9;">/* Type of field. clipper field type */</span><br /><br /><span style="color: #B900B9;">// MySQL field flags</span><br /><span style="color: #00D7D7;">#define</span> NOT_NULL_FLAG <span style="color: #000000;">1</span> <span style="color: #B900B9;">/* Field can't be NULL */</span><br /><span style="color: #00D7D7;">#define</span> PRI_KEY_FLAG <span style="color: #000000;">2</span> <span style="color: #B900B9;">/* Field is part of a primary key */</span><br /><span style="color: #00D7D7;">#define</span> UNIQUE_KEY_FLAG <span style="color: #000000;">4</span> <span style="color: #B900B9;">/* Field is part of a unique key */</span><br /><span style="color: #00D7D7;">#define</span> MULTIPLE_KEY_FLAG <span style="color: #000000;">8</span> <span style="color: #B900B9;">/* Field is part of a key */</span><br /><span style="color: #00D7D7;">#define</span> BLOB_FLAG <span style="color: #000000;">16</span> <span style="color: #B900B9;">/* Field is a blob */</span><br /><span style="color: #00D7D7;">#define</span> UNSIGNED_FLAG <span style="color: #000000;">32</span> <span style="color: #B900B9;">/* Field is unsigned */</span><br /><span style="color: #00D7D7;">#define</span> ZEROFILL_FLAG <span style="color: #000000;">64</span> <span style="color: #B900B9;">/* Field is zerofill */</span><br /><span style="color: #00D7D7;">#define</span> BINARY_FLAG <span style="color: #000000;">128</span> <span style="color: #B900B9;">/* Field is binary */</span><br /><span style="color: #00D7D7;">#define</span> ENUM_FLAG <span style="color: #000000;">256</span> <span style="color: #B900B9;">/* field is an enum */</span><br /><span style="color: #00D7D7;">#define</span> AUTO_INCREMENT_FLAG <span style="color: #000000;">512</span> <span style="color: #B900B9;">/* field is a autoincrement field */</span><br /><span style="color: #00D7D7;">#define</span> TIMESTAMP_FLAG <span style="color: #000000;">1024</span> <span style="color: #B900B9;">/* Field is a timestamp */</span><br /><span style="color: #00D7D7;">#define</span> PART_KEY_FLAG <span style="color: #000000;">16384</span> <span style="color: #B900B9;">/* Intern; Part of some key */</span><br /><span style="color: #00D7D7;">#define</span> GROUP_FLAG <span style="color: #000000;">32768</span> <span style="color: #B900B9;">/* Intern group field */</span><br /><br /><br /><span style="color: #00D7D7;">#define</span> DBS_NOTNULL <span style="color: #000000;">5</span> <span style="color: #B900B9;">/* True if field has to be NOT NULL */</span><br /><span style="color: #00D7D7;">#define</span> DBS_DEFAULT <span style="color: #000000;">6</span> <span style="color: #B900B9;">/* Field Value by default */</span><br /><br /><br /><span style="color: #B900B9;">//Create index</span><br /><span style="color: #00D7D7;">#define</span> IDX_UNIQUE <span style="color: #000000;">1</span><br /><span style="color: #00D7D7;">#define</span> IDX_FULLTEXT <span style="color: #000000;">2</span><br /><span style="color: #00D7D7;">#define</span> IDX_SPATIAL <span style="color: #000000;">3</span><br /><span style="color: #00D7D7;">#define</span> IDX_PRIMARY <span style="color: #000000;">4</span><br /> <br /><span style="color: #00D7D7;">#define</span> IDX_ASC <span style="color: #000000;">1</span><br /><span style="color: #00D7D7;">#define</span> IDX_DES <span style="color: #000000;">2</span><br /> <br /><span style="color: #00D7D7;">#define</span> IDX_BTREE <span style="color: #000000;">1</span><br /><span style="color: #00D7D7;">#define</span> IDX_HASH <span style="color: #000000;">2</span><br /><span style="color: #00D7D7;">#define</span> IDX_RTREE <span style="color: #000000;">3</span><br /><br /><span style="color: #B900B9;">// </span><br /><span style="color: #00D7D7;">#define</span> IS_PRIMARY_KEY<span style="color: #000000;">(</span> uValue <span style="color: #000000;">)</span> MyAND<span style="color: #000000;">(</span> uValue, PRI_KEY_FLAG <span style="color: #000000;">)</span> == PRI_KEY_FLAG <br /><span style="color: #00D7D7;">#define</span> IS_MULTIPLE_KEY<span style="color: #000000;">(</span> uValue <span style="color: #000000;">)</span> MyAND<span style="color: #000000;">(</span> uValue, MULTIPLE_KEY_FLAG <span style="color: #000000;">)</span> == MULTIPLE_KEY_FLAG<br /><span style="color: #00D7D7;">#define</span> IS_AUTO_INCREMENT<span style="color: #000000;">(</span> uValue <span style="color: #000000;">)</span> MyAND<span style="color: #000000;">(</span> uValue, AUTO_INCREMENT_FLAG <span style="color: #000000;">)</span> == AUTO_INCREMENT_FLAG<br /><span style="color: #00D7D7;">#define</span> IS_NOT_NULL<span style="color: #000000;">(</span> uValue <span style="color: #000000;">)</span> MyAND<span style="color: #000000;">(</span> uValue, NOT_NULL_FLAG <span style="color: #000000;">)</span> == NOT_NULL_FLAG<br /><br /><span style="color: #B900B9;">// SET NEW FILTER</span><br /><span style="color: #00D7D7;">#define</span> SET_WHERE <span style="color: #000000;">1</span><br /><span style="color: #00D7D7;">#define</span> SET_GROUP <span style="color: #000000;">2</span><br /><span style="color: #00D7D7;">#define</span> SET_HAVING <span style="color: #000000;">3</span><br /><span style="color: #00D7D7;">#define</span> SET_ORDER <span style="color: #000000;">4</span><br /><span style="color: #00D7D7;">#define</span> SET_LIMIT <span style="color: #000000;">5</span><br /><br /><span style="color: #B900B9;">//Privileges type</span><br /><span style="color: #00D7D7;">#define</span> PRIV_ADMIN <span style="color: #000000;">1</span><br /><span style="color: #00D7D7;">#define</span> PRIV_DATA <span style="color: #000000;">2</span><br /><span style="color: #00D7D7;">#define</span> PRIV_TABLE <span style="color: #000000;">3</span><br /><span style="color: #00D7D7;">#define</span> PRIV_ALL <span style="color: #000000;">4</span><br /><br /><span style="color: #B900B9;">//Backup Status process</span><br /><span style="color: #00D7D7;">#define</span> ST_STARTBACKUP <span style="color: #000000;">1</span><br /><span style="color: #00D7D7;">#define</span> ST_LOADINGTABLE <span style="color: #000000;">2</span><br /><span style="color: #00D7D7;">#define</span> ST_ENDBACKUP <span style="color: #000000;">3</span><br /><span style="color: #00D7D7;">#define</span> ST_BACKUPCANCEL <span style="color: #000000;">0</span><br /><span style="color: #00D7D7;">#define</span> ST_FILLBACKUP <span style="color: #000000;">4</span><br /><br /><span style="color: #B900B9;">//Restore Process </span><br /><span style="color: #00D7D7;">#define</span> ST_STARTRESTORE <span style="color: #000000;">1</span><br /><span style="color: #00D7D7;">#define</span> ST_LOADING <span style="color: #000000;">2</span><br /><span style="color: #00D7D7;">#define</span> ST_RESTORING <span style="color: #000000;">3</span><br /><span style="color: #00D7D7;">#define</span> ST_ENDRESTORE <span style="color: #000000;">4</span><br /><span style="color: #00D7D7;">#define</span> ST_RSTCANCEL <span style="color: #000000;">0</span><br /><br /><span style="color: #B900B9;">//export</span><br /><span style="color: #00D7D7;">#define</span> EXP_TEXT <span style="color: #000000;">1</span> <br /><span style="color: #00D7D7;">#define</span> EXP_EXCEL <span style="color: #000000;">2</span><br /><span style="color: #00D7D7;">#define</span> EXP_DBF <span style="color: #000000;">3</span><br /><span style="color: #00D7D7;">#define</span> EXP_HTML <span style="color: #000000;">4</span><br /><span style="color: #00D7D7;">#define</span> EXP_WORD <span style="color: #000000;">5</span><br /><span style="color: #00D7D7;">#define</span> EXP_SQL <span style="color: #000000;">6</span><br /><br /><br /><br />#ifndef __XHARBOUR__<br />#xcommand <span style="color: #00C800;">TRY</span> => BEGIN SEQUENCE WITH <span style="color: #000000;">{</span>|oErr| <span style="color: #00C800;">Break</span><span style="color: #000000;">(</span> oErr <span style="color: #000000;">)</span><span style="color: #000000;">}</span><br />#xcommand CATCH <span style="color: #000000;">[</span><!oErr!><span style="color: #000000;">]</span> => RECOVER <span style="color: #000000;">[</span>USING <oErr><span style="color: #000000;">]</span> <-oErr-><br />#xcommand FINALLY => ALWAYS <br /><br />#xtranslate hb_ReadIni<span style="color: #000000;">(</span><span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span><span style="color: #000000;">)</span> => hb_IniRead<span style="color: #000000;">(</span><x><span style="color: #000000;">)</span><br />#xtranslate HASH<span style="color: #000000;">(</span><span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span><span style="color: #000000;">)</span> => hb_HASH<span style="color: #000000;">(</span><x><span style="color: #000000;">)</span><br />#xtranslate HGETPOS<span style="color: #000000;">(</span><span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span><span style="color: #000000;">)</span> => hb_HPOS<span style="color: #000000;">(</span><x><span style="color: #000000;">)</span><br />#xtranslate HSET<span style="color: #000000;">(</span><span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span><span style="color: #000000;">)</span> => hb_HSET<span style="color: #000000;">(</span><x><span style="color: #000000;">)</span><br />#xtranslate HSETCASEMATCH<span style="color: #000000;">(</span><span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span><span style="color: #000000;">)</span> => hb_HSETCASEMATCH<span style="color: #000000;">(</span><x><span style="color: #000000;">)</span><br />#xtranslate HCLONE<span style="color: #000000;">(</span><span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span><span style="color: #000000;">)</span> => hb_HCLONE<span style="color: #000000;">(</span><x><span style="color: #000000;">)</span><br />#xtranslate HGETKEYS<span style="color: #000000;">(</span><span style="color: #000000;">[</span><x,...><span style="color: #000000;">]</span><span style="color: #000000;">)</span> => hb_HKEYS<span style="color: #000000;">(</span><x><span style="color: #000000;">)</span> <br /><br /><br /><span style="color: #B900B9;">//#include "hbcompat.ch"</span><br />#ifndef RGB<br /><span style="color: #00D7D7;">#define</span> RGB<span style="color: #000000;">(</span> nR,nG,nB <span style="color: #000000;">)</span> <span style="color: #000000;">(</span> nR + <span style="color: #000000;">(</span> nG * <span style="color: #000000;">256</span> <span style="color: #000000;">)</span> + <span style="color: #000000;">(</span> nB * <span style="color: #000000;">256</span> * <span style="color: #000000;">256</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br />#endif <span style="color: #B900B9;">/*RGB*/</span><br />#endif<span style="color: #B900B9;">/*__HARBOUR__*/</span><br /><br /><span style="color: #B900B9;">//-------------------</span><br /><br />#xcommand SET CASESENSITIVE <on:<span style="color: #0000ff;">ON</span>,OFF> => D_SetCaseSensitive<span style="color: #000000;">(</span> Upper<span style="color: #000000;">(</span><<span style="color: #000000;">(</span><span style="color: #0000ff;">on</span><span style="color: #000000;">)</span>><span style="color: #000000;">)</span> == <span style="color: #ff0000;">"ON"</span> <span style="color: #000000;">)</span><br />#xcommand SET PADRIGHT <on:<span style="color: #0000ff;">ON</span>,OFF> => D_SetPadRight<span style="color: #000000;">(</span> Upper<span style="color: #000000;">(</span><<span style="color: #000000;">(</span><span style="color: #0000ff;">on</span><span style="color: #000000;">)</span>><span style="color: #000000;">)</span> == <span style="color: #ff0000;">"ON"</span> <span style="color: #000000;">)</span><br />#xcommand SET LOGICALVALUE <on:<span style="color: #0000ff;">ON</span>,OFF> => D_LogicalValue<span style="color: #000000;">(</span> Upper<span style="color: #000000;">(</span><<span style="color: #000000;">(</span><span style="color: #0000ff;">on</span><span style="color: #000000;">)</span>><span style="color: #000000;">)</span> == <span style="color: #ff0000;">"ON"</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #B900B9;">//-------------------</span><br /><br />#xcommand CLOSEMYSQL ALL => _CloseHosts<span style="color: #000000;">(</span> <span style="color: #ff0000;">"ALL"</span> <span style="color: #000000;">)</span><br />#xcommand CLOSEMYSQL <span style="color: #00C800;">SERVER</span> <on> => _CloseHosts<span style="color: #000000;">(</span> <on> <span style="color: #000000;">)</span><br />#xcommand SELECTSERVER <uParam> => _SelectHost<span style="color: #000000;">(</span> <uParam> <span style="color: #000000;">)</span><br />#xcommand BEGINMYSQL <span style="color: #000000;">[</span> TRANSACTION <span style="color: #000000;">]</span> <span style="color: #000000;">[</span><oServer><span style="color: #000000;">]</span> => _BeginTransaction<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><oServer><span style="color: #000000;">]</span> <span style="color: #000000;">)</span><br />#xcommand COMMITMYSQL <span style="color: #000000;">[</span><oServer><span style="color: #000000;">]</span> => _CommitTransaction<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><oServer><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> <br />#xcommand ROLLBACKMYSQL <span style="color: #000000;">[</span><oServer><span style="color: #000000;">]</span> => _RollBack<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><oServer><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> <br /><br /><span style="color: #B900B9;">//-------------------</span><br />#xcommand CONNECT <span style="color: #000000;">[</span> <srv: <span style="color: #00C800;">SERVER</span>, MYSQL, OF> <span style="color: #000000;">]</span> <oServer> ;<br /> HOST <cHost> ;<br /> USER <cUser> ;<br /> PASSWORD <cPassword>;<br /> <span style="color: #000000;">[</span> PORT <nPort> <span style="color: #000000;">]</span>;<br /> <span style="color: #000000;">[</span> FLAGS <nFlags> <span style="color: #000000;">]</span>;<br /> <span style="color: #000000;">[</span> DATABASE <cDBName> <span style="color: #000000;">]</span>;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">ON</span> ERROR <uOnError> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">NAME</span> <cName> <span style="color: #000000;">]</span>;<br /> => ;<br /> <oServer> := TDolphinSrv<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> <cHost>, <cUser>, <cPassword>, <nPort>, ;<br /> <nFlags>, <cDBName>, <span style="color: #000000;">[</span><span style="color: #000000;">{</span>| <span style="color: #00C800;">Self</span>, nError, lInternal, cExtra | <uOnError> <span style="color: #000000;">}</span><span style="color: #000000;">]</span>, <span style="color: #000000;">[</span> <cName> <span style="color: #000000;">]</span> <span style="color: #000000;">)</span><br /><br /><br /><span style="color: #B900B9;">//-------------------</span><br /><br />#xcommand CONNECT EMBEDDED <span style="color: #000000;">[</span> <srv: <span style="color: #00C800;">SERVER</span>, MYSQL, OF> <span style="color: #000000;">]</span> <oServer> ;<br /> <span style="color: #000000;">[</span> DATABASE <cDBName> <span style="color: #000000;">]</span>;<br /> <span style="color: #000000;">[</span> OPTIONS <options,...> <span style="color: #000000;">]</span>;<br /> <span style="color: #000000;">[</span> GROUPS <groups,...> <span style="color: #000000;">]</span>;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">ON</span> ERROR <uOnError> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">NAME</span> <cName> <span style="color: #000000;">]</span>;<br /> => ;<br /> <oServer> := TDolphinSrv<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #000000;">Embedded</span><span style="color: #000000;">(</span> <cDBName>, \<span style="color: #000000;">{</span><options>\<span style="color: #000000;">}</span>, \<span style="color: #000000;">{</span><groups>\<span style="color: #000000;">}</span>,;<br /> <span style="color: #000000;">[</span><span style="color: #000000;">{</span>| <span style="color: #00C800;">Self</span>, nError, lInternal, cExtra | <uOnError> <span style="color: #000000;">}</span><span style="color: #000000;">]</span>, <span style="color: #000000;">[</span> <cName> <span style="color: #000000;">]</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #B900B9;">//-------------------</span><br /><br />#xcommand <span style="color: #0000ff;">DEFINE</span> QUERY <oQuery> <span style="color: #000000;">[</span> <cQuery> <span style="color: #000000;">]</span> <span style="color: #000000;">[</span> <srv: <span style="color: #0000ff;">OF</span>, <span style="color: #00C800;">SERVER</span>, HOST> <uServer> <span style="color: #000000;">]</span>;<br /> => ;<br /> <oQuery> := TDolphinQry<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> <span style="color: #000000;">[</span> <cQuery> <span style="color: #000000;">]</span>,<span style="color: #000000;">[</span> <uServer> <span style="color: #000000;">]</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #B900B9;">//-------------------</span><br /><br />#xcommand SELECTDB <cdb> <srv: <span style="color: #00C800;">SERVER</span>, MYSQL, OF> <oServer>;<br /> => ;<br /> <oServer>:<span style="color: #000000;">SelectDB</span><span style="color: #000000;">(</span> <cdb> <span style="color: #000000;">)</span><br /><br />#xcommand SELECTDB <cdb>;<br /> => ;<br /> GetServerDefault<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #000000;">SelectDB</span><span style="color: #000000;">(</span> <cdb> <span style="color: #000000;">)</span><br /> <br /><span style="color: #B900B9;">//-------------------</span><br /> <br />#xcommand INSERTMYSQL <span style="color: #0000ff;">TO</span> <ctable> ;<br /> COLUMNS <acolumns,...> ;<br /> VALUES <avalues,...>;<br /> <span style="color: #000000;">[</span> <srv: <span style="color: #0000ff;">OF</span>, <span style="color: #00C800;">SERVER</span>, HOST><oServer> <span style="color: #000000;">]</span>;<br /> => ;<br /> _InsertMySql<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><oServer><span style="color: #000000;">]</span>, <ctable>, <span style="color: #000000;">{</span><acolumns><span style="color: #000000;">}</span>, <span style="color: #000000;">{</span><avalues><span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #B900B9;">//------------------- </span><br /> <br />#xcommand UPDATEMYSQL <span style="color: #0000ff;">TO</span> <ctable> ;<br /> COLUMNS <acolumns,...> ;<br /> VALUES <avalues,...>;<br /> <span style="color: #000000;">[</span> <srv: <span style="color: #0000ff;">OF</span>, <span style="color: #00C800;">SERVER</span>, HOST><oServer> <span style="color: #000000;">]</span>;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">WHERE</span> <cWhere> <span style="color: #000000;">]</span>;<br /> => ;<br /> _UpdateMysql<span style="color: #000000;">(</span> <span style="color: #000000;">[</span> <oServer> <span style="color: #000000;">]</span>, <ctable>, <span style="color: #000000;">{</span><acolumns><span style="color: #000000;">}</span>, <span style="color: #000000;">{</span><avalues><span style="color: #000000;">}</span>, <cWhere> <span style="color: #000000;">)</span><br /><br /><span style="color: #B900B9;">//------------------- </span><br /><br />#xcommand BACKUPMYSQL TABLES <aTables,...>;<br /> FILE <cFile>;<br /> <span style="color: #000000;">[</span> <srv: <span style="color: #0000ff;">OF</span>, <span style="color: #00C800;">SERVER</span>, HOST><oServer> <span style="color: #000000;">]</span>;<br /> <span style="color: #000000;">[</span> < lDrop: <span style="color: #000000;">DROP</span> > <span style="color: #000000;">]</span>;<br /> <span style="color: #000000;">[</span> < lOverwrite: <span style="color: #000000;">OVERWRITE</span> > <span style="color: #000000;">]</span>;<br /> <span style="color: #000000;">[</span> STEP <nStep> <span style="color: #000000;">]</span>;<br /> <span style="color: #000000;">[</span> HEADER <cHeader> <span style="color: #000000;">]</span>;<br /> <span style="color: #000000;">[</span> FOOTER <cFooter> <span style="color: #000000;">]</span>;<br /> <span style="color: #000000;">[</span> <lCan: <span style="color: #000000;">CANCEL</span>> <lCancel> <span style="color: #000000;">]</span>;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">ON</span> BACKUP <uOnBackup> <span style="color: #000000;">]</span>;<br /> =>;<br /> _BackUpMysql<span style="color: #000000;">(</span> <span style="color: #000000;">[</span> <oServer> <span style="color: #000000;">]</span>, <span style="color: #000000;">{</span><aTables><span style="color: #000000;">}</span>, <cFile>, <span style="color: #000000;">[</span><.lDrop.><span style="color: #000000;">]</span>, <span style="color: #000000;">[</span><.lOverwrite.><span style="color: #000000;">]</span>, ;<br /> <span style="color: #000000;">[</span><nStep><span style="color: #000000;">]</span>, <span style="color: #000000;">[</span><cHeader><span style="color: #000000;">]</span>, <span style="color: #000000;">[</span><cFooter><span style="color: #000000;">]</span>, <span style="color: #000000;">[</span><span style="color: #00C800;">if</span><span style="color: #000000;">(</span> <.lCan.>, @<lCancel>,<span style="color: #000000;">)</span><span style="color: #000000;">]</span>,;<br /> <span style="color: #000000;">[</span><span style="color: #000000;">{</span>| nStatus, cTabFile, nTotTable, nCurrTable, nRecNo | <uOnBackup> <span style="color: #000000;">}</span><span style="color: #000000;">]</span> <span style="color: #000000;">)</span><br /> <br /><span style="color: #B900B9;">//------------------- </span><br /><br />#xcommand RESTOREMYSQL FILE <cFile>;<br /> <span style="color: #000000;">[</span> <srv: <span style="color: #0000ff;">OF</span>, <span style="color: #00C800;">SERVER</span>, HOST><oServer> <span style="color: #000000;">]</span>;<br /> <span style="color: #000000;">[</span> <lCan: <span style="color: #000000;">CANCEL</span>> <lCancel> <span style="color: #000000;">]</span>;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">ON</span> RESTORE <uOnRestore> <span style="color: #000000;">]</span>;<br /> =>;<br /> _RestoreMysql<span style="color: #000000;">(</span> <span style="color: #000000;">[</span> <oServer> <span style="color: #000000;">]</span>, ;<br /> <cFile>,;<br /> <span style="color: #000000;">[</span><span style="color: #00C800;">if</span><span style="color: #000000;">(</span> <.lCan.>, @<lCancel>,<span style="color: #000000;">)</span><span style="color: #000000;">]</span>,;<br /> <span style="color: #000000;">[</span><span style="color: #000000;">{</span>| nStatus, cTable, nTotLine, nIdx | <uOnRestore> <span style="color: #000000;">}</span><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> <br /> <br /><span style="color: #B900B9;">//------------------- </span><br /><br />#xcommand EXECUTEESCRIPT FILE <cFile>;<br /> <span style="color: #000000;">[</span> <srv: <span style="color: #0000ff;">OF</span>, <span style="color: #00C800;">SERVER</span>, HOST><oServer> <span style="color: #000000;">]</span>;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">ON</span> SCRIPT <uOnScript> <span style="color: #000000;">]</span>; <br /> =>;<br /> _ExecuteScript<span style="color: #000000;">(</span> <span style="color: #000000;">[</span> <oServer> <span style="color: #000000;">]</span>, ;<br /> <cFile>, <span style="color: #000000;">[</span><span style="color: #000000;">{</span>| nID, nTotal | <uOnScript> <span style="color: #000000;">}</span><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> <br /> <br />#xcommand SELECTTABLES <span style="color: #0000ff;">TO</span> <oQuery>;<br /> TABLES <cTable,...>;<br /> <span style="color: #000000;">[</span> COLUMNS <cColumns,...> <span style="color: #000000;">]</span>;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">WHERE</span> <cWhere> <span style="color: #000000;">]</span>;<br /> <span style="color: #000000;">[</span> GROUP <cGroup> <span style="color: #000000;">]</span>;<br /> <span style="color: #000000;">[</span> HAVING <cHaving> <span style="color: #000000;">]</span>;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">ORDER BY</span> <cOrder> <span style="color: #000000;">]</span>;<br /> <span style="color: #000000;">[</span> LIMIT <cLimit> <span style="color: #000000;">]</span>;<br /> <span style="color: #000000;">[</span> <lWithRoll: <span style="color: #000000;">WITROLL</span>> <span style="color: #000000;">]</span>;<br /> <span style="color: #000000;">[</span> <srv: <span style="color: #0000ff;">OF</span>, <span style="color: #00C800;">SERVER</span>, HOST><oServer> <span style="color: #000000;">]</span>;<br /> =>;<br /> <oQuery> := _SelectTable<span style="color: #000000;">(</span> <span style="color: #000000;">[</span><oServer><span style="color: #000000;">]</span>, <span style="color: #000000;">[</span><span style="color: #000000;">{</span><cColumns><span style="color: #000000;">}</span><span style="color: #000000;">]</span>, <span style="color: #000000;">{</span><cTable><span style="color: #000000;">}</span>, <span style="color: #000000;">[</span><cWhere><span style="color: #000000;">]</span>,;<br /> <span style="color: #000000;">[</span><cGroup><span style="color: #000000;">]</span>, <span style="color: #000000;">[</span><cOrder><span style="color: #000000;">]</span>, <span style="color: #000000;">[</span><cLimit><span style="color: #000000;">]</span>, <span style="color: #000000;">[</span><.lWithRoll.><span style="color: #000000;">]</span> <span style="color: #000000;">)</span><br />#endif <span style="color: #B900B9;">//_TDOLPHIN_CH_ </span></div>[/code:1zishgcp]
Si lo trae mas no se si este incoorrecto... te dejo el codigo
|
A partir de que version de FW funciona TDolphin?
|
Miguel
el ejemplo funciona perfectamente... seguro tienes mal rutado el .CH apuntando hacia otro CH mas viejo, verifica pq el error no esta en el ejemplo ni en dolphin
si quieres puedo ayudarte por teamviewer, te envie una invitacion para hablar por el chat de gmail
|
A partir de que version de FW funciona TDolphin?
|
Mi sincero agradecimiento a Daniel por su valioso apoyo.
He empezado a moverme en estos mares.
Saludos..
Attte Miguel Salas
|
A possible MULTIBROWSE of one DBF ? ( test incl. )
|
Hello,
it seems there is no working solution. <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
I think it is a nice solution to create multilanguage tools.
This is a part of the desktop-alarm tool I created.
Once again in short the final solution I need :
[color=#0000FF:1hk00ekw]4 browser using one DBF[/color:1hk00ekw]
The first browser is showíng only the top record ( english ) as a refrence with header.
The second browser is used for the language selection ( could be used for translation as well )
-- browser 1 should be synchronously to browser 2 ( header-display )
-- it means moving cells and header in browser 1 related to browser 2 movements
The third browser shows the structure and only the fields of record 1 ( english )
The fourth browser is needed for translation with a skipping-option
The fields of browser 3 and 4 should work synchronously
Possible to change the fieldsize if the field is to short
DOWNLOAD ( full test )
<!-- m --><a class="postlink" href="http://www.pflegeplus.com/FWH_Downloads/Translate.zip">http://www.pflegeplus.com/FWH_Downloads/Translate.zip</a><!-- m -->
testing translations
[img:1hk00ekw]http://www.pflegeplus.com/IMAGES/Translate1.jpg[/img:1hk00ekw]
[color=#0000FF:1hk00ekw][b:1hk00ekw]First tests :[/b:1hk00ekw][/color:1hk00ekw]
maybe possible to complete the exsample with the defined logic
regards Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
|
A possible MULTIBROWSE of one DBF ? ( test incl. )
|
Uwe,
Just open four copies of a database object that uses the DBF you wish. Each copy is independent of the others. This works just like it would on a LAN with multiple users.
oDBF1 := TDatabase():New(,"cFilename")
oDBF1:use()
oDBF2 := TDatabase():New(,"cFilename")
oDBF2:use()
...
Then use oDBF1:bSkip:= {...} to coordinate movements between two browses.
James
|
A possible MULTIBROWSE of one DBF ? ( test incl. )
|
James thank You
now it works in all directions
Just one little problem :
the rows of browser 2 and 3 are drifting apart after a new field selection ( picture 1).
Could it be possible to force them to show the result with the same row-position ( picture 2 ) ?
Still a focus-adjustment is needed in browser 1 ( 3. column = focus on selected field )
[img:16w31i17]http://www.pflegeplus.com/IMAGES/Translate6.jpg[/img:16w31i17]
regards
Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
|
A possible adjustment of a GET-action bmp ?
|
Hello,
is it possible to make a little hight-adjustment of the imagesize
close to the top using a GET with action ?
With a background-color it doesn't look very nice.
I'm using it for a color-selection.
in METHOD CreateButton() CLASS TGet
I noticed everywhere < ::nHeight - 4 >
[img:2hti5rhq]http://www.pflegeplus.com/IMAGES/Getact1.jpg[/img:2hti5rhq]
I tested
[color=#0000FF:2hti5rhq]oCGet[2]:lAdjustBtn := .T.[/color:2hti5rhq]
but no difference
@ 35, 50 GET oCGet[2] VAR cGet[2] SIZE 80, 18 OF oDlg2 COLOR 0, nBColorB UPDATE ;
BITMAP c_Path1 + "Help.bmp" PIXEL ;
ACTION ( nBColorB := ChooseColor( nBColorB ), oCGet[2]:SetColor( , nBColorB ), ;
oWnd:Refresh(), oDlg2:Refresh() )
best gegards
Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
|
A possible adjustment of a GET-action bmp ?
|
I have asked this topic many times, but if a topic interests no one you will not have an answer.
Then in a few months or a few years when someone is interested you will have the answer !!
|
A possible adjustment of a GET-action bmp ?
|
Silvio,
in class tGet line 963
I moved the bmp 2 pixel to the top and adjusted the height
that seems to work
if ! IsAppThemed()
::oBtn:SetPos( [color=#0000FF:rp7cpcaz]-2[/color:rp7cpcaz], ::oBtn:nLeft + 2 )
[color=#0000FF:rp7cpcaz]::oBtn:nHeight = ::nHeight + 2[/color:rp7cpcaz] // otherwise You get space at the bottom
endif[/color]
[img:rp7cpcaz]http://www.pflegeplus.com/IMAGES/Testget2.jpg[/img:rp7cpcaz]
transparent-test
[img:rp7cpcaz]http://www.pflegeplus.com/IMAGES/Testget3.jpg[/img:rp7cpcaz]
regards
Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
|
A possible adjustment of a GET-action bmp ?
|
Uwe
I round the soluzione on last Summer but when you use resources not run
It 's good if It Is changed from linares
|
A possible adjustment of a GET-action bmp ?
|
Uwe
I round the soluzione on last Summer but when you use resources not run
It 's good if It Is changed from linares
|
A possible adjustment of a GET-action bmp ?
|
Silvio,
[quote:3hl53cu4]I round the soluzione on last Summer but when you use resources not run[/quote:3hl53cu4]
a RESOURCE-test color and transparent
my solution works as well it looks perfect now
[quote:3hl53cu4]It 's good if It Is changed from linares[/quote:3hl53cu4]
maybe Antonio can check it
it is just a little change
[img:3hl53cu4]http://www.pflegeplus.com/IMAGES/Testget4.jpg[/img:3hl53cu4]
DEFINE DIALOG oDlg2 RESOURCE "Test" PIXEL ;
STYLE WS_POPUP
REDEFINE GET oCGet[1] VAR cGet[1] ID 110 BITMAP c_Path1 + "Help.bmp" ;
ACTION ( nBColorB := ChooseColor( nBColorB ), oCGet[1]:SetColor( , nBColorB ) ) ;
COLOR CLR_BLACK, nBColorB of oDlg2
REDEFINE GET oCGet[2] VAR cGet[2] ID 120 BITMAP c_Path1 + "Help.bmp" ;
ACTION ( nBColorF := ChooseColor( nBColorF ), oCGet[2]:SetColor( , nBColorF ) ) ;
COLOR CLR_BLACK, nBColorF of oDlg2
oCGet[2]:lBtnTransparent := .T.
regards
Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
|
A possible adjustment of a GET-action bmp ?
|
Uwe,
my arms have fallen out because often old errors come out that should have already been corrected in old versions of fivewin and every time we start again
I'm sorry Uwe but lately there are too many classes that don't work as they should: rpreview, btnbmp, get btn, .....
Often I have to recompile old applications if I make a small change and always find problems.
[b:2xptvazp]Tget[/b:2xptvazp]
I have already asked the forum about the problem of tget and button since last year and no one has solved it, of course I could change the source but then I should change it for another program and at the new version of fwh I have to return again because often on the forum someone finds the solutions but then whoever recompiles the libraries doesn't make the changes made.
[b:2xptvazp]BTnbmp[/b:2xptvazp]
this summer I raised the problem of the btnbmp class, when it is pressed many times as if you were playing "super Invader" and you have to shoot continuously, an error ":: end ()" comes out blocking the application.
[b:2xptvazp]Rpreview[/b:2xptvazp]
For the latest changes I do not know from whom rpreview does not work as it should (style 2007 in windows 10 etc.) and every time I have to recompile one of my sources to override the class.
I have only mentioned a few problems that I have recently encountered but there are so many that at this moment I don't remember well
|
A possible change in Class BtnBmp ?
|
Hello,
Testing the Class BtnBmp, The Bar-display on [color=#FF0000:2kobi24g]RIGHT[/color:2kobi24g] and [color=#FF0000:2kobi24g]LEFT[/color:2kobi24g] Position doesn't look very nice.
In Class BtnBmp there is a line :
GradientFill( ::hDC, nAdjustBorder,nAdjustBorder, ::nHeight-nAdjustBorder, ::nWidth-nAdjustBorder, ::aGrad )
It shows a Bar like :
[img:2kobi24g]http://www.pflegeplus.com/pictures/Rightb1.jpg[/img:2kobi24g]
Changed to :
GradientFill( ::hDC, nAdjustBorder,nAdjustBorder, ::nHeight-nAdjustBorder, ::nWidth-nAdjustBorder, ::aGrad, [color=#FF0000:2kobi24g].F.[/color:2kobi24g] )
It shows a Bar like :
[img:2kobi24g]http://www.pflegeplus.com/pictures/Rightb2.jpg[/img:2kobi24g]
There seems to be still another Gradient at the Bottom to be adjusted.
It comes much closer to a defined Position [color=#FF0000:2kobi24g]TOP[/color:2kobi24g]
[img:2kobi24g]http://www.pflegeplus.com/pictures/Rightb3.jpg[/img:2kobi24g]
Maybe it is possible to define a different GradientFill for Position [color=#FF0000:2kobi24g]RIGHT[/color:2kobi24g] and[color=#BF0000:2kobi24g] LEFT [/color:2kobi24g]?
Best Regards
Uwe <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: -->
|
A possible complete RESET of a TTITLE at runtime ?
|
Hello,
I have some small problems, to change TTitle-settings / options
at RUNTIME within my TTITLE-painter-section ( some more selections will be added ).
Is it possible to do a complete RESET of all settings before
painting new selections ?
As well I noticed : a BRUSH without SHADOW is not painted.
I still need to detect TTitle-width and height from RESOURCE to
do the calculations for text- and Image-adjustments.
[color=#0000FF:3hbanklg][b:3hbanklg]aRect := GETCLIENTRECT( oTitle:hWnd )[/b:3hbanklg][/color:3hbanklg] returns [color=#FF0000:3hbanklg][b:3hbanklg]0[/b:3hbanklg][/color:3hbanklg] at startup
I used ( before showing a new selection ) :
[color=#0000FF:3hbanklg]oTitle:lBase := .F.
oTitle:aGrdBack := {}
oTitle:aGrdBase := {}
oTitle:lBorder := .F.
oTitle:nShadow := 0
// NO_SHADOW 0x00
// UP_LEFT_SHADOW 0x01
// UP_RIGHT_SHADOW 0x02
// DOWN_LEFT_SHADOW 0x03
// DOWN_RIGHT_SHADOW 0x04
oTitle:lTransparent := .F.
oTitle:lRound := .F.
oTitle:lVertical := .T.
oTitle:nClrLine1 := RGB( 141, 178, 227 )
oTitle:nClrLine2 := RGB( 237, 242, 248 )[/color:3hbanklg]
[color=#FF0000:3hbanklg]oTitle:Refresh()[/color:3hbanklg]
[color=#008040:3hbanklg]// some NEW SELECTIONS :
IF nTShadow > 0 // from selection !!!
oTitle:nShadow := nTShadow
oTitle:nXOffSetShadow := 20
oTitle:nYOffSetShadow := 20
ENDIF
IF lTBorder = .T. // from selection !!!
oTitle:lBorder := .T.
oTitle:nClrLine1 := 8388608
ENDIF
IF lTDirect = .F.
oTitle:lVertical := .F.
ENDIF
...
...
...[/color:3hbanklg]
[color=#FF0000:3hbanklg]oTitle:Refresh()[/color:3hbanklg]
Saving new selections and reopen the Dialog it works, but I don*t want closing the dialog :
[img:3hbanklg]http://www.pflegeplus.com/pictures/T_Title1.jpg[/img:3hbanklg]
Wrong results, after runtime-changes :
oTitle:nShadow := 1 ) shows a part of TOP / RIGHT
[img:3hbanklg]http://www.pflegeplus.com/pictures/T_Title2.jpg[/img:3hbanklg]
oTitle:nShadow := 2 ) OK
[img:3hbanklg]http://www.pflegeplus.com/pictures/T_Title3.jpg[/img:3hbanklg]
oTitle:nShadow := 3 ) shows NOTHING
[img:3hbanklg]http://www.pflegeplus.com/pictures/T_Title4.jpg[/img:3hbanklg]
oTitle:nShadow := 4 ) shows a part of UP / RIGHT
[img:3hbanklg]http://www.pflegeplus.com/pictures/T_Title5.jpg[/img:3hbanklg]
Brush WITH shadow oTitle:nShadow := ( from 1 to 4 )
[img:3hbanklg]http://www.pflegeplus.com/pictures/T_Title6.jpg[/img:3hbanklg]
The same Brush WITHOUT defined shadow ( oTitle:nShadow := 0 )
[img:3hbanklg]http://www.pflegeplus.com/pictures/T_Title7.jpg[/img:3hbanklg]
The BASE-test works, changing from TRANSPARENT to COLOR
[img:3hbanklg]http://www.pflegeplus.com/pictures/T_Title8.jpg[/img:3hbanklg]
Best Regards
Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
|
A preview on the BAR-Tools Version 3b ( + download )
|
Hello,Many functions added to the Bar-toolsThanks to < nageswaragunupudi >for his help on bar-gradient-color-change at runtime.The 3. gradient-color is full supported.( A extra slider and the 3. color for the mouse added )Now it is possible, to create very nice looking bar-gradients.[img:8s4qes05]http://www.pflegeplus.com/pictures/gradient57.jpg[/img:8s4qes05]Maybe it is possible to do a color-change just for the selected button ?[img:8s4qes05]http://www.pflegeplus.com/pictures/gradient55.jpg[/img:8s4qes05]It is possible to define a TOP and RIGHT-buttonbar together.When you like to do this, you have to define a "BLIND" - button( like shown in the picture ) for the top / right-position, otherwise the 1. button on the righthand side is not activated.[img:8s4qes05]http://www.pflegeplus.com/pictures/gradient58.jpg[/img:8s4qes05]RegardsUwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
A preview on the BAR-Tools Version 3b ( + download )
|
Hello,Here is the download with all new functionsFor help, just click on the title-buttons. The project-handling and font-usingwill come with the final release ( after FWH 8.08 ).Color-changing at runtime for the buttons works fine now,but i have still to look at the font-color.What is new :Sliders for Color-move and Button-zize added.3. Color for rollover added.Titels changed in buttons ( used as Info / help )Color-adjust of the button-bar in the main-dialog,after closing the test-dialog.Font-selection added.[img:3r8pwvf2]http://www.pflegeplus.com/pictures/Newbar2.jpg[/img:3r8pwvf2]Download :<!-- m --><a class="postlink" href="http://www.pflegeplus.com/fw_downloads/Bargradient3.zip">http://www.pflegeplus.com/fw_downloads/Bargradient3.zip</a><!-- m -->Best RegardsUwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
A preview on the BAR-Tools Version 3b ( + download )
|
Nice work Uwe! <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) -->Patrick
|
A preview on the BAR-Tools Version 3b ( + download )
|
Hello,if somebody noticed the missing help for the color-sliders.It is added.Best regardsuwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
A preview on the BAR-Tools Version 3b ( + download )
|
Hello,there was a missing ) in the source-code-resultThe problem is solved.Copy and past works fine now.The version-no. changed to 8boBar:bClrGrad := { | lInvert | If( ! lInvert, ;{ { 0.50,65535,32768 },;{ 0.50,32768,65535 } },;{ { 0.50,16777215,32768 },;{ 0.50,32768,16777215 } } ) } <====oBar:nClrText := 16777215A new field for the Bar-object is added.It is possible now, to define oBar, oBar1, obar2 ....inside the tool.Download :<!-- m --><a class="postlink" href="http://www.pflegeplus.com/fw_downloads/Bargradient3.zip">http://www.pflegeplus.com/fw_downloads/Bargradient3.zip</a><!-- m -->here is a complete working sample.It is the basic-structure of the bar-tools.[img:qg8hbrk3]http://www.pflegeplus.com/pictures/gradient60.jpg[/img:qg8hbrk3][code:qg8hbrk3]
#include "FiveWin.ch"
#include "xBrowse.ch"
#include "Slider.ch"
static oWnd
FUNCTION Main()
local oBar, oBtn1
SetBalloon( .T. ) // Balloon shape required for tooltips
oProgFont := TFont():New("Arial", ,-14,.F.,.F. , , , ,.F. )
DEFINE WINDOW oWnd TITLE "Gradient-Selection for" MDI MENU TMenu():New()
DEFINE BUTTONBAR oBar OF oWnd SIZE 80, 80 2007 RIGHT
// Copy and Past from the tools
// --------------------------------------
oBar:bClrGrad := { | lInvert | If( ! lInvert, ;
{ { 0.50,8388608,16777215 },;
{ 0.50,16777215,8388608 } },;
{ { 0.50,128,16777215 },;
{ 0.50,16777215,128 } } ) }
oBar:nClrText := 16777215
DEFINE BUTTON oBtn1 OF oBar ACTION ( Tools(oWnd,oBar,oBtn1) ) ;
RESOURCE "magic" PROMPT "Bar-Selection" TOOLTIP "Bar-Select"
SET MESSAGE OF oWnd TO "Testing the ButtonBar 2007 Office look" ;
CENTERED CLOCK KEYBOARD 2007
ACTIVATE WINDOW oWnd MAXIMIZED ;
ON PAINT gradpaint1( hDC, oWnd ) ;
VALID MsgYesNo( "Do you want to end?" )
RETURN NIL
//----------------- DIALOG ( MDI ) ------------------------------------//
FUNCTION Tools(oWnd,oBar)
LOCAL oDlg, oBar1, oBtn10
DEFINE DIALOG oDlg RESOURCE "Tools" OF oWnd TITLE "Gradient-Color-Selection" FONT oProgFont
// ----------- Your fields
// You have to call the BUTTONBAR at INIT
REDEFINE BUTTONBMP oBtn10 ID 10 OF oDlg ;
ACTION ( oDlg:End() ) ;
BITMAP "Quit" PROMPT " Exit" TEXTRIGHT
oBtn10:cToolTip = { "Close" + CRLF + ;
"the Dialog","Gradient-Test", 1, CLR_BLACK, 14089979 }
ACTIVATE DIALOG oDlg CENTERED NOWAIT ;
ON PAINT gradpaint2( hDC, oDlg ) ;
ON INIT NEW_DLGBAR(oDlg)
RETURN NIL
// -----------------------------------------------
static func gradpaint1( hDC, oWnd )
local aGrad := { { 0.50, 8388608, 16054371 } }
GradientFill( hDC, 0, 0, oWnd:nHeight, oWnd:nWidth, aGrad, .F. )
RETURN NIL
// -----------------------------------------------
static func gradpaint2( hDC, oDlg )
local aGrad1 := { { 0.50, 16054371, 8388608 } }
GradientFill( hDC, 0, 0, oDlg:nHeight, oDlg:nWidth, aGrad1, .F. )
RETURN NIL
// ------- TEST - BAR --------------------------
FUNCTION NEW_DLGBAR(oDlg)
LOCAL oBar1
DEFINE BUTTONBAR oBar1 OF oDlg SIZE 80, 80 2007 RIGHT
// Copy and Past from the tools
// --------------------------------------
oBar1:bClrGrad := { | lInvert | If( ! lInvert, ;
{ { 0.50,128,16777215 },;
{ 0.50,16777215,128 } },;
{ { 0.50,128,16777215 },;
{ 0.50,16777215,128 } } ) }
oBar1:nClrText := 16777215
DEFINE BUTTON OF oBar1 ACTION MsgInfo( "Attach" ) ;
RESOURCE "attach" PROMPT "Attach" TOOLTIP "Attach"
DEFINE BUTTON OF oBar1 ACTION MsgInfo( "calendar" ) ;
RESOURCE "calendar" PROMPT "Calendar" TOOLTIP "Calendar"
DEFINE BUTTON OF oBar1 ACTION MsgInfo( "Clients" ) ;
RESOURCE "people" PROMPT "Clients" TOOLTIP "Clients"
DEFINE BUTTON OF oBar1 ACTION oDlg:End() ;
RESOURCE "quit" PROMPT "Exit" TOOLTIP "Exit"
RETURN( NIL )
// ------------- The RC-File ------------
#ifdef __FLAT__
1 24 "WindowsXP.Manifest"
#endif
#define DIALOG_2 2
#define DIALOG_1 1
attach BITMAP "attach.bmp"
calendar BITMAP "calendar.bmp"
people BITMAP "people.bmp"
print BITMAP "print.bmp"
magic BITMAP "magic.bmp"
exit BITMAP "exit.bmp"
floppy BITMAP "floppy.bmp"
open BITMAP "open.bmp"
quit BITMAP "quit.bmp"
help BITMAP "help.bmp"
info BITMAP "info.bmp"
colors BITMAP "colors.bmp"
fonts BITMAP "fonts.bmp"
info1 BITMAP "info1.bmp"
Tools DIALOG 4, 53, 409, 303
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "DBF-Structure"
FONT 10, "MS Sans Serif"
{
DEFPUSHBUTTON "Exit", 10, 282, 271, 68, 27
}
[/code:qg8hbrk3]The complete working-directory with EXE-file :<!-- m --><a class="postlink" href="http://www.pflegeplus.com/fw_downloads/TestBar.zip">http://www.pflegeplus.com/fw_downloads/TestBar.zip</a><!-- m -->Best regardsUwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
A preview on the new Infobar-Designer 1.4
|
Hello,
New Version see at Topic Update : 1.6 => 23.03
Still some Tests and the new Infobar-Designer 1.4
will be obtained as download in the forum.
It is completely redesined with the new FWH 8.03.
New : Freeimage.dll is included. So it is possible,
to use more graphic-formats. The new bar at the bottom
of the Gradient-Color-Setting, remembers the last design,
so it is easy to do fine-adjustments of the colors.
[img:2bzdqk5i]http://www.pflegeplus.com/pictures/designer_1_4.jpg[/img:2bzdqk5i]
Regards
Uwe[/img]
|
A preview on the new Infobar-Designer 1.4
|
Hi ukoenig,
My Dr3DText Class same as your solution.
[url=http://img179.imageshack.us/my.php?image=20080319110559wz4.jpg:39qp30ee][img:39qp30ee]http://img179.imageshack.us/img179/3448/20080319110559wz4.th.jpg[/img:39qp30ee][/url:39qp30ee]
[img:39qp30ee]http://www.tbus.org.tw/2008-03-19_110559.jpg[/img:39qp30ee]
Regards,
richard
|
A preview on the new Infobar-Designer 1.4
|
Hello Richard,
It seems, we both had same idea, to make a tool
for a special design.
I have still a source creator included.
So you need only to copy and past the source in your program.
Today, i got a E-mail from ViaCoral.
I think they could have the tool in the forum of Via as well.
Regards
Uwe
|
A preview on the new Infobar-Designer 1.4
|
Hi ukoenig,
[quote:2t6y0sjc]
It seems, we both had same idea, to make a tool
for a special design.
I have still a source creator included.
So you need only to copy and past the source in your program.
[/quote:2t6y0sjc]
yes, I think we make special design for up our software value.
[quote:2t6y0sjc]
Today, i got a E-mail from ViaCoral.
I think they could have the tool in the forum of Via as well.
[/quote:2t6y0sjc]
I guess, you got mail from ViaCoral mean your special design "Maybe" same as them product.
GO ON, our good design for FWH, Maybe.
Regards,
Richard
|
A problem < keep on top >
|
I tested different solutions to keep
a App on top.
As soon I change the focus it goes to the taskbar
From FWH-samples
changing the focus ( editor ) the test goes to the taskbar.
[img:1eeh14hr]http://www.pflegeplus.com/IMAGES/Ontop2.jpg[/img:1eeh14hr]
Another solution with the same effect.
[color=#0000FF:1eeh14hr]FUNCTION TOP_CLOSE(nType)
hWnd := FindWnd( "Keeping at top" ) // Title !!!
IF hWnd != NIL
IF ISICONIC( hWnd )
SHOWWINDOW( hWnd, SW_RESTORE )
ENDIF
IF nType = 1
SETFOREGROUNDWINDOW( hWnd )
ENDIF
IF nType = 2
SENDMESSAGE( hWnd, WM_CLOSE )
ENDIF
//ELSE
// MsgAlert( "COLORPICKER is not running !", "Attention" )
ENDIF
RETURN NIL[/color:1eeh14hr]
Is there any solution to stay on top even changing the focus ?
regards
Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
|
A problem < keep on top >
|
Uwe. I tested it, but here the program always stays on top !!
I had to push the left button once, but I suppose you did also ?
I see that this would be very usefull for the colorpicker
|
A problem < oPRINT:cmSay( ..> with MULTILINE get ?
|
Hello,
I want to print a MULTILE get and use
[color=#0000FF:2kyxwp4d][b:2kyxwp4d]oPRINT:cmSay(nRow1,12.2, MEMOLINE(aDatP[20]), oFont1,,CLR_BLACK,,PAD_LEFT )[/b:2kyxwp4d][/color:2kyxwp4d]
also tested :
[code=fw:2kyxwp4d]<div class="fw" id="{CB}" style="font-family: monospace;"><br />n := <span style="color: #000000;">1</span><br /><span style="color: #00C800;">WHILE</span> n < <span style="color: #000000;">8</span><br /> oPRINT:<span style="color: #000000;">cmSay</span><span style="color: #000000;">(</span> nZeile1, <span style="color: #000000;">12.2</span>, MEMOLINE<span style="color: #000000;">(</span>aDatP<span style="color: #000000;">[</span><span style="color: #000000;">20</span><span style="color: #000000;">]</span><span style="color: #000000;">)</span>, oFont1,,CLR_BLACK,,PAD_LEFT <span style="color: #000000;">)</span><br /> nZeile1+= <span style="color: #000000;">0.5</span> <span style="color: #B900B9;">// linefeed</span><br /> n++<br />END <br /> </div>[/code:2kyxwp4d]
but shows 7 lines "AAAAAAAAAAAAAAAAA"
but doesn't work
Ok I can search for CRLF inside the get and cut the get in pieces
but maybe another solution ?
[img:2kyxwp4d]http://www.pflegeplus.com/IMAGES/Print1.jpg[/img:2kyxwp4d]
best regards
Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
|
A problem < oPRINT:cmSay( ..> with MULTILINE get ?
|
Maybe, fwh\samples\report\rep20.prg, can help
|
A problem < oPRINT:cmSay( ..> with MULTILINE get ?
|
Cristobal,
using the logic of this report sample it is working fine
The width and hight of the get must be adjusted to the used fontsize
to get the same result inside the report
[img:19to8fva]http://www.pflegeplus.com/IMAGES/Print2.jpg[/img:19to8fva]
[code=fw:19to8fva]<div class="fw" id="{CB}" style="font-family: monospace;"><br />nZeile1 := <span style="color: #000000;">2.6</span> <span style="color: #B900B9;">// startrow</span><br />....<br />....<br /><span style="color: #00C800;">IF</span> !EMPTY<span style="color: #000000;">(</span> aDatP<span style="color: #000000;">[</span><span style="color: #000000;">20</span><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">// multine get</span><br /> <span style="color: #00C800;">FOR</span> nFor := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">7</span> <span style="color: #B900B9;">// 7 Lines</span><br /> cLine := MEMOLINE<span style="color: #000000;">(</span> aDatP<span style="color: #000000;">[</span><span style="color: #000000;">20</span><span style="color: #000000;">]</span>, <span style="color: #000000;">40</span>, nFor <span style="color: #000000;">)</span> <span style="color: #B900B9;">// 40 chars each line</span><br /> oPRINT:<span style="color: #000000;">cmSay</span><span style="color: #000000;">(</span> nZeile1, <span style="color: #000000;">12.2</span>, cLine, oFont1,,CLR_BLACK,,PAD_LEFT <span style="color: #000000;">)</span><br /> nZeile1+= <span style="color: #000000;">0.5</span> <span style="color: #B900B9;">// linefeed</span><br /> <span style="color: #00C800;">NEXT</span><br /><span style="color: #00C800;">ENDIF</span><br />....<br />....<br />nZeile1 += <span style="color: #000000;">3.7</span><br /> </div>[/code:19to8fva]
best regards
Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
|
A problem < oPRINT:cmSay( ..> with MULTILINE get ?
|
Mr Uwe
oPrn:SayText() is an improved version over earlier methods oPrn:Say(),etc., which handle only single line texts.
This method prints both single line and / or multiline text with word-wrapping depending on the size of text and size of the rectangle provided. This method is particulary intended to ease the programmers' work, by avoiding the need to break the text into individual lines and printing line by line.
Syntax:
SayText( nRow, nCol, cText, [nWidth], [nHeight], [oFont], [cAlign], [nClrText], [nClrBack] ) --> nLastRowInPixels
All coordinates are in pixels.
nWidth: It is desirable to provide nWidth parameter.
nHeight: If we do not now how much height the entire text requires to be printed, set nHeight to NIL.
cAlign: Values can be 'T','L','B','R','TL','TR','LB','BR'. Text is aligned within rectangle as specfied in the parameter. Default is TL (TopLeft)
Return Value: This method returns the Last Row in pixels used for printing the text. We can use this result to know the row from which we can continue printing the next text or images.
Here is a small sample:
[code=fw:1x4f664t]<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 />func dbtest<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oDlg, oGet, cText := <span style="color: #ff0000;">""</span><br /> <span style="color: #00C800;">local</span> oFont<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;">"TAHOMA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-16</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">300</span>,<span style="color: #000000;">300</span> <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL <span style="color: #0000ff;">FONT</span> oFont<br /><br /> @ <span style="color: #000000;">20</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">GET</span> oGet <span style="color: #0000ff;">VAR</span> cText MEMO <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">260</span>,<span style="color: #000000;">220</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br /> @ <span style="color: #000000;">255</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Print"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>,<span style="color: #000000;">30</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ACTION</span> PrintGet<span style="color: #000000;">(</span> cText, oFont <span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br /> <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> PrintGet<span style="color: #000000;">(</span> cText, oTextFont <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oPrn, oFont, aPoint, nRow, nCol, nWidth<br /><br /> <span style="color: #00C800;">PRINT</span> oPrn PREVIEW<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> oTextFont:<span style="color: #000000;">cFaceName</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,-oTextFont:<span style="color: #000000;">nHeight</span> <span style="color: #0000ff;">OF</span> oPrn<br /><br /> <span style="color: #0000ff;">PAGE</span><br /><br /> aPoint := oPrn:<span style="color: #000000;">Cmtr2Pix</span><span style="color: #000000;">(</span> <span style="color: #000000;">2.6</span>, <span style="color: #000000;">10.0</span> <span style="color: #000000;">)</span><br /> nRow := aPoint<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span><br /> nCol := aPoint<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span><br /><br /> nRow := oPrn:<span style="color: #000000;">SayText</span><span style="color: #000000;">(</span> nRow, nCol, cText, @nWidth, <span style="color: #00C800;">nil</span>, oFont <span style="color: #000000;">)</span><br /> oPrn:<span style="color: #000000;">Line</span><span style="color: #000000;">(</span> nRow, nCol, nRow, nCol + nWidth <span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">ENDPAGE</span><br /><br /> <span style="color: #0000ff;">ENDPRINT</span><br /><br /> <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:1x4f664t]
Note: The word wrapping of the printed text depends on the font size and width provided and may not exactly match the text in the Get. However if each line in the Get is terminated by CRLF then the printed text also honors the same CRLFs while word wrapping.
[url=https://imageshack.com/i/pnUC3scEp:1x4f664t][img:1x4f664t]http://imagizer.imageshack.us/v2/xq90/923/UC3scE.png[/img:1x4f664t][/url:1x4f664t]
|
A problem < oPRINT:cmSay( ..> with MULTILINE get ?
|
Mr. Rao,
works fine !!!
my changes :
[code=fw:34syuwf0]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">IF</span> !EMPTY<span style="color: #000000;">(</span> aDatP<span style="color: #000000;">[</span><span style="color: #000000;">20</span><span style="color: #000000;">]</span> <span style="color: #000000;">)</span><br /> aPoint := oPRINT:<span style="color: #000000;">Cmtr2Pix</span><span style="color: #000000;">(</span> nZeile1, <span style="color: #000000;">12.2</span> <span style="color: #000000;">)</span><br /> nWidth := <span style="color: #000000;">720</span><br /> nRow := aPoint<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span><br /> nCol := aPoint<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span><br /> nRow := oPRINT:<span style="color: #000000;">SayText</span><span style="color: #000000;">(</span> nRow, nCol, aDatP<span style="color: #000000;">[</span><span style="color: #000000;">20</span><span style="color: #000000;">]</span>, @nWidth, <span style="color: #00C800;">NIL</span>, oFont1 <span style="color: #000000;">)</span> <br /> oPRINT:<span style="color: #000000;">Line</span><span style="color: #000000;">(</span> nRow, nCol, nRow, nCol + nWidth <span style="color: #000000;">)</span><br /><span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #B900B9;">// old</span><br /><span style="color: #B900B9;">// IF !EMPTY( aDatP[20] )</span><br /><span style="color: #B900B9;">// FOR nFor := 1 TO 7 // 7 Lines</span><br /><span style="color: #B900B9;">// cLine := MEMOLINE( aDatP[20], 40, nFor ) // 40 chars</span><br /><span style="color: #B900B9;">// oPRINT:cmSay( nZeile1,12.2, cLine, oFont1,,CLR_BLACK,,PAD_LEFT )</span><br /><span style="color: #B900B9;">// nZeile1+= 0.5</span><br /><span style="color: #B900B9;">// NEXT</span><br /><span style="color: #B900B9;">//ENDIF</span><br /> </div>[/code:34syuwf0]
best regards
Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
|
A problem < oPRINT:cmSay( ..> with MULTILINE get ?
|
In your case. because you know the width of the column, you may specify nWidth
|
A problem Btnbmp and HEX-symbols from fonts
|
Hello,
during my tests I noticed a problem with Btnbmp selecting
any symbol of [color=#0000FF:14kslpq3]"Segoe UI Symbol"[/color:14kslpq3]
the problem in detail :
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=37314&p=223160#p223160">viewtopic.php?f=3&t=37314&p=223160#p223160</a><!-- l -->
in short :
You can use sample < W10btns.prg > and change the defined fonts
The symbols defined in HEX-format are used from "Segoe MDL2 Assets"
[color=#0000FF:14kslpq3]The defined fonts are used for the buttontext[/color:14kslpq3]
DEFINE FONT oFont NAME "Arial" SIZE 0,-14
DEFINE FONT oFontG NAME "Arial" SIZE 0,-18
DEFINE FONT oBold NAME "Arial" SIZE 0,-14 BOLD
DEFINE FONT oFont1 NAME "Arial" SIZE 0,-24
ignored for symbols <!-- s:!: --><img src="{SMILIES_PATH}/icon_exclaim.gif" alt=":!:" title="Exclamation" /><!-- s:!: -->
//DEFINE FONT oFont NAME "Segoe UI" SIZE 0,-14
//DEFINE FONT oFontG NAME "Segoe UI" SIZE 0,-18
//DEFINE FONT oBold NAME "Segoe UI" SIZE 0,-14 BOLD
//DEFINE FONT oFont1 NAME "Segoe UI Light" SIZE 0,-24
results
[img:14kslpq3]http://www.pflegeplus.com/IMAGES/Symbol5.jpg[/img:14kslpq3]
[img:14kslpq3]http://www.pflegeplus.com/IMAGES/Symbol6.jpg[/img:14kslpq3]
regards
Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
|
A problem Btnbmp and HEX-symbols from fonts
|
When we specify
BTNBMP RESOURCE <n> ( hex or normal)
If <n> is in the appropriate range of symbols, Segoe MDL2 Assets font is used to display the symbol on Windows 10. On Windows 8, Segoe UI Symbol font is used.
Fonts defined for the BTNBMP are used for text only.
This is the behavior.
If you want to use any character with any other font as image, use bw_texttobmp() and use that bitmap.
|
A problem Btnbmp and HEX-symbols from fonts
|
Thank You very much for the infos
I got a little bit confused after the tests
[quote:2m69skbk]If <n> is in the appropriate range of symbols, Segoe MDL2 Assets font is used
to display the symbol on Windows 10. On Windows 8, Segoe UI Symbol font is used.
Fonts defined for the BTNBMP are used for text only.
This is the behavior.
If you want to use any character with any other font as image, use bw_texttobmp() and use that bitmap.[/quote:2m69skbk]
I included the needed infos
[img:2m69skbk]http://www.pflegeplus.com/IMAGES/Symbol7.jpg[/img:2m69skbk]
what is the best for window 8 users <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
just moving the title to the left and keep it like it is desined
or removing everything about < Segoe MDL2 Assets> <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
I think window 8 users can install < Segoe MDL2 Assets> as well
I don't have window 8 installed to test the result.
regards
Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
|
A problem GRAPH-refresh from folder and DBF-values
|
Hello,
I wanted to refresh the bars with new values, defined inside a DBF-file
I don't get it working using folders at RUNTIME.
Closing and reopening the statistic, it works.
In case it doesn't work, I can change it using xBrowse.
The array is new defined from a DBF
but oGraph:Refresh() doesn't work in folder-page 3.
oGraph:aData = { { aJS1[1], aJS1[2], aJS1[3], aJS1[4], ;
aJS1[5], aJS1[6], aJS1[7], aJS1[8], ;
aJS1[9], aJS1[10], aJS1[11], aJS1[12] } }
new oGraph:aData are redefined from a DBF with 12 records
1 record = 1 month
DBSELECTAREA("UMSATZ2")
("UMSATZ2")->(DBGOTOP())
I := 1
DO WHILE !EOF()
aJS1[I] := ("UMSATZ2")->RE_SUMME
("UMSATZ2")->(DBSKIP(+1))
I++
ENDDO
("UMSATZ2")->(DBGOTOP())
Also tested from a folder-page change :
setting new bar-values from the DBF with no difference
IIF( nPage = 3, ( SET_GRAPH(), oGraph:Update() ), NIL ), ;
The month-values of a year are defined in folder-page 1
[img:1cmco6ou]http://www.pflegeplus.com/IMAGES/TGraph1.jpg[/img:1cmco6ou]
I can add the total-values to the year-statistic in folder-page 2
[img:1cmco6ou]http://www.pflegeplus.com/IMAGES/TGraph2.jpg[/img:1cmco6ou]
Folder-page 3 must show bars of the values defined in folder-page 2
but the bars are not repainted in page 3 showing the new values
maybe not possible to change the graph at RUNTIME ?
[img:1cmco6ou]http://www.pflegeplus.com/IMAGES/TGraph3.jpg[/img:1cmco6ou]
using xBrowse and Dialog, the repainting works fine
[img:1cmco6ou]http://www.pflegeplus.com/IMAGES/TGraph4.jpg[/img:1cmco6ou]
best regards
Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
|
A problem GRAPH-refresh from folder and DBF-values
|
I created a sample to test from dialog and folderpages.
No result, to update & repaint the bars with new values
trying to update from inside the dialog and
update the graph in page 4 with new values defined in page 1
[img:29hg269w]http://www.pflegeplus.com/IMAGES/TGraph5.jpg[/img:29hg269w]
[img:29hg269w]http://www.pflegeplus.com/IMAGES/TGraph6.jpg[/img:29hg269w]
// The defined dialog-data-array to be changed
aJS1[1] := 108
aJS1[2] := 150
aJS1[3] := 120
aJS1[4] := 80
aJS1[5] := 10
aJS1[6] := 50
aJS1[7] := 70
aJS1[8] := 190
aJS1[9] := 60
aJS1[10] := 80
aJS1[11] := 90
aJS1[12] := 30
REDEFINE GRAPH oGraph1 ID 120 TYPE 1 OF oDlg // UPDATE NO difference !!!
oGraph1:aSeries = { { "Test", 16771797 , , } }
oGraph1:nBarSep := 10
oGraph1:lBorders := .T.
oGraph1:lxGrid := .T.
oGraph1:lyGrid := .T.
oGraph1:l3D := .T.
oGraph1:lxVal := .T.
oGraph1:lyVal := .T.
oGraph1:lBordLeg := .T.
oGraph1:lLegends := .T.
oGraph1:lTitle := .T.
oGraph1:nClrX := 8421376 // Green
oGraph1:nClrY := 255
oGraph1:aYVals := { "1", "2", "3", "4", "5", "6", "7", ;
"8", "9", "10", "11", "12" }
oGraph1:lViewVal := .T.
oGraph1:aFont[2] := oFont
oGraph1:aFont[3] := oFont
oGraph1:aFont[8] := oFont
// The data-array
oGraph1:aData = { { aJS1[1], aJS1[2], aJS1[3], aJS1[4], ;
aJS1[5], aJS1[6], aJS1[7], aJS1[8], ;
aJS1[9], aJS1[10], aJS1[11], aJS1[12] } }
[color=#0000FF:29hg269w]doesn't work !!!
// array with new values from button-action
REDEFINE BUTTON ID 130 OF oDlg ;
ACTION ( oGraph1:aData = { { aJS1[1] := 10, aJS1[2] := 10, aJS1[3] := 10, aJS1[4] := 10, ;
aJS1[5] := 10, aJS1[6] := 10, aJS1[7] := 10, aJS1[8] := 10, ;
aJS1[9] := 10, aJS1[10] := 10, aJS1[11] := 10, aJS1[12] := 10 } }, ;
oGraph1:Refresh() ) [/color:29hg269w]
[color=#008000:29hg269w]another test doesn't work !!!
//REDEFINE BUTTON ID 130 OF oDlg ;
//ACTION ( aJS1[1] := 10, aJS1[2] := 10, aJS1[3] := 10, aJS1[4] := 10, ;
// aJS1[5] := 10, aJS1[6] := 10, aJS1[7] := 10, aJS1[8] := 10, ;
// aJS1[9] := 10, aJS1[10] := 10, aJS1[11] := 10, aJS1[12] := 10, ;
// oGraph1:Refresh() ) [/color:29hg269w]
any idea ?
otherwise I have to find another solution.
best regards
Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
|
A problem GRAPH-refresh from folder and DBF-values
|
Uwe
Although not a proper technique, try to call the Display method, instead of the Refresh
|
A problem GRAPH-refresh from folder and DBF-values
|
Cristobal,
thank You very much.
I think I have to use
[b:1jhfe6q3]oGraph1:AddSerie( aJS1,"Serie", 16771797 )
// AddSerie( aDat, cLegend, nColor, nType, l3D )[/b:1jhfe6q3]
changing the array, the refresh is working fine
[img:1jhfe6q3]http://www.pflegeplus.com/IMAGES/Tgraph7.jpg[/img:1jhfe6q3]
Changing the values :
[color=#0040FF:1jhfe6q3]REDEFINE BUTTON ID 150 OF oDlg ;
ACTION ( aJS1[1] := 108, aJS1[2] := 150, aJS1[3] := 120, aJS1[4] := 80, ;
aJS1[5] := 10, aJS1[6] := 50, aJS1[7] := 70, aJS1[8] := 190, ;
aJS1[9] := 60, aJS1[10] := 80, aJS1[11] := 90, aJS1[12] := 30, ;
oGraph1:Refresh() ) [/color:1jhfe6q3]
[color=#008000:1jhfe6q3]REDEFINE BUTTON ID 130 OF oDlg ;
ACTION ( aJS1[1] := 100, aJS1[2] := 200, aJS1[3] := 400, aJS1[4] := 500, ;
aJS1[5] := 700, aJS1[6] := 300, aJS1[7] := 600, aJS1[8] := 800, ;
aJS1[9] := 900, aJS1[10] := 50, aJS1[11] := 400, aJS1[12] := 200, ;
oGraph1:Refresh() ) [/color:1jhfe6q3]
best regards
Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
|
A problem GRAPH-refresh from folder and DBF-values
|
Ah !, Ok, Uwe
Sometimes we take the hard way
Regards
|
A problem GRAPH-refresh from folder and DBF-values
|
Here is the calculation to show the
TOOLTIPS of comparing any defined 3 years / 12 month each ( a little bit complicated )
each month is splitted in 10 groups ( kind of the different invoices ) to be counted to get the < month-total >
[img:sttyjkfc]http://www.pflegeplus.com/IMAGES/TGraph8.jpg[/img:sttyjkfc]
[code=fw:sttyjkfc]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">REDEFINE</span> GRAPH oGraph <span style="color: #0000ff;">ID</span> <span style="color: #000000;">310</span> TYPE <span style="color: #000000;">1</span> <span style="color: #0000ff;">OF</span> oDlg1 <span style="color: #0000ff;">UPDATE</span><br />...<br />...<br />oGraph:<span style="color: #000000;">aYVals</span> = <span style="color: #000000;">{</span> <span style="color: #ff0000;">"Jan"</span>, <span style="color: #ff0000;">"Feb"</span>, <span style="color: #ff0000;">"Mär"</span>, <span style="color: #ff0000;">"Apr"</span>, <span style="color: #ff0000;">"Mai"</span>, <span style="color: #ff0000;">"Jun"</span>, <span style="color: #ff0000;">"Jul"</span>, <span style="color: #ff0000;">"Aug"</span>, <span style="color: #ff0000;">"Sep"</span>, <span style="color: #ff0000;">"Okt"</span>, <span style="color: #ff0000;">"Nov"</span>, <span style="color: #ff0000;">"Dez"</span> <span style="color: #000000;">}</span> <br /><br />oGraph:<span style="color: #000000;">AddSerie</span><span style="color: #000000;">(</span> aJS1,<span style="color: #ff0000;">"year 1"</span>, aVal<span style="color: #000000;">[</span><span style="color: #000000;">91</span><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">// a array to define any year</span><br />oGraph:<span style="color: #000000;">AddSerie</span><span style="color: #000000;">(</span> aJS2,<span style="color: #ff0000;">"year 2"</span>, aVal<span style="color: #000000;">[</span><span style="color: #000000;">92</span><span style="color: #000000;">]</span> <span style="color: #000000;">)</span><br />oGraph:<span style="color: #000000;">AddSerie</span><span style="color: #000000;">(</span> aJS3,<span style="color: #ff0000;">"year 3"</span>, aVal<span style="color: #000000;">[</span><span style="color: #000000;">93</span><span style="color: #000000;">]</span> <span style="color: #000000;">)</span><br /><br />oGraph:<span style="color: #000000;">cToolTip</span> = <span style="color: #000000;">{</span> | nAt, nSerie | nSerie := <span style="color: #00C800;">IF</span><span style="color: #000000;">(</span> nAt % ;<br /> Len<span style="color: #000000;">(</span> oGraph:<span style="color: #000000;">aSeries</span> <span style="color: #000000;">)</span> == <span style="color: #000000;">0</span>, Len<span style="color: #000000;">(</span> oGraph:<span style="color: #000000;">aSeries</span> <span style="color: #000000;">)</span>, ;<br /> Int<span style="color: #000000;">(</span> nAt % Len<span style="color: #000000;">(</span> oGraph:<span style="color: #000000;">aSeries</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, ;<br /> cBarData := G_TOOLTIP<span style="color: #000000;">(</span>nAt, nSerie<span style="color: #000000;">)</span>, ;<br /> <span style="color: #ff0000;">"year : "</span> + cBarData<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> + CRLF + ; <br /> <span style="color: #ff0000;">"total : "</span> + cBarData<span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span> <span style="color: #000000;">}</span> <br />...<br />...<br /><span style="color: #B900B9;">// --------------</span><br /><br /><span style="color: #00C800;">FUNCTION</span> G_TOOLTIP<span style="color: #000000;">(</span> nAt, nSerie <span style="color: #000000;">)</span><br /><span style="color: #00C800;">LOCAL</span> ctotal := <span style="color: #ff0000;">""</span>, nBar := <span style="color: #000000;">1</span>, I := <span style="color: #000000;">1</span>, cyear := <span style="color: #ff0000;">""</span><br /><br /><span style="color: #00C800;">IF</span> nSerie = <span style="color: #000000;">1</span> <span style="color: #B900B9;">// 3 years / serie</span><br /> cyear := cyearsel<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> <span style="color: #B900B9;">// year-array ( selected year )</span><br />ELSEIF nSerie = <span style="color: #000000;">2</span><br /> cyear := cyearsel<span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span><br />ELSEIF nSerie = <span style="color: #000000;">3</span><br /> cyear := cyearsel<span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span><br /><span style="color: #00C800;">ENDIF</span><br /><br />nBar := INT<span style="color: #000000;">(</span> nAt / LEN<span style="color: #000000;">(</span> oGraph:<span style="color: #000000;">aSeries</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> + <span style="color: #000000;">1</span> + ;<br /> <span style="color: #00C800;">IF</span><span style="color: #000000;">(</span> nAt % LEN<span style="color: #000000;">(</span> oGraph:<span style="color: #000000;">aSeries</span> <span style="color: #000000;">)</span> == <span style="color: #000000;">0</span>, <span style="color: #000000;">-1</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span> <br /><br />I := <span style="color: #000000;">1</span><br /><span style="color: #00C800;">FOR</span> I := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">12</span> <span style="color: #B900B9;">// 12 month</span><br /> <span style="color: #00C800;">IF</span> nBar = I<br /> <span style="color: #00C800;">IF</span> nSerie = <span style="color: #000000;">1</span><br /> cTotal := ALLTRIM<span style="color: #000000;">(</span> STR<span style="color: #000000;">(</span> aJS1<span style="color: #000000;">[</span>I<span style="color: #000000;">]</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">// array of the year total-value</span><br /> ELSEIF nSerie = <span style="color: #000000;">2</span><br /> cTotal := ALLTRIM<span style="color: #000000;">(</span> STR<span style="color: #000000;">(</span> aJS2<span style="color: #000000;">[</span>I<span style="color: #000000;">]</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> ELSEIF nSerie = <span style="color: #000000;">3</span><br /> cTotal := ALLTRIM<span style="color: #000000;">(</span> STR<span style="color: #000000;">(</span> aJS3<span style="color: #000000;">[</span>I<span style="color: #000000;">]</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDIF</span><br /> <span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">NEXT</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #000000;">{</span> cyear, cTotal <span style="color: #000000;">}</span><br /><br /> </div>[/code:sttyjkfc]
best regards
Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
|
A problem Ribbonbar-groups and Window min / max
|
Hello,
I noticed a Problem with Ribbonbar-groups and Windows min / max
For my Test I used empty Groups and Groups < Window-width.
I think there is no Reason to iconize a Group.
Without Window min / max, all Groups are displayed normal.
Is it possible, to force a group to be displayed in full size ?
[img:d5rcps8o]http://www.pflegeplus.com/pictures/ribbgroup.jpg[/img:d5rcps8o]
I used Ribbon2.prg, changed to 1 Group and sized to Ribbonbar-length.
I got the same Effect.
It seems, there is a difference in Group-Length after using Windows min/max.
[img:d5rcps8o]http://www.pflegeplus.com/pictures/ribbgroup1.jpg[/img:d5rcps8o]
Length used in Sample 1 :
DEFINE WINDOW oWnd TITLE "NConvert - Script-editor => Release 1.1 / August 2011" FROM 1,1 to 730[b:d5rcps8o],[color=#FF0000:d5rcps8o]1020[/color:d5rcps8o][/b:d5rcps8o] PIXEL ICON oIcon
DEFINE RIBBONBAR oRBar WINDOW oWnd PROMPT "Image-select","Sharpen, Contrast, Lens", "Watermark", "Resize, Rotate","EXPORT", "Crop, Brightn., Alpha","Gray, Mosaic, Swirl, Emboss", "EXIT" ;
...
oRBar:nHeight := 180
oRBar:nHeightFld = 30
oRBar:nLeftMargin = 10
oRBar:hSeparation = 5
oRBar:SetFont( oFont3 )
oRBar:CalcPos()
[color=#0000FF:d5rcps8o][b:d5rcps8o]all Groups are < Window-width !!![/b:d5rcps8o][/color:d5rcps8o]
ADD GROUP oGr1 RIBBON oRBar TO OPTION 1 PROMPT "Image-Selection" width [color=#FF0000:d5rcps8o][b:d5rcps8o]895[/b:d5rcps8o] [/color:d5rcps8o]
oGr1:SetFont( oFont2 )
Best Regards
Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
|
A problem TDatabase and xBrowse using < edit_get >
|
both browser are working now and are synchron.
Only one get is used for all fields
Changing the get both browser are updated with the save-button.
Just one question :
with a double-click I can change the cellvalue
A return saves the new value and is visible in browser 1 as well.
Both browsers are updated.
How can I update the get as well as soon I use Return ?
The get is showing the new value only on row change
I tested a get-refresh but doesn't work
[code=fw:ulooow26]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// the get</span><br />@ <span style="color: #000000;">250</span>, <span style="color: #000000;">175</span> <span style="color: #0000ff;">GET</span> oGet <span style="color: #0000ff;">VAR</span> cVar <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">160</span>, <span style="color: #000000;">15</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">FONT</span> oFont2 <span style="color: #0000ff;">COLOR</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">16769734</span> <span style="color: #0000ff;">UPDATE</span><br /><br /><span style="color: #B900B9;">// the get-update from inside the browser</span><br />:<span style="color: #000000;">bLClicked</span> := <span style="color: #000000;">{</span> || oCol := oBrw2:<span style="color: #000000;">SelectedCol</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, ; <br /> cVar := PADR<span style="color: #000000;">(</span> oCol:<span style="color: #000000;">Value</span>, <span style="color: #000000;">80</span>, <span style="color: #ff0000;">" "</span> <span style="color: #000000;">)</span>, oGet:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <br /><br />WITH OBJECT oBrw2:<span style="color: #000000;">Street</span><br /> :<span style="color: #000000;">nEditType</span> = EDIT_GET <br /> :<span style="color: #000000;">bClrEdit</span> := <span style="color: #000000;">{</span> || <span style="color: #000000;">{</span> CLR_BLACK, CLR_YELLOW <span style="color: #000000;">}</span><span style="color: #000000;">}</span><br />END<br /><br /><span style="color: #B900B9;">// the GET update on celledit return ?????</span><br /><br />:<span style="color: #000000;">PostMsg</span><span style="color: #000000;">(</span> WM_SETFOCUS <span style="color: #000000;">)</span><br />:<span style="color: #000000;">bKeyDown</span> := <span style="color: #000000;">{</span> | nKey, nFlags | <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> nKey == VK_RETURN, ;<br /> <span style="color: #000000;">(</span> oCol := oBrw2:<span style="color: #000000;">SelectedCol</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, ; <br /> Eval<span style="color: #000000;">(</span> oBrw2:<span style="color: #000000;">bChange</span> <span style="color: #000000;">)</span>, ;<br /> cVar := PADR<span style="color: #000000;">(</span> oCol:<span style="color: #000000;">Value</span>, <span style="color: #000000;">80</span>, <span style="color: #ff0000;">" "</span> <span style="color: #000000;">)</span>, ; <span style="color: #B900B9;">// new get-value</span><br /> oGet:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> </div>[/code:ulooow26]
[img:ulooow26]http://www.pflegeplus.com/IMAGES/Testget5.jpg[/img:ulooow26]
regards
Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
|
A problem TDatabase and xBrowse using < edit_get >
|
Hello,
I noticed a problem saving values with [color=#0000FF:12ooglqa]xBrowse edit_get[/color:12ooglqa]
using
Browser 1
[color=#0000FF:12ooglqa]oCustomer := TDatabase():Open( , c_Path + "Customer", "DBFCDX", .T. )[/color:12ooglqa]
only field LAST is working with some extracode
the same using
Browser 2
[color=#0000FF:12ooglqa]USE customer NEW SHARED ALIAS CUST VIA 'DBFCDX'[/color:12ooglqa]
edit_get is working
[code=fw:12ooglqa]<div class="fw" id="{CB}" style="font-family: monospace;"><br />WITH OBJECT oBrw1:<span style="color: #000000;">First</span><br /> :<span style="color: #000000;">nEditType</span> = EDIT_GET <br />END<br />WITH OBJECT oBrw1:<span style="color: #000000;">Last</span><br /> :<span style="color: #000000;">nEditType</span> = EDIT_GET <br /> :<span style="color: #000000;">bOnPostEdit</span> := <span style="color: #000000;">{</span>|o, v, n| IIF<span style="color: #000000;">(</span> n != VK_ESCAPE, ; <br /> oCustomer:<span style="color: #000000;">FieldPut</span><span style="color: #000000;">(</span> <span style="color: #000000;">3</span>, v <span style="color: #000000;">)</span>, <span style="color: #000000;">)</span>, ; <span style="color: #B900B9;">// Field no 3 defined for saving !!!</span><br /> oCustomer:<span style="color: #000000;">Save</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, oBrw1:<span style="color: #000000;">RefreshCurrent</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br />END<br />WITH OBJECT oBrw1:<span style="color: #000000;">Street</span><br /> :<span style="color: #000000;">nEditType</span> = EDIT_GET <br />END<br /><br /> </div>[/code:12ooglqa]
2 testbrowser
@ 20,10 XBROWSE oBrw1 ;
COLUMNS "Id", 'First' , 'Last', 'Street', 'City' OF oDlg ;
SIZE -10,-160 PIXEL ;
COLSIZES "50, 120, 120, 110, 110" ;
[color=#4000FF:12ooglqa]DATASOURCE oCustomer [/color:12ooglqa]
@ 130,10 XBROWSE oBrw2 ;
COLUMNS "Id", 'First' , 'Last', 'Street', 'City' OF oDlg ;
SIZE -10,-50 PIXEL ;
COLSIZES "50, 120, 120, 110, 110" ;
[color=#4000FF:12ooglqa]ALIAS 'CUST' [/color:12ooglqa]
[img:12ooglqa]http://www.pflegeplus.com/IMAGES/TDatab1.jpg[/img:12ooglqa]
where does the difference comes from
regards
Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
|
A problem TDatabase and xBrowse using < edit_get >
|
Will work correctly if you remove bOnPostEdit.
|
A problem TDatabase and xBrowse using < edit_get >
|
Here is my complete test that can be used like it is from inside the sample-folder
[quote:35ev37o3]Will work correctly if you remove bOnPostEdit.[/quote:35ev37o3]
bOnPostEdit is only included because otherwise in browser 1 ( tDatabase ) values are not saved !
[code=fw:35ev37o3]<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;">'ord.ch'</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'xbrowse.ch'</span><br /><br />REQUEST DBFCDX<br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">LOCAL</span> oDlg, oBrw1, oBrw2, oFont, oBtn<span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span>, oSay<span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span><br /><span style="color: #00C800;">LOCAL</span> oCustomer<br /><span style="color: #00C800;">LOCAL</span> nColPos := <span style="color: #000000;">1</span>, nRowPos := <span style="color: #000000;">1</span><br /><br /><span style="color: #00C800;">LOCAL</span> c_path := cFilePath<span style="color: #000000;">(</span>GetModuleFileName<span style="color: #000000;">(</span> GetInstance<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <br /><br />USE customer <span style="color: #00C800;">NEW</span> SHARED <span style="color: #0000ff;">ALIAS</span> CUST VIA <span style="color: #ff0000;">'DBFCDX'</span><br />GO TOP<br /><br />oCustomer := TDatabase<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #000000;">Open</span><span style="color: #000000;">(</span> , c_Path + <span style="color: #ff0000;">"Customer"</span>, <span style="color: #ff0000;">"DBFCDX"</span>, .T. <span style="color: #000000;">)</span><br />oCustomer:<span style="color: #000000;">GoTop</span><span style="color: #000000;">(</span><span style="color: #000000;">)</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;">"TAHOMA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-14</span><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">800</span>, <span style="color: #000000;">550</span> <span style="color: #0000ff;">PIXEL</span> ;<br /><span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"XBrowse EDIT_GET"</span> ;<br /><span style="color: #0000ff;">FONT</span> oFont<br /> <br />@ <span style="color: #000000;">5</span>, <span style="color: #000000;">30</span> <span style="color: #0000ff;">SAY</span> oSay<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Row : "</span> + LTRIM<span style="color: #000000;">(</span>STR<span style="color: #000000;">(</span>nRowPos<span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">COLOR</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">12124088</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">OF</span> oDlg <br />@ <span style="color: #000000;">5</span>, <span style="color: #000000;">90</span> <span style="color: #0000ff;">SAY</span> oSay<span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Column : "</span> + LTRIM<span style="color: #000000;">(</span>STR<span style="color: #000000;">(</span>nColPos<span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">60</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">COLOR</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">12124088</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">OF</span> oDlg <br /><br />@ <span style="color: #000000;">20</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">XBROWSE</span> oBrw1 ;<br />COLUMNS <span style="color: #ff0000;">"Id"</span>, <span style="color: #ff0000;">'First'</span> , <span style="color: #ff0000;">'Last'</span>, <span style="color: #ff0000;">'Street'</span>, <span style="color: #ff0000;">'City'</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /><span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">-10</span>,<span style="color: #000000;">-160</span> <span style="color: #0000ff;">PIXEL</span> ;<br />PICTURES <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: #00C800;">nil</span> ;<br />COLSIZES <span style="color: #ff0000;">"50, 120, 120, 110, 110"</span> ;<br />DATASOURCE oCustomer ;<br />CELL LINES AUTOSORT NOBORDER FOOTERS <br /><br />oBrw1:<span style="color: #000000;">bClrSelFocus</span> := <span style="color: #000000;">{</span> || <span style="color: #000000;">{</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">14540287</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span> <br />oBrw1:<span style="color: #000000;">bClrSel</span> := <span style="color: #000000;">{</span> || <span style="color: #000000;">{</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">15132365</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span> <br />oBrw1:<span style="color: #000000;">nMarqueeStyle</span> := <span style="color: #000000;">3</span><br />oBrw1:<span style="color: #000000;">nRowHeight</span> := <span style="color: #000000;">25</span><br />oBrw1:<span style="color: #000000;">nRecSelWidth</span> := <span style="color: #000000;">50</span><br />oBrw1:<span style="color: #000000;">bRecSelHeader</span> := <span style="color: #000000;">{</span> |brw| <span style="color: #ff0000;">"No."</span> <span style="color: #000000;">}</span> <span style="color: #B900B9;">// or simply "SlNo"</span><br />oBrw1:<span style="color: #000000;">bRecSelFooter</span> := <span style="color: #000000;">{</span> |brw| brw:<span style="color: #000000;">nLen</span> <span style="color: #000000;">}</span> <span style="color: #B900B9;">// or Simpy any value</span><br />oBrw1:<span style="color: #000000;">bRecSelData</span> := <span style="color: #000000;">{</span> |brw| brw:<span style="color: #000000;">KeyNo</span> <span style="color: #000000;">}</span><br />oBrw1:<span style="color: #000000;">lColChangeNotify</span> := .T.<br /><br />WITH OBJECT oBrw1:<span style="color: #000000;">First</span><br /> :<span style="color: #000000;">nEditType</span> = EDIT_GET <span style="color: #B900B9;">// doesn't save data !!!</span><br />END<br />WITH OBJECT oBrw1:<span style="color: #000000;">Last</span><br /> :<span style="color: #000000;">nEditType</span> = EDIT_GET <br /> :<span style="color: #000000;">bOnPostEdit</span> := <span style="color: #000000;">{</span>|o, v, n| IIF<span style="color: #000000;">(</span> n != VK_ESCAPE, ; <br /> oCustomer:<span style="color: #000000;">FieldPut</span><span style="color: #000000;">(</span> <span style="color: #000000;">3</span>, v <span style="color: #000000;">)</span>, <span style="color: #000000;">)</span>, ; <br /> oCustomer:<span style="color: #000000;">Save</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, oBrw1:<span style="color: #000000;">RefreshCurrent</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br />END<br />WITH OBJECT oBrw1:<span style="color: #000000;">Street</span><br /> :<span style="color: #000000;">nEditType</span> = EDIT_GET <span style="color: #B900B9;">// doesn't save data !!!</span><br />END<br /><br />WITH OBJECT oBrw1<br /> :<span style="color: #000000;">nStretchCol</span> := <span style="color: #000000;">1</span><br /> :<span style="color: #000000;">bChange</span> := <span style="color: #000000;">{</span> | nRow, nCol, nKey | nColPos := oBrw1:<span style="color: #000000;">SelectedCol</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #000000;">nCreationOrder</span>, ;<br /> nRowPos := oBrw1:<span style="color: #000000;">Keyno</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, ;<br /> oSay<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, oBrw2:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, ; <br /> oSay<span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <br /><br /> :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />END<br /> <br /><span style="color: #B900B9;">// -------------------------</span><br /><br />@ <span style="color: #000000;">130</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">XBROWSE</span> oBrw2 ;<br />COLUMNS <span style="color: #ff0000;">"Id"</span>, <span style="color: #ff0000;">'First'</span> , <span style="color: #ff0000;">'Last'</span>, <span style="color: #ff0000;">'Street'</span>, <span style="color: #ff0000;">'City'</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /><span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">-10</span>,<span style="color: #000000;">-50</span> <span style="color: #0000ff;">PIXEL</span> ;<br />COLSIZES <span style="color: #ff0000;">"50, 120, 120, 110, 110"</span> ;<br /><span style="color: #0000ff;">ALIAS</span> <span style="color: #ff0000;">'CUST'</span> ;<br />CELL LINES AUTOSORT NOBORDER FOOTERS <br /><br />oBrw2:<span style="color: #000000;">bClrSelFocus</span> := <span style="color: #000000;">{</span> || <span style="color: #000000;">{</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">14540287</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span> <br />oBrw2:<span style="color: #000000;">bClrSel</span> := <span style="color: #000000;">{</span> || <span style="color: #000000;">{</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">15132365</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span> <br />oBrw2:<span style="color: #000000;">nMarqueeStyle</span> := <span style="color: #000000;">3</span><br />oBrw2:<span style="color: #000000;">nRowHeight</span> := <span style="color: #000000;">25</span><br />oBrw2:<span style="color: #000000;">nRecSelWidth</span> := <span style="color: #000000;">50</span><br />oBrw2:<span style="color: #000000;">bRecSelHeader</span> := <span style="color: #000000;">{</span> |brw| <span style="color: #ff0000;">"No."</span> <span style="color: #000000;">}</span> <br />oBrw2:<span style="color: #000000;">bRecSelFooter</span> := <span style="color: #000000;">{</span> |brw| brw:<span style="color: #000000;">nLen</span> <span style="color: #000000;">}</span> <br />oBrw2:<span style="color: #000000;">bRecSelData</span> := <span style="color: #000000;">{</span> |brw| brw:<span style="color: #000000;">KeyNo</span> <span style="color: #000000;">}</span><br />oBrw2:<span style="color: #000000;">lColChangeNotify</span> := .T.<br /><br /><span style="color: #B900B9;">// works !!!</span><br />WITH OBJECT oBrw2:<span style="color: #000000;">First</span><br /> :<span style="color: #000000;">nEditType</span> = EDIT_GET <br />END<br />WITH OBJECT oBrw2:<span style="color: #000000;">Last</span><br /> :<span style="color: #000000;">nEditType</span> = EDIT_GET <br />END<br /><br />WITH OBJECT oBrw2<br /> :<span style="color: #000000;">nStretchCol</span> := <span style="color: #000000;">1</span><br /> :<span style="color: #000000;">bChange</span> := <span style="color: #000000;">{</span> | nRow, nCol, nKey | nColPos := oBrw2:<span style="color: #000000;">SelectedCol</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #000000;">nCreationOrder</span>, ;<br /> nRowPos := oBrw2:<span style="color: #000000;">Keyno</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, ;<br /> oSay<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, oBrw1:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, ; <br /> oSay<span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <br /><br /> :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />END<br /><br />@ <span style="color: #000000;">240</span>, <span style="color: #000000;">340</span> <span style="color: #0000ff;">BTNBMP</span> oBtn<span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /><span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #000000;">2007</span> ; <span style="color: #B900B9;">// B / H</span><br /><span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Exit"</span> ;<br /><span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> ;<br /><span style="color: #0000ff;">FONT</span> oFont ;<br /><span style="color: #0000ff;">CENTER</span><br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br />CLOSE DATABASE<br /><span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /> </div>[/code:35ev37o3]
regards
Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
|
A problem changing the cursor of METRO-buttons ?
|
Hello,
trying to change the cursor on metro-button-focus, I use :
[color=#0000FF:1mahprvq][b:1mahprvq]AEval( oMetro:aControls, { | o | o:oCursor := oHand } )[/b:1mahprvq][/color:1mahprvq]
[color=#0000FF:1mahprvq][b:1mahprvq]AEval( oMenu1:aControls, { | o | o:oCursor := oHand } )[/b:1mahprvq][/color:1mahprvq]
...
...
it works, but the cursor doesn't change back to arrow, loosing the button-focus.
also tested :
[color=#0000FF:1mahprvq][b:1mahprvq]AEval( oMetro:aControls, { | o | IF( o:ClassName() = "TMETROBTN", o:oCursor := oHand, ) } )[/b:1mahprvq][/color:1mahprvq]
but NO difference
with a only a single button it works.
best regards
Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
|
A problem changing the cursor of METRO-buttons ?
|
Uwe,
Try this:
AEval( oMetro:aControls, { | o | IF( o:ClassName() = "TMETROBTN", ( o:oCursor := oHand, o:bLostFocus := { || o:oCursor := nil } ), ) } )
|
A problem changing the cursor of METRO-buttons ?
|
Antonio,
thank You very much.
The problem :
there is NO response in metrobutton
with using bGotfocus or bLostfocus.
best regards
Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
|
A problem in FWH11.01
|
Hi, Mr.Antonio
I tested example testbtb.prg and got error :
Error description: Error BASE/1004 Class: 'NIL' has no exported method: HFONT
Args:
[ 1] = U
Stack Calls
===========
Called from: => HFONT(0)
Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:PAINT(1176)
Called from: .\source\classes\BTNBMP.PRG => (b)TBTNBMP:TBTNBMP(112)
Called from: => TBTNBMP:DISPLAY(0)
Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT(1459)
Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:HANDLEEVENT(1453)
Called from: .\source\classes\WINDOW.PRG => _FWH(3408)
Called from: => UPDATEWINDOW(0)
Called from: .\source\classes\WINDOW.PRG => TWINDOW:ACTIVATE(976)
Called from: testbtb.prg => MAIN(92)
As I can solve this problem ?
Thanks.
|
A problem in FWH11.01
|
Hi,
same prob on my machine, can't update to 1101, downgraded to 1011 <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
|
A problem in FWH11.01
|
It is possible to make so :
oBar:aControls[nnn]:lBarBtn:=.F.
|
A problem in FWH11.01
|
Natter,
thank you very much, it works with: [code=fw:ry6kmqru]<div class="fw" id="{CB}" style="font-family: monospace;">AEval<span style="color: #000000;">(</span> oBar:<span style="color: #000000;">aControls</span>, <span style="color: #000000;">{</span> | oBtn | oBtn:<span style="color: #000000;">lBarBtn</span> := .F. <span style="color: #000000;">}</span> <span style="color: #000000;">)</span></div>[/code:ry6kmqru]
But I don't want the border around each button, so it would be nice if 'lBarBtn := [color=#0000FF:ry6kmqru].T.[/color:ry6kmqru]' is functional again in the future <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
|
A problem in FWH11.01
|
hi, dont work for me... the background of buttons is not same of buttonbar, maybe i should use alpha channel bitmap, but in changelog of fwh1101 dont say this.
|
A problem in FWH11.01
|
Please see this posting of Mr. Antonio.
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=20880">viewtopic.php?f=3&t=20880</a><!-- l -->
This is implemented in fwh11.1 which has this side effect.
I removed the comments for the time being till Mr. Antonio finds a better fix.
|
A problem in FWH11.01
|
Just tested 11.01 and can confirm that i have the same problem - even if i remove the comments Antonio recently put in.
Any updates on how to fix this?
Best regards,
Pete
|
A problem in FWH11.01
|
2 weeks and no solution, only back to fwh1011??? whats is happend?? no fix, no path, no new release.
|
A problem in FWH11.01
|
Bumped up for Daniel
|
A problem in FWH11.01
|
Hello
line 1176
[code=fw:2h0h7osy]<div class="fw" id="{CB}" style="font-family: monospace;">hOldFont = SelectObject<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> ::<span style="color: #000000;">lBarBtn</span>, ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">oFont</span>:<span style="color: #000000;">hFont</span>, ::<span style="color: #000000;">oFont</span>:<span style="color: #000000;">hFont</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span></div>[/code:2h0h7osy]
change to
[code=fw:2h0h7osy]<div class="fw" id="{CB}" style="font-family: monospace;">hOldFont = SelectObject<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> ::<span style="color: #000000;">lBarBtn</span>, <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">oFont</span> != <span style="color: #00C800;">nil</span>, ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">oFont</span>:<span style="color: #000000;">hFont</span>, ::<span style="color: #000000;">oFont</span>:<span style="color: #000000;">hFont</span> <span style="color: #000000;">)</span>, ::<span style="color: #000000;">oFont</span>:<span style="color: #000000;">hFont</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span></div>[/code:2h0h7osy]
already fixed
|
A problem in FWH11.01
|
[quote="Daniel Garcia-Gil":3ouvepth]Hello
line 1176
[code=fw:3ouvepth]<div class="fw" id="{CB}" style="font-family: monospace;">hOldFont = SelectObject<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> ::<span style="color: #000000;">lBarBtn</span>, ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">oFont</span>:<span style="color: #000000;">hFont</span>, ::<span style="color: #000000;">oFont</span>:<span style="color: #000000;">hFont</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span></div>[/code:3ouvepth]
change to
[code=fw:3ouvepth]<div class="fw" id="{CB}" style="font-family: monospace;">hOldFont = SelectObject<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> ::<span style="color: #000000;">lBarBtn</span>, <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">oFont</span> != <span style="color: #00C800;">nil</span>, ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">oFont</span>:<span style="color: #000000;">hFont</span>, ::<span style="color: #000000;">oFont</span>:<span style="color: #000000;">hFont</span> <span style="color: #000000;">)</span>, ::<span style="color: #000000;">oFont</span>:<span style="color: #000000;">hFont</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span></div>[/code:3ouvepth]
already fixed[/quote:3ouvepth]
Daniel ,
Cual es la liberia que contiene este modulo, se puede retirar un colocar el corregido para corregir la libreria , como se hace.
Gracias
|
A problem in FWH11.01
|
Ruben...
BTNBMP....
|
A problem in TAB handling
|
In the following sample, try to hit TAB on the keyboard: the focus doesn't go to the button:
[code=fw:1sqmutn4]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">LOCAL</span> oDlg, oBrw<br /><br /> USE CUSTOMER<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">800</span>, <span style="color: #000000;">600</span><br /><br /> @ <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #0000ff;">LISTBOX</span> oBrw FIELDS;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">400</span>, <span style="color: #000000;">200</span><br /><br /> @ <span style="color: #000000;">250</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Chiudi"</span>;<br /> <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>;<br /> <span style="color: #0000ff;">PIXEL</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg;<br /> <span style="color: #0000ff;">CENTER</span><br /><br /> CLOSE<br /><br /> <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span></div>[/code:1sqmutn4]
EMG
|
A problem in TAB handling
|
Enrico,
These changes are required in window.prg:
[code=fw:5rhyyu6f]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> GoNextCtrl<span style="color: #000000;">(</span> hCtrl <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TWindow<br /><br /> <span style="color: #00C800;">local</span> hCtlNext, nAt<br /><br /> <span style="color: #00C800;">if</span> Upper<span style="color: #000000;">(</span> ::<span style="color: #000000;">ClassName</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> != <span style="color: #ff0000;">"TDIALOG"</span> .or. GetClassName<span style="color: #000000;">(</span> hCtrl <span style="color: #000000;">)</span> $ <span style="color: #ff0000;">"TWBROWSE"</span><br /> nAt = AScan<span style="color: #000000;">(</span> ::<span style="color: #000000;">aControls</span>, <span style="color: #000000;">{</span> | o | o:<span style="color: #000000;">hWnd</span> == hCtrl <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> nAt != <span style="color: #000000;">0</span><br /> nAt = <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> nAt < Len<span style="color: #000000;">(</span> ::<span style="color: #000000;">aControls</span> <span style="color: #000000;">)</span>, nAt + <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">while</span> ! lAnd<span style="color: #000000;">(</span> GetWindowLong<span style="color: #000000;">(</span> ::<span style="color: #000000;">aControls</span><span style="color: #000000;">[</span> nAt <span style="color: #000000;">]</span>:<span style="color: #000000;">hWnd</span>, GWL_STYLE <span style="color: #000000;">)</span>, WS_TABSTOP <span style="color: #000000;">)</span><br /> nAt = <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> nAt < Len<span style="color: #000000;">(</span> ::<span style="color: #000000;">aControls</span> <span style="color: #000000;">)</span>, nAt + <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> end<br /> SetFocus<span style="color: #000000;">(</span> ::<span style="color: #000000;">aControls</span><span style="color: #000000;">[</span> nAt <span style="color: #000000;">]</span>:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">endif</span><br /><br /> <span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">(</span> ::<span style="color: #000000;">aControls</span> <span style="color: #000000;">)</span> .and. hCtrl == ::<span style="color: #000000;">LastActiveCtrl</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #000000;">hWnd</span><br /> <span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">(</span> ::<span style="color: #000000;">oWnd</span> <span style="color: #000000;">)</span> .and. ;<br /> <span style="color: #000000;">(</span> <span style="color: #000000;">(</span> Upper<span style="color: #000000;">(</span> ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">ClassName</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> $ <span style="color: #ff0000;">"TFOLDER;TPAGES;TFOLDEREX"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> hCtlNext = NextDlgTab<span style="color: #000000;">(</span> ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">hWnd</span>, ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">hCtlFocus</span> = hCtrl<br /> SetFocus<span style="color: #000000;">(</span> hCtlNext <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">else</span><br /> SendKey<span style="color: #000000;">(</span> VK_TAB <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:5rhyyu6f]
|
A problem in TAB handling
|
Antonio,
It is included in current revised FWH build?.
|
A problem in TAB handling
|
John,
Not yet. We are pending to know the users, that reported problems, tests results
|
A problem in TAB handling
|
Great.
Please, indicate when it´s ready.
Thank you.
|
A problem in TAB handling
|
My sample is working now but the problem seems wider:
[code=fw:em8efr0g]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">LOCAL</span> oDlg, oBrw<br /><br /> USE CUSTOMER<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">800</span>, <span style="color: #000000;">600</span><br /><br /> @ <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #0000ff;">LISTBOX</span> oBrw FIELDS;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">400</span>, <span style="color: #000000;">200</span><br /><br /> @ <span style="color: #000000;">250</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">BTNBMP</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Chiudi"</span>;<br /> <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>;<br /> <span style="color: #0000ff;">PIXEL</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg;<br /> <span style="color: #0000ff;">CENTER</span><br /><br /> CLOSE<br /><br /> <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span></div>[/code:em8efr0g]
EMG
|
A problem in TAB handling
|
I have tested with new code, but not functioning! The TAB steps outside from the TFOLDEX and the dialog from TFOLDEX becomes never the focus. It seems also, when a combobox is in the dialog, the TAB stops and the app hangs. (sendkey()??)
|
A problem in TAB handling
|
Ok, it seems clear why the hangs that Günther reports: If the user has pressed a Tab and we send another tab, then we go into a loop and the app hangs...
So, for now, this seems to be the code to use. Please test it and report your results, thanks! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
[code=fw:10anqkad]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> GoNextCtrl<span style="color: #000000;">(</span> hCtrl <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TWindow<br /><br /> <span style="color: #00C800;">local</span> hCtlNext, nAt<br /> <br /> <span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">(</span> ::<span style="color: #000000;">aControls</span> <span style="color: #000000;">)</span> .and. hCtrl == ::<span style="color: #000000;">LastActiveCtrl</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #000000;">hWnd</span> .and. ;<br /> ! Empty<span style="color: #000000;">(</span> ::<span style="color: #000000;">oWnd</span> <span style="color: #000000;">)</span> .and. <span style="color: #000000;">(</span> <span style="color: #000000;">(</span> Upper<span style="color: #000000;">(</span> ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">ClassName</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> $ <span style="color: #ff0000;">"TFOLDER;TPAGES;TFOLDEREX"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> hCtlNext = NextDlgTab<span style="color: #000000;">(</span> ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">hWnd</span>, ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">hCtlFocus</span> = hCtrl<br /> SetFocus<span style="color: #000000;">(</span> hCtlNext <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">else</span><br /> nAt = AScan<span style="color: #000000;">(</span> ::<span style="color: #000000;">aControls</span>, <span style="color: #000000;">{</span> | o | o:<span style="color: #000000;">hWnd</span> == hCtrl <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> nAt != <span style="color: #000000;">0</span><br /> nAt = <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> nAt < Len<span style="color: #000000;">(</span> ::<span style="color: #000000;">aControls</span> <span style="color: #000000;">)</span>, nAt + <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">while</span> ! lAnd<span style="color: #000000;">(</span> GetWindowLong<span style="color: #000000;">(</span> ::<span style="color: #000000;">aControls</span><span style="color: #000000;">[</span> nAt <span style="color: #000000;">]</span>:<span style="color: #000000;">hWnd</span>, GWL_STYLE <span style="color: #000000;">)</span>, WS_TABSTOP <span style="color: #000000;">)</span><br /> nAt = <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> nAt < Len<span style="color: #000000;">(</span> ::<span style="color: #000000;">aControls</span> <span style="color: #000000;">)</span>, nAt + <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> end<br /> SetFocus<span style="color: #000000;">(</span> ::<span style="color: #000000;">aControls</span><span style="color: #000000;">[</span> nAt <span style="color: #000000;">]</span>:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:10anqkad]
|
A problem in TAB handling
|
Antonio, now is functioning, but the TAB-order from the controls not in all cases are as in the RC defined and the dotted rectangle is not shown on the first stop at listbox,etc.. GoPrevCtrl() is OK. You should go back to 11/9 for this methods for the moment!?
Another point in Class TWindow:
I have adapted the method SayRect() similar to method Say(). Can you add this?
[code=fw:222qr691]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> SayRect<span style="color: #000000;">(</span> nRow, nCol, cText, nClrFore, nClrBack, nWidth, oFont, lTransparent, nAlign, nHeight <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TWindow<br /><br /> <span style="color: #00C800;">DEFAULT</span> nClrFore := ::<span style="color: #000000;">nClrText</span>,;<br /> nClrBack := ::<span style="color: #000000;">nClrPane</span>,;<br /> oFont := ::<span style="color: #000000;">oFont</span>,;<br /> lTransparent := .t.,;<br /> nWidth := <span style="color: #000000;">200</span>,;<br /> nHeight := <span style="color: #000000;">20</span><br /><br /> <span style="color: #00C800;">if</span> ValType<span style="color: #000000;">(</span> nClrFore <span style="color: #000000;">)</span> == <span style="color: #ff0000;">"C"</span> <span style="color: #B900B9;">// xBase Color string</span><br /> nClrBack = nClrFore<br /> nClrFore = nGetForeRGB<span style="color: #000000;">(</span> nClrFore <span style="color: #000000;">)</span><br /> nClrBack = nGetBackRGB<span style="color: #000000;">(</span> nClrBack <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /> ::<span style="color: #000000;">GetDC</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> nAlign := GetTextAlign<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span> <span style="color: #000000;">)</span><br /> nHeight := <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> oFont != <span style="color: #00C800;">nil</span>, oFont:<span style="color: #000000;">nHeight*</span><span style="color: #000000;">1.5</span>, nHeight <span style="color: #000000;">)</span><br /><br /> WSayRect<span style="color: #000000;">(</span> ::<span style="color: #000000;">hWnd</span>, ::<span style="color: #000000;">hDC</span>, nRow, nCol, cText, nClrFore, nClrBack, nWidth, ;<br /> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> oFont != <span style="color: #00C800;">nil</span>, oFont:<span style="color: #000000;">hFont</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span>, lTransparent, nAlign, nHeight <span style="color: #000000;">)</span><br /><br /> ::<span style="color: #000000;">ReleaseDC</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />*/<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> WSAYRECT <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> HWND hWnd = <span style="color: #000000;">(</span> HWND <span style="color: #000000;">)</span> hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>;<br /> HDC hDC = <span style="color: #000000;">(</span> HDC <span style="color: #000000;">)</span> hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span>;<br /> WORD wRow = hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">3</span> <span style="color: #000000;">)</span>;<br /> WORD wCol = hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">4</span> <span style="color: #000000;">)</span>;<br /> LPSTR szText = <span style="color: #000000;">(</span> LPSTR <span style="color: #000000;">)</span> hb_parc<span style="color: #000000;">(</span> <span style="color: #000000;">5</span> <span style="color: #000000;">)</span>;<br /> COLORREF clrFore = <span style="color: #000000;">(</span> hb_pcount<span style="color: #000000;">(</span><span style="color: #000000;">)</span> > <span style="color: #000000;">5</span> <span style="color: #000000;">)</span> ? hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">6</span> <span style="color: #000000;">)</span>: <span style="color: #000000;">0</span>;<br /> COLORREF clrBack = <span style="color: #000000;">(</span> hb_pcount<span style="color: #000000;">(</span><span style="color: #000000;">)</span> > <span style="color: #000000;">6</span> <span style="color: #000000;">)</span> ? hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">7</span> <span style="color: #000000;">)</span>: <span style="color: #000000;">RGB</span><span style="color: #000000;">(</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">)</span>;<br /> WORD wRectLen = hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">8</span> <span style="color: #000000;">)</span>;<br /> HFONT hFont = <span style="color: #000000;">(</span> HFONT <span style="color: #000000;">)</span> hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">9</span> <span style="color: #000000;">)</span>;<br /> BOOL bTransparent = hb_parl<span style="color: #000000;">(</span> <span style="color: #000000;">10</span> <span style="color: #000000;">)</span>;<br /> UINT uiAlign = hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">11</span> <span style="color: #000000;">)</span>, uiOldAlign;<br /> WORD wRectHight = hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">12</span> <span style="color: #000000;">)</span>;<br /> HFONT hOldFont;<br /> BOOL bDestroyDC = <span style="color: #00C800;">FALSE</span>;<br /> RECT rct;<br /> #ifdef UNICODE<br /> LPWSTR pW;<br /> #endif<br /> COLORREF clrForeOld, clrBackOld;<br /><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> ! hDC <span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</span><br /> bDestroyDC = <span style="color: #00C800;">TRUE</span>;<br /> hDC = GetDC<span style="color: #000000;">(</span> hWnd <span style="color: #000000;">)</span>;<br /> <span style="color: #000000;">}</span><br /><br /> SetTextColor<span style="color: #000000;">(</span> hDC, clrFore <span style="color: #000000;">)</span>;<br /> SetBkColor<span style="color: #000000;">(</span> hDC, clrBack <span style="color: #000000;">)</span>;<br /><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> bTransparent <span style="color: #000000;">)</span><br /> SetBkMode<span style="color: #000000;">(</span> hDC, TRANSPARENT <span style="color: #000000;">)</span>;<br /> <span style="color: #00C800;">else</span><br /> SetBkMode<span style="color: #000000;">(</span> hDC, OPAQUE <span style="color: #000000;">)</span>;<br /><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> hFont <span style="color: #000000;">)</span><br /> hOldFont = <span style="color: #000000;">(</span> HFONT <span style="color: #000000;">)</span> SelectObject<span style="color: #000000;">(</span> hDC, hFont <span style="color: #000000;">)</span>;<br /><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> uiAlign <span style="color: #000000;">)</span><br /> uiOldAlign = SetTextAlign<span style="color: #000000;">(</span> hDC, uiAlign <span style="color: #000000;">)</span>;<br /><br /> rct.top = wRow;<br /> rct.bottom = rct.top + wRectHight;<br /> rct.<span style="color: #0000ff;">left</span> = wCol;<br /> rct.<span style="color: #0000ff;">right</span> = rct.<span style="color: #0000ff;">left</span> + wRectLen;<br /><br /> #ifndef UNICODE<br /> DrawText<span style="color: #000000;">(</span> hDC, szText, lstrlen<span style="color: #000000;">(</span> szText <span style="color: #000000;">)</span>, &rct, DT_WORDBREAK<span style="color: #000000;">)</span>;<br /> #else<br /> pW = AnsiToWide<span style="color: #000000;">(</span> szText <span style="color: #000000;">)</span>;<br /> DrawText<span style="color: #000000;">(</span> hDC, pW, <span style="color: #0000ff;">strlen</span><span style="color: #000000;">(</span> szText <span style="color: #000000;">)</span>, &rct, DT_WORDBREAK<span style="color: #000000;">)</span>;<br /> _xfree<span style="color: #000000;">(</span> pW <span style="color: #000000;">)</span>;<br /> #endif<br /><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> uiAlign <span style="color: #000000;">)</span><br /> SetTextAlign<span style="color: #000000;">(</span> hDC, uiOldAlign <span style="color: #000000;">)</span>;<br /><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> hFont <span style="color: #000000;">)</span><br /> SelectObject<span style="color: #000000;">(</span> hDC, hOldFont <span style="color: #000000;">)</span>;<br /><br /> SetTextColor<span style="color: #000000;">(</span> hDC, clrForeOld <span style="color: #000000;">)</span>;<br /> SetBkColor<span style="color: #000000;">(</span> hDC, clrBackOld <span style="color: #000000;">)</span>;<br /><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> bDestroyDC <span style="color: #000000;">)</span><br /> ReleaseDC<span style="color: #000000;">(</span> hWnd, hDC <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span></div>[/code:222qr691]
|
A problem in TAB handling
|
Antonio, he preparado un video
[url:13yhpo09]http://www.donboscocorp.com/carlos/falla2.rar[/url:13yhpo09]
he modificado el metodo segun tu indicacion
[code=fw:13yhpo09]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">METHOD</span> GoNextCtrl<span style="color: #000000;">(</span> hCtrl <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TWindow<br /> <span style="color: #00C800;">local</span> hCtlNext, nAt<br /><br /> ???ProcName<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">if</span> !Empty<span style="color: #000000;">(</span> ::<span style="color: #000000;">aControls</span> <span style="color: #000000;">)</span> .and. hCtrl == ::<span style="color: #000000;">LastActiveCtrl</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #000000;">hWnd</span> .and. ;<br /> !Empty<span style="color: #000000;">(</span> ::<span style="color: #000000;">oWnd</span> <span style="color: #000000;">)</span> .and. <span style="color: #000000;">(</span> <span style="color: #000000;">(</span> Upper<span style="color: #000000;">(</span> ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">ClassName</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> $ <span style="color: #ff0000;">"TFOLDER;TPAGES;TFOLDEREX"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> hCtlNext := NextDlgTab<span style="color: #000000;">(</span> ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">hWnd</span>, ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">)</span><br /> ???<span style="color: #000000;">1</span>, hCtrl<br /> ::<span style="color: #000000;">hCtlFocus</span> := hCtrl<br /> SetFocus<span style="color: #000000;">(</span> hCtlNext <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ELSE</span><br /><br /> nAt := AScan<span style="color: #000000;">(</span> ::<span style="color: #000000;">aControls</span>, <span style="color: #000000;">{</span> | o | o:<span style="color: #000000;">hWnd</span> == hCtrl <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> ???<span style="color: #ff0000;">"2->"</span>, Len<span style="color: #000000;">(</span> ::<span style="color: #000000;">aControls</span> <span style="color: #000000;">)</span>, hCtrl, nAt<br /> <span style="color: #00C800;">if</span> nAt != <span style="color: #000000;">0</span><br /> nAt := <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> nAt < Len<span style="color: #000000;">(</span> ::<span style="color: #000000;">aControls</span> <span style="color: #000000;">)</span>, nAt + <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">while</span> ! lAnd<span style="color: #000000;">(</span> GetWindowLong<span style="color: #000000;">(</span> ::<span style="color: #000000;">aControls</span><span style="color: #000000;">[</span> nAt <span style="color: #000000;">]</span>:<span style="color: #000000;">hWnd</span>, GWL_STYLE <span style="color: #000000;">)</span>, WS_TABSTOP <span style="color: #000000;">)</span><br /> nAt = <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> nAt < Len<span style="color: #000000;">(</span> ::<span style="color: #000000;">aControls</span> <span style="color: #000000;">)</span>, nAt + <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> end<br /> ???<span style="color: #ff0000;">"entro"</span>, nAt, ::<span style="color: #000000;">aControls</span><span style="color: #000000;">[</span> nAt <span style="color: #000000;">]</span>:<span style="color: #000000;">hWnd</span><br /> SetFocus<span style="color: #000000;">(</span> ::<span style="color: #000000;">aControls</span><span style="color: #000000;">[</span> nAt <span style="color: #000000;">]</span>:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:13yhpo09]
he agregado unas lineas para poder depurar y ver como se disparan las acciones,
eh aqui mis observaciones:
[quote:13yhpo09]
*cuando estamos en un dialogo sencillo, todo funciona muy bien.
al pasar de un get a otro se dispara el evento gonextctrl una sola vez cada salto.
*cuanto estamos en un dialogo, el salto entre get y get dispara dos veces el metodo gonexctrl.
*en el caso del checkbox observa que con enter no funciona el salto al siguiente control.
*al llegar al ultimo get, y presionar enter el proximo control a tomar foco serian unos botones (son tres consecutivos ya que los get que tiene cada boton estan desabilitatos)
[/quote:13yhpo09]
|
A problem in TAB handling
|
[url:35elqhxy]http://www.donboscocorp.com/carlos/falla.rar[/url:35elqhxy]
video actualizado.
salu2
|
A problem in TAB handling
|
Carlos,
En vez de usar ?? ó MsgInfo(), usa LogFile( cFileName, { Valores, ... } ) para hacer el seguimiento, pues si usas un medio que altere el foco esta afectando al comportamiento por defecto.
|
A problem in TAB handling
|
ok Antonio, lo hare y te comento los resultados.
aunque ??? es un comando preprocesado para usar la funcion OutputDebugString
no tengo claro si este tipo de depuración afecta el foco o algo asi <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
[code=fw:3oml3tn5]<div class="fw" id="{CB}" style="font-family: monospace;"><br />#xcommand ???<xData> <span style="color: #000000;">[</span>, <xDataN> <span style="color: #000000;">]</span> => KDSDebug<span style="color: #000000;">(</span> <xData> <span style="color: #000000;">)</span> ;<br /> <span style="color: #000000;">[</span>; KDSDebug<span style="color: #000000;">(</span> <xDataN><span style="color: #000000;">)</span> <span style="color: #000000;">]</span><br /><br /><span style="color: #00C800;">FUNCTION</span> KDSDebug<span style="color: #000000;">(</span> xVal, lReturn <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">DEFAULT</span> lReturn := <span style="color: #00C800;">FALSE</span><br /><br /> OutPutDebugStringC<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Depuración: "</span> + CStr<span style="color: #000000;">(</span> xVal <span style="color: #000000;">)</span> + IIf<span style="color: #000000;">(</span> lReturn, FINL, <span style="color: #ff0000;">""</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbapi.h"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbapiitm.h"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbapierr.h"</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"windows.h"</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> OUTPUTDEBUGSTRINGC <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> PHB_ITEM szMsg = hb_param<span style="color: #000000;">(</span> <span style="color: #000000;">1</span>, HB_IT_STRING <span style="color: #000000;">)</span>;<br /><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> szMsg != <span style="color: #00C800;">NULL</span> <span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</span><br /> OutputDebugStringA<span style="color: #000000;">(</span> hb_itemGetC<span style="color: #000000;">(</span> szMsg <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>;<br /> OutputDebugStringA<span style="color: #000000;">(</span> <span style="color: #ff0000;">"<span style="color: #000000;">\n</span>"</span> <span style="color: #000000;">)</span>;<br /> <span style="color: #000000;">}</span><br /> hb_retc<span style="color: #000000;">(</span> <span style="color: #ff0000;">""</span> <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP<br /> </div>[/code:3oml3tn5]
|
A problem in TAB handling
|
Any news?
EMG
|
A problem in TAB handling
|
I ask also!?? Any news? The last changes are not so good!
|
A problem in TAB handling
|
This is the most recent code. please test with it, thanks:
[code=fw:1ofhn8vv]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> GoNextCtrl<span style="color: #000000;">(</span> hCtrl <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TWindow<br /><br /> <span style="color: #00C800;">local</span> hCtlNext, nAt<br /> <br /> <span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">(</span> ::<span style="color: #000000;">aControls</span> <span style="color: #000000;">)</span> .and. hCtrl == ::<span style="color: #000000;">LastActiveCtrl</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #000000;">hWnd</span> .and. ;<br /> ! Empty<span style="color: #000000;">(</span> ::<span style="color: #000000;">oWnd</span> <span style="color: #000000;">)</span> .and. <span style="color: #000000;">(</span> <span style="color: #000000;">(</span> Upper<span style="color: #000000;">(</span> ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">ClassName</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> $ <span style="color: #ff0000;">"TFOLDER;TPAGES;TFOLDEREX"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> hCtlNext = NextDlgTab<span style="color: #000000;">(</span> ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">hWnd</span>, ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">hCtlFocus</span> = hCtrl<br /> SetFocus<span style="color: #000000;">(</span> hCtlNext <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">else</span><br /> nAt = AScan<span style="color: #000000;">(</span> ::<span style="color: #000000;">aControls</span>, <span style="color: #000000;">{</span> | o | o:<span style="color: #000000;">hWnd</span> == hCtrl <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> nAt != <span style="color: #000000;">0</span><br /> nAt = <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> nAt < Len<span style="color: #000000;">(</span> ::<span style="color: #000000;">aControls</span> <span style="color: #000000;">)</span>, nAt + <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">while</span> ! lAnd<span style="color: #000000;">(</span> GetWindowLong<span style="color: #000000;">(</span> ::<span style="color: #000000;">aControls</span><span style="color: #000000;">[</span> nAt <span style="color: #000000;">]</span>:<span style="color: #000000;">hWnd</span>, GWL_STYLE <span style="color: #000000;">)</span>, WS_TABSTOP <span style="color: #000000;">)</span> .or. ;<br /> ! IsWindowEnabled<span style="color: #000000;">(</span> ::<span style="color: #000000;">aControls</span><span style="color: #000000;">[</span> nAt <span style="color: #000000;">]</span>:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">)</span><br /> nAt = <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> nAt < Len<span style="color: #000000;">(</span> ::<span style="color: #000000;">aControls</span> <span style="color: #000000;">)</span>, nAt + <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> end<br /> SetFocus<span style="color: #000000;">(</span> ::<span style="color: #000000;">aControls</span><span style="color: #000000;">[</span> nAt <span style="color: #000000;">]</span>:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:1ofhn8vv]
|
A problem in TAB handling
|
The only remaining problem that we found is when the first control is a combobox, in this case this seems to be a valid workaround until we find a better solution:
[code=fw:1suaks3x]<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;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oDlg, oCbx, cValue := <span style="color: #ff0000;">"One"</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg<br /> <br /> @ <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> <span style="color: #0000ff;">COMBOBOX</span> oCbx <span style="color: #0000ff;">VAR</span> cValue <span style="color: #0000ff;">ITEMS</span> <span style="color: #000000;">{</span> <span style="color: #ff0000;">"One"</span>, <span style="color: #ff0000;">"Two"</span>, <span style="color: #ff0000;">"Three"</span> <span style="color: #000000;">}</span><br /> <br /> @ <span style="color: #000000;">3</span>, <span style="color: #000000;">2</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"OK"</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> ;<br /> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">(</span> ATail<span style="color: #000000;">(</span> oDlg:<span style="color: #000000;">aControls</span> <span style="color: #000000;">)</span>:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, SysRefresh<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, SendKey<span style="color: #000000;">(</span> VK_TAB <span style="color: #000000;">)</span>, .F. <span style="color: #000000;">)</span> <br /> <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:1suaks3x]
|
A problem in TAB handling
|
<!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( -->
|
A problem in Vista
|
Marco:
My pc has windows 7 premium and I have not problems at all with index files.
regards
|
A problem in Vista
|
A very strange problem in a PC with Vista installed.
After an Invoice creation:
- I return to main Menu (there is a CLOSE DATABASE instruction)
- I select "Invoce"
- a list of all invoices appears but the newly created invoice does not appear
If I Exit from application and re-run it IF I select "Invoice" now the Invoice is visible.
Any ideas
Is there any known problem concerning Vista?
marco
|
A problem in Vista
|
Marco,
Is the index not open either when the invoice is added or when the invoice list is displayed?
James
|
A problem in Vista
|
James,
Yes of course
marco
|
A problem in Vista
|
Is the database filtered anywhere? Perhaps it the filter is still in effect when you go to look for the invoice and exiting and rerunning it shows the list without the filter. Or, maybe you have a conditional index?
I doubt that this only occurs under Vista. I suspect it is something in your code.
Regards,
James
|
A problem in Vista
|
No filter.
No conditional index.
Probably it it could happen in other situations but not in XP pro, Windows Server and Windows 7
Thank you James
marco
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.