topic stringlengths 1 63 | text stringlengths 1 577k ⌀ |
|---|---|
A problem with GradientBrush() | Ok, thank you.
EMG |
A problem with GradientBrush() | Mr EMG
>>
One more problem. How can I get transparent controls (ie. the SAY in the following sample) and not transparent image control at the same time?
>>
Please try this modified code:
[quote:164vnqec]#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oDlg, oBrush
LOCAL cPath := 'c:\fwh\bitmaps\' // change to y... |
A problem with GradientBrush() | Enrico,
Please try this example which provides a good understanding about how brushes reuse works.
The problem with your examples is that you were modifying a brush that was already in use by the previous dialog. The solution is to end() its use and create a new one, so we don't interfere with the original one.
[cod... |
A problem with GradientBrush() | In this example, lets asume that we want to use the same gradient colors for all our dialogs, so we can create just one brush and reuse it in all dialogs:
[code=fw:152s7bot]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Fivew... |
A problem with GradientBrush() | [quote="Antonio Linares":yokz9bqq][code=fw:yokz9bqq]<div class="fw" id="{CB}" style="font-family: monospace;">oDlg:<span style="color: #000000;">oBrush</span>:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />oDlg:<span style="color: #00000... |
A problem with GradientBrush() | [quote="Antonio Linares":3fkes72q][code=fw:3fkes72q]<div class="fw" id="{CB}" style="font-family: monospace;">oDlg:<span style="color: #000000;">oBrush</span>:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #0000... |
A problem with GradientBrush() | Enrico,
We need to explicity release it because we have created a new brush.
It is not the original brush that was created by FWH. We have created a new one so we have to End() it. Keep in mind that End()s simply decrease the use counter and if it reaches zero, then it is finally destroyed calling DeleteObject().
Th... |
A problem with GradientBrush() | Ok. And what do you say about
[code=fw:37g4cvg0]<div class="fw" id="{CB}" style="font-family: monospace;">oDlg:<span style="color: #000000;">oBrush</span>:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />oDlg:<span style="color: #000000;"... |
A problem with GradientBrush() | >>
oDlg:SetBrush( TBrush():New( ,,,, hBmp ) )
>>
TBrush():new() creates a brush object and sets the count to 1. oWnd/oDlg:SetBrush( oBrush ) increments count to 2. When the window/dialog is closed, the count of oBrush is decremented to 1. The program that first creates the brush is responsible to finally release the br... |
A problem with GradientBrush() | Ok, thank you. Maybe it's slightly unexpected that SetBrush() increments the brush counter, isn't it?
EMG |
A problem with GradientBrush() | Enrico,
Method SetBrush() has to increase the counter. Thats its main utility <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
We need to increase it when it is assigned to a new object, that will use it, and it will be automatically decreased from Method Destroy() when th... |
A problem with GradientBrush() | >>
Ok, thank you. Maybe it's slightly unexpected that SetBrush() increments the brush counter, isn't it?
>>
This is Mr. Antonio's well thought of ingenious way of reusing resources like fonts, brushes, etc. Once we understand the architecture, we know what to do.
Simple rule we are asked to remember is that
(1) w... |
A problem with GradientBrush() | Dear Rao,
We learned this technique from Windows itself. It does it the same way <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
A problem with GradientBrush() | Maybe it's a matter of naming. One doesn't expect that a method called SetBrush() creates a brush but merely assigns an existing one. So, why does it have to increase the brush counter as if it's creating one?
EMG |
A problem with GradientBrush() | Enrico,
The counter is not to count the created brushes. The counter counts the number of users <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
When you assign a brush to an object, the number of users of the brush increases. |
A problem with GradientBrush() | Mr Antonio
Let me put Mr. Enrico's question in a different way.
If the programmer creates a brush/font and uses it in as many windows ( and derivatives ) as he wants and releases the brush/font after all such windows are closed by him, there is no harm even if the FWH library does not keep count of the number of user... |
A problem with GradientBrush() | [quote="Antonio Linares":3gas9qqu]Enrico,
The counter is not to count the created brushes. The counter counts the number of users <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
When you assign a brush to an object, the number of users of the brush increases.[/quote:3gas9... |
A problem with GradientBrush() | Enrico,
You are right, Method SetBrush() already End()s (and decreases) the previous used brush counter, so there is no need to call oBrush:End() as I have done in my examle <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
A problem with GradientBrush() | Ok, please review this revised version:
[code=fw:3em5yudx]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">(</spa... |
A problem with GradientBrush() | Enrico,
It seems as the source code for function Test() is missing in your example |
A problem with GradientBrush() | Ok, this is even better:
[code=fw:3bg9gi9a]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">(</span><span style=... |
A problem with GradientBrush() | Now the image can be set to not-transparent:
[code=fw:ugm9wee6]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Image.ch"</span><br ... |
A problem with GradientBrush() | I don't understand. Please explain what your generalization is suppose to do.
EMG |
A problem with GradientBrush() | There is a problem in the bEraseBkGnd of TSay. The following sample doesn't show a colored SAY if the theme is activated:
[code=fw:22zqgzva]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><span style="color: ... |
A problem with GradientBrush() | [quote:2g2uysit] AEVAL( oDlg:aControls, { | oCtl | If( oCtl:lTransparent, oCtl:SetBrush( oDlg:oBrush ), ) } )
[/quote:2g2uysit]
Code given below is more generic
[code=fw:2g2uysit]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00C800;">if</span> ValType<span style... |
A problem with GradientBrush() | This is a possible fix:
[code=fw:37utvfn2]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> EraseBkGnd<span style="color: #000000;">(</span> hDC <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TSay <br /><br /> <s... |
A problem with GradientBrush() | But that not fixes the initial color problem (ie. the COLOR clause doesn't work with themes activated).
EMG |
A problem with GradientBrush() | Enrico,
Are those examples working fine for you ? Here they are working fine on both Windows 7 and XP. |
A problem with GradientBrush() | Please try this sample. The SAY doesn't get the background color. When I click on the button it gets the background color (using XP):
[code=fw:243altm3]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><br /><b... |
A problem with GradientBrush() | Enrico,
In my opinion it is a right behavior, I explain you why <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
clause TRANSPARENT on the dialog means that we want to use the "background" of the dialog, thats why the dialog overrides the SAY background color (the SAY brus... |
A problem with GradientBrush() | >In my opinion it is a right behavior
I agree.
Regards,
James |
A problem with GradientBrush() | Ok, I given up to use colored labels.
EMG |
A problem with GradientBrush() | Enrico,
Well I would also like to see folders with colored tabs.
[quote:2wfrs88m]clause TRANSPARENT on the dialog means that we want to use the "background" of the dialog, thats why the dialog overrides the SAY background color (the SAY brush is replaced).[/quote:2wfrs88m]
Actually, I am not sure this is the best wa... |
A problem with GradientBrush() | Enrico,
[quote:1k07oo54]But that not fixes the initial color problem (ie. the COLOR clause doesn't work with themes activated).[/quote:1k07oo54]
I'm not sure how this is supposed to work. Are themes supposed to override all defined colors in the application, or only certain colors?
It does seem that it would be use... |
A problem with GradientBrush() | Enrico,
As far as I understand you, it seems as you want to have dialogs that use the clause TRANSPARENT but have SAYs with colored backgrounds (instead of using "transparent" ones).
Is that what you mean ? thanks
I guess we can easily implement it <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" titl... |
A problem with GradientBrush() | [quote="Antonio Linares":2i3ldziu]Enrico,
As far as I understand you, it seems as you want to have dialogs that use the clause TRANSPARENT but have SAYs with colored backgrounds (instead of using "transparent" ones).
Is that what you mean ? thanks
I guess we can easily implement it <!-- s:-) --><img src="{SMILIES_PA... |
A problem with GradientBrush() | The following sample seems to work at first but if you cover the dialog and then uncover it you will see that the colored background of the SAY is gone:
[code=fw:25m9d214]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Fivewin.ch"</... |
A problem with GradientBrush() | [code=fw:352u0or3]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">(</span><span style="color: #000000;">)</sp... |
A problem with GradientBrush() | Thank you, James.
EMG |
A problem with SAY and font- style and < size default > | Hello,
I noticed a SAY painting problem and needed the following adjustment :
@ 26 * nFactor, 25 * nFactor SAY oDay PROMPT cDay OF oWnd FONT oFontDay PIXEL UPDATE
oDay:SetColor ( aVal[23], )
oDay:lTransparent := .T.
oDay:nLeft := ( oWnd:nWidth() - oDay:nWidth() ) / 2
[color=#0000FF:1x288g4q]oDay:nHeight += 5[/color:... |
A problem with SAY and font- style and < size default > | small sample? |
A problem with SAY and font- style and < size default > | The same result creating a sample
[size=150:e18orla0]the black titles and frames I got after the last Window 10 - update ( 2 days ago )[/size:e18orla0] <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
All titles are black now word, exel ....
maybe possible to fix it <!-- s:?: --... |
A problem with SAY and font- style and < size default > | Uwe, looks perfect. I did not find any errors. I did not understand.
[code=fw:2rzzazvc]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">STATIC</span> oWnd<br /><br /><... |
A problem with SAY and font- style and < size default > | Did You delete the marked lines for the width and height correction
to make the problem visible ?
You will see the difference without these lines and value -5
[color=#0000FF:26pcc2du]oTime:nHeight += 5
oTime:nWidth += 5 // Italic[/color:26pcc2du]
oTime:nLeft := ( oWnd:nWidth() - oTime:nWidth() ) / 2 [color=#0000FF:26... |
A problem with SAY and font- style and < size default > | In Class TSAY I added
Line 93
[b:36kg1t5c]// DEFAULT nWidth := SAY_CHARPIX_W * Len( ::cCaption ) - 4
DEFAULT nWidth := GetTextWidth( 0, ::cCaption, If( oFont != nil, oFont:hFont,;
If( oWnd:oFont != nil, oWnd:oFont:hFont,) ) ) [color=#0000FF:36kg1t5c] + 5[/color:36kg1t5c][/b:36kg1t5c]
because NO textwid... |
A problem with TDatabase using copy() / Past() ? | Hello,
I noticed a problem using tDatabase Copy() / Paste([color=#FF0000:q85bvmsz]aVals[/color:q85bvmsz])
Wihout selected fields, record 9 is copied to 10
[img:q85bvmsz]http://www.pflegeplus.com/IMAGES/Network13.jpg[/img:q85bvmsz]
METHOD Copy()
METHOD Paste( aVals )
using Paste() without aVals works... |
A problem with TDatabase using copy() / Past() ? | TDatabase is already Net Ready.
There is no need for NET_* functions for TDatabase. This is unnecessary and superfluous.
Your code:
[code=fw:2uoehws2]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oCust:<span style="color: #000000;">Lock</span><span style="color: #000000;">(</span><span style="c... |
A problem with TDatabase using copy() / Past() ? | Mr Rao,
thank You very much for the detailed info
I changed the function and it works fine now <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
I think I can still optimize the other defined functions inside the sample as well.
I'm trying to test most of the tDatabase ... |
A problem with TDatabase using copy() / Past() ? | We do not think TDatabase methods need external help for optimization.
We recommend using them directly as FWH provided. |
A problem with TDatabase using copy() / Past() ? | Mr. Rao,
I dont' want to change or optimize anything.
I only want to create some samples where I can have a look for the practical usage
not wasting time searching inside the class or forum to get detailed infos.
That is the only reason.
I added Your swap - sample to the sample-dialog 3
[img:gyryamr6]http://www&... |
A problem with TDatabase using copy() / Past() ? | Do we have samples of xbrowse copy / paste ?
Is there a setting that shows a menu on right click to do the copy / paste of a record ( like there is for text ) ?
Are the values saved to the clipboard or are they lost when the xbrowse is closed. For example, if I open an xbrowse ( filtered ) and do a copy of a record,... |
A problem with TDatabase using copy() / Past() ? | [quote:1qt3jdl7]
Do we have samples of xbrowse copy / paste ?
[/quote:1qt3jdl7]
This is not a feature of xbrowse. This is a feature of TDatabase.
[quote:1qt3jdl7]
Is there a setting that shows a menu on right click to do the copy / paste of a record ( like there is for text ) ?
[/quote:1qt3jdl7]
No.
[quote:1qt3jdl7]
Ar... |
A problem with TDatabase using copy() / Past() ? | Mr. Tim
This thread is about Copy/Paste features of TDatabase.
XBrowse has its own powerful Copy/Paste features using clibboard. Contents of clipboard remain till they are cleared even after closing the xbrowse. These features work not only across different browsers of any data, but also to copy and paste between ext... |
A problem with function ChooseColor() ? | Hello,
I noticed a problem with < ChooseColor() >
restoring the old color, doesn't seems to work
a BREAK returns always 0 ( black )
Also tested changing the color BEFORE the break but still black
Return NIL would be ok, because 0 is a color as well can be selected.
tested as well with sample < LINES.prg >
[color=#00... |
A problem with function ChooseColor() ? | Uwe,
FWH function ChooseColor() supports two optional parameters:
[url:24iafixz]http://wiki.fivetechsoft.com/doku.php?id=fivewin_function_choosecolor[/url:24iafixz]
As the first parameter you may provide it the "oldColor" and that value will be returned
when the user press cancel |
A problem with function ChooseColor() ? | Antonio,
thank You very much for the info.
With included parameters in < ChooseColor() > it works fine now.
flag = 1 opens a small and flag = 2 opens a full color-selection.
best regards
Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
A problem with splitters ? | Hello,
I noticed with a mouseclick on a splitter,
the splitter is shown [color=#FF0000:21v4ec53]RESIZED[/color:21v4ec53]
the splitter is working adjusting the mouse-position
My GRADIENT-painting on panels is working
but is it possible to get a info about the new panelsize, if the horizontal splitter is moved ???
I n... |
A problem with splitters ? | Dear Uwe,
Have you tried with oPanel:bResized ? |
A problem with warnings | Compiling this sample:
[code=fw:2zkow80f]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">(</span><span style="co... |
A problem with warnings | Dear Encrico
With /w0
I can compile the sample without any warning
Regards |
A problem with warnings | Thank you, but you missed the point: I do want to use /w3.
EMG |
A problem with warnings | Enrico,
Maybe change this line:
@ 1, 1 GET cVar
To this:
@ 1, 1 GET cVar of oDlg
James |
A problem with warnings | No, this is a reduced sample still showing the problem:
[code=fw:2v5pfljt]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000... |
A problem with warnings | The warning come from the codeblock
[code=fw:3qa1h61a]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #000000;">{</span>|Self|<uInit><span style="color: #000000;">}</span></div>[/code:3qa1h61a]
and all the other similar codeblock where we don't use all the parameters.
EMG |
A problem with warnings | Enrico,
It seems that this is a valid warning, is it not? Or, are you just not wanting to see it regardless?
James |
A problem with warnings | Yes, exactly (see my first post in this thread).
EMG |
A problem with warnings | I found in the warning.txt in the xhb folder.
WARNING for XHB contrib users
=============================
This contrib is deprecated and not maintained anymore.
This was originally meant as a temporary stop-gap solution to help migrating
existing code written for xHarbour to Harbour, plus a means of documenting
the ... |
A problem with warnings | Thank you, but I can't see how this can be of any help regarding my problem.
I repeat: I need to use /w3 warning level switch but I don't want to see all that warnings originated by codeblocks parameters (that belong to FWH and are out of my control). I use /wb- with xHarbour, how can I get the same result with Harbou... |
A problem with warnings | /es[<level>] set exit severity
/w[<level>] set warning level number (0..3, default 1)
Strange, it only works this way.
[code=fw:30ha9tp1]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> /m /n /w1 /es2<br /> </div>[/code:30ha9tp1] |
A problem with warnings | Enrico,
I have a couple modules where I haven't figured out what to change in the code to suppress certain warnings. I found that in harbour I can use #pragma to suppress the warning locally within the problem files.
#pragma WARNINGLEVEL = 3 // or whatever
#pragma ENABLEWARNINGS = OFF/ON
Robb |
A problem with warnings | Thank you, but I don't know how to suppress codeblock parameters warning in Harbour, even using compiler switches. In xHarbour I'm using /wb- but Harbour doesn't support it.
EMG |
A problem with warnings | I don't know how to do it with a command line switch either, but with the pragmas I noted this will suppress the message for the specific section of effected code. Depending on code organization this can be a hassle to add, but does this not do what you want?
#pragma WARNINGLEVEL = 1
ACTIVATE DIALOG oDlg;
... |
A problem with warnings | Using your sample, this shows exactly how I have been dealing with this in my own code.
[code=fw:19roiypd]<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 />#translate SUPPRESS_WARNING => <span style... |
A problem with warnings | Understood, thank you. Unfortunately there are way too many points to change in a real application. Better use /w if there are no other way. <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> Or keep using xHarbour. <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" t... |
A problem with xBrowse Image Cell-Align ? ( + toolpreview ) | Hello,
focused on testing graphical-solutions, during my tests with my new xBrowse-sample,
I noticed a problem with the [b:29gw2ksa]image-bottom [/b:29gw2ksa], using [color=#0000FF:29gw2ksa][b:29gw2ksa]cell-adjustment [/b:29gw2ksa][/color:29gw2ksa] ( missing some space )
[b:29gw2ksa]oBrw:aCols[ 8 ]:nDataBmpAlign [/b:... |
A problem with xBrowse and arrays | Can you tell me why this sample selects the workarea 0 after closing the window?
[code=fw:2wazi49p]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><br /><span style="color: #00C800;">FUNCTION</span> MAI... |
A problem with xBrowse and arrays | Can you tell me why this sample selects the workarea 0 after closing the window?
[code=fw:nlnhgpv4]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><br /><span style="color: #00C800;">FUNCTION</span> MAI... |
A problem with xBrowse and arrays | Thanks for pointing this out. This happens only when Evaluation of bEditValue results in an error. (In the present case when oBrw:nArrayAt > 3 ).
This does not happen where the bEditValue is valid for the entire browse.
This is fixed in 18.04. |
A problem with xBrowse-keyboard navigation ? | Hello,
I noticed a problem with the xBrowse-keyboard usage
I need the row- and column-position on cell-change using the keyboard
On mouseclick no problem.
The screenshot shows the problem
moving inside the SAME row to the next cell, the column-no. is not updated
Only changing the rowposition after the change it works... |
A problem with xBrowse-keyboard navigation ? | Your observation is not correct.
The SelectedCol() and nColSel are updated even when the column is changed by arrow keys.
But by default, your bChange is called when row is changed but not when column only is changed.
If you set oBrw:lColChangeNotify := .T. (default .f.), your on change code can see the changes in th... |
A problem with xBrowse-keyboard navigation ? | Mr. Rao,
[quote:10fohnz9]If you set oBrw:lColChangeNotify := .T. (default .f.), your on change code
can see the changes in the selected column also.[/quote:10fohnz9]
thank You very much.
That was the missing info. It is working now and returns the selected column-number.
regards
Uwe <!-- s:D --><img src="{SMILIES_P... |
A problem with xBrowse-keyboard navigation ? | Mr. Rao,
[quote:2voinypm]If you set oBrw:lColChangeNotify := .T. (default .f.), your on change code
can see the changes in the selected column also.[/quote:2voinypm]
thank You very much.
That was the missing info. It is working now and returns the selected column-number.
regards
Uwe <!-- s:D --><img src="{SMILIES_P... |
A problem with xImage and JPG | A alphablended JPG with xImage how is that possible <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
The normal formats using transparent are : GIF, PNG, TIF and BMP
[img:23r2tid9]http://www.service-fivewin.de/IMAGES/xImage5.jpg[/img:23r2tid9]
[siz... |
A problem with xImage and JPG | Example, PRG?
Regards. |
A problem with xImage and JPG | Nothing extra.
It is the original sample xImage01.prg from the sample-folder
You can test it from there.
For the test I added the image to the imagefolder thats all.
Just see the picture above
regards
Uwe |
A problem with xImage and JPG | Master, this JPG is damaged. I opened it with IRFANVIEW.EXE and the image is not perfect. Try another one please.
Greetings. |
A problem with xImage and JPG | Look,
[img:mdr72hkv]https://i.imgur.com/Pj7Glhx.png[/img:mdr72hkv]
Regards. |
A problem with xImage and JPG | I*m using a professional sofware PHOTOSHOP and there is no error.
Most of JPG-files don't use solid colors on the border-area.
That is the reason black is shown transparent.
With my new < cellborder-tool > it is possible to test it as well.
The image-selection from the browser is using xImage.
I tested some more JPG*... |
A problem with xImage and JPG | Please try chaing oBrw:bChange as
[code=fw:13uw2lrd]<div class="fw" id="{CB}" style="font-family: monospace;"> :<span style="color: #000000;">bChange</span> := <span style="color: #000000;">{</span> || oImage:<span style="color: #000000;">lBmpTransparent</span> := !<span st... |
A problem with xImage and JPG | Thank You very much
it is working now <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
solid color-areas are rarely inside JPG-files special on the outline area <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll:... |
A problem xBrowse Total and Index UNIQUE | Hello,
is it possible to use xbrowse total with a index UNIQUE ?
sample :
A customer can have many bills the same time
each bill can have many positions
[color=#0000FF:1y7j1sej]each position[/color:1y7j1sej] includes the [b:1y7j1sej]invoice total[/b:1y7j1sej]
using index UNIQUE I display each bill with the invoice to... |
A problem xBrowse Total and Index UNIQUE | Same result using a original FWH-sample
[img:h7tegiov]http://www.pflegeplus.com/IMAGES/XbrwTotal4.jpg[/img:h7tegiov]
Not possible to refresh footers with total
calculated footers are working fine
[img:h7tegiov]http://www.pflegeplus.com/IMAGES/XbrwTotal5.jpg[/img:h7tegiov]
I created a... |
A problem xBrowse and RELATION of 2 DBF's | Hello,
I noticed a problem us RELATION
[color=#0000FF:tdkxkbds]DBSELECTAREA( "KUNDE" )
( "KUNDE" )->(DBSETORDER( "KUNDE1" ))
( "KUNDE" )->( ORDSETRELATION( cMonat, { || UPPER(NAME1 + NAME) }, "UPPER(NAME1 + NAME)" ) )
( "KUNDE" )->( DBGOTOP() )[/color:tdkxkbds]
After selecting a row in browser 2, the values are disp... |
A problem xBrowse and RELATION of 2 DBF's | A test with a created sample ( a combination of UNIQUE and RELATION ).
The same effect :
On 1. click in browser 2 on row 4 < Acker > ( selected in browser 1 ),
the 1. row is shown as selected ( moved )
On 2. click ( same row ) the selected row stays activated.
The effect is shown only on FIRST CLICK !!!
Selecting an... |
A problem xBrowse and RELATION of 2 DBF's | added a SAY of the selected salary to show the problem.
the selected salary of row 4 is shown but doesn't stay in row 4 and moves to row 1
It happens ONLY on 1. click. The Second click is ok.
[img:2wcmepje]http://www.pflegeplus.com/IMAGES/Relation3.jpg[/img:2wcmepje]
best regards
Uwe <!-- s:?: --><img... |
A problem xBrowse and RELATION of 2 DBF's | I tested and saw the problem.
On the other hand, why not use scopes?
Regards. |
A problem xBrowse and RELATION of 2 DBF's | Francisco,
thank You very much.
I changed the source-part using SCOPES and it works perfect without this funny jump-effect.
I didn't think about this solution.
It was a translation of a part from Clipper-times I didn't change and I kept the logic using RELATION.
best regards
Uwe <!-- s:D --><img src="{SMILIES_PATH}/i... |
A problem xBrowse and RELATION of 2 DBF's | A extended sample with some new tests
Download :
<!-- m --><a class="postlink" href="http://www.pflegeplus.com/DOWNLOADS/Xbrwtest3.zip">http://www.pflegeplus.com/DOWNLOADS/Xbrwtest3.zip</a><!-- m -->
[color=#0040FF:gh5hs6e2][b:gh5hs6e2]1. testing SCOPE ( browser 2 )
2. scoped browser with record MOVE-test
3. drawing... |
A problem xBrowse seek < numeric + character > | Hello,
I noticed a problem on SEEK with a field-combination numeric + character
I need the field < klasse0 > defined, because it is a GROUP-number.
DOESN't work !
wrong results
typing < 1 > shows 100 and next 150
[color=#008000:3deygjfn]The seek works with < [b:3deygjfn]SPACE[/b:3deygjfn] + 1 + 5 [/color:3deygjfn]... |
A problem xBrowse seek < numeric + character > | XBrowse simply uses
dbseek( upper( trim( cSeek ) )
xbrowse incremental seek works the same way as dbseek. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.