topic
stringlengths 1
63
| text
stringlengths 1
577k
⌀ |
---|---|
8.04 and oWnd:end( )
|
Hello Tim,
[quote="Tim Stone":1icl7ozh]Built using FWH 8.04 and xHarbour(.com) Nov 2007
Under Vista, this program dies on startup and generates a Vista GPF message:[/quote:1icl7ozh]
I just compiled your sample with latest upcoming xHarbour Builder APRIL BETA + FWH 8.04 and it does not GPF. It works with or without adding: [code:1icl7ozh]function __ClsActive() ; return nil[/code:1icl7ozh]
Patrick
|
8.04 and oWnd:end( )
|
[url=http://www.imaxenes.com/imagen/timgpf1te02uk.jpg.html:2syvbwky][img:2syvbwky]http://www.imaxenes.com/mini/timgpf1te02uk.jpg[/img:2syvbwky][/url:2syvbwky]
GPF gotten with XP using FWH 8.04 and a prior version of xHarbour (that supplied from FiveTechSoft with FWH 8.02)
Patrick is right, with the last xHarbour version (that supplied from FiveTechSoft with FWH 8.04), there is not GPF nor missing __ClsActive function.
Regards
Manuel Mercado
|
8.04 and oWnd:end( )
|
Patrick,
Thanks for your feedback,
Please provide the xHB April beta to users asap! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
8.04 and oWnd:end( )
|
[quote="Antonio Linares":1u7yzl6t]Patrick,
Thanks for your feedback,
Please provide the xHB April beta to users asap! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->[/quote:1u7yzl6t]
Yes! <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
I's just a matter of days.
Patrick
|
8.04 download... linking error.....
|
Hi Antonio.Download today....sample link error./-------------------------------------------------------------Harbour devel build 1.1-1 Intl.Copyright 1999-2007, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->Compiling 'main.prg' and generating preprocessed output to 'main.ppo'...Generating C source output to 'main.c'... Done.Harbour devel build 1.1-1 Intl.Copyright 1999-2007, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->Compiling 'sql.prg' and generating preprocessed output to 'sql.ppo'...Generating C source output to 'sql.c'... Done.Harbour devel build 1.1-1 Intl.Copyright 1999-2007, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->Compiling 'socket.prg' and generating preprocessed output to 'socket.ppo'...Generating C source output to 'socket.c'... Done.main.cmain.prg(2064) : warning C4229: anachronism used : modifiers on data are ignoredsql.csocket.cgtgui.lib(gtgui.obj) : warning LNK4006: _HB_FUN_HB_GT_GUI_DEFAULT already defined in Fivehm.lib(ERRSYSW.obj); second definition ignoredgtgui.lib(gtgui.obj) : warning LNK4006: _HB_FUN_HB_GT_GUI_DEFAULT already defined in Fivehm.lib(ERRSYSW.obj); second definition ignored Creating library main.lib and object main.exp//------------------------------------------------------------------------FiveHcm.lib(BRUSHES.obj) : error LNK2001: unresolved external symbol __imp__AlphaBlend@44main.exe : fatal error LNK1120: 1 unresolved externals//------------------------------------------------------------------------Thank you.
|
8.04 download... linking error.....
|
Yung,You have to link this Borland library:lib\psdk\msimg32.libIt is explained in fwh\whatsnew.txt
|
80.000 mensajes y creciendo !!!
|
Que gran comunidad somos <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Gracias y enhorabuena a todos!
|
80.000 mensajes y creciendo !!!
|
Y seguiremos fieles a la causa!!! adelante....
Salu2
|
80.000 posts and growing !!!
|
What a great community we are <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Congratulations and thanks to all of us,
|
80.000 posts and growing !!!
|
Congratulations ... !!!
We wish FiveWin to reach FACEBOOK level <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Thank, Antonio..
Regards
Fafi
|
80.000 posts and growing !!!
|
Congrats!
|
80.000 posts and growing !!!
|
Long Live FiveWin and xHarbour !
Evans
|
800*600 dll -->1024*768dialog nleftntop not same
|
Hi,
dialog for 800*600 resource in dll
STO01 DIALOG 0, 0, 400, 290
STYLE WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX | WS_MAXIMIZEBOX
CAPTION "purin1"
FONT 12, "System"
{
LTEXT "", 106, 113, 58, 106, 10
EDITTEXT 102, 51, 44, 58, 12, WS_BORDER | WS_TABSTOP
CONTROL "", 201, "txbrowse", 0 | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_VSCROLL | WS_HSCROLL | WS_TABSTOP, 5, 89, 388, 176
}
On 800*600, dialog lays on 0,0 pixel postion and full screen paint, but on 1024*768, it lays at about 40(ntop),5(nleft) pixel postion.
For we want through codes as below to auto fit difrent resolution.
rsl0:=getsysmetrics(0)/800
rsl1:=getsysmetrics(1)/600
for i:=1 TO LEN(::acontrols)
oCtrol = ::aControls[i]
aRect = GetCoors( oCtrol:hWnd )
oCtrol:Move( aRect[1]*rsl0, aRect[2]*rsl1, (aRect[4] - aRect[2])*rsl0, (aRect[3] - aRect[1])*rsl1, .t. )
next
// aRect = GetWndRect( ::hWnd )
MoveWindow( ::hWnd, ::nTop*rsl1, ::nLeft*rsl0, ::nWidth*rsl0, ::nHeight*rsl1, .t. )
Best regard!
Shuming Wang
|
85.000 mensajes y creciendo!!! :-)
|
85.000 mensajes y creciendo!!! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Que gran comunidad de amigos! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
85.000 mensajes y creciendo!!! :-)
|
Antonio,
Formidable. Esto asegura nuestro futuro.
Y, cuántos usuarios somos ? Cuán grande es nuestra comunidad ?
Saludos,
Carlos Gallego
|
85.000 mensajes y creciendo!!! :-)
|
Carlos,
Fijate en cuantas veces se visualiza un mensaje nuevo que se publica en estos foros al cabo de varios dias <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
85.000 mensajes y creciendo!!! :-)
|
Hoy tenemos:
[color=#000080:jgm58ihy]Total posts 85045 | Total topics 16165 | Total members 1417 [/color:jgm58ihy]
Yo me pregunto que vendra primero:
A) Total post: 100,000
B) Total topics: 20,000
C) Total members: 2,000
Saludos,
George
|
85.000 mensajes y creciendo!!! :-)
|
Excelente Antonio.
Felicidades a la gran comunidad de Fivewin.
Saludos
Ruben Fernandez
|
85.000 posts and growing !!! :-)
|
85.000 posts and growing !!! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
What a great community of friends! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
85.000 posts and growing !!! :-)
|
Today we have:
[color=#000080:kszn55z2]Total posts 85045 | Total topics 16165 | Total members 1417 [/color:kszn55z2]
What is coming first?
A) Total post: 100,000
B) Total topics: 20,000
C) Total members: 2,000
Regards,
George
|
85.000 posts and growing !!! :-)
|
Antonio,
It is indeed a great community of friends.
Thanks a lot to everybody for all the help over the years.
And many congratulations to the FWH-team with Antonio Linares on top for all their efforts.
I hope to enjoy this community for many, many years.
|
9..
|
..9
|
9..
|
..8
|
9..
|
..7
|
9..
|
..6
|
9..
|
..5
|
9..
|
..4
|
9..
|
..3
|
9..
|
..2
|
9..
|
100000 mensajes en el foro !!!!!!!!!! felicidades
sera que tendre un premio? <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
saludos
Marcelo
|
9.07 - Corrupt User32.lib
|
I tried to use 9.07, but I'm getting an error message on the build that says Corrupt Library c:\fwh\lib\user32.lib.
I see this is a new addition to the lib files in 9.07. I redownloaded the install this morning and placed it in a new folder, and received the same error.
user32.lib is not called specifically in my link script. I'm not sure what tries to link it .
I am using xHarbour ( .com ) release that was fine with 9.06. <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
Thanks.
|
9.07 - Corrupt User32.lib
|
I think this user32.lib is only for Borland.
|
9.07 - Corrupt User32.lib
|
Here is the problem. User32.lib is in xHb's c-lib folder. The one supplied with FWH apparently was searched first and, as you suggest, must be a Borland ( thus imcompatible ) file.
I removed the file from the FWH\lib folder and can now build my application.
[b:2ln8fmra]So, here is the question for Antonio. Why the new .lib file, and is there something in there I need for 9.07 that is not in the xHb file ? If so, do you have a xHB / xCC compatible copy ?[/b:2ln8fmra]
Thanks.
|
9.07 - Corrupt User32.lib
|
Tim,
Please use this library:
<!-- w --><a class="postlink" href="http://www.fivetechsoft.com/files/prnwnd.lib">www.fivetechsoft.com/files/prnwnd.lib</a><!-- w -->
|
9.07 - Corrupt User32.lib
|
Do I keep User32.lib in the FWH lib folder where xHB will still try to link it in , or is this a replacement.
Thank you.
|
9.07 - Corrupt User32.lib
|
Tim,
It is a replacement for FWH user32.lib for xHB users
|
9.07 - Corrupt User32.lib
|
Antonio,
I still get the message that user32.lib is corrupt if I allow it to use the one from FWH. Is it possible this one is built with a compiler not compatible with xCC ( xHB Builder compiler ) ? I downloaded the file twice and have the same problem.
If I take it out of the lib folder, then xHb uses its own file with no problem.
I am using the June xHB build. It is supposed to be pretty good.
Tim
|
9.07 - Corrupt User32.lib
|
Tim,
FWH user32.lib is OMF format (Borland) and both Microsoft and PellesC use COFF format, thats why PellesC reports it to you as corrupted.
|
9.07 - Corrupt User32.lib
|
Antonio,
I'm confused. You want me to use it, but I can't because its the wrong format and will not link in to the application. Do you have one that is compatible with Microsoft / Pelles ? If not, what features do we lose by using the xHB User32.lib ?
Tim
|
9.07 - Corrupt User32.lib
|
Tim,
This is the equivalent one for Microsoft and PellesC:
<!-- m --><a class="postlink" href="http://www.fivetechsoft.com/files/prnwnd.lib">http://www.fivetechsoft.com/files/prnwnd.lib</a><!-- m -->
This library is not a replacement for user32.lib. It just includes a missing import function.
|
9.07 - Corrupt User32.lib
|
In FWH 9.07 we use Windows API PrintWindow() function (provided from user32.dll) but we have found that most C compilers don't provide it in their user32.lib
So our library is a complement for their user32.lib, not a replacement <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
9.07 - Corrupt User32.lib
|
Thank you. So I use the one with xBuilder ( Pelles ) and the file you asked me to download ! GOT IT ! Thanks.
Here is a request. In several replies you have noted extra libraries that we should now be using, but if we don't happen to read that thread, we miss the info. Could you possibly start a "sticky thread" ( stays at the top ) that lists the libraries we should download, their links, and a brief description of what they do in FWH ? I think that would be very helpful, and probably eliminate a lot of questions.
Thanks for all the ongoing work and support.
Tim
|
9.07 - Corrupt User32.lib
|
Tim,
Yes, thats a very good idea. We are going to organize it.
Anyhow if the user32.lib causes much troubles to FWH users (same question asked again and again) then we may modify our code to call PrintWindow() dynamically, so there will be no need to use this extra import library.
|
90
|
Is it possible to print under a corner of 90 degrees (vertically in place of horizontally)
|
90
|
Yes, you have to add NESCAPEMENT <n> clause when defining the font. The value is in tenth of an angle (ie 900 means 90).
EMG
|
90
|
Thank you Enrico, it works!
José (jds)
|
90.000 mensajes y creciendo !!! :-)
|
90.000 mensajes y creciendo !!! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
La energía de los FiveWinners !!! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
[img:2lnn6ne1]http://img193.imageshack.us/img193/741/fivepower.jpg[/img:2lnn6ne1]
|
90.000 mensajes y creciendo !!! :-)
|
<!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
90.001
Saludos y felicidades don Antonio
Mauricio <!-- s:mrgreen: --><img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green" /><!-- s:mrgreen: -->
|
90.000 mensajes y creciendo !!! :-)
|
Felicitaciones para todos nosotros que hemos hecho crecer este gran foro..., el wikipedia de los fivewineros...! <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
|
90.000 mensajes y creciendo !!! :-)
|
Larga vida a FIVEWIN....
Salu2
|
90.000 mensajes y creciendo !!! :-)
|
Felicidades Antonio, Saludos a Daniel Garcia
Sigan Adelante
Adhemar
|
90.000 mensajes y creciendo !!! :-)
|
Bueno, que decir, que sean 90.000 mas, gracias a todos los que hacen posible esta maravilla enciclopedica de programacion xbase y Fivewin,
Saludos desde Managua, Nicaragua
Ramon Paredes
|
90.000 mensajes y creciendo !!! :-)
|
Antonio
EXCELENTE !!!!
Muchas felicidades
|
90.000 mensajes y creciendo !!! :-)
|
Super
esto demuestra que Fivewin <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> es mejor que Visual Bichos <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
90.000 posts and growing !!! :-)
|
90.000 posts and growing !!! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
FiveWinners power!!! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
[img:1k6szmcs]http://img193.imageshack.us/img193/741/fivepower.jpg[/img:1k6szmcs]
|
90.000 posts and growing !!! :-)
|
Congratulations, Antonio.
And thank you so much but I also want to thank all the FWH-community for all the efforts which are being done here on this forum.
May FWH live for ever.
|
90.000 posts and growing !!! :-)
|
To Antonio and all other smart programmers:
With best wishes to reach the hundred thousand as soon as possible
I will do a lot of questions! <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
marco
|
91 Ways to become the Coolest Developer in the World
|
Hi Friends,
I want to share an interesting article with you all.
<!-- m --><a class="postlink" href="http://pulkitarora.wordpress.com/2011/03/12/91-ways-to-become-the-coolest-developer-in-the-world/">http://pulkitarora.wordpress.com/2011/0 ... the-world/</a><!-- m -->
Regards,
- Ramesh Babu P
|
9108 UNRECOVERABLE ERROR HB_NTXINDEXUNLOCKREAD: UNLOCK ERRO
|
Buenas Tardes Foro,Estoy migrando una aplicacion en Ca Clipper 5.3 a modo consola de 32 Bits con xHarbour Version de1ro de Diciembre de 2007.Todo bien hasta ahora pero cuando acceso una base de datossale el siguente error :9108 UNRECOVERABLE ERROR HB_NTXINDEXUNLOCKREAD: UNLOCK ERROR OpenShared( cFile, Alias ) Set Index Top &Indice <--- Aqui se produce el errorSi no abro el indice me muestra bien la base de datos.Desde Ya muchas Gracias por su colaboracion,Saludos,Albeiro,
|
9108 UNRECOVERABLE ERROR HB_NTXINDEXUNLOCKREAD: UNLOCK ERRO
|
Colegas,Ya resolvi el problema,habia que reindexar los indices con la aplicacion compiladacon xharbour...De paso algo curioso... ¡ No funciona en modo consola con la ultima version de xHarbour...Gracias de todas maneras,
|
:)
|
Hey thereWhere is the Visual FiveWin to download ??but of 140 topicos in visualfivewin and i dont found link to download ?heva a date to this ?gracias
|
:)
|
helloit no ready yet.coming soon...
|
:: Focus on Get ::
|
Is there any way to keep the cursor on the Get
when it does not have focus ..
|
:: Funciones ::
|
Hola Antonio,
Estas funciones no están disponible en FWPPC,
Se podrian implementar ?
[code=fw:15c2jwg0]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> CharMirr<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <br /> HexToStr<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <br /> StrToHex<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> </div>[/code:15c2jwg0]
|
:: Funciones ::
|
Saludos Pablo;
Estas funciones en FWH me funcionan.-
Static Function Serial2Hex(cSer)
LOCAL cRet:="",i:=0
cRet:="0x"
For i:=1 to 8
cRet:=cRet+c2HEX(SUBSTR(cSer,i,1))
Next
Return cRet
Static Function Hex2Serial(cHexSer)
LOCAL cRet:="",i:=0
For i:=3 to 18 step 2
cRet:=cRet+chr(HexToDec(SUBSTR(cHexSer,i,2)))
Next
Return cRet
Saludos
|
:: Funciones ::
|
Pablo,
Que hace la función CharMirr() ?
|
:: Funciones ::
|
????
|
:: Funciones ::
|
Hola Antonio,
La Funcion CharMirr, voltea un string, ya la implemente:
[code=fw:12rjswbk]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">Function</span> CharMirror<span style="color: #000000;">(</span> cString <span style="color: #000000;">)</span><br /><span style="color: #00C800;">Local</span> cNewString := <span style="color: #ff0000;">""</span><br /><span style="color: #00C800;">Local</span> nAt := Len<span style="color: #000000;">(</span> AllTrim<span style="color: #000000;">(</span> cString <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">While</span> nAt > <span style="color: #000000;">0</span><br /> cNewString += <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">(</span> cString,nAt,<span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> nAt--<br /> <span style="color: #00C800;">Enddo</span><br /><br /><span style="color: #00C800;">Return</span><span style="color: #000000;">(</span> cNewString <span style="color: #000000;">)</span></div>[/code:12rjswbk]
mag071,
Gracias, Funciona Perfectamente Bien <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
|
:: nMake :: VCE :: URGENTE
|
Hola Antonio,
Necesito el VCE para poder recompilar unos programas de FWPPC
ya que no encuentro el nMake.exe
Gracias
|
::Classname()
|
I want to create own classes inherit e.g. from TDialog like
[code:3bvyvshj]CLASS MYTDIALOG FROM TDIALOG
DATA ...
METHOD ...
ENDCLASS
[/code:3bvyvshj]
But now, the Method ::ClassName() returns "MYTDIALOG".
As I see, some methods check for ::Classname() like
[code:3bvyvshj]IF ::ClassName() $ "TDIALOG,..."
[/code:3bvyvshj]
so "MYTDIALOG" is not checked.
Is that a problem?
Thanks.
|
::Classname()
|
[code:2q7nchf2]
CLASS MYTDIALOG FROM TDIALOG
DATA ...
METHOD ...
METHOD ClassName() INLINE "TDIALOG"
ENDCLASS [/code:2q7nchf2]
Saludos
Patricio
|
::Refresh() needed in TMultiGet's ::GotFocus()::LostFocus()
|
Mr.Antonio
The GotFocus() functionality for TMultiGet class was not working properly
until I have added a ::Refresh() clause in GotFocus() and LostFocus()
methods in TMGet.prg. After adding ::Refresh() clasuse only the
expected functionality is achived.
I am using FWH 2.7 July Build & xHarbour 0.99.61.
This is for your information
- Ramesh Babu P
// Testing a GET
#include "FiveWin.ch"
//------------------------------------------------------------------------//
function Main()
local oDlg
local dDay := Date(), cNotes
local oGet, oGet1
SET DATE BRIT
SET CENT ON
DEFINE DIALOG oDlg TITLE "Testing GotFocus() Clause of TMultiGet Class"
@ 0.50, 2 SAY "Date:" OF oDlg
@ 0.50, 6 GET oGet VAR dDay OF oDlg SIZE 23, 10 SPINNER ;
VALID ! Empty( dDay ) ;
COLORS nRGB( 0, 0, 0 ), nRGB( 224, 224, 249 )
@ 2.00, 2 SAY "Notes:" OF oDlg
@ 2.00, 6 GET oGet1 VAR cNotes OF oDlg SIZE 100, 25 MEMO;
COLORS nRGB( 0, 0, 0 ), nRGB( 224, 224, 249 )
@ 3.25, 7 BUTTON "&Ok" OF oDlg SIZE 30, 12 ACTION oDlg:End()
@ 3.25,16 BUTTON "&Cancel" SIZE 30, 12 OF oDlg ACTION oDlg:End() CANCEL
oGet:bGotFocus := { || oGet:SetColor(nRGB(255,255,255), nRGB(64,0,255)) }
oGet1:bGotFocus := { || oGet1:SetColor(nRGB(255,255,255), nRGB(64,0,255)), oGet1:Refresh() } // For demonstration I have added oGet1:Refresh() here
oGet1:bLostFocus := { || oGet1:SetColor(nRGB(0,0,0), nRGB(224,224,249)), oGet1:Refresh() } // For demonstration I have added oGet1:Refresh() here
ACTIVATE DIALOG oDlg CENTERED
RETURN nil
//------------------------------------------------------------------------//
procedure AppSys // Xbase++ requirement
return
//------------------------------------------------------------------------//
#ifdef __XPP__
#define GetNew _GetNew
#endif
#ifndef __CLIPPER__
CLASS TClipGet FROM Get
METHOD Display() VIRTUAL
ENDCLASS
//---------------------------------------------------------------------------//
function GetNew( nRow, nCol, bVarBlock, cVarName, cPicture, cColor )
return TClipGet():New( nRow, nCol, bVarBlock, cVarName, cPicture, cColor )
//---------------------------------------------------------------------------//
#endif
|
::Refresh() needed in TMultiGet's ::GotFocus()::LostFocus()
|
Ramesh,
Yes, it is needed as you are changing the colors so you need to request a repaint of the control.
|
::SetControl() para 2 controles. Cómo?
|
Hola a todos,
Si quiero que un control se redimensione automáticamente (usando toda la ventana) cuando se cambia el tamaño de su ventana contenedora MDICHILD, debo usar oWnd:Setcontrol( omiCtrl ). Esto es lo normal.
Ahora bien, si tengo 2 controles RICHEDIT que quiero que ocupen la mitad horizontal de la ventana cada uno y que cuando se cambia el tamaño de su ventana contenedora MDICHILD, cómo debo hacerlo?
Es decir SetControl() me sirve para un solo control, y yo quiero utilizar 2 controles con la mitad de la ventana para cada uno. Se les ocurre como hacerlo?
Muchas gracias.
Carlos G.[url][/url]
|
::SetControl() para 2 controles. Cómo?
|
FiveWidi:
Creo que tendrías que usar los SPLITTERS. Busca en el foro por la palabra splitter.
Saludos.
|
::SetControl() para 2 controles. Cómo?
|
Hola, aquí te dejo un ejemplo de como puedes hacerlo. Espero te sea útil.
Saludos
//00000000000000000000000000000000000000000000000000
//-----------------------------
FUNCTION MISBROWSES()
local oBrw,oBrw2,oCol,oCol2,n,oDlg,oBt2
local aObjetos,nAltoIniDlg,nAnchoIniDlg,aLinColCtrls, aLinCtrls, aColCtrls
local nAltoIniLbx,nAnchoIniLbx
local Area1,Area2
local nWidthRes := GetSysMetrics(SM_CXSCREEN)
local nHeightRes := GetSysMetrics(SM_CYSCREEN)
DEFINE DIALOG oDlg RESOURCE "MISBROWSES" //debes crearlo 2 browses horizont y botones en la parte de abajo.
//EL PRIMER BROWSE
dbUseArea(.t.,,"Base1","Base1",.f.)
Area1:=Alias()
oBrw := TXBrowse():New( oDlg )
oBrw:cAlias:=(Area1)
(oBrw:cAlias)->(dbgotop())
//Tu codigo para definiciones y creacion de columnas de oBrw
* oCol = oBrw:AddCol()
* .....
* .....
oBrw:CreateFromResource(180)
oBrw:SetRDD()
//EL SEGUNDO BROWSE
dbUseArea(.t.,,"Base2","Base2",.f.)
Area2:=Alias()
oBrw2 := TXBrowse():New( oDlg )
oBrw2:cAlias:=(Area2)
(oBrw2:cAlias)->(dbgotop())
//Tu codigo para definiciones y creacion de columnas de oBrw2
* oCol2 = oBrw:AddCol()
* .....
* .....
oBrw2:CreateFromResource(181)
oBrw2:SetRDD()
REDEFINE BUTTONBMP oBt2 ID 236 OF oDlg ACTION ( oDlg:End() ) CANCEL BITMAP "SALIR" TEXTRIGHT
//Para mover los objetos deseados
aObjetos :={oBrw,oBrw2,oBt2} //los controles a mover
ACTIVATE DIALOG oDlg CENTERED ;
ON INIT ( nAltoIniDlg:=oDlg:nHeight,nAnchoIniDlg:=oDlg:nWidth,;
nAltoIniLbx:=oBrw:nHeight,nAnchoIniLbx:=oBrw:nWidth,;
aLinColCtrls:=LinColCtrl(aObjetos), aLinCtrls:=aLinColCtrls[1], aColCtrls:=aLinColCtrls[2] ,;
oDlg:SetSize(nWidthRes,nHeightRes), oDlg:Move(0,0) ,;
Posicionarlos(oDlg,oBrw,oBrw2,aObjetos,nAltoIniDlg,nAnchoIniDlg,nAltoIniLbx,nAnchoIniLbx,aLinCtrls,aColCtrls) )
//Cerrar tus dbfs?
dbCloseall()
RETURN NIL
//------------------------------------------------------------------------
Function Posicionarlos(oDlg,oBrw,oBrw2,aObjetos,nAltoIniDlg,nAnchoIniDlg,nAltoIniLbx,nAnchoIniLbx,aLinCtrls,aColCtrls)
local n:=0, nNvasLineas:=0,nNvasColumn:=0
//Conocer diferencia del tamaño que adquiere el oDlg (Resize)
nNvasLineas:= oDlg:nHeight - nAltoIniDlg
nNvasColumn:= oDlg:nWidth - nAnchoIniDlg
//colocar controles deseados en nuevas coordenadas
//Si es un listbox, cambia alto y ancho, a diferencia de los demas.
for n:=1 to len(aObjetos)
if upper(aObjetos[n]:ClassName()) == 'TWBROWSE' ; // Si es un listbox
.or. upper(aObjetos[n]:ClassName()) == 'TXBROWSE'
oBrw:nWidth := nAnchoIniLbx + nNvasColumn
oBrw:nHeight:= nAltoIniLbx + nNvasLineas
oBrw2:nWidth := oBrw:nWidth
oBrw2:Move( oBrw:nHeight+56,oBrw:nLeft() )
else
aObjetos[n]:Move( aLinCtrls[n]+nNvasLineas, aColCtrls[n] )
endif
next
oDlg:Refresh()
SysRefresh()
RETURN NIL
//00000000000000000000000000000000000000000000000000
|
::SetControl() para 2 controles. Cómo?
|
[quote="FranciscoA":3kxn2s9r]Hola, aquí te dejo un ejemplo de como puedes hacerlo. Espero te sea útil.
Saludos
[/quote:3kxn2s9r]
Gracias por el código, lo revisaré para adaptarlo a mi necesidad.
Un saludo
Carlos G.
|
::bfont de la clase TWbrowse de HDC
|
Holas,
no se si estoy mal pero creo que no esta implementado la parte de la DATA bfont de la classe twbrowse de HDC, o es que tengo una version antigua.
definiendi bfont supuestamente tendriamos la posibilidad de definr un tipo de font para cada parte del browse, pero probando y viendo el codigo creo que no esta implementado.
Alguien lo tiene implementado?
saludos
Marcelo
|
::bfont de la clase TWbrowse de HDC
|
Marcelo:
Si usas la clase publicada en el foro por Antonio
te debe funcionar.
oLbx:bFont := {|nRow,nCol,nStyleLine| ;
IIF( nStyleLine = 0 , oFont1:hFont,;
IIF( nStyleLine = 3 , oFont2:hFont , ;
IIF( nStyleLine = 2 , oFont2:hFont , ;
IIF( nStyleLine = 4 , oFont1:hFont , ;
IIF( nStyleLine = 1 , oFont2:hFont , ) ) ) ))}
Saludos.
Ruben Fernandez
|
::bfont de la clase TWbrowse de HDC
|
Ruben,
ya la consegui y creo que esta mejor, creo que le meti mucha mano a la que tengo.
gracias y saludos
Marcelo
[quote="Ruben Fernandez":35eaa38u]Marcelo:
Si usas la clase publicada en el foro por Antonio
te debe funcionar.
oLbx:bFont := {|nRow,nCol,nStyleLine| ;
IIF( nStyleLine = 0 , oFont1:hFont,;
IIF( nStyleLine = 3 , oFont2:hFont , ;
IIF( nStyleLine = 2 , oFont2:hFont , ;
IIF( nStyleLine = 4 , oFont1:hFont , ;
IIF( nStyleLine = 1 , oFont2:hFont , ) ) ) ))}
Saludos.
Ruben Fernandez[/quote:35eaa38u]
|
::bfont de la clase TWbrowse de HDC
|
marcelo,
lo uso sin problemas en los encabezados, si lo quieres usar dentro del browse no hay problema, nomas elige el nStyleLine correcto,
1=encabezados
2=browse
3=footers
oBDep:bFont := {|nRow,nCol,nStyleLine| ;
IF(nStyleLine==1 .AND. nCol==1,oFnt:hFont,) }
salu2
paco
|
::lTransparent desde recursos
|
Hola a todos,
La clausula ::lTransparent, no funciona con bmp en recursos.
[code:3lpxrlry]// Using bitmaps from resources
#include "FWCE.ch"
function Main()
local oWnd, oBmp, oBmp2
DEFINE WINDOW oWnd TITLE "Bmp-Res"
@ 5, 5 BITMAP oBmp FILENAME CURDIR() + "\users.bmp" NOBORDER
oBmp:lTransparent = .t.
@ 8, 5 BITMAP oBmp2 NAME "users" NOBORDER
oBmp2:lTransparent = .t.
ACTIVATE WINDOW oWnd ;
ON CLICK MsgInfo( "click!" )
return nil[/code:3lpxrlry]
Alguna solucion ?
Saludos.
C.
|
::lTransparent desde recursos
|
Carles,
Creo que con esta modificación en la clase window.prg queda arreglado.
[code:2uapmldq] METHOD SetBrush( oBrush ) INLINE If( ::oBrush != nil, ::oBrush:End(),),;
::oBrush := oBrush, oBrush:nCount++, ::Refresh()
[/code:2uapmldq]
Dime si ésto te soluciona el problema.
Saludos,
José Luis Capel
|
::lTransparent desde recursos
|
he añadido el metodo a window y he compilado y a mi no me resuelve el problema .
|
::lTransparent desde recursos
|
José Luis,
[quote:963rvdai]he añadido el metodo a window y he compilado y a mi no me resuelve el problema .[/quote:963rvdai]
Cierto... parece ser que he confundido la pregunta. Lo que he indicado solo resuelve el problema en grupos creados desde código cuando lTransparent := .T.
Saludos,
José Luis Capel
|
::lTransparent desde recursos
|
Carles, Jose Luis,
Acabamos de publicar un nuevo build de FWPPC que soluciona el problema. No es definitivo porque fallará con zoom ó imágenes estiradas, pero de momento está solucionado.
|
::lTransparent desde recursos
|
Hola Antonio,
Es posible que no fucncione el link de actualizacion ?
Saludos.
C.
|
::lTransparent desde recursos
|
Carles,
Vuelve a intentarlo, gracias.
|
::lTransparent desde recursos
|
Antonio,
Ok. Ya va. El pastel debia estar 'calentito'
Saludos.
C.
|
::lTransparent desde recursos
|
Hola Antonio,
El nuevo build (20.02.2006) me arroja este error al compilar
[code:ragr3d9c]
FiveCEC.lib(AYGSHELL.obj) : error LNK2019: unresolved external symbol SHGetDocum
entsFolder referenced in function "void __cdecl HB_FUN_SHGETDOCUMENTSFOLDER(void
)" (?HB_FUN_SHGETDOCUMENTSFOLDER@@YAXXZ)[/code:ragr3d9c]
Si dejo la libreria del build del 17.02.2006 va Ok.
Saludos.
C.
|
::lTransparent desde recursos
|
Carles , se ha añadido una libreria en el buildce.bat , copia el que tienes en samples , o miralo y añade la libreria al archivo de linkado .
Saludso.
|
::lTransparent desde recursos
|
Hola,
Efectivamente -> la CESHELL.LIB. Arrrg !
El tema del bitmap desde recurso -> ok
Gracias.
C.
|
::tocalc [Openoffice] not run!! Solved !!
|
ACTION <!-- s:o --><img src="{SMILIES_PATH}/icon_surprised.gif" alt=":o" title="Surprised" /><!-- s:o -->Grid:ToCalc() not run ok it made this error !!!
[code=fw:3v48hto7]<div class="fw" id="{CB}" style="font-family: monospace;"><br />Application<br />===========<br /> Path and <span style="color: #0000ff;">name</span>: <span style="color: #000000;">C</span>:\work\PRG\Family\main.Exe <span style="color: #000000;">(</span><span style="color: #000000;">32</span> bits<span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">Size</span>: <span style="color: #000000;">3</span>,<span style="color: #000000;">676</span>,<span style="color: #000000;">672</span> bytes<br /> Compiler version: <span style="color: #000000;">xHarbour</span> build <span style="color: #000000;">1.2</span><span style="color: #000000;">.1</span> Intl. <span style="color: #000000;">(</span>SimpLex<span style="color: #000000;">)</span> <span style="color: #000000;">(</span>Rev. <span style="color: #000000;">6715</span><span style="color: #000000;">)</span><br /> FiveWin Version: <span style="color: #000000;">FWHX</span> <span style="color: #000000;">12.03</span><br /> Windows version: <span style="color: #000000;">5.1</span>, Build <span style="color: #000000;">2600</span> Service Pack <span style="color: #000000;">2</span><br /><br /> Time <span style="color: #0000ff;">from</span> start: <span style="color: #000000;">0</span> hours <span style="color: #000000;">0</span> mins <span style="color: #000000;">9</span> secs <br /> Error occurred <span style="color: #00C800;">at</span>: <span style="color: #000000;">12</span><span style="color: #000000;">-06</span><span style="color: #000000;">-2012</span>, <span style="color: #000000;">11</span>:<span style="color: #000000;">57</span>:<span style="color: #000000;">36</span><br /> Error description: <span style="color: #000000;">Error</span> BASE/<span style="color: #000000;">1004</span> <span style="color: #00C800;">Class</span>: <span style="color: #ff0000;">'NIL'</span> has no exported <span style="color: #00C800;">method</span>: <span style="color: #000000;">HUMANPRESENTABLENAME</span><br /> Args:<br /> <span style="color: #000000;">[</span> <span style="color: #000000;">1</span><span style="color: #000000;">]</span> = U <br /><br />Stack Calls<br />===========<br /> Called <span style="color: #0000ff;">from</span>: => HUMANPRESENTABLENAME<span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">XBROWSE</span>.PRG => PASTEUNFORMATTEDTEXT<span style="color: #000000;">(</span> <span style="color: #000000;">7591</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">XBROWSE</span>.PRG => TXBRWIN7:<span style="color: #000000;">TOCALC</span><span style="color: #000000;">(</span> <span style="color: #000000;">7236</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">source</span>\PComuni.prg => <span style="color: #000000;">(</span>b<span style="color: #000000;">)</span>COMUNI<span style="color: #000000;">(</span> <span style="color: #000000;">257</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">Lib</span>\vtaskbar\VMenu.prg => TVMENU:<span style="color: #000000;">EVALACTION</span><span style="color: #000000;">(</span> <span style="color: #000000;">1700</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">Lib</span>\vtaskbar\VMenu.prg => TVMENU:<span style="color: #000000;">LBUTTONUP</span><span style="color: #000000;">(</span> <span style="color: #000000;">1398</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\CONTROL.PRG => TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">(</span> <span style="color: #000000;">1690</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">Lib</span>\vtaskbar\VMenu.prg => TVMENU:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">(</span> <span style="color: #000000;">905</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => _FWH<span style="color: #000000;">(</span> <span style="color: #000000;">3153</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: => WINRUN<span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => TWINDOW:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">(</span> <span style="color: #000000;">980</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">source</span>\main.prg => TAPPLICATION:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">(</span> <span style="color: #000000;">347</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">source</span>\main.prg => MAIN<span style="color: #000000;">(</span> <span style="color: #000000;">58</span> <span style="color: #000000;">)</span></div>[/code:3v48hto7]
|
::tocalc [Openoffice] not run!! Solved !!
|
Please make the following changes in xBrowse.Prg
Method ToCalc(), Line No:7076
[code=fw:qxr227qj]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">DEFAULT</span> nPasteMode:=<span style="color: #000000;">1</span></div>[/code:qxr227qj]
Change to
[code=fw:qxr227qj]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">DEFAULT</span> nPasteMode:=<span style="color: #000000;">2</span></div>[/code:qxr227qj]
Method ToCalc(), Line No : 7222
[code=fw:qxr227qj]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">(</span> cText <span style="color: #000000;">)</span><br /> cText += CRLF<br /> <span style="color: #00C800;">endif</span></div>[/code:qxr227qj]
Change to
[code=fw:qxr227qj]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">(</span> cText <span style="color: #000000;">)</span><br /> cText += Chr<span style="color: #000000;">(</span><span style="color: #000000;">13</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span></div>[/code:qxr227qj]
Method ToCalc(), Line No: 7255
[code=fw:qxr227qj]<div class="fw" id="{CB}" style="font-family: monospace;">oDispatcher:<span style="color: #000000;">ExecuteDispatch</span><span style="color: #000000;">(</span>oBook:<span style="color: #000000;">GetCurrentController</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #000000;">GetFrame</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">".uno:Paste"</span>, <span style="color: #ff0000;">""</span>, <span style="color: #000000;">0</span>, aProp<span style="color: #000000;">)</span></div>[/code:qxr227qj]
Change to
[code=fw:qxr227qj]<div class="fw" id="{CB}" style="font-family: monospace;">oDispatcher:<span style="color: #000000;">ExecuteDispatch</span><span style="color: #000000;">(</span>oBook:<span style="color: #000000;">GetCurrentController</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #000000;">GetFrame</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">".uno:Paste"</span>, <span style="color: #ff0000;">""</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">{</span><span style="color: #000000;">}</span><span style="color: #000000;">)</span></div>[/code:qxr227qj]
Regards
[b:qxr227qj]Anser[/b:qxr227qj]
|
::tocalc [Openoffice] not run!! Solved !!
|
ok NOW RUN !!!!
|
::tocalc [Openoffice] not run!! Solved !!
|
Antonio,
pls save this modifies for the next fwh version
|
::tocalc [Openoffice] not run!! Solved !!
|
Added for next build, thanks! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
:BAckup de MariaDB da error
|
Amigos...
Tengo una tabla con una campo BLOB que contiene una imagen binaria... el :backup de mariadb da error... simplemente se sale, cuando quité la imagen del campo blob, funciona perfectamente
al parecer :backup no puede leer los campos con datos de imagen o binarios...
Alguna solucion?
Gaacias
|
:BAckup de MariaDB da error
|
Hola Willi !!!
[url:3j75tb87]http://fivetechsupport.com/forums/viewtopic.php?f=3&t=41244&sid=cc6b6bed96c4145c15273d4b6754f4c8[/url:3j75tb87]
Feliz y Prospero Año Nuevo !!
Saludos,
|
:Click() error when TButton is disabled
|
Antonio, I found a little bug in TButton class using bWhen clause and Click method:
If bWhen clause is invalid but I do oBtn:Click() the bAction referred to oBtn is executed, a little sample:
redefine button oBtn ... of oDlg action AnyAction()
oBtn:bWhen := {|| .F. }
oDlg:bKeyDown := {|k| if(k=VK_F9, oBtn:Click(),) } // F9 fire action
function AnyAction()
? "oBtn was clicked"
return( Nil )
To solve I did: (In TButton.prg)
METHOD Click() CLASS TButton
if ! ::lProcessing
if ::bWhen # Nil .and. ! eval( ::bWhen )
return( Nil )
endif
(...)
--------------
*** I don't tested if it occur in other button controls like TBtnBmp, etc.
Regards,
Maurilio
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.