topic
stringlengths 1
63
| text
stringlengths 1
577k
⌀ |
---|---|
A converter from text-file ( with delimiters ) to DBF ?
|
Antonio,could you please show how we could automatically check how often the delimiter is present?Thanks in advanceOttoPS: O.T. I use so many times for checking if a variable is emptythis code:if len(ALLTRIM(cText) = 0Is there a build in function existing?
|
A converter from text-file ( with delimiters ) to DBF ?
|
Otto,Use StrCharCount( cText, cChar ). Its also implemented in C code so it is very fast. Example:[code:bol2xibg]
#include "FiveWin.ch"
function Main()
local cText := "C813354668;1063567698;0160 / 1853735;E+;NX;07.07.08;18:58:11;01732644433;VF;;00:28;0;0,0823;0,0000;NX"
local n, cResult := "", nTimes := StrCharCount( cText, ";" ) + 1
for n = 1 to nTimes
cResult += StrToken( cText, n, ";" ) + CRLF
next
MsgInfo( cResult )
return nil
[/code:bol2xibg]
|
A converter from text-file ( with delimiters ) to DBF ?
|
[quote="Antonio Linares":37vkogfj]Otto,
Use StrCharCount( cText, cChar ). ...[/quote:37vkogfj]Antonio, Can cChar length be bigger than 1? For example StrCharCount(cText, CRLF) TIA
|
A converter from text-file ( with delimiters ) to DBF ?
|
Otto,[quote:2jj86d5x]PS: O.T. I use so many times for checking if a variable is empty
this code:
if len(ALLTRIM(cText) = 0
Is there a build in function existing?[/quote:2jj86d5x]Maybe you can use this? [code:2jj86d5x]if empty(cText)
...[/code:2jj86d5x]
|
A converter from text-file ( with delimiters ) to DBF ?
|
Hua,No, just one char.But you could use StrTran() to replace CRLFs into ";" or similar
|
A converter from text-file ( with delimiters ) to DBF ?
|
Thank you very much erverybody for his help.With the informations, i can solve the problem and helpthe customer today.Best RegrdsUwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
A converter from text-file ( with delimiters ) to DBF ?
|
Hello,once again, thank you very much for the help.With your solutions, everything is solved and works perfect now.My customer is happy.RegardsUwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
A converter from text-file ( with delimiters ) to DBF ?
|
Hello,i got a customer response :This month, he had to convert : 181000 Textlines / 12,3 MBWith the old functions before, the used converting-timewas round about => 8 Minutes.With the new functions ( on a Intel Pentium 4 ),i used the very nice sample from nageswaragunupudi,very fast, only 1.4 Seconds.Great !!!RegardsUwe
|
A converter from text-file ( with delimiters ) to DBF ?
|
good nas!!
|
A converter from text-file ( with delimiters ) to DBF ?
|
Hi Otto> "PS: O.T. I use so many times for checking if a variable is emptythis code:if len(ALLTRIM(cText) = 0Is there a build in function existing?"The following should work:[code:3ldzg9dm]IF Empty( cText )[/code:3ldzg9dm]Also covers other data typesRegardsxProgrammer
|
A converter from text-file ( with delimiters ) to DBF ?
|
Uwe,If you avoid the use of the AEval(), I would say that you can get a better time <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->But if the customer is happy with it, then leave it as it is <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
A converter from text-file ( with delimiters ) to DBF ?
|
Mr Uwe>This month, he had to convert : 181000 Textlines / 12,3 MB With the old functions before, the used converting-time was round about => 8 Minutes. With the new functions ( on a Intel Pentium 4 ), i used the very nice sample from nageswaragunupudi, very fast, only 1.4 Seconds.>Glad the sample was useful to you. But I am surprised at the speed you mentioned. As I arleady said while posting the sample, it was not optimised for speed. I meant it to demonstrate that what you wanted could be done. According my tests here 40,000 rows took more than 2 seconds. 180,000 rows might have taken more time, unless you removed the field width checking loop. Anyway glad that the customer is happy with the speeds.The program has 3 main steps.1. Parsing the data2. Checking for maximum field widths3. Writing DBF.Step 1 takes the least time. Can be optimized further but the benefits will not be perceptible and optimization excercise would only be of academic interest.Step 2 and 3 are the real time killers.If we know in advance the safe maximum field lengths of each field, then I would totally avoid steps 1 and 2. I would straight away copy from buffer to buffer in a C routine, building an image of DBF file and DBF header and written in raw mode using fcreate and fwrite. That would really be the fastest way.I may post the alternative purely for academic interest.Mr Antonio>>If you avoid the use of the AEval(), I would say that you can get a better time>> Is it so? I have been all the time under the impression that AEval would be a bit faster than For Next loop with index variable being maitained at Harbour level. Is for..next loop really faster than AEval ? Thanks in advance for clarification on this issue.
|
A converter from text-file ( with delimiters ) to DBF ?
|
hello mr. nageswaragunupudi,i got these informations after a phonecall with my customer.For my tests, i could only use 1000 textlines ( a part of the file ).The complete, converted textfile contains all phonecalls of 1 month.I will ask him again tomorrow, to count the running time exactly.As well, i will double the testfile a few times, to get many lines.I do the test on my 2 different computers and stop the time there.The result ( the exact time with 2 var-defines start and end )My 1. computer :-------------------Intel PentiumD 820 Dual Core2,8 GHz / 800 Mhz FSBFor 100 000 Textlines the exact running-time was 4,2 Seconds ---------------------------------------------------------------------------The original structure has shown 1 empty line between two textlines.That means, there have been 50 000 converted lines and 50 000 emty lines in relation to the running time.I am not shure, if the processor of my custumer is much faster.My time seems to be more realistic.but even 4.2 seconds is a very good time.Greetings from GermanyUwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
A converter from text-file ( with delimiters ) to DBF ?
|
[quote="Antonio Linares":3llkv0c3]
No, just one char.
But you could use StrTran() to replace CRLFs into ";" or similar[/quote:3llkv0c3]Thanks for the idea Antonio. I've been using the following to achieve the same purpose. Maybe it's not as optimized as StrCharCount() because of the do..while loop.[code:3llkv0c3]function CountCrLf(cStr)
local num := 1, nret := 0
// Desc: Count the no. of occurences of CRLF (Each line is terminated with a CRLF)
// AtNum() is a function from ct.lib.
do while atnum(CRLF, cStr, num++) != 0
nRet++
enddo
return nRet
[/code:3llkv0c3]
|
A converter from text-file ( with delimiters ) to DBF ?
|
Hua,StrCharCount() is implemented in C, which means "machine code" generation. No "virtual machine" intervention at all.
|
A converter from text-file ( with delimiters ) to DBF ?
|
Dear Rao,A simple test:[code:25r22fl7]
#include "FiveWin.ch"
function Main()
local a := Array( 1000000 ), n
local nStep1 := GetTickCount(), nStep2, nStep3
AEval( a, { || Date() } )
nStep2 = GetTickCount()
for n = 1 to 1000000
Date()
next
nStep3 = GetTickCount()
MsgInfo( "AEval() ..." + Str( nStep2 - nStep1 ) + CRLF + ;
"for next ... " + Str( nStep3 - nStep2 ) )
return nil
[/code:25r22fl7]The technical explanation is that to evaluate a codeblock a new "virtual machine" frame has to be built (increase and decrease of the stack). Using a for next just keeps using the same virtual machine frame. The calling to Date() from both, also forces a new virtual machine frame, but it is common for both ways.
|
A converter from text-file ( with delimiters ) to DBF ?
|
BTW, lets compare with the above example Harbour and xHarbour speed:1. Harbour: AEval ... 421 for next ... 2652. xHarbour: AEval ... 749 for next ... 483So Uwe, your application built using Harbour will be even faster <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
A converter from text-file ( with delimiters ) to DBF ?
|
Antonio,Wow, this is disappointing--two functions tested and both much slower with xHarbour. I would have guessed that they were both almost the same speed.Any ideas why this is?It also makes you wonder if two out of two was just a coincindence, or is xHarbour much slower overall?James
|
A converter from text-file ( with delimiters ) to DBF ?
|
Mr Antonio>he technical explanation is that to evaluate a codeblock a new "virtual machine" frame has to be built (increase and decrease of the stack). Using a for next just keeps using the same virtual machine frame. The calling to Date() from both, also forces a new virtual machine frame, but it is common for both ways.>Thanks for the clarification. I shall keep this in mind while coding in future. However much I am aware of this, I wonder why does it not strike my mind when I am writing my code.>your application built using Harbour will be even faster>I am really surprised to see the benchmarks. To be honest let me confess that I have been under the "impression" that xHarbour is faster than harbour, mainly going by the claims in the xharbour website. I never checked by myself. I wouldn't be surprised if many of my professional colleagues share similar opinion, rightly or wrongly. While i am not interested in initiating a debate on this issue, I realise that we better do our own benchmarks and then decide by ourselves.
|
A converter from text-file ( with delimiters ) to DBF ?
|
According to Przemek (current Harbour tech leader), Harbour is much faster than xHarbour, mainly because it is better implemented internally.Less people working on it and better internal organization (no rush to implement features) resulted in a faster virtual machine execution and smaller EXEs.Curiously enough, though we are technical people, most of you consider xHarbour as a faster compiler. Just "hype" caused by the "marketing" and "flock follow" (aka "lamb") effect... <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
A coupe of little changes for TMdiFrame and TMdiChild
|
TMdiFrame:
1) It seems that the correct default colors for an MDI frame window are
[code:1kktky64]nClrFore := GetSysColor( COLOR_WINDOWTEXT ), nClrBack := GetSysColor( COLOR_APPWORKSPACE ),;[/code:1kktky64]
instead of the current
[code:1kktky64]nClrFore := CLR_BLACK, nClrBack := GetSysColor( COLOR_WINDOW ),;[/code:1kktky64]
2) We get a better look of the window icon if
[code:1kktky64]SendMessage( ::hWnd, WM_SETICON, 0, oIcon:hIcon )[/code:1kktky64]
is commented out.
TMdiChild:
1) As for TMdiFrame, it is better to comment out
[code:1kktky64]::SendMsg( WM_SETICON, 0, oIcon:hIcon )[/code:1kktky64]
EMG
|
A coupe of little changes for TMdiFrame and TMdiChild
|
Enrico,
Implemented,
many thanks!
|
A coupe of little changes for TMdiFrame and TMdiChild
|
Thank you!
EMG
|
A different Explorerbar-sample
|
Hello,
I finished my new Explorerbar-solution ( changed from Folder-selections, I did before )
Maybe it might be interesting to show, how a Explorerbar can be used as well.
After many Tests and calculations, I got my final Result with a complete overview
of possible Settings and Selections.
No exit-buttons are needed in a Sub-dialog. A click on any Symbol inside the Explorerbar closes the
activated Dialog and opens the new one. The Explorer-bar-position ( righthand side ) is calculated from
the screensize, to work on other screen-resolutions as well.
A combination of vertical and horizontal Selections is included, also it shows different Gradients used in one Panel.
In case someone needs more Informations, I can explain in details how to do it.
I still have to wait for the next FWH-release, to finish the new TFolderEx-Tool.
After that, You can test by Yourself how it works.
[img:37foqkko]http://www.pflegeplus.com/pictures/fldsample1.jpg[/img:37foqkko]
Best Regards
Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
A different Explorerbar-sample
|
Nice Job. =]
|
A different Explorerbar-sample
|
With some calculations, it works also in Horizontal-direction :
[img:2432ox4e]http://www.pflegeplus.com/pictures/fldsample2.jpg[/img:2432ox4e]
Best Regards
Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
A different payment
|
On a Xbrowse I have some fields ( Qta,Desc,Price,Importe)
I did this table for a restaurant application.
Now let me tell you what is my problem
When customers pay the bill they may want to pay "alla romana" ie everyone who is sitting on the same table can only pay for the products he has personally taken.
I can not find a way to do this
That is, if the total account is 45 euros and the customers are 8 I have to pay to each one only the products he has consumed
How can this be done?
|
A different payment
|
Just a Idea :
You have the Xbrowse wich will have all articles that are served on the table.
I would think of adding into the dialog besides the xbrowse as many buttons as that the customer alow to pay pro table (In Belgium often this is not allowed <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: --> )
Of cource, you can also just use one button !
So assume 8 people, you have 8 small buttons. You select the articles from the browse and hit button-1 for person 1
You do this with all persons until all items on the browse are selected. Since you have 8 buttons, it is easy to select again a item if it was cunsumed by someone else.
Afther all is selected, you print one large bill, divided into 8 smaller onces for eacht person to pay.
I hope you understand the idea...
|
A different payment
|
the problem is also I cannot use check on the xbrowse because I making a Touch Ecr and the final user not use mouse and keyboard
|
A different payment
|
Silvio:
An other idea, You must take the orders by table and person, for example
18-1 table 18 person 1 Chicken 50.00
18-2 table 18 person 2 only coffe 10.00
Total per table 60.00
With this, in xbrows you can make a tree and get the total by person and
by table.
Regards
|
A different payment
|
[quote="Silvio.Falconi":hj2ykd7u]the problem is also I cannot use check on the xbrowse because I making a Touch Ecr and the final user not use mouse and keyboard[/quote:hj2ykd7u]
Never used touchscreen, but can't you select items in the browse with a fingertip and than hit a button with a finger ? No Mouse/keyboard is needed then.
The problem is that you don't know in front if the table is going to split into person by person bill, so you need to seperate the list when they ask the bill.
Is the Touch Ecr a hardware handheld like a Ipad or so ?
|
A different payment
|
Who use touch ECR, user or customer?
- if user,
you can
1 you must have split button for split the item 1 by 1 (if any more quantity than 1)
2 select the item to pay ( add check column in xbrowse ), you will know the total.
3 let the user to press pay button and settle only they select.
- if customer
1 you must post item by item, in case of separated bill.
2,3 the same as above
Hope it help.
|
A different payment
|
Ecr is user from final user
this a first beta release !!
[img:3lunwwrb]https://s10.postimg.org/k8xzno34p/jpg.jpg[/img:3lunwwrb]
|
A different payment
|
This is my POS screen. You can see what's function you should have.
[size=150:1y9h1aa9]1.Items function[/size:1y9h1aa9]
- split items for which quantity more than 1.
[img:1y9h1aa9]https://preview.ibb.co/m4Rg2a/Items.png[/img:1y9h1aa9]
[size=150:1y9h1aa9]2.Table function[/size:1y9h1aa9]
- split bill (separated bill) and then you can move the item from 1st bill to 2nd bill.
[img:1y9h1aa9]https://preview.ibb.co/hFGg2a/Table.png[/img:1y9h1aa9]
I hope it help.
|
A different payment
|
I'm thinking to create another dialog with two xbrowse
1. with all products
2 empty
on the middle button ==> and <== to insert products from first xbtowse to second
when I insert a product the procedure must erase the product on first xbrowse ( if not have a quantity >1) or change the quantity of the product
on bottom the total price and the possibility to create on print the ticket
|
A different payment
|
Perhaps I found a method but also not run ok
[img:b2ik036s]https://s1.postimg.org/oaraq2onj/CONTISEPARATI.jpg[/img:b2ik036s]
I create two xbrowse :
on first I insert the ticket and on the second I put an empty array
If I use the mouse the drag and drop run ok
If I press the two button I insert on the middle of the dialog ( I draw with red circles)
the procedure make error not allways but sometimes and I not found why
where is the error ?
here the code of these buttons
[code=fw:b2ik036s]<div class="fw" id="{CB}" style="font-family: monospace;"> @ <span style="color: #000000;">50</span>,<span style="color: #000000;">245</span> <span style="color: #0000ff;">BTNBMP</span> aBtnDropBrw<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">OF</span> oDlgDivide <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">30</span>, <span style="color: #000000;">30</span> <span style="color: #0000ff;">PIXEL</span> Filename <span style="color: #ff0000;">".<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\d</span>ropin.bmp"</span> NOBORDER ;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> AAdd<span style="color: #000000;">(</span> oLbx2:<span style="color: #000000;">aArrayData</span>, oLbx:<span style="color: #000000;">aArrayData</span><span style="color: #000000;">[</span> oLbx:<span style="color: #000000;">nAt</span> <span style="color: #000000;">]</span> <span style="color: #000000;">)</span>, ;<br /> ADel<span style="color: #000000;">(</span> oLbx:<span style="color: #000000;">aArrayData</span>, oLbx:<span style="color: #000000;">nAt</span>, .t. <span style="color: #000000;">)</span>, ;<br /> oLbx:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span>.t.<span style="color: #000000;">)</span>, oLbx2:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span>.t.<span style="color: #000000;">)</span>,;<br /> oLbx:<span style="color: #000000;">setfocus</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> ,SetTotals<span style="color: #000000;">(</span>oLbx,oLbx2,oDlgDivide,aVars,aVars2<span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /><br /><br /><br /> @ <span style="color: #000000;">90</span>,<span style="color: #000000;">245</span> <span style="color: #0000ff;">BTNBMP</span> aBtnDropBrw<span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">OF</span> oDlgDivide <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">30</span>, <span style="color: #000000;">30</span> <span style="color: #0000ff;">PIXEL</span> Filename <span style="color: #ff0000;">".<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\d</span>ropout.bmp"</span> NOBORDER ;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> AAdd<span style="color: #000000;">(</span> oLbx:<span style="color: #000000;">aArrayData</span>, oLbx2:<span style="color: #000000;">aArrayData</span><span style="color: #000000;">[</span> oLbx2:<span style="color: #000000;">nAt</span> <span style="color: #000000;">]</span> <span style="color: #000000;">)</span>, ;<br /> ADel<span style="color: #000000;">(</span> oLbx2:<span style="color: #000000;">aArrayData</span>, oLbx2:<span style="color: #000000;">nAt</span>, .t. <span style="color: #000000;">)</span>, ;<br /> oLbx:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span>.t.<span style="color: #000000;">)</span>, oLbx2:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span>.t.<span style="color: #000000;">)</span>,;<br /> oLbx2:<span style="color: #000000;">setfocus</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>,SetTotals<span style="color: #000000;">(</span>oLbx,oLbx2,oDlgDivide,aVars,aVars2<span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /> </div>[/code:b2ik036s]
|
A easy way to do incremental seek on numeric fields ?
|
Hello,
In a old program of mine, there is a index on
numeric Customer-Numbers ( CDX ).
The index is => Index on STR(number)
index on LTRIM(STR(number)) doesn't work.
When you do a seek on this field ( N 5 0 )
as a sample you seek < 5 > you have to do - - - - 5
4 blanks + "5"
Must i write a function for this ?
Regards
Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
A easy way to do incremental seek on numeric fields ?
|
Uwe
Index on numeric work fine
index on number to ....
and then seek 5 or whatever else
no problem with it, i have many numeric indexs in my app
Richard
|
A easy way to do incremental seek on numeric fields ?
|
Uwe,
[quote:2t9sdoeu]index on LTRIM(STR(number)) doesn't work.[/quote:2t9sdoeu]
this is normal because all index keys need to be of constant same length.
Moreover it's a bad design to use numeric fields for indexing.
They are better used for numeric operation / calculation.
If you can't avoid it i'd take 'strzero( nVal, nLen, nDec )' for indexing and searching.
Regards,
Detlef
|
A easy way to do incremental seek on numeric fields ?
|
Detlef Thank you,
Yes it is a very old application and
to much work to change it.
I will try Strzero
Regards
Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
A expertos en FWH+xHarbour+TMySql
|
Hola amigos:
Estoy comenzando con TMySql. Agradezco lo que voy avanzando a mis colegas del foro, especialmente a Gabo, Willi y William, quienes me han apoyado para comenzar.
He logrado presentar una tabla utilizando FWH+xHarbour+TMySql con TxBrowse. Sin embargo (hasta hoy) noto un extraño comportamiento de xBrowse. Si se usa las flechas arriba y sobrepasa Bof(), xBrowse borra de pantalla el primer registro. Lo mismo si se usa la barra Scrol Vertical. Dejo, aquí, el codigo autocontenido, por si desean probarlo y ayudarme a depurarlo. En todos mis programas anteriores nunca se presentó el inconveniente descrito.
#include "fivewin.ch"
#include "xBrowse.ch"
STATIC oCon
//----------------------------------
FUNCTION main()
MSGRun( "Conectando a server-sql, espere...", "SOFTWARE", ;
{|| oCon := TMYsqlServer():new( "localhost", "root", "xxx", 3306)} )
IF oCon:lError
MsgStop( "Error: No se estableció conexión, verifique y reintente...","Alto" )
RETURN NIL
ENDIF
IF !oCon:DBExist( "tutor" )
MSGRun( "Creando Base de Datos, aguarde...",, {|| oCon:CreateDataBase( "tutor")} )
ENDIF
oCon:SelectDB( "tutor" )
IF oCon:lError
MsgStop( "No se pudo seleccionar la Base de Datos...","alto" )
RETURN NIL
ENDIF
MisTablSql() //Crear tablas
oCon:end()
RETURN NIL
//---------------------
Function MisTablSql()
LOCAL cCmdSql, cQuery, oDatos, oDlg
local oBrw, oCol, n:=0
if oCon:TableExist( "usuarios" )
oCon:DeleteTable("usuarios")
endif
cCmdSql:= "CREATE TABLE IF NOT EXISTS usuarios (" +;
"CLAVE VARCHAR(10) NOT NULL COMMENT 'Clave'," +;
"NOMBRE VARCHAR(30) NOT NULL COMMENT 'Nombre'," +;
"PRIMARY KEY (CLAVE))" +;
"ENGINE = InnoDB COMMENT 'usuarios';"
oCon:Query(cCmdSql)
cCmdSql := "INSERT INTO USUARIOS (NOMBRE,CLAVE) VALUES('Francisco','002');"
oCon:Query( cCmdSql )
cCmdSql := "INSERT INTO USUARIOS (NOMBRE,CLAVE) VALUES('Roberto','001');"
oCon:Query( cCmdSql )
cCmdSql := "INSERT INTO USUARIOS (NOMBRE,CLAVE) VALUES('Alejandro','003');"
oCon:Query( cCmdSql )
**cQuery:= "SELECT clave, nombre FROM usuarios" //* FROM usuarios ORDER BY clave LIMIT 100"
cQuery:= "SELECT * FROM usuarios ORDER BY clave"
oDatos:= oCon:Query( cQuery )
oDatos:GoTop()
DEFINE DIALOG oDlg FROM 2,2 TO 20,60 ;
TITLE "CLIENTES (FWH + xHARBOUR + TMySQL)"
oBrw := TXBrowse():New( oDlg )
SetMyBrwSql(oBrw, oDatos)
oBrw:nMarqueeStyle := MARQSTYLE_HIGHLROW
oBrw:nColDividerStyle := LINESTYLE_BLACK
oBrw:nRowDividerStyle := LINESTYLE_BLACK
oBrw:lColDividerComplete := .t.
oBrw:bClrStd := {|| IF( (oDatos:Recno()%2)==0, ;
{ CLR_BLACK, RGB(250,240,188)},{CLR_BLACK,RGB(254,252,237)} ) }
oCol := oBrw:AddCol()
oCol:bStrData := { || oDatos:clave }
oCol:cHeader := "Clave "
oCol:nWidth := 40
oCol := oBrw:AddCol()
oCol:bStrData := { || oDatos:nombre }
oCol:cHeader := "Nombre "
oCol:nWidth := 100
oBrw:CreateFromCode()
oDlg:oClient := oBrw
ACTIVATE DIALOG oDlg CENTER
Return nil
//---------------------------------
FUNCTION SetMyBrwSql( oBrw,oTable )
oBrw:bGoTop := { || oTable:Gotop() }
oBrw:bGoBottom := { || oTable:GoBottom() }
oBrw:bSkip := { |n| oTable:Skip(n) }
oBrw:bBof := { || oTable:Bof() }
oBrw:bEof := { || oTable:Eof() }
oBrw:bBookMark := { | n | if( n == nil, oTable:RecNo(),oTable:GoTo(n) ) }
oBrw:bKeyNo := oBrw:bBookMark
oBrw:bKeyCount := { || oTable:LastRec() }
oBrw:oDbf := oTable
if oBrw:oVScroll() != nil
oBrw:oVscroll():SetRange( 1,oTable:Lastrec() )
endif
oBrw:Refresh()
RETURN NIL
Agradezco de antemano cualquier comentario.
Saludos
|
A expertos en FWH+xHarbour+TMySql
|
Francisco
Buenas tardes, ¿podrías ayudarme a establecer la conexión al MySql?, e probado con las versiones:
FW 6.12+ BCC551+xH 0.99.71
FW 6.12+ BCC551+xH 1.2.1
FW 11.01+ BCC582+xH 1.2.1
FW 13.01+ BCC582+xH 1.2.3
y NADA !!.
Gracias
Luis
|
A expertos en FWH+xHarbour+TMySql
|
Luis,
Aquí tienes este codigo ejemplo para empezar. Cualquier duda, solo pregunta en este foro y obtendrás toda la ayuda que necesites.
Utilizo TMySql y mi version FHW1204.
[code=fw:ssmqmr3r]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">Static</span> oServer<br /><br /><span style="color: #B900B9;">//----------------</span><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> cHost, cUser, cPass, nPort, cNomBDD<br /><br /><span style="color: #B900B9;">//CONECCION CON SERVIDOR</span><br />cHost := <span style="color: #ff0000;">"localhost"</span> <span style="color: #B900B9;">// "127.0.0.1" //en modo local, ó "19x.16x.0.17" //IP servidor </span><br />cUser := <span style="color: #ff0000;">"Luis"</span> <span style="color: #B900B9;">// usuario</span><br />cPass := <span style="color: #ff0000;">"tupassword"</span> <span style="color: #B900B9;">// password</span><br />nPort := <span style="color: #ff0000;">"3306"</span> <span style="color: #B900B9;">// puerto para MySql</span><br />cNomBDD := <span style="color: #ff0000;">"tubasedatos"</span> <span style="color: #B900B9;">//Nombre base de datos</span><br /><br /><span style="color: #00C800;">if</span> !IsInternet<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"No se puede establecer coneccion remota."</span>+CRLF+;<br /> <span style="color: #ff0000;">"No se tiene acceso a Internet."</span>,<span style="color: #ff0000;">"Advertencia"</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">if</span> !Coneccion<span style="color: #000000;">(</span>cHost, cUser, cPass, nPort, cNomBDD<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: #B900B9;">//FIN CONECCION CON SERVIDOR</span><br /><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MAXIMIZED</span> <br /> ......<br /> ...... <br /> oServer:<span style="color: #000000;">End</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;">//CONECTAR CON SERVIDOR MYSQL Y CREAR BASE DE DATOS Y TABLAS</span><br /><span style="color: #B900B9;">//----------------------------------</span><br /><span style="color: #00C800;">Function</span> Coneccion<span style="color: #000000;">(</span>cHost, cUser, cPass, nPort, cNomBDD<span style="color: #000000;">)</span><br /><span style="color: #00C800;">local</span> cCmdSql<br /><br />MsgRun<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Conectando con servidor. Aguarde..."</span>, <span style="color: #ff0000;">"FAPSOFTWARE"</span>, ;<br /> <span style="color: #000000;">{</span>|| oServer := TMYsqlServer<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">new</span><span style="color: #000000;">(</span> cHost, cUser, cPass, nPort<span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">if</span> oServer:<span style="color: #000000;">lError</span><br /> MsgStop<span style="color: #000000;">(</span>oServer:<span style="color: #000000;">Error</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">//Descrip en MySql.prg</span><br /> <span style="color: #00C800;">Return</span> .f.<br /><span style="color: #00C800;">endif</span><br /><br /><br /><span style="color: #B900B9;">//CREAR BASE DE DATOS SI NO EXISTE</span><br />oServer:<span style="color: #000000;">Query</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"CREATE DATABASE IF NOT EXISTS "</span> + cNomBDD <span style="color: #000000;">)</span> <br /><br /><span style="color: #00C800;">if</span> oServer:<span style="color: #000000;">lError</span><br /> MsgStop<span style="color: #000000;">(</span> <span style="color: #ff0000;">"No se pudo crear la Base de Datos "</span>+cNomBDD,<span style="color: #ff0000;">"Alto"</span> <span style="color: #000000;">)</span><br /> oServer:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> .f.<br /><span style="color: #00C800;">endif</span><br /><br /><br /><span style="color: #B900B9;">//SELECCIONAR LA BASE DE DATOS</span><br />oServer:<span style="color: #000000;">SelectDB</span><span style="color: #000000;">(</span> cNomBDD <span style="color: #000000;">)</span><br /><span style="color: #00C800;">if</span> oServer:<span style="color: #000000;">lError</span><br /> MsgStop<span style="color: #000000;">(</span> <span style="color: #ff0000;">"No se pudo seleccionar la Base de Datos (o no existe)."</span>+CRLF+;<br /> <span style="color: #ff0000;">"Base de Datos: "</span>+cNomBDD,<span style="color: #ff0000;">"Alto"</span> <span style="color: #000000;">)</span><br /> oServer:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> .f.<br /><span style="color: #00C800;">endif</span><br /><br /><br /><span style="color: #B900B9;">//CREAR TABLAS SI NO EXISTEN</span><br />cCmdSql:= <span style="color: #ff0000;">"CREATE TABLE IF NOT EXISTS usuarios("</span> +;<br /> <span style="color: #ff0000;">"NOMBRE VARCHAR(50) DEFAULT '' COMMENT 'Nombre del usuario',"</span> +;<br /> <span style="color: #ff0000;">"CODIGO VARCHAR(20) DEFAULT '' COMMENT 'Codigo acceso del usuario',"</span> +;<br /> <span style="color: #ff0000;">"ADMIN CHAR(1) DEFAULT '' COMMENT 'Tipo de Acceso',"</span> +;<br /> <span style="color: #ff0000;">"CONTA CHAR(1) DEFAULT '' COMMENT 'Acceso a Contab',"</span> +;<br /> <span style="color: #ff0000;">"CDIAR CHAR(1) DEFAULT '' COMMENT 'Acceso a Cdiario',"</span> +;<br /> <span style="color: #ff0000;">"RECJA CHAR(1) DEFAULT '' COMMENT 'Acceso a Rcaja tipo CD',"</span> +;<br /> <span style="color: #ff0000;">"RCAJA CHAR(1) DEFAULT '' COMMENT 'Acceso a RecibosC',"</span> +;<br /> <span style="color: #ff0000;">"DEPOS CHAR(1) DEFAULT '' COMMENT 'Acceso a Depositos',"</span> +;<br /> <span style="color: #ff0000;">"CHEQU CHAR(1) DEFAULT '' COMMENT 'Acceso a Cheques',"</span> +;<br /> <span style="color: #ff0000;">"NOTDC CHAR(1) DEFAULT '' COMMENT 'Acceso a Notas de Contab',"</span> +;<br /> <span style="color: #ff0000;">"FACTU CHAR(1) DEFAULT '' COMMENT 'Acceso a Facturas' )"</span> +;<br /> <span style="color: #ff0000;">"ENGINE = InnoDB COMMENT 'usuarios';"</span><br /><br />oServer:<span style="color: #000000;">Query</span><span style="color: #000000;">(</span>cCmdSql<span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">if</span> oServer:<span style="color: #000000;">lError</span><br /> MsgStop<span style="color: #000000;">(</span>oServer:<span style="color: #000000;">Error</span><span style="color: #000000;">)</span><br /> MsgStop<span style="color: #000000;">(</span> <span style="color: #ff0000;">"No se pudo crear la tabla USUARIOS, verifique."</span> <span style="color: #000000;">)</span><br /> oServer:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> .f.<br /><span style="color: #00C800;">endif</span><br /><br /><span style="color: #B900B9;">//LAS DEMAS TABLAS...</span><br />...<br />...<br /><br /><span style="color: #00C800;">Return</span> .t.<br /><br /> </div>[/code:ssmqmr3r]
Saludos.
|
A expertos en FWH+xHarbour+TMySql
|
GRACIAS !!!
Voy a probarlo
|
A expertos en FWH+xHarbour+TMySql
|
Francisco,
Revisa samples\adoxb.prg y la clase TDataROw.
En los foros de inglés tienes ejemplos de ambos.
Es un aproach mucho más sencillo y con menos código.
Un saludo
|
A expertos en FWH+xHarbour+TMySql
|
Francisco
Ya compila pero no conecta, sale este mensaje, desde el YOG si conecta con los mismos datos, te adjunto la pantalla, creo que el problema mas que en el programa es en la configuración.
[img:3cpoqt50]http://s2.subirimagenes.com/privadas/previo/thump_2104584error-conexion-mysql.jpg[/img:3cpoqt50]
De repente falta alguna libreria. etc.
Te agradezco de antemano.
[quote="ltorres":3cpoqt50]GRACIAS !!!
Voy a probarlo[/quote:3cpoqt50]
|
A expertos en FWH+xHarbour+TMySql
|
Luis,
Podés poner una imagen mas grande?
Saludos.
|
A expertos en FWH+xHarbour+TMySql
|
para que conectes con MYSQL, debes de tener junto a tu App.exe la
librería: LIBMYSQL.DLL
saludos
|
A expertos en FWH+xHarbour+TMySql
|
Disculpen, por error coloque el enlace al preview, aquí esta la imagen de la configuración de mi prueba de conexión.
[url:2e6do0c0]http://www.subirimagenes.com/privadas-errorconexionmysql-2105003.html[/url:2e6do0c0]
[url=http://www.subirimagenes.com/privadas-errorconexionmysql-2105003.html:2e6do0c0][img:2e6do0c0]http://s2.subirimagenes.com/privadas/previo/thump_2105003error-conexion-mysql.jpg[/img:2e6do0c0][/url:2e6do0c0]
Espero me puedan ayudar.
Gracias
Luis
|
A expertos en FWH+xHarbour+TMySql
|
Probá deshabilitando el firewall de windows. O configuralo para que permita a MySql.
Postea aqui tu codigo para que todos lo podamos revisar y asi obtienes ayuda general del foro. (postea un codigo que podamos compilarlo facilmente)
Saludos.
|
A expertos en FWH+xHarbour+TMySql
|
Francisco
Estoy usando el que me pusiste como ejemplo, solo ese, compila bien pero no conecta, con el utilitario YOG ingreso a la BD normal.
[code=fw:xj2s88lx]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">Static</span> oServer<br /><br /><span style="color: #B900B9;">//----------------</span><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> cHost, cUser, cPass, nPort, cNomBDD<br /><br /><span style="color: #B900B9;">//CONECCION CON SERVIDOR</span><br />cHost := <span style="color: #ff0000;">'192.168.100.188'</span> <span style="color: #B900B9;">// "127.0.0.1" //en modo local, ó "19x.16x.0.17" //IP servidor </span><br />cUser := <span style="color: #ff0000;">'root'</span> <span style="color: #B900B9;">// usuario</span><br />cPass := <span style="color: #ff0000;">'mipass'</span> <span style="color: #B900B9;">// password</span><br />nPort := <span style="color: #000000;">3306</span> <span style="color: #B900B9;">// puerto para MySql</span><br />cNomBDD := <span style="color: #ff0000;">'mibd'</span> <span style="color: #B900B9;">//Nombre base de datos</span><br /><br /><span style="color: #00C800;">if</span> !IsInternet<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"No se puede establecer coneccion remota."</span>+CRLF+;<br /> <span style="color: #ff0000;">"No se tiene acceso a Internet."</span>,<span style="color: #ff0000;">"Advertencia"</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">if</span> !Coneccion<span style="color: #000000;">(</span>cHost, cUser, cPass, nPort, cNomBDD<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: #B900B9;">//FIN CONECCION CON SERVIDOR</span><br /><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MAXIMIZED</span> <br /> <span style="color: #B900B9;">//......</span><br /> <span style="color: #B900B9;">//...... </span><br /> oServer:<span style="color: #000000;">End</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;">//CONECTAR CON SERVIDOR MYSQL Y CREAR BASE DE DATOS Y TABLAS</span><br /><span style="color: #B900B9;">//----------------------------------</span><br /><span style="color: #00C800;">Function</span> Coneccion<span style="color: #000000;">(</span>cHost, cUser, cPass, nPort, cNomBDD<span style="color: #000000;">)</span><br /><span style="color: #00C800;">local</span> cCmdSql<br /><br />MsgRun<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Conectando con servidor. Aguarde..."</span>, <span style="color: #ff0000;">"FAPSOFTWARE"</span>, ;<br /> <span style="color: #000000;">{</span>|| oServer := TMYsqlServer<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">new</span><span style="color: #000000;">(</span> cHost, cUser, cPass, nPort<span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> <br /><span style="color: #B900B9;">//cConString1:="MySQL="+lower(ALLTRIM(cConnName)) + ";" + "UID="+lower(ALLTRIM(cConnUsrs))+ ";"+"pwd="+lower(ALLTRIM(cConnPass))+ ";" +"dtb="+alltrim(LOWER(cConnBase))+";PRT=3306" </span><br /> <br /> nCon1 := SR_AddConnection<span style="color: #000000;">(</span> CONNECT_MYSQL, cConString1 <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">if</span> oServer:<span style="color: #000000;">lError</span><br /> MsgStop<span style="color: #000000;">(</span>oServer:<span style="color: #000000;">Error</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">//Descrip en MySql.prg</span><br /> <span style="color: #00C800;">Return</span> .f.<br /><span style="color: #00C800;">endif</span><br /><br /><br /><span style="color: #B900B9;">//CREAR BASE DE DATOS SI NO EXISTE</span><br />oServer:<span style="color: #000000;">Query</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"CREATE DATABASE IF NOT EXISTS "</span> + cNomBDD <span style="color: #000000;">)</span> <br /><br /><span style="color: #00C800;">if</span> oServer:<span style="color: #000000;">lError</span><br /> MsgStop<span style="color: #000000;">(</span> <span style="color: #ff0000;">"No se pudo crear la Base de Datos "</span>+cNomBDD,<span style="color: #ff0000;">"Alto"</span> <span style="color: #000000;">)</span><br /> oServer:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> .f.<br /><span style="color: #00C800;">endif</span><br /><br /><br /><span style="color: #B900B9;">//SELECCIONAR LA BASE DE DATOS</span><br />oServer:<span style="color: #000000;">SelectDB</span><span style="color: #000000;">(</span> cNomBDD <span style="color: #000000;">)</span><br /><span style="color: #00C800;">if</span> oServer:<span style="color: #000000;">lError</span><br /> MsgStop<span style="color: #000000;">(</span> <span style="color: #ff0000;">"No se pudo seleccionar la Base de Datos (o no existe)."</span>+CRLF+;<br /> <span style="color: #ff0000;">"Base de Datos: "</span>+cNomBDD,<span style="color: #ff0000;">"Alto"</span> <span style="color: #000000;">)</span><br /> oServer:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> .f.<br /><span style="color: #00C800;">endif</span><br /><br /><br /><span style="color: #B900B9;">//CREAR TABLAS SI NO EXISTEN</span><br />cCmdSql:= <span style="color: #ff0000;">"CREATE TABLE IF NOT EXISTS usuarios("</span> +;<br /> <span style="color: #ff0000;">"NOMBRE VARCHAR(50) DEFAULT '' COMMENT 'Nombre del usuario',"</span> +;<br /> <span style="color: #ff0000;">"CODIGO VARCHAR(20) DEFAULT '' COMMENT 'Codigo acceso del usuario',"</span> +;<br /> <span style="color: #ff0000;">"ADMIN CHAR(1) DEFAULT '' COMMENT 'Tipo de Acceso',"</span> +;<br /> <span style="color: #ff0000;">"CONTA CHAR(1) DEFAULT '' COMMENT 'Acceso a Contab',"</span> +;<br /> <span style="color: #ff0000;">"CDIAR CHAR(1) DEFAULT '' COMMENT 'Acceso a Cdiario',"</span> +;<br /> <span style="color: #ff0000;">"RECJA CHAR(1) DEFAULT '' COMMENT 'Acceso a Rcaja tipo CD',"</span> +;<br /> <span style="color: #ff0000;">"RCAJA CHAR(1) DEFAULT '' COMMENT 'Acceso a RecibosC',"</span> +;<br /> <span style="color: #ff0000;">"DEPOS CHAR(1) DEFAULT '' COMMENT 'Acceso a Depositos',"</span> +;<br /> <span style="color: #ff0000;">"CHEQU CHAR(1) DEFAULT '' COMMENT 'Acceso a Cheques',"</span> +;<br /> <span style="color: #ff0000;">"NOTDC CHAR(1) DEFAULT '' COMMENT 'Acceso a Notas de Contab',"</span> +;<br /> <span style="color: #ff0000;">"FACTU CHAR(1) DEFAULT '' COMMENT 'Acceso a Facturas' )"</span> +;<br /> <span style="color: #ff0000;">"ENGINE = InnoDB COMMENT 'usuarios';"</span><br /><br />oServer:<span style="color: #000000;">Query</span><span style="color: #000000;">(</span>cCmdSql<span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">if</span> oServer:<span style="color: #000000;">lError</span><br /> MsgStop<span style="color: #000000;">(</span>oServer:<span style="color: #000000;">Error</span><span style="color: #000000;">)</span><br /> MsgStop<span style="color: #000000;">(</span> <span style="color: #ff0000;">"No se pudo crear la tabla USUARIOS, verifique."</span> <span style="color: #000000;">)</span><br /> oServer:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> .f.<br /><span style="color: #00C800;">endif</span><br /><br /><span style="color: #B900B9;">//LAS DEMAS TABLAS...</span><br /><span style="color: #B900B9;">//...</span><br /><span style="color: #B900B9;">//...</span><br /><br /><span style="color: #00C800;">Return</span> .t.<br /> <br /> </div>[/code:xj2s88lx]
Gracias
Luis
|
A expertos en FWH+xHarbour+TMySql
|
Una pregunta que versión de mysql estas usando ????
|
A expertos en FWH+xHarbour+TMySql
|
Ante todo gracias Hector, el MySql es 5.5
|
A expertos en FWH+xHarbour+TMySql
|
Luis
Root tiene permiso en el mysql para acceder desde cualquier lugar,
|
A expertos en FWH+xHarbour+TMySql
|
y otra pregunta, tal vez sea tonta, que password estas usando? , porque en el ejemplo dejastes el indicativo pero al instalar el server debes haber colocado otro o instalastes el servidor con ese.
|
A expertos en FWH+xHarbour+TMySql
|
Hector
Tengo el SQLYog y el MySql WorkBench, con ambos logro ingresar tanto a mi PC, como al servidor. Aún creo que el error es en la configuración del xDevStudio, alguna libreria o incompatibilidad entre ellas debe estar causando este problema, he probado con:
FW 6.12+ BCC551+xH 0.99.71
FW 6.12+ BCC551+xH 1.2.1
FW 11.01+ BCC582+xH 1.2.1
FW 13.01+ BCC582+xH 1.2.3
Agradezco de antemano tu ayuda.
Luis
|
A expertos en FWH+xHarbour+TMySql
|
Estimados
Tal vez enviándome la imagen de su configuración podría copiarla y ver como adaptarme a la misma, yo tengo xDevStudio, xEdit, Verce, xMate.... ustedes dirán.
Gracias
Luis
|
A expertos en FWH+xHarbour+TMySql
|
Luis
Yo trabaje con la Tmysql al principio con la versión 3.3 de mysql y nunca tuve ningún problema, luego cuando pase a mysql 5.xx me pase a la tdolphin y es la que uso, que tiene en una parte una forma muy similar a la tmysql por eso me resulto muy practica y ademas tienes a su creador en el foro con una intensa participación, por eso te recomendaría que pruebes con esta librería, que a mí en particular me permite hacer todo lo que necesito.
Saludos
|
A expertos en FWH+xHarbour+TMySql
|
Luis,
Tengo dos sistemas (Contabilidad, y facturacion) desarrollados con TMySql y no tengo (hasta el momento) ningún problema. El codigo que te posteé es el mismo que uso en ambos.
Prueba lo siguiente, por favor:
1 - Crea, con el SqlYog, un nuevo usuario ej: "Luis", con el password "Luis"
2 - Le das todos los privilegios sin exepcion: GRANT/REVOKE privileges (asegurate de esto) (Select ALL)
3 - Asegurate de poner estos mismos valores en el main.prg: cUser := "Luis", cPass:="Luis"
4 - Prueba y me dices.
Te digo esto, porque hice una prueba con el user "root" y me dió el mensaje que dices, porque no tengo definido ningún usuario root.
Uso el XVerce CW v.10 Fivewin 1204 + xHarbour + TMySql
Saludos.
|
A expertos en FWH+xHarbour+TMySql
|
Francisco
Creé el nuevo usuario y nada!, sigo con la idea que es algo de la configuración de xDevStudio o incompatibilidad entre librerías, si pudieran postear como tienen distribuidas sus librerías en este editor y que versiones son, se los agradecería.
Atentamente
Luis
|
A expertos en FWH+xHarbour+TMySql
|
Dame tu email para enviarte un ejecutable funcionando aquí.
Saludos.
|
A expertos en FWH+xHarbour+TMySql
|
Mi correo es <!-- e --><a href="mailto:ltorreslm@hotmail.com">ltorreslm@hotmail.com</a><!-- e -->
Gracias
|
A expertos en FWH+xHarbour+TMySql
|
Te he enviado ejecutable,prg y otros.
Saludos.
|
A extra Info-area at xBrowse-bottom ( footer ) ?
|
To Mr. Rao,
Mr. Rao, could it be possible to have some extra space at the bottom of the xBrowse footer-area ?
In many cases I have to add some infos of the table ( to be exported to Excel as well ).
I think it would be a useful extension.
Maybe something like used on header :
oBrw1:[color=#0000FF:1y9zbfoc]SetGroupHeader[/color:1y9zbfoc]( "Rechnungen", 1, 3 )
oBrw1:SetGroupHeader( cTitel1 + " / " + cJahrgang, 4, 7 )
but for the footer
oBrw1:[color=#BF0000:1y9zbfoc]SetGroupFooter[/color:1y9zbfoc]( "KrK = Krankenkasse", 1, 3 )
oBrw1:SetGroupFooter( "PfK = Pflegeversicherung", 4, 7 )
[i:1y9zbfoc][b:1y9zbfoc]( just a idea !!! )[/b:1y9zbfoc][/i:1y9zbfoc]
One sample of a table :
Each invoice belongs to a type like < KrK = Krankenkasse >
9 different types are possible.
The table needs to be created for the tax consultant ( he doesn't know the meaning of the different invoice-type-styles )
[img:1y9zbfoc]http://www.pflegeplus.com/IMAGES/XbrwInfo1.jpg[/img:1y9zbfoc]
best regards
Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
|
A extra Info-area at xBrowse-bottom ( footer ) ?
|
Let us keep this in TODO list.
May not be possible very soon.
|
A fastedit sample with recordset?
|
Mr. Rao:
Excuse me, do you have or where can I find a xBrowse Sample with fastedit full (ADD, DELETE, MODIFY) ?
Regards
|
A fastedit sample with recordset?
|
Simplest:
[code=fw:3jqqammc]<div class="fw" id="{CB}" style="font-family: monospace;">XBROWSER oRs FASTEDIT</div>[/code:3jqqammc]
For a more detailed sample, please see \fwh\samples\testxbr3.prg
|
A fastedit sample with recordset?
|
Mr. Rao:
Thanks a lot, I will.
Regards
|
A favor for a friend
|
Dear friends,
If you have facebook please do this favor for a good friend of mine:
1. Look for "Avenida fotógrafos" and click like it.
2. Look for this photo (in avenida fotógrafos page) and click on like it too.
My good old friend will be very happy, thanks <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
[img:1suvh4cc]https://bitbucket.org/fivetech/screenshots/downloads/hijos_wolly.jpg[/img:1suvh4cc]
|
A favor for a friend
|
Done! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
A favor for a friend
|
Thanks to all, they won <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) -->
|
A few minor glitches with GROUP RADMENU
|
Hi Antonio and fellow FiveLinuxersGROUP doesn't seem to work properly with the PIXEL option, I believe that FiveLinux.ch is not correctly translating the @ <row>, <col> GROUP command because it is not including a [ <lUpdate: UPDATE> ] to pass as <.lUpdate.> into TGroup():New() so the <.lPixel.> value is passed in the wrong position.This seems to work:[code:1ymf4qkl]#xcommand @ <nRow>, <nCol> GROUP [ <oGroup> ] ;
[ <label: LABEL, PROMPT> <cText> ] ;
[ <of: OF, WINDOW, DIALOG> <oWnd> ] ;
[ SIZE <nWidth>, <nHeight> ] ;
[ <lPixel: PIXEL> ] ;
[ <lUpdate: UPDATE> ] ;
=> ;
[ <oGroup> := ] TGroup():New( <nRow>, <nCol>,;
[<oWnd>], <cText>, <nWidth>, <nHeight>, <.lUpdate.>, <.lPixel.> )[/code:1ymf4qkl]
TRadMenu supports the PIXEL clause in the placement of the TRadio representing the first element of the array passed in to TRadMenu and correctly passes the lPixel setting to its child TRadios but the incrementation of nRow needs to be adjusted. I am using:
[code:1ymf4qkl] IF lPixel
nRow += 30
ELSE
nRow += 2.5
ENDIF[/code:1ymf4qkl]I am using 30 because it matches my spacing elsewhere. Maybe the vertical spacing should be a settable property of TRadMenu? Without this change the options pretty much block each other out when using the PIXEL clause.As always these could be problems of my making, or have subsequently been fixed, but they certainly were issues with FiveLinux as it was here.RegardsDoug(xProgrammer)
|
A few questions with regards to RichEdit
|
Hi guys,
These questions uses a reduced, self-contained example that'll appear way below as point of reference. Just copy it to \fwh\samples and compile and run it from there.
So here's the question:
1. When I click on [b:3cb1n1m2]File -> Edit[/b:3cb1n1m2], the dialogue box appear but the second RTF control ([i:3cb1n1m2]oEdit[/i:3cb1n1m2]) doesn't appear. Why and how to solve this?
2. If user run this program and selects [b:3cb1n1m2]File -> Exit[/b:3cb1n1m2], the program terminates normally. However, if user runs [b:3cb1n1m2]File -> Edit[/b:3cb1n1m2] prior to that, this error message appears:
[img:3cb1n1m2]http://img191.imageshack.us/img191/8034/rtf.th.jpg[/img:3cb1n1m2]
Same question, why and how to solve it?
[b:3cb1n1m2]TIA[/b:3cb1n1m2]
p.s. I think [url=http://forums.fivetechsupport.com/viewtopic.php?p=37151:3cb1n1m2]this post[/url:3cb1n1m2] is basically asking the same issue.
[code=fw:3cb1n1m2]<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;">"richedit.ch"</span><br /><br /><span style="color: #00C800;">static</span> oWnd, oRtf, cRtf, oEdit, cVar<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> o<br /> <span style="color: #00C800;">local</span> hDll := LoadLibrary<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Riched20.dll"</span> <span style="color: #000000;">)</span><br /><br /><br /> <span style="color: #0000ff;">define</span> <span style="color: #0000ff;">window</span> oWnd <span style="color: #0000ff;">menu</span> oMenu<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #0000ff;">color</span> <span style="color: #ff0000;">"w/b"</span><br /><br /> cRtf := memoread<span style="color: #000000;">(</span><span style="color: #ff0000;">"fiveodbc.rtf"</span><span style="color: #000000;">)</span><br /> @ <span style="color: #000000;">10</span>, <span style="color: #000000;">20</span> RICHEDIT oRtf <span style="color: #0000ff;">VAR</span> cRtf <span style="color: #0000ff;">of</span> oWnd<br /> oRtf:<span style="color: #000000;">setReadOnly</span><span style="color: #000000;">(</span>.t.<span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">activate</span> <span style="color: #0000ff;">window</span> oWnd ;<br /> <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">init</span> adjustRtf<span style="color: #000000;">(</span><span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">maximized</span><br /><br /> freeLibrary<span style="color: #000000;">(</span>hDll<span style="color: #000000;">)</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------</span><br /><span style="color: #00C800;">function</span> adjustRtf<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #B900B9;">// position at lower-half and make full use of screen width</span><br /> <span style="color: #00C800;">local</span> nTop, nLeft, nHorRes, aRect, nHeight, nWidth<br /> nTop := <span style="color: #000000;">600</span><br /> nLeft := <span style="color: #000000;">10</span><br /> nHorRes := GetSysMetrics<span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /> aRect := GetClientRect<span style="color: #000000;">(</span>oWnd:<span style="color: #000000;">hWnd</span><span style="color: #000000;">)</span><br /> nHeight := aRect<span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span> - nTop - <span style="color: #000000;">10</span><br /> nWidth := aRect<span style="color: #000000;">[</span><span style="color: #000000;">4</span><span style="color: #000000;">]</span> - aRect<span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span> - <span style="color: #000000;">20</span><br /> oRtf:<span style="color: #0000ff;">move</span><span style="color: #000000;">(</span>nTop, nLeft, nWidth, nHeight , .t. <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------</span><br /><span style="color: #00C800;">function</span> oMenu<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">LOCAL</span> oMenu<br /><br /> <span style="color: #0000ff;">MENU</span> oMenu <span style="color: #000000;">2007</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&File "</span><br /> <span style="color: #0000ff;">MENU</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Edit"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">edit</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"E&xit"</span> <span style="color: #0000ff;">ACTION</span> oWnd:<span style="color: #000000;">end</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">ENDMENU</span><br /> <span style="color: #0000ff;">ENDMENU</span><br /><br /><span style="color: #00C800;">RETURN</span> oMenu<br /><span style="color: #B900B9;">//----------------------------------------------------------------------</span><br /><span style="color: #00C800;">function</span> <span style="color: #00C800;">edit</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> aRect := GetCoors<span style="color: #000000;">(</span>oRtf:<span style="color: #000000;">hWnd</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> oDlg<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">of</span> oWnd ;<br /> <span style="color: #0000ff;">FROM</span> aRect<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><span style="color: #000000;">-33</span>, aRect<span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span><span style="color: #000000;">-10</span> <span style="color: #0000ff;">TO</span> aRect<span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span><span style="color: #000000;">+33</span><span style="color: #000000;">+10</span>, aRect<span style="color: #000000;">[</span><span style="color: #000000;">4</span><span style="color: #000000;">]</span><span style="color: #000000;">+10</span> ;<br /> <span style="color: #0000ff;">STYLE</span> nOr<span style="color: #000000;">(</span> DS_MODALFRAME, WS_POPUP, WS_VISIBLE<span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">PIXEL</span><br /><br /> cVar := cRtf<br /> @ aRect<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span>, aRect<span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span> RICHEDIT oEdit <span style="color: #0000ff;">VAR</span> cVar <span style="color: #0000ff;">of</span> oDlg ;<br /> <span style="color: #0000ff;">SIZE</span> oRtf:<span style="color: #000000;">nWidth</span>, oRtf:<span style="color: #000000;">nHeight</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;">on</span> <span style="color: #0000ff;">init</span> <span style="color: #000000;">(</span> ;<br /> RtfBar<span style="color: #000000;">(</span>oDlg<span style="color: #000000;">)</span> ;<br /> <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------</span><br /><span style="color: #00C800;">function</span> rtfBar<span style="color: #000000;">(</span>oDlg<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> oBar, oBtns := array<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br /><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oBar <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">30</span>,<span style="color: #000000;">33</span> 3DLOOK <span style="color: #000000;">2007</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> oBtns<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\s</span>ave.bmp"</span> <span style="color: #0000ff;">OF</span> oBar ;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span>oRtf:<span style="color: #000000;">setText</span><span style="color: #000000;">(</span>cVar<span style="color: #000000;">)</span>, oDlg:<span style="color: #000000;">end</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /> TOOLTIP <span style="color: #ff0000;">"Save"</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:3cb1n1m2]
|
A few questions with regards to RichEdit
|
Antonio,
Any idea?
|
A few questions with regards to RichEdit
|
Hua,
Please try it this way:
[code=fw:vzbs98se]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"richedit.ch"</span><br /><br /><span style="color: #00C800;">static</span> oWnd, oRtf, cRtf, oEdit, cVar<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> o<br /> <span style="color: #00C800;">local</span> hDll := LoadLibrary<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Riched20.dll"</span> <span style="color: #000000;">)</span><br /><br /><br /> <span style="color: #0000ff;">define</span> <span style="color: #0000ff;">window</span> oWnd <span style="color: #0000ff;">menu</span> oMenu<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #0000ff;">color</span> <span style="color: #ff0000;">"w/b"</span><br /><br /> cRtf := memoread<span style="color: #000000;">(</span><span style="color: #ff0000;">"fiveodbc.rtf"</span><span style="color: #000000;">)</span><br /> @ <span style="color: #000000;">10</span>, <span style="color: #000000;">20</span> RICHEDIT oRtf <span style="color: #0000ff;">VAR</span> cRtf <span style="color: #0000ff;">of</span> oWnd<br /> oRtf:<span style="color: #000000;">setReadOnly</span><span style="color: #000000;">(</span>.t.<span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">activate</span> <span style="color: #0000ff;">window</span> oWnd ;<br /> <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">init</span> adjustRtf<span style="color: #000000;">(</span><span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">maximized</span><br /><br /> <span style="color: #B900B9;">// freeLibrary(hDll)</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------</span><br /><span style="color: #00C800;">function</span> adjustRtf<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #B900B9;">// position at lower-half and make full use of screen width</span><br /> <span style="color: #00C800;">local</span> nTop, nLeft, nHorRes, aRect, nHeight, nWidth<br /> nTop := <span style="color: #000000;">600</span><br /> nLeft := <span style="color: #000000;">10</span><br /> nHorRes := GetSysMetrics<span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /> aRect := GetClientRect<span style="color: #000000;">(</span>oWnd:<span style="color: #000000;">hWnd</span><span style="color: #000000;">)</span><br /> nHeight := aRect<span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span> - nTop - <span style="color: #000000;">10</span><br /> nWidth := aRect<span style="color: #000000;">[</span><span style="color: #000000;">4</span><span style="color: #000000;">]</span> - aRect<span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span> - <span style="color: #000000;">20</span><br /> oRtf:<span style="color: #0000ff;">move</span><span style="color: #000000;">(</span>nTop, nLeft, nWidth, nHeight , .t. <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------</span><br /><span style="color: #00C800;">function</span> oMenu<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">LOCAL</span> oMenu<br /><br /> <span style="color: #0000ff;">MENU</span> oMenu <span style="color: #000000;">2007</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&File "</span><br /> <span style="color: #0000ff;">MENU</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Edit"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">edit</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"E&xit"</span> <span style="color: #0000ff;">ACTION</span> oWnd:<span style="color: #000000;">end</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">ENDMENU</span><br /> <span style="color: #0000ff;">ENDMENU</span><br /><br /><span style="color: #00C800;">RETURN</span> oMenu<br /><span style="color: #B900B9;">//----------------------------------------------------------------------</span><br /><span style="color: #00C800;">function</span> <span style="color: #00C800;">edit</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> aRect := GetCoors<span style="color: #000000;">(</span>oRtf:<span style="color: #000000;">hWnd</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> oDlg, oEdit<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">of</span> oWnd ;<br /> <span style="color: #0000ff;">FROM</span> aRect<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><span style="color: #000000;">-33</span>, aRect<span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span><span style="color: #000000;">-10</span> <span style="color: #0000ff;">TO</span> aRect<span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span><span style="color: #000000;">+33</span><span style="color: #000000;">+10</span>, aRect<span style="color: #000000;">[</span><span style="color: #000000;">4</span><span style="color: #000000;">]</span><span style="color: #000000;">+10</span> ;<br /> <span style="color: #0000ff;">STYLE</span> nOr<span style="color: #000000;">(</span> DS_MODALFRAME, WS_POPUP, WS_VISIBLE<span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">PIXEL</span><br /><br /> cVar := cRtf<br /> @ <span style="color: #000000;">6</span>, <span style="color: #000000;">0</span> RICHEDIT oEdit <span style="color: #0000ff;">VAR</span> cVar <span style="color: #0000ff;">of</span> oDlg ;<br /> <span style="color: #0000ff;">SIZE</span> oRtf:<span style="color: #000000;">nWidth</span>, oRtf:<span style="color: #000000;">nHeight</span> ;<br /> <span style="color: #0000ff;">PIXEL</span><br /> <br /> oDlg:<span style="color: #000000;">oClient</span> = oEdit<br /> <br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg ;<br /> <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">init</span> <span style="color: #000000;">(</span> RtfBar<span style="color: #000000;">(</span>oDlg<span style="color: #000000;">)</span>, oDlg:<span style="color: #000000;">ReSize</span><span style="color: #000000;">(</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 /><span style="color: #B900B9;">//----------------------------------------------------------------------</span><br /><span style="color: #00C800;">function</span> rtfBar<span style="color: #000000;">(</span>oDlg<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> oBar, oBtns := array<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br /><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oBar <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">30</span>,<span style="color: #000000;">33</span> 3DLOOK <span style="color: #000000;">2007</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> oBtns<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\s</span>ave.bmp"</span> <span style="color: #0000ff;">OF</span> oBar ;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span>oRtf:<span style="color: #000000;">setText</span><span style="color: #000000;">(</span>cVar<span style="color: #000000;">)</span>, oDlg:<span style="color: #000000;">end</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /> TOOLTIP <span style="color: #ff0000;">"Save"</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> ResetOleUninit<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 /> </div>[/code:vzbs98se]
|
A few questions with regards to RichEdit
|
Thanks Antonio! The program is now working as expected and the error message after exiting the program is gone.
I don't actually understands what ResetOleUninit() is for though <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
|
A few questions with regards to RichEdit
|
Hua,
You are not using OLE there, so that change is fine <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
A few questions with regards to RichEdit
|
Mr Antonio
[quote="Antonio Linares":3uzrybgk]Hua,
You are not using OLE there, so that change is fine <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->[/quote:3uzrybgk]
Does this interfere with an application extensively using TOleAuto() in other modules ?
How about making this a static function inside TRichEdi.Prg ?
|
A few questions with regards to RichEdit
|
Dear Rao,
I have been reviewing the source code of RESETOLEUNINIT() and there is no conflict with TOleAuto() except that a call to OleUninitialize() is done.
We need to check if OleInitialize() works like a DLL (using an internal counter). If yes, there should be no conflict at all with TOleAuto().
|
A first overview of the DB-Tools ==> Vers. 8.2 f
|
Hello from Germany
I'm still busy with testing the DB-Tools, but it
is possible, to show what's going on.
It is not everything translated in english,
but i think it is possible to understand.
Excuse me, when not everything works 100 %
for the moment. It is still a lot to do.
The complete program-source will be
free for use, so you can make your own changes.
Vers. 8.2 f
Many bugs removed.
Ini-Handling
The user can define the style and colors of
diolog-headers as well he can choose his
own background or logo.
-----------------------------------------
Vers. 8.2 e
Buttons in Quickbrowse / Dialog-Mode :
New, Del/Recal, Pack corrected.
-----------------------------------------
Vers. 8.2 d
New INI-File Handling SET DATE-Format
and Write-Format : INSERT / OVERWRITE
-----------------------------------------
Vers. 8.2 c
Checking ID-Nr. in Dialogs.
Borlands RC-Editor had changed ID-Numbers
after copy from one dialog to another.
There was a error undefined ID-Nr.
----------------------------------------
Vers. 8.2 a,b
Some more translations
----------------------------------------
-----------------------------------------
[img:10joe5xu]http://www.pflegeplus.com/pictures/outlook5.jpg[/img:10joe5xu]
You can choose between 2 modes : Dialog or Outlook2003.
Create a new database.
Change database-structure with saving to different format.
Excel-Export.
Description for Module : Quickbrowse
Automatic detection of NTX / CDX
2 Browsers : 1 Listbrowse, 1 Recordbrowse
Incremental search, but with a control-field
Quick indexing, just a right click on the Col.
The index-key is shown in a control-field.
A sample of a filter, you will see i the filter-field.
The Col-color changes to red and switches to Col 1
Filter-setting. Keep all filters in a extra database.
From there you can choose a filter without new writing.
The filterdatabase as well is filterd and shows only filters
of the selected database.
You can create, delete and pack record.
Much more .....
<!-- m --><a class="postlink" href="http://www.pflegeplus.com/pictures/db_tools.zip">http://www.pflegeplus.com/pictures/db_tools.zip</a><!-- m -->
Some more ideas ?
Greetings
Uwe
|
A first overview of the DB-Tools ==> Vers. 8.2 f
|
Mr ukoenig
Very nice effort.
I started the program. Clicked the Left button on the button bar "QuickBrowse". Selected DBF file and then I got this error.
[code:2sul6u8e]
Anwendung
==========
Pfad und Name : C:\TESTS\Bin\G_tools.exe (32 bits)
Größe : 2,006,528 bytes
Zeit ab Start : 0 hours 0 mins 15 secs
Fehler aufgetreten am : 16.02.2008, 09:32:37
Fehler Beschreibung : Error FiveWin/1 Non defined Id: No: 10
Stack Aufrufe
===========
Aufruf von : CONTROL.PRG => TCONTROL:INITIATE(0)
Aufruf von : BUTTON.PRG => TBUTTON:INITIATE(0)
Aufruf von : => __OBJSENDMSG(0)
Aufruf von : HARBOUR.PRG => OSEND(0)
Aufruf von : HARBOUR.PRG => ASEND(0)
Aufruf von : DIALOG.PRG => TDIALOG:INITIATE(0)
Aufruf von : DIALOG.PRG => TDIALOG:HANDLEEVENT(0)
Aufruf von : => DIALOGBOX(0)
Aufruf von : DIALOG.PRG => TDIALOG:ACTIVATE(0)
Aufruf von : g_dialog.PRG => PROG_1A(179)
Aufruf von : g_Tools.PRG => (b)MAIN(76)
Aufruf von : BTNBMP.PRG => TBTNBMP:CLICK(0)
Aufruf von : BTNBMP.PRG => TBTNBMP:LBUTTONUP(0)
Aufruf von : => TWINDOW:HANDLEEVENT(0)
Aufruf von : CONTROL.PRG => TCONTROL:HANDLEEVENT(0)
Aufruf von : BTNBMP.PRG => TBTNBMP:HANDLEEVENT(0)
Aufruf von : WINDOW.PRG => _FWH(0)
Aufruf von : g_Tools.PRG => NOGPF(0)
Aufruf von : g_Tools.PRG => WINRUN(278)
Aufruf von : WINDOW.PRG => TMDIFRAME:ACTIVATE(0)
Aufruf von : g_Tools.PRG => MAIN(126)
[/code:2sul6u8e]
|
A font-problem in METRO-app ?
|
I suggest you do not directly assign fonts to each button. Instead please assign fonts to the metro panel like this:
oPanel:oBtnFont:End()
oPanel:oBtnFont := oNewFontForBtnCaption
oPanel:oTextFont:End()
oPanel:oTextFont := oNewFontForBtnText
You do not destroy your fonts because oPanel destroys these new fonts when ends.
|
A font-problem in METRO-app ?
|
Hello,
I have a problem with fonts in my METRO-aplication
[b:2vdpeft8]Fonts defined on top[/b:2vdpeft8]
[color=#008000:2vdpeft8]DEFINE FONT oFontLarge NAME "Arial" SIZE 0, -50 BOLD ITALIC
DEFINE FONT oFontTime NAME "Arial" SIZE 0, -25 BOLD ITALIC
DEFINE FONT oFontMed NAME "Arial" SIZE 0, -20 BOLD
DEFINE FONT oFontTiny NAME "Arial" SIZE 0, -15
DEFINE FONT oFontSys NAME "Arial" SIZE 0, -14
DEFINE FONT oFontText NAME "Arial" SIZE 0, -13
DEFINE FONT oFontTage NAME "Arial" SIZE 0, -11
IF nScreenW > 1600
DEFINE FONT oTileFont NAME "Arial" SIZE 0, -20 BOLD
ELSE
DEFINE FONT oTileFont NAME "Arial" SIZE 0, -16 BOLD
ENDIF[/color:2vdpeft8]
[b:2vdpeft8]released at the end[/b:2vdpeft8]
[color=#008000:2vdpeft8]oFontLarge:End() // Line 179
oFontTime:End()
oFontMed:End()
oFontTiny:End()
oFontSys:End()
oFontText:End()
oFontTage:End()
oTileFont:End() // Line 186[/color:2vdpeft8]
My 1. test NO buttons only the headline
My 2. test with 1 button
I 'm getting the following messages iside the LOG file
[color=#0000FF:2vdpeft8]From the 1. test
08.04.2016 22:55:31: EXCESS RELEASE OF FONT Arial[ hFont : 0] ( nCount : 0 )
<-TFONT:END(284) <-MAIN(179)
------------------------------------------------------------
from the 2. test
08.04.2016 22:58:34: EXCESS RELEASE OF FONT Arial[ hFont : 0] ( nCount : 0 )
<-TFONT:END(284) <-MAIN(186)
------------------------------------------------------------[/color:2vdpeft8]
adding ALL buttons the log-file looks like
08.04.2016 23:15:26: EXCESS RELEASE OF FONT Arial[ hFont : 0] ( nCount : 0 )
<-TFONT:END(284) <-TCONTROL:DESTROY(2122) <-TBTNBMP:DESTROY(912) <-TMETROBTN:DESTROY(900)
<-TWINDOW:HANDLEEVENT(0) <-TCONTROL:HANDLEEVENT(1733)
<-TMETROBTN:HANDLEEVENT(1766) <-_FWH(3278) <-WINRUN(0)
------------------------------------------------------------
08.04.2016 23:15:26: EXCESS RELEASE OF FONT Arial[ hFont : 0] ( nCount : -1 )
<-TFONT:END(284) <-TCONTROL:DESTROY(2122) <-TBTNBMP:DESTROY(912) <-TMETROBTN:DESTROY(900)
<-TWINDOW:HANDLEEVENT(0) <-TCONTROL:HANDLEEVENT(1733)
<-TMETROBTN:HANDLEEVENT(1766) <-_FWH(3278) <-WINRUN(0)
------------------------------------------------------------
08.04.2016 23:15:26: EXCESS RELEASE OF FONT Arial[ hFont : 0] ( nCount : -2 )
<-TFONT:END(284) <-TCONTROL:DESTROY(2122) <-TBTNBMP:DESTROY(912) <-TMETROBTN:DESTROY(900)
<-TWINDOW:HANDLEEVENT(0) <-TCONTROL:HANDLEEVENT(1733)
<-TMETROBTN:HANDLEEVENT(1766) <-_FWH(3278) <-WINRUN(0)
------------------------------------------------------------
08.04.2016 23:15:26: EXCESS RELEASE OF FONT Arial[ hFont : 0] ( nCount : -3 )
<-TFONT:END(284) <-TCONTROL:DESTROY(2122) <-TBTNBMP:DESTROY(912) <-TMETROBTN:DESTROY(900)
<-TWINDOW:HANDLEEVENT(0) <-TCONTROL:HANDLEEVENT(1733)
<-TMETROBTN:HANDLEEVENT(1766) <-_FWH(3278) <-WINRUN(0)
------------------------------------------------------------
08.04.2016 23:15:26: EXCESS RELEASE OF FONT Arial[ hFont : 0] ( nCount : -4 )
<-TFONT:END(284) <-TCONTROL:DESTROY(2122) <-TBTNBMP:DESTROY(912) <-TMETROBTN:DESTROY(900)
<-TWINDOW:HANDLEEVENT(0) <-TCONTROL:HANDLEEVENT(1733)
<-TMETROBTN:HANDLEEVENT(1766) <-_FWH(3278) <-WINRUN(0)
...
...
48 times the same
fonts are defined on top and released at the end
Why these errors ?
the typical button
DEFINE METROBUTTON oSBtn[105] OF oMetro ;
COLOR CLR_WHITE, 255 ;
CAPTION "&Ende" ;
ALIGN "BOTTOMLEFT" ;
GROUP 3 ;
FONT oTileFont ;
BITMAP c_Pfad1 + "exit.bmp" ;
BMPALIGN "BOTTOMRIGHT" ;
SIZE 48, 48 ;
BODYTEXT "Pflegeplus; beenden" ;
TEXTALIGN "TOPLEFT" ;
ACTION oWnd:End()
oSBtn[105]:nClrCaption := CLR_WHITE
oSBtn[105]:oFont := [color=#0000FF:2vdpeft8]oTileFont[/color:2vdpeft8]
oSBtn[105]:oTextFont := [color=#0000FF:2vdpeft8]oTileFont[/color:2vdpeft8]
best regards
Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
|
A font-problem in METRO-app ?
|
I tested but got funny results
the LOG-file messages are fixed.
activating : oPanel1:oFont, Title and buttons are using the same font
oPanel1:oBtnFont and oPanel1:oTextFont are not shown
I used :
[code=fw:2xv028fx]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// my defined fonts</span><br /><span style="color: #B900B9;">// ------------------</span><br /><span style="color: #B900B9;">//DEFINE FONT oFontLarge NAME "Arial" SIZE 0, -50 BOLD</span><br /><span style="color: #B900B9;">//DEFINE FONT oFontSmall NAME "Arial" SIZE 0, -16 BOLD</span><br /><span style="color: #B900B9;">//DEFINE FONT oFontTiny NAME "Arial" SIZE 0, -12 BOLD</span><br /><br />oPanel1:<span style="color: #000000;">oFont</span>:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />oPanel1:<span style="color: #000000;">oFont</span> := oFontLarge <span style="color: #B900B9;">// Title</span><br />oPanel1:<span style="color: #000000;">oBtnFont</span>:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />oPanel1:<span style="color: #000000;">oBtnFont</span> := oFontTiny <span style="color: #B900B9;">// Button</span><br />oPanel1:<span style="color: #000000;">oTextFont</span>:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />oPanel1:<span style="color: #000000;">oTextFont</span> := oFontSmall <span style="color: #B900B9;">// Button</span><br /><br /><span style="color: #B900B9;">// defined in METHOD New(.....</span><br /><span style="color: #B900B9;">// ------------------------------------------</span><br /><span style="color: #B900B9;">// DEFINE FONT ::oFont NAME "Segoe UI Light" SIZE 0, -18 BOLD</span><br /><span style="color: #B900B9;">// DEFINE FONT ::oFontB NAME "Segoe UI Light" SIZE 0, -14 BOLD</span><br /><span style="color: #B900B9;">// DEFINE FONT ::oBtnFont NAME "Segoe UI Light" SIZE 0, -8 BOLD</span><br /><span style="color: #B900B9;">// DEFINE FONT ::oTextFont NAME "Segoe UI Light" SIZE 0, -8 BOLD</span><br /> </div>[/code:2xv028fx]
regards
Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
|
A font-problem in METRO-app ?
|
Ok. Now font destruction issues are resolved.
May I know what other problems you have and what assistance I can provide?
|
A font-problem in METRO-app ?
|
It seems the fonts are not used :
oPanel1:oFont:End()
oPanel1:oFont := oFontLarge // Title
[img:2104yjyp]http://www.pflegeplus.com/IMAGES/Metrob5.jpg[/img:2104yjyp]
oPanel1:oBtnFont:End()
oPanel1:oBtnFont := oFontTiny // Button
oPanel1:oTextFont:End()
oPanel1:oTextFont // Button
[img:2104yjyp]http://www.pflegeplus.com/IMAGES/Metrob6.jpg[/img:2104yjyp]
a typical defined button
DEFINE METROBUTTON oSBtn[1] OF oPanel1 ;
COLOR nMText1A, nMColor1 ;
CAPTION "&Patienten" ;
ALIGN "TOPCENTER" ;
GROUP 1 ;
BITMAP c_Pfad1 + "Patient.bmp" ;
BMPALIGN "MIDDLECENTER" ;
SIZE 50, 50 ;
ACTION ( NEU_DBF1(), P_INDEX() ) ;
BODYTEXT "Daten" ;
TEXTALIGN "BOTTOMLEFT"
oSBtn[1]:nClrCaption := nMText1B
regards
Uwe <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
|
A font-problem in METRO-app ?
|
Please do these assignments
[code=fw:11lahbi3]<div class="fw" id="{CB}" style="font-family: monospace;">oPanel1:<span style="color: #000000;">oFont</span>:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />oPanel1:<span style="color: #000000;">oFont</span> := oFontLarge <span style="color: #B900B9;">// Title</span><br />oPanel1:<span style="color: #000000;">oBtnFont</span>:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />oPanel1:<span style="color: #000000;">oBtnFont</span> := oFontTiny <span style="color: #B900B9;">// Button</span><br />oPanel1:<span style="color: #000000;">oTextFont</span>:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />oPanel1:<span style="color: #000000;">oTextFont</span> := oFontSmall <span style="color: #B900B9;">// Button</span><br /> </div>[/code:11lahbi3]
before creating any button and do not assign any fonts to the buttons.
|
A font-problem in METRO-app ?
|
to be sure, nothing strange is included
I added the fonts to sample [b:1dpdrui6]< metrptst.prg >[/b:1dpdrui6] with the same results
title and buttonfonts are the same
[img:1dpdrui6]http://www.pflegeplus.com/IMAGES/MetroB7.jpg[/img:1dpdrui6]
from original sample :
function Main( cParam )
local oWnd, oBar, oMetro, oBrush
local cTitle := "Start"
SET DATE ITALIAN
SET CENTURY ON
// added
[color=#0000FF:1dpdrui6]DEFINE FONT oFontLarge NAME "Arial" SIZE 0, -50 BOLD
DEFINE FONT oFontSmall NAME "Arial" SIZE 0, -16 BOLD
DEFINE FONT oFontTiny NAME "Arial" SIZE 0, -12 BOLD[/color:1dpdrui6]
...
...
static function MakeMetroPanel( oWnd )
local oMetro, oBtn
DEFINE METROPANEL oMetro OF oWnd TITLE "Start" ;
COLOR CLR_WHITE, CLR_GREEN ;
ON CLICK oWnd:End()
oMetro:lDesignMode := .t.
// added
[color=#0000FF:1dpdrui6]oMetro:oFont:End()
oMetro:oFont := oFontLarge // Title
oMetro:oBtnFont:End()
oMetro:oBtnFont := oFontTiny // Button
oMetro:oTextFont:End()
oMetro:oTextFont := oFontSmall // Button[/color:1dpdrui6]
// the buttons :
DEFINE METROBUTTON oBtn OF oMetro ;
....
....
....
any idea what could be wrong ?
----------------
----------------
[b:1dpdrui6]it works using ( NO logfile-writings ) adding 2 lines :[/b:1dpdrui6]
[color=#0000FF:1dpdrui6]FONT oFontSmall ;[/color:1dpdrui6]
[color=#0000FF:1dpdrui6]TEXTFONT oFontTiny ;[/color:1dpdrui6]
[img:1dpdrui6]http://www.pflegeplus.com/IMAGES/Metrob8.jpg[/img:1dpdrui6]
// keeping :
oPanel1:oFont := oFontLarge // Title
// not needed !!!
//oPanel1:oBtnFont:End()
//oPanel1:oBtnFont := oFontTiny // Button
//oPanel1:oTextFont:End()
//oPanel1:oTextFont := oFontSmall // Button
DEFINE METROBUTTON oBtn OF oMetro ;
COLOR CLR_HBLUE,CLR_WHITE ;
[color=#0000FF:1dpdrui6]FONT oFontSmall ;[/color:1dpdrui6]
CAPTION "Metro" ;
ALIGN "MIDDLECENTER" ;
BITMAP "..\bitmaps\fivetech3.bmp" ;
BMPALIGN "BOTTOMLEFT" ;
SIZE 50, 50 ;
BODYTEXT "FiveWin Power" ;
TEXTALIGN "BOTTOMRIGHT" ;
[color=#0000FF:1dpdrui6]TEXTFONT oFontTiny ;[/color:1dpdrui6]
BACKGROUND "..\bitmaps\fiveback.bmp" ;
LARGE
oBtn:nClrCaption := CLR_HRED
regards
Uwe <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
|
A free Forum-service : any Textlogo for FWH-users
|
Hello,
as a free service, I offer to create
any needed special TEXTLOGO
with a defined Background ( structure ) or transparent
for all friends and users of FWH.
The logo can be placed insided this toppic for download
or can be send by email to Your address.
Just define the
[color=#0000FF:32ibzyw5][size=150:32ibzyw5]font
size
text
style ( transparent or brush )
color, gradient or brush
structure[/size:32ibzyw5][/color:32ibzyw5]
You will receice 2 Images
1 with a selected background
and a 2. alphablended transparent text ( PNG )
[img:32ibzyw5]http://www.pflegeplus.com/pictures/inspiration.png[/img:32ibzyw5]
It can be a fullscreen-image
[img:32ibzyw5]http://www.pflegeplus.com/pictures/inspiration2.png[/img:32ibzyw5]
with a defined background-color or gradient
[img:32ibzyw5]http://www.pflegeplus.com/pictures/inspiration3.png[/img:32ibzyw5]
any Font You want to use with a brushed text
[img:32ibzyw5]http://www.pflegeplus.com/pictures/Mylogo1.png[/img:32ibzyw5]
A combination of Image and Text
use a created transparent text and place it on a defined position
of Your image, using PIXELFORMER
[img:32ibzyw5]http://www.pflegeplus.com/pictures/inspiration4.png[/img:32ibzyw5]
select any combination of the styles like :
[size=150:32ibzyw5]Brush[/size:32ibzyw5]
[img:32ibzyw5]http://www.pflegeplus.com/pictures/DLogo1.jpg[/img:32ibzyw5]
[size=150:32ibzyw5]Transformed[/size:32ibzyw5]
[img:32ibzyw5]http://www.pflegeplus.com/pictures/DLogo2.jpg[/img:32ibzyw5]
[size=150:32ibzyw5]Text-outline [/size:32ibzyw5]
[img:32ibzyw5]http://www.pflegeplus.com/pictures/DLogo3.jpg[/img:32ibzyw5]
[size=150:32ibzyw5]Text-border[/size:32ibzyw5]
[img:32ibzyw5]http://www.pflegeplus.com/pictures/DLogo4.jpg[/img:32ibzyw5]
[size=150:32ibzyw5]Text-shadow[/size:32ibzyw5]
[img:32ibzyw5]http://www.pflegeplus.com/pictures/DLogo5.jpg[/img:32ibzyw5]
[size=150:32ibzyw5]Frames[/size:32ibzyw5]
[img:32ibzyw5]http://www.pflegeplus.com/pictures/DLogo6.jpg[/img:32ibzyw5]
[size=150:32ibzyw5]Predefined Styles[/size:32ibzyw5]
[img:32ibzyw5]http://www.pflegeplus.com/pictures/DLogo7.jpg[/img:32ibzyw5]
Best Regards
Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
A free Forum-service : any Textlogo for FWH-users
|
Uwe,
many thanks <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
A free Forum-service : any Textlogo for FWH-users
|
Halo Uwe..
Very nice logo..
Can you send me at: <!-- e --><a href="mailto:Mulyadi@ksk.co.id">Mulyadi@ksk.co.id</a><!-- e -->
Thanks...
Best regards..
Mulyadi
FWH+xHarbour+ADO+Oracle
|
A free Forum-service : any Textlogo for FWH-users
|
You can add up to 3 textlines.
Selection [color=#FF0000:3vtet3ma]<[b:3vtet3ma]Deformed[/b:3vtet3ma]>[/color:3vtet3ma] will use the 3 lines to create a Logo
[img:3vtet3ma]http://www.pflegeplus.com/pictures/DLogo8.jpg[/img:3vtet3ma]
The needed Infos :
[b:3vtet3ma]1. Text 1[/b:3vtet3ma]: [b:3vtet3ma][color=#FF0000:3vtet3ma]My special Logo[/color:3vtet3ma][/b:3vtet3ma]
[b:3vtet3ma]1. Text 2[/b:3vtet3ma]: [b:3vtet3ma][color=#FF0000:3vtet3ma]---[/color:3vtet3ma][/b:3vtet3ma]
[b:3vtet3ma]1. Text 3[/b:3vtet3ma]: [b:3vtet3ma][color=#FF0000:3vtet3ma]---[/color:3vtet3ma][/b:3vtet3ma]
[b:3vtet3ma]1a. Format [/b:3vtet3ma]: [b:3vtet3ma][color=#FF0000:3vtet3ma]JPG[/color:3vtet3ma][/b:3vtet3ma]
[b:3vtet3ma]1b. Format [/b:3vtet3ma]: [b:3vtet3ma][color=#FF0000:3vtet3ma]PNG[/color:3vtet3ma][/b:3vtet3ma]
[b:3vtet3ma]2. Font [/b:3vtet3ma]: [b:3vtet3ma][color=#FF0000:3vtet3ma]Arial[/color:3vtet3ma][/b:3vtet3ma]
[b:3vtet3ma]3. Background [/b:3vtet3ma]
-------------
[b:3vtet3ma]a) Color [/b:3vtet3ma]: -
[b:3vtet3ma]b) Gradient [/b:3vtet3ma]: -
[b:3vtet3ma]c) Material [/b:3vtet3ma]: [b:3vtet3ma][color=#FF0000:3vtet3ma]S 1[/color:3vtet3ma][/b:3vtet3ma]
[b:3vtet3ma]4. Text-brush[/b:3vtet3ma]
-------------
[b:3vtet3ma]a) Color [/b:3vtet3ma]: -
[b:3vtet3ma]b) Gradient [/b:3vtet3ma]: - -
[b:3vtet3ma]c) Material [/b:3vtet3ma]: [b:3vtet3ma][color=#FF0000:3vtet3ma]V 2[/color:3vtet3ma][/b:3vtet3ma]
[b:3vtet3ma]5. Deformed[/b:3vtet3ma] : [b:3vtet3ma][color=#FF0000:3vtet3ma]B 3[/color:3vtet3ma][/b:3vtet3ma]
[b:3vtet3ma]6. Outline [/b:3vtet3ma]:[b:3vtet3ma] [color=#FF0000:3vtet3ma]B 1[/color:3vtet3ma][/b:3vtet3ma]
[b:3vtet3ma]7. 3D-border [/b:3vtet3ma]: [b:3vtet3ma][color=#FF0000:3vtet3ma]B 12[/color:3vtet3ma][/b:3vtet3ma]
[b:3vtet3ma]8. Shadow [/b:3vtet3ma]:[b:3vtet3ma] [color=#FF0000:3vtet3ma]B 2[/color:3vtet3ma][/b:3vtet3ma]
[b:3vtet3ma]9. Frame [/b:3vtet3ma]: [b:3vtet3ma][color=#FF0000:3vtet3ma]E 1[/color:3vtet3ma] ( with selected Material )[/b:3vtet3ma]
The result from defined values
[img:3vtet3ma]http://www.pflegeplus.com/pictures/myspeciallogo.png[/img:3vtet3ma]
Best Regards
Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
A free Forum-service : any Textlogo for FWH-users
|
Very nice...
|
A free Forum-service : any Textlogo for FWH-users
|
The first requested Logo :
1. with Background ( Jpg )
[img:5mlrcgfl]http://www.pflegeplus.com/pictures/jose1a.jpg[/img:5mlrcgfl]
2. transparent Text ( PNG can be painted on any other Background )
[color=#0000FF:5mlrcgfl][b:5mlrcgfl]oBmpAlpha:=TImage():Define(, "Logo.png")
..
ACTIVATE DIALOG oDlg NOWAIT ; //CENTERED
ON PAINT (ABPaint( hDC,395,260, oBmpAlpha:hBitmap, 255 ))[/b:5mlrcgfl][/color:5mlrcgfl]
[img:5mlrcgfl]http://www.pflegeplus.com/pictures/jose2a.png[/img:5mlrcgfl]
Best Regards
Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
A free Forum-service : any Textlogo for FWH-users
|
You can select one of the predefined style as well. Next change the color
Select Col and Row
Predefined Styles = E 5
You can change the Background- and Textbrush like :
3. Background
-------------
a) Color : -
b) Gradient : -
c) Material : S 1
4. Text-brush
-------------
a) Color : -
b) Gradient : - -
c) Material : V 2
[img:3u2poeng]http://www.pflegeplus.com/pictures/DLogo7.jpg[/img:3u2poeng]
Best Regards
Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
A free Forum-service : any Textlogo for FWH-users
|
Fantastic Many thanks
|
A free Forum-service : any Textlogo for FWH-users
|
Hello Wilson,
no problem, to select another style with maybe more textlines ( new )
or a predefined style.
I changed the selection defines like < A 5 >
have a look at the new style pictures.
Samples of 3 - line Logos
Mouse rightclick /save to save this transparent PNG
[img:1rsgpnyu]http://www.pflegeplus.com/pictures/Joselogo1.png[/img:1rsgpnyu]
[img:1rsgpnyu]http://www.pflegeplus.com/pictures/Joselogo2.png[/img:1rsgpnyu]
[img:1rsgpnyu]http://www.pflegeplus.com/pictures/Jose5.png[/img:1rsgpnyu]
Regards
Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
|
A free Forum-service : any Textlogo for FWH-users
|
Uwe many thanks nices logos specialy the last
|
A friend has gone but he remains in our hearts
|
Dear friends,
Tonight Otto let me know this sad news, that we must share here, because though Stephan has gone, it has been a pleasure to meet him here, always kind, helping, another true Clipper-heart, with who we have shared many moments:
[url:1svkd7ga]http://www.uni-kassel.de/fb14bau/fileadmin/datas/fb14/Institute/IBW/Bauinformatik/Personenfotos/3001074975_1-8f9fa8c5b3164b6f9ab98711e49c71e8.pdf[/url:1svkd7ga]
[quote:1svkd7ga]The University of Kassel takes leave of Mr. Stefan Haupt * 7 9 1961 † 14 4 2014 Mr. Stefan Haupt was as technical staff in field construction computer science and at the same time as an IT administrator in the Department of Bauin- engineer and environmental engineering at the University of Kassel worked. He was instrumental in setting up the IT infrastructure of the department and has all the phases of technological development in teaching with distinctive expertise and responsible commitment supported. In grateful appreciation of his personality and his performance we always hold him in good memory. With him we lose a to- reliable and valued employees and colleagues, all of us very will be missing. Our sympathy goes to his wife and two children. His death is upsetting and leaves a large gap in our Department. We will honor his remembrance. University of Kassel The President The Staff, students and Prof. Dr. Rolf-Dieter Postlep colleagues from the Department of Civil Engineering and Environmental Engineering[/quote:1svkd7ga]
|
A friend has gone but he remains in our hearts
|
Ditto
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.