topic
stringlengths
1
63
text
stringlengths
1
577k
Checkbox still strange
Tim, [quote:1215vvuh]CONTROL "Core", 750, "Button", BS_AUTOCHECKBOX|WS_TABSTOP, 80, 220, 40, 13[/quote:1215vvuh] I note that when I create a default style checkbox in Workshop it looks like this: [quote:1215vvuh] CHECKBOX "Checkbox", IDC_CHECKBOX1, 88, 20, 60, 12, BS_AUTOCHECKBOX | WS_TABSTOP[/quote:1215vvuh] Are you using a different resource editor, or do you use a different type of control for a reason? Regards, James
Checkbox still strange
James, I actually don't use a resource editor anymore. I do all my fine tuning "by hand". However, "Button" is correct and works. I think we were given that guidance when we first went to themes. Of course, the issue still comes back to the shift in code from 10.06 to 10.07.
Checkbox still strange
Tim, Please modify your RC as James has suggested you. That may be the reason of the problem
Checkbox still strange
I tried that and got an error ! Also, it works fine with 10.06 but not 10.07 plus.
Checkbox still strange
Tim, What was the error? James
Checkbox still strange
The error when trying to compile is "String literal expected"
Checkbox still strange
Tim, I think that such an approach is very time consuming and inconclusive. The right way to rapidly solve the issue is to make a reduced and self-contained sample showing the problem. EMG
Checkbox still strange
If I can't reproduce the problem how can I fix it? Anyway, can you check the value of ::lTransparent inside of HandleEvent() method (write its value to a log)? EMG
Checkbox still strange
Enrico, If it was reproduceable ( consistent in all areas ) I would do that as I have in the past. In this case, it is reproduceable only in the much larger code of the application ... some places it works, some it doesn't. Again, it works perfectly with 10.6 but not 10.7 and beyond. I have also isolated it to the control.prg and listed the areas where there is a code change ! If I could make a small code to show it, I would. However, someone made the changes to the control class in the July release, and knows what else might be involved. If I simply put in the 10.6 code the problem goes away !
Checkbox still strange
Tim, Have you tried linking in the ver 10.6 control.prg with the 10.7 FWH version. This would confirm that the problem is in the control.prg code and not elsewhere. Regards, James
Checkbox still strange
lTransparent is .t. for the keyclick. I understand your question. I have to do this soft of evaluation all the time. Often a client has a problem I can't duplicate. However, the reality is that something changed. If I simply substituted in the 10.06 control.prg, the problem goes away. I am going to try adding in the changes one section at a time to the 10.06 code until the problem starts ... then I can tell you exactly !
Checkbox still strange
This is the offending code: case nMsg == WM_LBUTTONDOWN if ::lTransparent .and. ( ::IsKindOf( "TRADIO" ) .or. ::IsKindOf( "TCHECKBOX" ) ) ::oWnd:Refresh( .f. ) endif return ::LButtonDown( nHiWord( nLParam ), nLoWord( nLParam ), nWParam ) The changes to WM_UPDATEUISTATE and the addition of WM_LBUTTONUP are fine. Howevever, with LBUTTONDOWN I'm having to double click the checkboxes. Also setting the default to lTransparent to .f. is not a problem. The only other change in the code was with the FOLDER, and that is not a problem. So, the need to double click a checkbox is limited to the above addition made to 10.07. Any thoughts on why or what is wrong ?
Checkbox still strange
Try replacing [code=fw:1ycgljlg]<div class="fw" id="{CB}" style="font-family: monospace;">::<span style="color: #000000;">oWnd</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span> .f. <span style="color: #000000;">&#41;</span></div>[/code:1ycgljlg] with [code=fw:1ycgljlg]<div class="fw" id="{CB}" style="font-family: monospace;">::<span style="color: #000000;">oWnd</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></div>[/code:1ycgljlg] EMG
Checkbox still strange
It still requires a double click, but the flash returns !
Checkbox still strange
Ok. Is the problem solved without side effects if you completely remove the case WM_LBUTTONDOWN? EMG
Checkbox still strange
James, As you probably saw from the additional posts, I was able to isolate the problem to the WM_LBUTTONDOWN case in the event handler. Yes, it was added in 10.7, and not present in 10.6. All other changes in 10.7 were fine and did not cause a problem. Those same changes exist through 10.10. EMG Yes, if I comment out WM_LBUTTONDOWN from the 10.10 ( or previous ) version of FWH, then the problem goes away. I'm wondering if there is a variable name in conflict in the classes. The problem is that this occurs consistently in some dialogs, on every checkbox. In other dialogs, it does not occur. It is always the same dialogs, and it is universal within them. That is why I can't give you a sample. Why was the WM_LBUTTONDOWN added ? Perhaps I can better get this resolved if I knew the reason it was necessary in 10.7 when it worked fine without these changes in all previous versions. The solution to the problem probably lies within this reason. Thanks. Tim
Checkbox still strange
Maybe this: [quote:6va1mivc]* Fix: samples\GradBrus.prg was failing when Alt was pressed or the mouse was clicked on a radio or a checkbox. We have modified Class TControl Method HandleEvent() to solve it.[/quote:6va1mivc] Can you try to take one of your dialogs showing the problem, extract it from your app, make the extracted code self-contained and then show us the resulting code? EMG
Checkbox still strange
Tim, [quote:lxj75nl0]CONTROL "Core", 750, "Button", BS_AUTOCHECKBOX|WS_TABSTOP, 80, 220, 40, 13[/quote:lxj75nl0] I still wonder about the above. What is a "core" control? Then it seems to be defined as both a button and a checkbox. Where did you get this syntax? Perhaps your syntax was only working before because there was a bug in the FW code and now that the bug has been fixed it doesn't work. I wonder why you are getting an error when trying to use a standard checkbox control. As Enrico mentioned, I think it would help if we could see the code for one of the dialogs that is giving you the problem. I would also like to see the preprocessor output. You mentioned varaible name conflicts; are you using publics and/or privates? Regards, James
Checkbox still strange
[quote="James Bott":8wply6oy]I still wonder about the above. What is a "core" control?[/quote:8wply6oy] James, you have misunderstood: "Core" is the label, "Button" is the control type. <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> EMG
Checkbox still strange
I did better then I thought. Here is a "cut down" dialog [code=fw:ensotr7n]<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;">"tdata.ch"</span><br /><span style="color: #00D7D7;">#INCLUDE</span> <span style="color: #ff0000;">"wcolors.CH"</span><br /><span style="color: #00D7D7;">#INCLUDE</span> <span style="color: #ff0000;">"xbrowse.CH"</span><br /><br /><br /><span style="color: #00C800;">FUNCTION</span> TestInv<br /><br />    <span style="color: #B900B9;">// Declare PRIVATE variables</span><br />    <span style="color: #00C800;">PRIVATE</span> oDiw, oInv, oInvr, oLbxin                   <span style="color: #B900B9;">// Main dialog object</span><br /><br />    <span style="color: #B900B9;">// Open the inventory database  and set the index to part number order</span><br />    oInv := tdata<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">new</span><span style="color: #000000;">&#40;</span>, <span style="color: #ff0000;">"einmst"</span> <span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">IF</span> !oInv:<span style="color: #000000;">use</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />        MsgAlert<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Inventory file could not be opened"</span> <span style="color: #000000;">&#41;</span><br />        <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">nil</span><br />    <span style="color: #00C800;">ENDIF</span><br />    oInv:<span style="color: #000000;">setorder</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"einnum"</span> <span style="color: #000000;">&#41;</span><br />    oInv:<span style="color: #000000;">gotop</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />  <br />  <span style="color: #B900B9;">// Create the tRecord for editing</span><br />  oInvr:= TRecord<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">new</span><span style="color: #000000;">&#40;</span> oInv <span style="color: #000000;">&#41;</span><br /><br />    <span style="color: #B900B9;">// Create the editor dialog</span><br />    <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDiw <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"PRO2100"</span> TRANSPARENT <span style="color: #B900B9;">// BRUSH oBrush TRANSPARENT </span><br /><br />    <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">CHECKBOX</span> oInvr:<span style="color: #000000;">invcof</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">750</span> <span style="color: #0000ff;">OF</span> oDiw ;<br />        <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Does this part have cores attached ?"</span> <span style="color: #0000ff;">UPDATE</span><br />    <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">CHECKBOX</span> oInvr:<span style="color: #000000;">invtxf</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">749</span> <span style="color: #0000ff;">OF</span> oDiw ;<br />        <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Is this part generally taxable ?"</span> <span style="color: #0000ff;">UPDATE</span><br />    <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">CHECKBOX</span> oInvr:<span style="color: #000000;">invtyp</span>  <span style="color: #0000ff;">ID</span> <span style="color: #000000;">748</span> <span style="color: #0000ff;">OF</span> oDiw ;<br />        <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Is this a stocking part ?"</span>  <span style="color: #0000ff;">UPDATE</span><br />    <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">CHECKBOX</span> oInvr:<span style="color: #000000;">invapa</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">747</span> <span style="color: #0000ff;">OF</span> oDiw ;<br />        <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Should there be a parts kit attached to this item ? "</span> <span style="color: #0000ff;">UPDATE</span><br />  <br />    <span style="color: #B900B9;">// Create the browse control</span><br />    <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">XBROWSE</span> oLBxin <span style="color: #0000ff;">ID</span> <span style="color: #000000;">716</span> <span style="color: #0000ff;">OF</span> oDiw <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> <span style="color: #000000;">&#40;</span> oInvr:<span style="color: #000000;">load</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oDiw:<span style="color: #0000ff;">update</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">UPDATE</span><br />    oLbxin:<span style="color: #000000;">setoDBF</span><span style="color: #000000;">&#40;</span> oInv <span style="color: #000000;">&#41;</span><br />    add <span style="color: #0000ff;">to</span> oLbxin header <span style="color: #ff0000;">"Part"</span> <span style="color: #00C800;">data</span> oInv:<span style="color: #000000;">invnum</span> ALIGN <span style="color: #0000ff;">LEFT</span><br />    add <span style="color: #0000ff;">to</span> oLbxin Header <span style="color: #ff0000;">"Description"</span> <span style="color: #00C800;">data</span> oInv:<span style="color: #000000;">invdes</span> ALIGN <span style="color: #0000ff;">LEFT</span><br />    add <span style="color: #0000ff;">to</span> oLbxin header <span style="color: #ff0000;">"Cross Ref."</span> <span style="color: #00C800;">data</span> oInv:<span style="color: #000000;">invcod</span> ALIGN <span style="color: #0000ff;">LEFT</span><br />    add <span style="color: #0000ff;">to</span> oLbxin header <span style="color: #ff0000;">"On Hand"</span> <span style="color: #00C800;">data</span> oInv:<span style="color: #000000;">invstk</span> ALIGN <span style="color: #0000ff;">RIGHT</span> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"9999.99"</span><br />    add <span style="color: #0000ff;">to</span> oLbxin Header <span style="color: #ff0000;">"Charge"</span> <span style="color: #00C800;">data</span> oInv:<span style="color: #000000;">invchg</span> ALIGN <span style="color: #0000ff;">RIGHT</span> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"99,999.99"</span><br />    add <span style="color: #0000ff;">to</span> oLbxin Header <span style="color: #ff0000;">"Location"</span> <span style="color: #00C800;">data</span> oInv:<span style="color: #000000;">invloc</span> ALIGN <span style="color: #0000ff;">LEFT</span><br />    add <span style="color: #0000ff;">to</span> oLbxin Header <span style="color: #ff0000;">"Manufacturer"</span> <span style="color: #00C800;">data</span> oInv:<span style="color: #000000;">invman</span> ALIGN <span style="color: #0000ff;">LEFT</span><br /><br />    <span style="color: #B900B9;">// Activate the dialog screen</span><br />    <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDiw <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> oLbxin:<span style="color: #000000;">setfocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#40;</span> oDiw:<span style="color: #0000ff;">center</span><span style="color: #000000;">&#40;</span>wndmain<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />    <br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><br /> </div>[/code:ensotr7n] [code=fw:ensotr7n]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// RESOURCE SCRIPT FOR ASW9  Updated:  09/2009 to 11/2009</span><br /><br /><span style="color: #00D7D7;">#include</span> <windows.h><br /><span style="color: #00D7D7;">#include</span> <commctrl.h><br /><span style="color: #00D7D7;">#include</span> <richedit.h><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"asw8.h"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\i</span>nclude<span style="color: #000000;">\W</span>inApi.ch"</span><br /><br /><span style="color: #000000;">1</span> <span style="color: #000000;">24</span> <span style="color: #ff0000;">"WindowsXP.Manifest"</span><br /><br />LANGUAGE LANG_ENGLISH,SUBLANG_ENGLISH_US<br /><br />PRO2100 <span style="color: #0000ff;">DIALOG</span> DISCARDABLE <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">660</span>, <span style="color: #000000;">175</span><br /><span style="color: #0000ff;">STYLE</span> WS_POPUP|DS_MODALFRAME|WS_CAPTION|WS_VISIBLE<br />CAPTION <span style="color: #ff0000;">"Checkbox Test Program"</span><br /><span style="color: #0000ff;">FONT</span> <span style="color: #000000;">8</span>, <span style="color: #ff0000;">"Arial"</span><br />BEGIN<br />  CONTROL <span style="color: #ff0000;">""</span>, <span style="color: #000000;">716</span>, <span style="color: #ff0000;">"TXBrowse"</span>, WS_TABSTOP|0x00a00000, <span style="color: #000000;">5</span>, <span style="color: #000000;">30</span>, <span style="color: #000000;">650</span>, <span style="color: #000000;">135</span><br />  CONTROL <span style="color: #ff0000;">"Tax"</span>, <span style="color: #000000;">749</span>, <span style="color: #ff0000;">"Button"</span>, BS_AUTOCHECKBOX|WS_TABSTOP, <span style="color: #000000;">10</span>, <span style="color: #000000;">5</span>, <span style="color: #000000;">40</span>, <span style="color: #000000;">13</span><br />  CONTROL <span style="color: #ff0000;">"Stock"</span>, <span style="color: #000000;">748</span>, <span style="color: #ff0000;">"Button"</span>, BS_AUTOCHECKBOX|WS_TABSTOP, <span style="color: #000000;">60</span>, <span style="color: #000000;">5</span>, <span style="color: #000000;">40</span>, <span style="color: #000000;">13</span><br />  CONTROL <span style="color: #ff0000;">"Core"</span>, <span style="color: #000000;">750</span>, <span style="color: #ff0000;">"Button"</span>, BS_AUTOCHECKBOX|WS_TABSTOP, <span style="color: #000000;">110</span>, <span style="color: #000000;">5</span>, <span style="color: #000000;">40</span>, <span style="color: #000000;">13</span><br />  CONTROL <span style="color: #ff0000;">"List"</span>, <span style="color: #000000;">747</span>, <span style="color: #ff0000;">"Button"</span>, BS_AUTOCHECKBOX|WS_TABSTOP, <span style="color: #000000;">160</span>, <span style="color: #000000;">5</span>, <span style="color: #000000;">32</span>, <span style="color: #000000;">13</span><br /> <br />END<br /><br /> </div>[/code:ensotr7n] The code is built into an .exe using FWH 10.10 and xHabour ( xBuilder /xCC ). If I make the KEYDOWN change to Control.prg, it works fine. Without it, the checkboxes require a double click. I am using database objects and you will see an xBrowse also present.
Checkbox still strange
I can't compile your sample but I see at least one error: [quote="TimStone":2heyqkxb][code=fw:2heyqkxb]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> oLbxin:<span style="color: #000000;">setfocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></div>[/code:2heyqkxb][/quote:2heyqkxb] What do you want to achieve using that line? EMG
Checkbox still strange
Enrico, [quote:fbc5tgwl]James, you have misunderstood: "Core" is the label, "Button" is the control type.[/quote:fbc5tgwl] OK, I see. But why use a button as a ckeckbox? Then he uses REDEFINE CHECKBOX in his code. Maybe this is a problem? The Checkbox class is a subclass of TControl, so I don't understand the relationship with the button class. I'm confused. James
Checkbox still strange
These two lines are equivalent: [code=fw:ec381a56]<div class="fw" id="{CB}" style="font-family: monospace;">CONTROL <span style="color: #ff0000;">"Core"</span>, <span style="color: #000000;">750</span>, <span style="color: #ff0000;">"Button"</span>, BS_AUTOCHECKBOX|WS_TABSTOP, <span style="color: #000000;">80</span>, <span style="color: #000000;">220</span>, <span style="color: #000000;">40</span>, <span style="color: #000000;">13</span></div>[/code:ec381a56] [code=fw:ec381a56]<div class="fw" id="{CB}" style="font-family: monospace;">AUTOCHECKBOX <span style="color: #ff0000;">"Core"</span>, <span style="color: #000000;">750</span>, <span style="color: #000000;">80</span>, <span style="color: #000000;">220</span>, <span style="color: #000000;">40</span>, <span style="color: #000000;">13</span>, BS_AUTOCHECKBOX | WS_TABSTOP</div>[/code:ec381a56] EMG
Checkbox still strange
[quote="James Bott":3ihwrnng]But why use a button as a ckeckbox?[/quote:3ihwrnng] A checkbox [b:3ihwrnng]is[/b:3ihwrnng] a kind of button. EMG
Checkbox still strange
[quote="TimStone":xnp4yy7u][code=fw:xnp4yy7u]<div class="fw" id="{CB}" style="font-family: monospace;">CONTROL <span style="color: #ff0000;">"Core"</span>, <span style="color: #000000;">750</span>, <span style="color: #ff0000;">"Button"</span>, BS_AUTOCHECKBOX|WS_TABSTOP, <span style="color: #000000;">110</span>, <span style="color: #000000;">5</span>, <span style="color: #000000;">40</span>, <span style="color: #000000;">13</span></div>[/code:xnp4yy7u][/quote:xnp4yy7u] Please try with [code=fw:xnp4yy7u]<div class="fw" id="{CB}" style="font-family: monospace;">CONTROL <span style="color: #ff0000;">"Core"</span>, <span style="color: #000000;">750</span>, <span style="color: #ff0000;">"Button"</span>, BS_AUTOCHECKBOX | BS_LEFTTEXT | WS_CHILD | WS_VISIBLE | WS_TABSTOP, <span style="color: #000000;">110</span>, <span style="color: #000000;">5</span>, <span style="color: #000000;">40</span>, <span style="color: #000000;">13</span></div>[/code:xnp4yy7u] This is how BRW defines a checkbox. EMG
Checkbox still strange
That is not an error ... when the dialog is created ( opened ), we want the focus to be on the xBrowse control. This is a subset of a much larger dialog, and there are other commands before this ( button bar ). This subset behaves exactly like the full program, however.
Checkbox still strange
[quote="TimStone":tpexbv89]That is not an error ... when the dialog is created ( opened ), we want the focus to be on the xBrowse control.[/quote:tpexbv89] So you have to use ON INIT clause, not ON PAINT. Please try. EMG
Checkbox still strange
That actually fixed the problem. So, why would that cause a problem with checkboxes, and why did it isolate from 10.6 to 10.7 ? Thanks
Checkbox still strange
Probably an interaction between paint and focus. EMG
Checkbox text disappears
I will start this in a new thread: WHEN CLICKING ON RADIO BUTTONS OR CHECKBOXES, the Text disappears. Here is an example of the problem.. This is a printer selection control. This is the RC. Note we are using Radio buttons this time. They are vertically stacked. The first one starts at position 10, and is 12 points high. So it goes to 22. The next one is at row 25. I use 15 point line spacing for all my dialogs and everything works fine except the behavior on the checkbox and radio controls when clicking one. [code=fw:3ftyknl9]<div class="fw" id="{CB}" style="font-family: monospace;"><br />PRNSELW <span style="color: #0000ff;">DIALOG</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">230</span>, <span style="color: #000000;">90</span><br /><span style="color: #0000ff;">STYLE</span> &nbsp;WS_POPUP | WS_CAPTION<br />CAPTION <span style="color: #ff0000;">"Printer Selection Options"</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; CONTROL &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"Use DEFAULT printer"</span>,<span style="color: #000000;">353</span>,<span style="color: #ff0000;">"Button"</span>,BS_AUTORADIOBUTTON,<span style="color: #000000;">57</span>,<span style="color: #000000;">10</span>,<span style="color: #000000;">108</span>,<span style="color: #000000;">12</span><br />&nbsp; &nbsp; CONTROL &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"Select an ALTERNATE printer"</span>,<span style="color: #000000;">354</span>,<span style="color: #ff0000;">"Button"</span>,BS_AUTORADIOBUTTON,<span style="color: #000000;">57</span>,<span style="color: #000000;">25</span>,<span style="color: #000000;">158</span>,<span style="color: #000000;">12</span><br />&nbsp; &nbsp; PUSHBUTTON &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">""</span>,<span style="color: #000000;">350</span>,<span style="color: #000000;">35</span>,<span style="color: #000000;">40</span>,<span style="color: #000000;">40</span>,<span style="color: #000000;">40</span><br />&nbsp; &nbsp; PUSHBUTTON &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">""</span>,<span style="color: #000000;">351</span>,<span style="color: #000000;">95</span>,<span style="color: #000000;">40</span>,<span style="color: #000000;">40</span>,<span style="color: #000000;">40</span><br />&nbsp; &nbsp; PUSHBUTTON &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">""</span>,<span style="color: #000000;">352</span>,<span style="color: #000000;">155</span>,<span style="color: #000000;">40</span>,<span style="color: #000000;">40</span>,<span style="color: #000000;">40</span><br /><span style="color: #000000;">&#125;</span><br />&nbsp;<br />&nbsp;</div>[/code:3ftyknl9] Here is the .prg code that uses this dialog: [code=fw:3ftyknl9]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">/* &nbsp;FUNCTION prnsel<br />&nbsp; &nbsp; &nbsp; Description: Printer selection control<br />&nbsp; &nbsp; &nbsp; Date updated: 9/29/2007<br />*/</span><br /><span style="color: #00C800;">FUNCTION</span> prnsel<br /><br />&nbsp; &nbsp; <span style="color: #B900B9;">// Declare EXTERNAL variables</span><br />&nbsp; <span style="color: #00C800;">LOCAL</span> ofBrush<br />&nbsp; &nbsp; MEMVAR oWnd, lGxPrsnt<br />&nbsp; &nbsp; <span style="color: #B900B9;">// Declare LOCAL variables</span><br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> prnmeth := <span style="color: #000000;">0</span>, oDlg, oRadOpt, lView := .F. , lPrint := .F. , nPrn := <span style="color: #000000;">1</span><br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> cTitle := <span style="color: #ff0000;">"Printer Selection Options"</span><br />&nbsp; &nbsp; lGxPrsnt := .T. <span style="color: #B900B9;">// Assign static values</span><br /><br />&nbsp; &nbsp; <span style="color: #B900B9;">// Create the dialog</span><br />&nbsp; <span style="color: #00C800;">IF</span> cWSshow = <span style="color: #ff0000;">"W"</span><br />&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"PRNSELw"</span> <span style="color: #0000ff;">BRUSH</span> oBrush transparent <span style="color: #0000ff;">TITLE</span> cTitle <br />&nbsp;&nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"PRNSEL"</span> <span style="color: #0000ff;">BRUSH</span> oBrush transparent <span style="color: #0000ff;">TITLE</span> cTitle <br />&nbsp; <span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp; <span style="color: #B900B9;">// Create the radio control</span><br />&nbsp; &nbsp; <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">RADIO</span> oRadOpt <span style="color: #0000ff;">VAR</span> nPrn <span style="color: #0000ff;">ID</span> <span style="color: #000000;">353</span>, <span style="color: #000000;">354</span> <span style="color: #0000ff;">OF</span> oDlg<br />&nbsp; &nbsp; <span style="color: #B900B9;">// Create the button controls</span><br />&nbsp; &nbsp; <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BTNBMP</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">350</span> <span style="color: #0000ff;">of</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"HRZMIN"</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"View"</span> NOBORDER TRANSPARENT ;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> lView := .T., oDlg:<span style="color: #000000;">End</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Preview the report, with an option to print"</span><br />&nbsp; &nbsp; <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BTNBMP</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">351</span> <span style="color: #0000ff;">of</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"HRPRINT"</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Print"</span> NOBORDER TRANSPARENT;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> lPrint := .T., oDlg:<span style="color: #000000;">End</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Print the report without previewing"</span><br />&nbsp; &nbsp; <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BTNBMP</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">352</span> <span style="color: #0000ff;">of</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"HREXIT"</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Cancel"</span> NOBORDER TRANSPARENT;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">End</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Cancel the print operation "</span><br /><br />&nbsp; &nbsp; <span style="color: #B900B9;">// Activate the dialog</span><br />&nbsp; &nbsp; <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">IF</span> lView .AND. nPrn = <span style="color: #000000;">2</span> <span style="color: #B900B9;">// View and select printer</span><br />&nbsp; &nbsp; &nbsp; &nbsp; prnmeth := <span style="color: #000000;">1</span><br />&nbsp; &nbsp; ELSEIF lView .AND. nPrn = <span style="color: #000000;">1</span> <span style="color: #B900B9;">// View and default printer</span><br />&nbsp; &nbsp; &nbsp; &nbsp; prnmeth := <span style="color: #000000;">2</span><br />&nbsp; &nbsp; ELSEIF lPrint .AND. nPrn = <span style="color: #000000;">2</span> <span style="color: #B900B9;">// Print with selection</span><br />&nbsp; &nbsp; &nbsp; &nbsp; prnmeth := <span style="color: #000000;">3</span><br />&nbsp; &nbsp; ELSEIF lPrint .AND. nPrn = <span style="color: #000000;">1</span> <span style="color: #B900B9;">// Print to default</span><br />&nbsp; &nbsp; &nbsp; &nbsp; prnmeth := <span style="color: #000000;">4</span><br />&nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #000000;">&#40;</span> prnmeth <span style="color: #000000;">&#41;</span><br /><br />&nbsp;</div>[/code:3ftyknl9] This has worked fine for the past 15 years. It started being a problem with the latest release of FWH. In this example, click on either button and the text next to it disappears. I'm using the latest FWH libraries with Visual Studio Community 2022 and Harbour. Builds are both 32 bit and 64 bit.
Checkbox text disappears
Rem trasparent
Checkbox text disappears
Silvio, Nope ... the only thing that happens is the field space for the text does not allow the background to come through, so it's an ugly display. Tim
Checkbox text disappears
[code=fw:1gxu6wkw]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// C:\FWH..\SAMPLES\TIMSTON2.PRG .and. TIMSTON2.RC</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span> <br /><br /><span style="color: #00C800;">STATIC</span> lGxPrsnt<br /><br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cWSshow := <span style="color: #ff0000;">"W"</span><br /><br />&nbsp; &nbsp;SetBalloon<span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Balloon shape required for tooltips</span><br /><br />&nbsp; &nbsp;SkinButtons<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;PrnSel<span style="color: #000000;">&#40;</span> cWSshow <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">/* &nbsp;FUNCTION prnsel<br />&nbsp; &nbsp; &nbsp; Description: Printer selection control<br />&nbsp; &nbsp; &nbsp; Date updated: 9/29/2007<br />*/</span><br /><span style="color: #00C800;">FUNCTION</span> PrnSel<span style="color: #000000;">&#40;</span> cWSshow <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Declare LOCAL variables</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> prnmeth := <span style="color: #000000;">0</span>, oDlg, oRadOpt, lView := .F. , lPrint := .F. , nPrn := <span style="color: #000000;">1</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cTitle := <span style="color: #ff0000;">"Printer Selection Options"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oBrush, oView, oPrint, oExit, oFont, oBold<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nDTxtColor := <span style="color: #000000;">192</span><br /><br />&nbsp; &nbsp;lGxPrsnt := .T. <span style="color: #B900B9;">// Assign static values</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> oBrush <span style="color: #0000ff;">COLOR</span> nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">192</span>, <span style="color: #000000;">192</span>, <span style="color: #000000;">192</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Gris Claro.</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"MS Sans Serif"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">00</span>, <span style="color: #000000;">-12</span> BOLD<br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"MS Sans Serif"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">00</span>, <span style="color: #000000;">-14</span> BOLD<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Create the dialog</span><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> cWSshow = <span style="color: #ff0000;">"W"</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"PRNSELw"</span> <span style="color: #0000ff;">BRUSH</span> oBrush TRANSPARENT &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">TITLE</span> cTitle <span style="color: #0000ff;">FONT</span> oBold<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"PRNSEL"</span> <span style="color: #0000ff;">BRUSH</span> oBrush TRANSPARENT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">TITLE</span> cTitle <span style="color: #0000ff;">FONT</span> oBold<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;oDlg:<span style="color: #000000;">lHelpIcon</span> := .F.<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Create the radio control</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">RADIO</span> oRadOpt <span style="color: #0000ff;">VAR</span> nPrn <span style="color: #0000ff;">ID</span> <span style="color: #000000;">353</span>, <span style="color: #000000;">354</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />&nbsp; &nbsp;AEval<span style="color: #000000;">&#40;</span> oRadOpt:<span style="color: #000000;">aItems</span>, <span style="color: #000000;">&#123;</span> | oRadOpt | oRadOpt:<span style="color: #000000;">lTransparent</span> := .T., ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oRadOpt:<span style="color: #000000;">SetFont</span><span style="color: #000000;">&#40;</span> oFont <span style="color: #000000;">&#41;</span>, oRadOpt:<span style="color: #000000;">nClrText</span> := nDTxtColor <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Create the button controls</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BTNBMP</span> oView <span style="color: #0000ff;">ID</span> <span style="color: #000000;">350</span> <span style="color: #0000ff;">of</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"HRZMIN"</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"View"</span> &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; NOBORDER TRANSPARENT <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> lView := .T. , oDlg:<span style="color: #000000;">End</span> <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Preview the report, with an option to print"</span><br /><br />&nbsp; &nbsp;oView:<span style="color: #000000;">cToolTip</span> := <span style="color: #ff0000;">"Preview the report, with an option to print"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BTNBMP</span> oPrint <span style="color: #0000ff;">ID</span> <span style="color: #000000;">351</span> <span style="color: #0000ff;">of</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"HRPRINT"</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Print"</span> &nbsp; ;<br />&nbsp; &nbsp; &nbsp; NOBORDER TRANSPARENT <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> lPrint := .T. , oDlg:<span style="color: #000000;">End</span> <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Print the report without previewing"</span><br /><br />&nbsp; &nbsp;oPrint:<span style="color: #000000;">cToolTip</span> := <span style="color: #ff0000;">"Print the report without previewing"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BTNBMP</span> oExit <span style="color: #0000ff;">ID</span> <span style="color: #000000;">352</span> <span style="color: #0000ff;">of</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"HREXIT"</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Cancel"</span> &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; NOBORDER TRANSPARENT <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">End</span> <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Cancel the print operation "</span><br /><br />&nbsp; &nbsp;oExit:<span style="color: #000000;">cToolTip</span> := <span style="color: #ff0000;">"Cancel the print operation "</span><br /><br />&nbsp; &nbsp;oExit:<span style="color: #000000;">lCancel</span> := .T.<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br />&nbsp; &nbsp;oBrush:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oFont:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oBold:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> lView .AND. nPrn = <span style="color: #000000;">2</span> <span style="color: #B900B9;">// View and select printer</span><br />&nbsp; &nbsp; &nbsp; prnmeth := <span style="color: #000000;">1</span><br />&nbsp; &nbsp;ELSEIF lView .AND. nPrn = <span style="color: #000000;">1</span> <span style="color: #B900B9;">// View and default printer</span><br />&nbsp; &nbsp; &nbsp; prnmeth := <span style="color: #000000;">2</span><br />&nbsp; &nbsp;ELSEIF lPrint .AND. nPrn = <span style="color: #000000;">2</span> <span style="color: #B900B9;">// Print with selection</span><br />&nbsp; &nbsp; &nbsp; prnmeth := <span style="color: #000000;">3</span><br />&nbsp; &nbsp;ELSEIF lPrint .AND. nPrn = <span style="color: #000000;">1</span> <span style="color: #B900B9;">// Print to default</span><br />&nbsp; &nbsp; &nbsp; prnmeth := <span style="color: #000000;">4</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> prnmeth <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">/* // TIMSTON2.RC file<br />PRNSELW DIALOG 136, 106, 230, 90<br />STYLE DS_ABSALIGN | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION<br />CAPTION "Printer Selection Options"<br />{<br />&nbsp;CONTROL "Use DEFAULT Printer", 353, "Button", BS_AUTORADIOBUTTON | WS_TABSTOP, 57,10,108,12<br />&nbsp;CONTROL "Select an ALTERNATE Printer", 354, "Button", BS_AUTORADIOBUTTON | WS_TABSTOP, 57, 25, 167, 12<br />&nbsp;PUSHBUTTON "", 350, 35,40,40,40<br />&nbsp;PUSHBUTTON "", 351, 95,40,40,40<br />&nbsp;PUSHBUTTON "", 352, 155,40,40,40<br />}<br />*/</span><br /><br /><span style="color: #B900B9;">// FIN / END - <!-- e --><a href="mailto:kapiabafwh@gmail.com">kapiabafwh@gmail.com</a><!-- e --></span><br />&nbsp;</div>[/code:1gxu6wkw] Regards, saludos.
Checkbox text disappears
Image: [url:g4x5n4wy]https&#58;//imgur&#46;com/09pog3N[/url:g4x5n4wy] [img:g4x5n4wy]https&#58;//i&#46;imgur&#46;com/09pog3N&#46;png[/img:g4x5n4wy] Regards, saludos.
Checkbox text disappears
Thank you for the suggestion. I'm rather concerned that coding which worked fine for 15 years suddenly needs to be rewritten to make checkboxes and radio boxes start working again. This is a lot of additional code. I have many places where I reuse radio buttons and checkboxes throughout my program, and they would all need to be recoded to handle this. That just doesn't seem like the best option. Anyone else ?
Checkbox text disappears
With further testing, this is only happening with 64 BIT builds. ( FWH 64 ) that are created in the Visual Studio 2022 IDE. It does NOT occur in 32 bit builds using the same tool. Maybe that helps. Since distribution copies will not have the problem, I can live with it, but there is apparently a configuration issue with my 64 bit builds using the IDE. Any thoughts ? ( Perhaps no one is doing it that way so you haven't experienced it ). Thanks.
Checkbox text disappears
[quote="TimStone":3t1ca2xs]Silvio, Nope ... the only thing that happens is the field space for the text does not allow the background to come through, so it's an ugly display. Tim[/quote:3t1ca2xs] I correctly use the one Manifest provided with the fwh package, in my case of the famous dialog viewtopic.php?f=3&t=42287&start=0 where part of the say and tgroup controls was hidden it was because I used the TRANSPARENT clause to the DIALOG, removed this the dialog worked well it may be that there is a bug to the RADIO MENU class which hides part of the say controls
Checkbox text disappears
Buen día. Prueba así: Good Morning. Try like this: [code=fw:3nuoat1e]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// C:\FWH..\SAMPLES\TIMSTON3.PRG .and. TIMSTON3.RC</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span> <br /><br /><span style="color: #00C800;">STATIC</span> lGxPrsnt<br /><br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cWSshow := <span style="color: #ff0000;">"W"</span><br /><br />&nbsp; &nbsp;SetBalloon<span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Balloon shape required for tooltips</span><br /><br />&nbsp; &nbsp;SkinButtons<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;PrnSel<span style="color: #000000;">&#40;</span> cWSshow <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">/* &nbsp;FUNCTION prnsel<br />&nbsp; &nbsp; &nbsp; Description: Printer selection control<br />&nbsp; &nbsp; &nbsp; Date updated: 9/29/2007<br />*/</span><br /><span style="color: #00C800;">FUNCTION</span> PrnSel<span style="color: #000000;">&#40;</span> cWSshow <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Declare LOCAL variables</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> prnmeth := <span style="color: #000000;">0</span>, oDlg, oRadOpt, lView := .F. , lPrint := .F. , nPrn := <span style="color: #000000;">1</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cTitle := <span style="color: #ff0000;">"Printer Selection Options"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oBrush, oView, oPrint, oExit, oFont, oBold<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nDTxtColor := <span style="color: #000000;">192</span><br /><br />&nbsp; &nbsp;lGxPrsnt := .T. <span style="color: #B900B9;">// Assign static values</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> oBrush <span style="color: #0000ff;">COLOR</span> nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">192</span>, <span style="color: #000000;">192</span>, <span style="color: #000000;">192</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Gris Claro.</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"MS Sans Serif"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">00</span>, <span style="color: #000000;">-12</span> BOLD<br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"MS Sans Serif"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">00</span>, <span style="color: #000000;">-14</span> BOLD<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Create the dialog</span><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> cWSshow = <span style="color: #ff0000;">"W"</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"PRNSELw"</span> <span style="color: #0000ff;">BRUSH</span> oBrush TRANSPARENT &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">TITLE</span> cTitle <span style="color: #0000ff;">FONT</span> oBold<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"PRNSEL"</span> <span style="color: #0000ff;">BRUSH</span> oBrush TRANSPARENT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">TITLE</span> cTitle <span style="color: #0000ff;">FONT</span> oBold<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;oDlg:<span style="color: #000000;">lHelpIcon</span> := .F.<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Create the radio control</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">RADIO</span> oRadOpt <span style="color: #0000ff;">VAR</span> nPrn <span style="color: #0000ff;">ID</span> <span style="color: #000000;">353</span>, <span style="color: #000000;">354</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">UPDATE</span><br /><br />&nbsp; &nbsp;oRadOpt:<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cTooltip</span> := <span style="color: #ff0000;">"Radio Color 1"</span><br />&nbsp; &nbsp;oRadOpt:<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cTooltip</span> := <span style="color: #ff0000;">"Radio Color 2"</span><br /><br />&nbsp; &nbsp;oRadOpt:<span style="color: #000000;">SetFont</span><span style="color: #000000;">&#40;</span> oFont <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Create the button controls</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BTNBMP</span> oView <span style="color: #0000ff;">ID</span> <span style="color: #000000;">350</span> <span style="color: #0000ff;">of</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"HRZMIN"</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"View"</span> &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; NOBORDER TRANSPARENT <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> lView := .T. , oDlg:<span style="color: #000000;">End</span> <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Preview the report, with an option to print"</span><br /><br />&nbsp; &nbsp;oView:<span style="color: #000000;">cToolTip</span> := <span style="color: #ff0000;">"Preview the report, with an option to print"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BTNBMP</span> oPrint <span style="color: #0000ff;">ID</span> <span style="color: #000000;">351</span> <span style="color: #0000ff;">of</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"HRPRINT"</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Print"</span> &nbsp; ;<br />&nbsp; &nbsp; &nbsp; NOBORDER TRANSPARENT <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> lPrint := .T. , oDlg:<span style="color: #000000;">End</span> <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Print the report without previewing"</span><br /><br />&nbsp; &nbsp;oPrint:<span style="color: #000000;">cToolTip</span> := <span style="color: #ff0000;">"Print the report without previewing"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BTNBMP</span> oExit <span style="color: #0000ff;">ID</span> <span style="color: #000000;">352</span> <span style="color: #0000ff;">of</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"HREXIT"</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Cancel"</span> &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; NOBORDER TRANSPARENT <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">End</span> <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Cancel the print operation "</span><br /><br />&nbsp; &nbsp;oExit:<span style="color: #000000;">cToolTip</span> := <span style="color: #ff0000;">"Cancel the print operation "</span><br /><br />&nbsp; &nbsp;oExit:<span style="color: #000000;">lCancel</span> := .T.<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> CTRLS_COLORS<span style="color: #000000;">&#40;</span> oDlg <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oBrush:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oFont:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oBold:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> lView .AND. nPrn = <span style="color: #000000;">2</span> <span style="color: #B900B9;">// View and select printer</span><br />&nbsp; &nbsp; &nbsp; prnmeth := <span style="color: #000000;">1</span><br />&nbsp; &nbsp;ELSEIF lView .AND. nPrn = <span style="color: #000000;">1</span> <span style="color: #B900B9;">// View and default printer</span><br />&nbsp; &nbsp; &nbsp; prnmeth := <span style="color: #000000;">2</span><br />&nbsp; &nbsp;ELSEIF lPrint .AND. nPrn = <span style="color: #000000;">2</span> <span style="color: #B900B9;">// Print with selection</span><br />&nbsp; &nbsp; &nbsp; prnmeth := <span style="color: #000000;">3</span><br />&nbsp; &nbsp;ELSEIF lPrint .AND. nPrn = <span style="color: #000000;">1</span> <span style="color: #B900B9;">// Print to default</span><br />&nbsp; &nbsp; &nbsp; prnmeth := <span style="color: #000000;">4</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> prnmeth <span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">// By Giovanny Vecchi - TESTRAD.PRG</span><br /><span style="color: #00C800;">FUNCTION</span> CTRLS_COLORS<span style="color: #000000;">&#40;</span> f_oDlgContainer <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> lc_aCtrls := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>, lc_iFor := <span style="color: #000000;">0</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> lc_aItemsRadio := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;lc_aCtrls := f_oDlgContainer:<span style="color: #000000;">aControls</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">FOR</span> lc_iFor := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> Len<span style="color: #000000;">&#40;</span> lc_aCtrls <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> ValType<span style="color: #000000;">&#40;</span> lc_aCtrls<span style="color: #000000;">&#91;</span>lc_iFor<span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"O"</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> lc_aCtrls<span style="color: #000000;">&#91;</span>lc_iFor<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">ClassName</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"TRADIO"</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aEval<span style="color: #000000;">&#40;</span> lc_aCtrls<span style="color: #000000;">&#91;</span>lc_iFor<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">oRadMenu</span>:<span style="color: #000000;">aItems</span>, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span>|_oRadId|<span style="color: #000000;">&#123;</span> SetWindowTheme<span style="color: #000000;">&#40;</span> _oRadId:<span style="color: #000000;">hWnd</span>, <span style="color: #ff0000;">""</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_oRadId:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> CLR_CYAN, CLR_WHITE <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ELSEIF lc_aCtrls<span style="color: #000000;">&#91;</span>lc_iFor<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">ClassName</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"TCHECKBOX"</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// SetWindowTheme( lc_aCtrls[lc_iFor]:hWnd, "", "" )</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// lc_aCtrls[lc_iFor]:SetColor( G_COLOR_SYS( 31 ), G_COLOR_SYS( 1 ) )</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">NEXT</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">/* // TIMSTON3.RC file<br />PRNSELW DIALOG 136, 106, 230, 90<br />STYLE DS_ABSALIGN | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION<br />CAPTION "Printer Selection Options"<br />{<br />&nbsp;CONTROL "Use DEFAULT Printer", 353, "Button", BS_AUTORADIOBUTTON | WS_TABSTOP, 57,10,108,12<br />&nbsp;CONTROL "Select an ALTERNATE Printer", 354, "Button", BS_AUTORADIOBUTTON | WS_TABSTOP, 57, 25, 167, 12<br />&nbsp;PUSHBUTTON "", 350, 35,40,40,40<br />&nbsp;PUSHBUTTON "", 351, 95,40,40,40<br />&nbsp;PUSHBUTTON "", 352, 155,40,40,40<br />}<br />*/</span><br /><br /><span style="color: #B900B9;">// FIN / END - <!-- e --><a href="mailto:kapiabafwh@gmail.com">kapiabafwh@gmail.com</a><!-- e --></span><br />&nbsp;</div>[/code:3nuoat1e] Regards, saludos.
Checkbox text disappears Harbour/MSVC
I have this problem consistently on a program build using Harbour, FWH, and MSVC 2013 ( or even previous versions ). The checkbox displays normally, but when I click on a checkbox, the text ( in this case Receipts ) disappears. I suspect I should be using a different control than BS_AUTOCHECKBOX ... but don't know what it would be. Does anyone have a suggestion ? From the .prg file: [code=fw:14xz6o8d]<div class="fw" id="{CB}" style="font-family: monospace;"><br />  <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">CHECKBOX</span> aRpt<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">2037</span> HELPID <span style="color: #000000;">128</span> ;<br />      <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Daily Totals, and itemized list, for all work completed today"</span> ;<br />      <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br /> </div>[/code:14xz6o8d] From the .rc file: [code=fw:14xz6o8d]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> CONTROL <span style="color: #ff0000;">"Receipts"</span>, <span style="color: #000000;">2037</span>, <span style="color: #ff0000;">"Button"</span>, BS_AUTOCHECKBOX|WS_TABSTOP, <span style="color: #000000;">10</span>, <span style="color: #000000;">10</span>, <span style="color: #000000;">75</span>, <span style="color: #000000;">10</span><br /> </div>[/code:14xz6o8d] Thanks.
Checkbox text disappears Harbour/MSVC
Tim, [quote="TimStone":2rydttrb][code=fw:2rydttrb]<div class="fw" id="{CB}" style="font-family: monospace;">CONTROL <span style="color: #ff0000;">"Receipts"</span>, <span style="color: #000000;">2037</span>, <span style="color: #ff0000;">"Button"</span>, BS_AUTOCHECKBOX|WS_TABSTOP, <span style="color: #000000;">10</span>, <span style="color: #000000;">10</span>, <span style="color: #000000;">75</span>, <span style="color: #000000;">10</span> </div>[/code:2rydttrb][/quote:2rydttrb] This is what I use: [code=fw:2rydttrb]<div class="fw" id="{CB}" style="font-family: monospace;">CONTROL <span style="color: #ff0000;">"Convenzione:"</span>, <span style="color: #000000;">102</span>, <span style="color: #ff0000;">"BUTTON"</span>, BS_AUTOCHECKBOX | BS_LEFTTEXT | WS_CHILD | WS_VISIBLE | WS_TABSTOP, <span style="color: #000000;">70</span>, <span style="color: #000000;">10</span>, <span style="color: #000000;">50</span>, <span style="color: #000000;">12</span></div>[/code:2rydttrb] EMG
Checkbox text disappears Harbour/MSVC
No, it's the same behavior Remember, I'm using Microsoft Visual Studio ( VC+ ) and Harbour
Checkbox text disappears Harbour/MSVC
Tim, In Fivedit preferences, general, there is a checkbox working fine defined this way: [code=fw:1sm6ric6]<div class="fw" id="{CB}" style="font-family: monospace;">AUTOCHECKBOX &nbsp; &nbsp;<span style="color: #ff0000;">"Duplicates on functions panel"</span>, <span style="color: #000000;">110</span>, <span style="color: #000000;">16</span>, <span style="color: #000000;">58</span>, <span style="color: #000000;">109</span>, <span style="color: #000000;">8</span>, <span style="color: #000000;">0</span>, WS_EX_LEFT</div>[/code:1sm6ric6] [url:1sm6ric6]https&#58;//bitbucket&#46;org/fivetech/fivewin-contributions/downloads/fivedit&#46;zip[/url:1sm6ric6]
Checkbox text disappears Harbour/MSVC
Antonio, WS_EX_LEFT is 0 so I wonder if it can make any differences... EMG
Checkbox text disappears Harbour/MSVC
Using that format in the RC results in the same problem. When a page of checkboxes appears, the prompts are all there. Check on the checkbox, and the text ( prompt ) goes away. Remember ... this is FWH with Harbour ( no problem using an older xHarbour.com build ) with MSVC. The problem has been there for a long time and I've mentioned it before.
Checkbox text disappears Harbour/MSVC
Tim, the problem surely comes from FWH, not from [x]Harbour nor from the C compiler. EMG
Checkbox text disappears Harbour/MSVC
Tim, Does this happen only with a checkbox on a folder page ? Does this also happen with a checkbox on a dialogbox (no folder) ?
Checkbox text disappears Harbour/MSVC
Tim I had the same problem with radio buttons and the fix was to add the Group Attribute to the control .. Rick Lipkin [code=fw:26voxq81]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">CHECKBOX</span> <span style="color: #ff0000;">"Receipts"</span>, <span style="color: #000000;">2037</span>, <span style="color: #000000;">10</span>, <span style="color: #000000;">10</span>, <span style="color: #000000;">75</span>, <span style="color: #000000;">10</span>, BS_AUTOCHECKBOX | WS_GROUP | WS_TABSTOP<br /> </div>[/code:26voxq81] [img:26voxq81]http&#58;//i59&#46;tinypic&#46;com/e1f2th&#46;jpg[/img:26voxq81]
Checkbox text disappears Harbour/MSVC
Rick: Group doesn't help, and I also tried changing CONTROL to CHECKBOX, as in your example, but it doesn't recognize that. Antonio: It is on both folders, and dialog, pages. Also, if I check one box, but then go back and check a different one, then the text comes back on the original. So, when a box is checked, then the prompt does not show. If focus goes elsewhere, then it restores the text by the now unchecked box. Tim
Checkbox text disappears Harbour/MSVC
Tim, at this point, we absolutely need a sample showing the problem. EMG
Checkbox text disappears Harbour/MSVC
Actually, at this point I'm going to revise the .rc file. I've just looked at the MSDN formatting, which is what Antonio used in the editor. For too long I've carried over the old Borland Resource Editor file with some modifications. Once I do that I will come back here and we can revisit the issue. Tim
Checkbox text disappears Harbour/MSVC
Tim, I have started with this simple example and build it using FWH\samples\buildh32.bat that uses MS Visual C [code=fw:btf83gzd]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oDlg, lValue := .T.<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">2</span>, <span style="color: #000000;">2</span> <span style="color: #0000ff;">CHECKBOX</span> lValue <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Checkbox"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">20</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:btf83gzd] Here it is working fine. Could you build it there also and confirm me that it works fine for you ? thanks Next step: we will use a RC file to define the dialog.
Checkbox text disappears Harbour/MSVC
Antonio, OK ... I added it as a function within the application, and it has the same behavior as I see with the .RC It shows checked, but click on it and it disappears. If I add two more checkboxes, the one that is clicked ( checked or unchecked ) does not show the text, but the others do. If I click on a different one, then it loses the text, and the previous one regains it. I should add that I also see this with Radio buttons. I read Rick's note, but grouping didn't seem to help here. Tim Built with Microsoft Visual Studio 2013 ( not a build.bat file ), FWH ( current release ) and Harbour ( current FW release ).
Checkbox text disappears Harbour/MSVC
Tim, Are you using themes in your app resources ? 1 24 "WindowsXP.Manifest"
Checkbox text disappears Harbour/MSVC
I tried with and without manifest and found no problem. <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> EMG
Checkbox text disappears Harbour/MSVC
Enrico, Are you using Borland ? According to Tim this may be only related with MSVC
Checkbox text disappears Harbour/MSVC
Antonio, Yes, I'm using BCC690 but how the C compiler could make any difference? I don't understand... <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> EMG
Checkbox text disappears Harbour/MSVC
Enrico, Its not the C compiler itself, but several modifications that MS does to the final EXE (segments organization, etc.) I have seen that inspecting the EXEs with PEInfo and similar apps [url:364kc6u9]https&#58;//bitbucket&#46;org/fivetech/fivewin-contributions/downloads/peinfo&#46;exe[/url:364kc6u9]
Checkbox text disappears Harbour/MSVC
Antonio, I still don't understand... <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> Anyway, what is the solution? EMG
Checkbox text disappears Harbour/MSVC
Enrico, Never mind <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> First of all we need to be able to reproduce it. Up to now I haven't be able to reproduce it. Here it is working fine <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Checkbox text disappears Harbour/MSVC
Antonio, It will not build with that in the .rc file because Visual Studio creates it's own manifest file, and thus the conflict throws a linker error. Tim
Checkbox text disappears Harbour/MSVC
[quote="Enrico Maria Giordano":1qs1jhqf]Antonio, Yes, I'm using BCC690 but how the C compiler could make any difference? I don't understand... <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> EMG[/quote:1qs1jhqf] Off-topic. I am using bcc582. Are there any advantages in using bcc690 and where can I get it from?
Checkbox text disappears Harbour/MSVC
Tim I remember a similar problem in folders when the dialog had a "Capion" clausure, try to remove it and see if it makes a difference. <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=27601&p=154059&hilit=caption#p154059">viewtopic.php?f=3&t=27601&p=154059&hilit=caption#p154059</a><!-- l --> Hth Richard
Checkbox text disappears Harbour/MSVC
Rao, [quote="nageswaragunupudi":318d6a9u]Off-topic. I am using bcc582. Are there any advantages in using bcc690 and where can I get it from?[/quote:318d6a9u] At least it's an updated version. You can try it from here: [url:318d6a9u]http&#58;//www&#46;whosaway&#46;com[/url:318d6a9u] EMG
Checkbox text disappears Harbour/MSVC
The issue becomes more complex. I began to wonder if perhaps the control should be True for TRANSPARENT ( the autocheckbox ) so I tried clicking on that property. Visual Studio wants to rebuild the .rc, and does a nice job of it, but then when trying to build it can't find the definitions for WS_POPUP which is a standard windows style. So ... to use the windows controls, there must be a library I am missing, or an include file, for compiling the .rc within Visual Studio. More likely there is a configuration property that I am missing which would automatically bring in the include files. If I use Windows.h ( which the builder eliminates ), it has a parameter RC_INVOKED which is evidently set by NOWINRES but I can't see where to set this. Antonio, thoughts on this ? I know one other thread said we couldn't use the Resource Editor in VS 2013, but we should be able to get past this. It's a good tool. Tim
Checkbox text disappears Harbour/MSVC
Tim, I just tested this example using FWH 15.02 and FWH\samples\buildh32.bat: test.prg [code=fw:3vds4ju8]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oDlg, lValue := .T.<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"test"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">CHECKBOX</span> lValue <span style="color: #0000ff;">ID</span> <span style="color: #000000;">100</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:3vds4ju8] test.rc [code=fw:3vds4ju8]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <windows.h><br /><br />LANGUAGE <span style="color: #000000;">0</span>, SUBLANG_NEUTRAL<br />test <span style="color: #0000ff;">DIALOG</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">138</span><br /><span style="color: #0000ff;">STYLE</span> DS_3DLOOK | DS_CENTER | DS_MODALFRAME | DS_SHELLFONT | WS_CAPTION | WS_VISIBLE | WS_POPUP | WS_SYSMENU<br />CAPTION <span style="color: #ff0000;">"Dialog"</span><br /><span style="color: #0000ff;">FONT</span> <span style="color: #000000;">8</span>, <span style="color: #ff0000;">"Ms Shell Dlg"</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; AUTOCHECKBOX &nbsp; &nbsp;<span style="color: #ff0000;">"Checkbox"</span>, <span style="color: #000000;">100</span>, <span style="color: #000000;">94</span>, <span style="color: #000000;">50</span>, <span style="color: #000000;">48</span>, <span style="color: #000000;">8</span>, <span style="color: #000000;">0</span>, WS_EX_LEFT<br />&nbsp; &nbsp; DEFPUSHBUTTON &nbsp; <span style="color: #ff0000;">"OK"</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">67</span>, <span style="color: #000000;">112</span>, <span style="color: #000000;">50</span>, <span style="color: #000000;">14</span>, <span style="color: #000000;">0</span>, WS_EX_LEFT<br />&nbsp; &nbsp; PUSHBUTTON &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"Cancel"</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">128</span>, <span style="color: #000000;">112</span>, <span style="color: #000000;">50</span>, <span style="color: #000000;">14</span>, <span style="color: #000000;">0</span>, WS_EX_LEFT<br /><span style="color: #000000;">&#125;</span></div>[/code:3vds4ju8] And it is working fine. Could you try this example there ? thanks
Checkbox text disappears Harbour/MSVC
Antonio, 1) Please remember that I am trying to get this working with Visual Studio 2013 itself ( the IDE ). Using a make file is different. Especially for the future, we want ALL settings correct in VS 2013 ( and soon 2015 ). 2) With that said, I looked at your build file and noticed that I have several additional libraries linked in: hbssl.lib, hbtipssl.lib, and ws2_32.lib are needed for email libeay32.lib and ssleay32.lib are necessary for additional functionality gtwin.ib, libcmt.lib, libcpmt.lib and oldnames32.lib are ones you recommended previously. I'm wondering if they are still needed, and perhaps one of them is conflicting here. Tim
Checkbox text disappears Harbour/MSVC
Antonio, I've spent the day researching this and testing. 1) If I build the project inside UE Studio, using their .mak system, the controls work properly. 2) If I build the project inside MSFT Visual Studio 2013 with it's IDE, the controls behave as noted 3) The .prg, .rc, and .lib files used are exactly the same in both cases. Thus, the problem has to be in the Properties of the VS 2013 build. Some option is different, but I have been unable to determine what it is. I will look at it further tomorrow. If you have any ideas please let me know. Perhaps you can try building it within VS in the same way using one of your samples and see what you get. If it works properly, you could send me the settings you are using. I think what I have now is pretty much what you shared when you built the initial projects using it. Tim
Checkbox text disappears Harbour/MSVC
Tim, Solved. All you have to do is add 1 24 WindowsXP.Manifest to your resource file [img:ktcpyyw4]https&#58;//bitbucket&#46;org/fivetech/screenshots/downloads/visual_studio_community_FWH_1&#46;JPG[/img:ktcpyyw4]
Checkbox text disappears Harbour/MSVC
When I do that, and try to build, it generates: 1>CVTRES : fatal error CVT1100: duplicate resource. type:MANIFEST, name:1, language:0x0409 That is solved by giving the manifest a different id: 2 24 which allows it to then build without error. However, it does not take away the problem ! Do you have a file with your project settings. It has to be in the VS Properties for the project. I can post the command lines it generates if you wish. Tim
Checkbox text disappears Harbour/MSVC
Here are some of the command lines in my setup: General: [code=fw:35cwsffk]<div class="fw" id="{CB}" style="font-family: monospace;"><br />Platform Toolset : <span style="color: #000000;">Visual</span> Studio <span style="color: #000000;">2013</span> <span style="color: #000000;">&#40;</span> v120 <span style="color: #000000;">&#41;</span><br />Enable Managed Incremental Build : <span style="color: #000000;">No</span><br />Configuration Type : &nbsp;<span style="color: #000000;">Application</span> <span style="color: #000000;">&#40;</span>.exe<span style="color: #000000;">&#41;</span><br />Use <span style="color: #0000ff;">of</span> MFC : &nbsp;<span style="color: #000000;">Use</span> Standard Windows Libraries<br />Character Set : <span style="color: #000000;">Use</span> Unicode Character Set<br />Common Language Runtime Support: &nbsp;<span style="color: #000000;">No</span> Common Language Runtime Support<br />Whole Program Optimization : &nbsp;<span style="color: #000000;">No</span> Whole Program Optimization<br />Windows Store App Support : <span style="color: #000000;">No</span><br />&nbsp;</div>[/code:35cwsffk] Linker [code=fw:35cwsffk]<div class="fw" id="{CB}" style="font-family: monospace;"><br />/OUT:<span style="color: #ff0000;">"C:<span style="color: #000000;">\P</span>rojects VS<span style="color: #000000;">\M</span>LS Service Writer 10<span style="color: #000000;">\R</span>elease<span style="color: #000000;">\M</span>LS Service Writer 10.exe"</span> /MANIFEST /FORCE:<span style="color: #000000;">MULTIPLE</span> /NXCOMPAT /PDB:<span style="color: #ff0000;">"C:<span style="color: #000000;">\P</span>rojects VS<span style="color: #000000;">\M</span>LS Service Writer 10<span style="color: #000000;">\R</span>elease<span style="color: #000000;">\M</span>LS Service Writer 10.pdb"</span> /DYNAMICBASE /DEBUG /MACHINE:<span style="color: #000000;">X86</span> /OPT:<span style="color: #000000;">REF</span> /SAFESEH /INCREMENTAL /PGD:<span style="color: #ff0000;">"C:<span style="color: #000000;">\P</span>rojects VS<span style="color: #000000;">\M</span>LS Service Writer 10<span style="color: #000000;">\R</span>elease<span style="color: #000000;">\M</span>LS Service Writer 10.pgd"</span> /SUBSYSTEM:<span style="color: #000000;">WINDOWS</span> /MANIFESTUAC:<span style="color: #ff0000;">"level='asInvoker' uiAccess='false'"</span> /ManifestFile:<span style="color: #ff0000;">"Release<span style="color: #000000;">\M</span>LS Service Writer 10.exe.intermediate.manifest"</span> /OPT:<span style="color: #000000;">ICF</span> /ERRORREPORT:<span style="color: #0000ff;">PROMPT</span> /NOLOGO /TLBID:<span style="color: #000000;">1</span> <br />&nbsp;</div>[/code:35cwsffk] C/C++ [code=fw:35cwsffk]<div class="fw" id="{CB}" style="font-family: monospace;"><br />/GS /analyze- /W3 /Gy /Zc:<span style="color: #000000;">wchar_t</span> /I<span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\i</span>nclude"</span> /I<span style="color: #ff0000;">"c:<span style="color: #000000;">\h</span>arbour<span style="color: #000000;">\i</span>nclude"</span> /Zi /Gm- /O2 /sdl- /Fd<span style="color: #ff0000;">"Release<span style="color: #000000;">\v</span>c120.pdb"</span> /fp:<span style="color: #000000;">precise</span> /D <span style="color: #ff0000;">"WIN32"</span> /D <span style="color: #ff0000;">"NDEBUG"</span> /D <span style="color: #ff0000;">"_WINDOWS"</span> /D <span style="color: #ff0000;">"_UNICODE"</span> /D <span style="color: #ff0000;">"UNICODE"</span> /errorReport:<span style="color: #0000ff;">prompt</span> /WX- /Zc:<span style="color: #000000;">forScope</span> /Gd /Oy- /Oi /MD /Fa<span style="color: #ff0000;">"Release<span style="color: #000000;">\"</span> /EHsc /nologo /Fo"</span><span style="color: #0000ff;">Release</span>\<span style="color: #ff0000;">" /Fp"</span><span style="color: #0000ff;">Release</span>\MLS Service Writer <span style="color: #000000;">10</span>.pch<span style="color: #ff0000;">" <br /></span></div>[/code:35cwsffk] Manifest [code=fw:35cwsffk]<div class="fw" id="{CB}" style="font-family: monospace;"><br />/verbose /out:<span style="color: #ff0000;">"Release<span style="color: #000000;">\M</span>LS Service Writer 10.exe.embed.manifest"</span> /nologo <span style="color: #ff0000;">"Release<span style="color: #000000;">\M</span>LS Service Writer 10.exe.embed.manifest.res"</span> <br />&nbsp;</div>[/code:35cwsffk] Resources [code=fw:35cwsffk]<div class="fw" id="{CB}" style="font-family: monospace;"><br />/D <span style="color: #ff0000;">"_UNICODE"</span> /D <span style="color: #ff0000;">"UNICODE"</span> /l 0x0409 /nologo /fo<span style="color: #ff0000;">"Release<span style="color: #000000;">\%</span>(Filename).res"</span> <br />&nbsp;</div>[/code:35cwsffk]
Checkbox text disappears Harbour/MSVC
Tim, Here you have my working project: [url:6x6tb91y]https&#58;//bitbucket&#46;org/fivetech/fivewin-contributions/downloads/tim_project&#46;zop[/url:6x6tb91y]
Checkbox text disappears Harbour/MSVC
It would be far easier if you could do what I did above, and just cut and paste the items in an email. The project build file is a bit different and not exactly easy to compare. I tried. I simply went into each section in properties for the project, selected COMMAND LINE, and did a cut and paste. If you do that in an email, I'll do the comparison and will likely find what is different. I really appreciate it. Tim
Checkbox text disappears Harbour/MSVC
Tim, C/C++ [quote:1u1vcz1n]/GS /analyze- /W3 /Zc:wchar_t /ZI /Gm /Od /Fd"Debug\vc120.pdb" /fp:precise /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_UNICODE" /D "UNICODE" /errorReport:prompt /WX- /Zc:forScope /RTC1 /Gd /Oy- /MDd /Fa"Debug\" /EHsc /nologo /Fo"Debug\" /Fp"Debug\tutor01.pch" [/quote:1u1vcz1n] Linker [quote:1u1vcz1n]/OUT:"c:\soporte\Debug\tutor01.exe" /MANIFEST /NXCOMPAT /PDB:"c:\soporte\Debug\tutor01.pdb" /DYNAMICBASE "kernel32.lib" "user32.lib" "gdi32.lib" "winspool.lib" "comdlg32.lib" "advapi32.lib" "shell32.lib" "ole32.lib" "oleaut32.lib" "uuid.lib" "odbc32.lib" "odbccp32.lib" /DEBUG /MACHINE:X86 /INCREMENTAL /PGD:"c:\soporte\Debug\tutor01.pgd" /SUBSYSTEM:WINDOWS /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /ManifestFile:"Debug\tutor01.exe.intermediate.manifest" /ERRORREPORT:PROMPT /NOLOGO /TLBID:1 [/quote:1u1vcz1n] Manifest [quote:1u1vcz1n]/verbose /out:"Debug\tutor01.exe.embed.manifest" /nologo "Debug\tutor01.exe.embed.manifest.res" [/quote:1u1vcz1n] Resources [quote:1u1vcz1n]/D "_UNICODE" /D "UNICODE" /l 0x0409 /nologo /fo"Debug\%(Filename).res" [/quote:1u1vcz1n]
Checkbox text disappears Harbour/MSVC
Tim, If you can't find the difference all that I can think about is to have a TeamViewer session with you and I will build my example on your Visual Studio remotely. Anyhow tomorrow I am flying to Barcelona and I wont be back until March 9. If I can get a good internet connection in Barcelona then we could do the TeamViewer session from there.
Checkbox transparent win 7 not win xp
I have a checkbox that is transparent win 7 not win xp. Using resources, Transparent set at the define dialog. All workinhg fine except not in windows XP. Any ideas. Thanks in advance
Checkbox transparent win 7 not win xp
Harvey, maybe a transparent-problem with Resources ? I changed all my Checkboxes using TSelex ( looks much better ). or use a extra SAY and resize the Checkbox as small as possible : [color=#0000FF:1tz3f94y]REDEFINE CHECKBOX oCheck2 VAR lCheck2 ID 230 OF oDlg1 UPDATE[/color:1tz3f94y] add a extra SAY : [color=#0000FF:1tz3f94y]REDEFINE SAY oSay1 VAR cSay1 ID 231 OF oDlg1 FONT oFootFont COLOR 128[/color:1tz3f94y] TSelex-Resource : [color=#0000FF:1tz3f94y]CONTROL "", 220, "TSELEX", 0 | WS_CHILD | WS_VISIBLE, 211, 83, 58, 28[/color:1tz3f94y] [img:1tz3f94y]http&#58;//www&#46;pflegeplus&#46;com/pictures/selex1&#46;jpg[/img:1tz3f94y] [code=fw:1tz3f94y]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">REDEFINE</span> SELEX oSelect <span style="color: #0000ff;">VAR</span> nOption1 <span style="color: #0000ff;">OF</span> oDlg1 <span style="color: #0000ff;">ID</span> <span style="color: #000000;">220</span>;<br /><span style="color: #0000ff;">ITEMS</span> <span style="color: #ff0000;">"&ON"</span>, <span style="color: #ff0000;">"&OFF"</span>;<br />GRADIENT OUTTRACK <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.5</span>, <span style="color: #000000;">16443068</span>, <span style="color: #000000;">16312263</span> <span style="color: #000000;">&#125;</span>, ;<br />     <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.5</span>, <span style="color: #000000;">16312263</span>, <span style="color: #000000;">16443068</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> ;<br />GRADIENT INTRACK <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">5426223</span>, <span style="color: #000000;">1071100</span> <span style="color: #000000;">&#125;</span>, ;<br />     <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1071100</span>, <span style="color: #000000;">5426223</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> ;<br />THUMBSIZE <span style="color: #000000;">20</span>, <span style="color: #000000;">20</span> ROUNDSIZE <span style="color: #000000;">5</span> ;<br /><span style="color: #0000ff;">COLOR</span> THUMB <span style="color: #000000;">14853684</span> ;<br />COLORTEXT <span style="color: #000000;">128</span>, <span style="color: #000000;">32768</span> ; <br /><span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Select"</span> TOP ;<br /><span style="color: #0000ff;">FONT</span> oFootFont ;<br /><span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nOption1 == <span style="color: #000000;">2</span>, oDlg1:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /> </div>[/code:1tz3f94y] Best Regards Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
Checkbox transparent win 7 not win xp
Uwe: Using the say worked fine. Thanks. Just one more color problem. The transparent clause doesn't work with an undefined group. Any suggestions?
Checkbox transparent win 7 not win xp
Harvey, using Resources, the same transparent-problem like Checkboxes. ( doesn't work on Dlg-ON INIT or PAINT ) Maybe You can include Class [color=#FF0000:mijn61vm]SBUTTON[/color:mijn61vm] from Manuel Mercado ? using Resources works fine for Lines, Groups and Boxes like You can see. I will have a look at my Tool ( Screenshot ), doing some more work on it. [img:mijn61vm]http&#58;//www&#46;pflegeplus&#46;com/pictures/sbutton1&#46;jpg[/img:mijn61vm] Best Regards Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
Checkbox transparent win 7 not win xp
Harvey, it seems to be a Brush-painting-problem of Resources. Moving a Color-define from Dlg-INIT like : [color=#0000FF:1emq9k55]DEFINE DIALOG oDlg1 RESOURCE "Selection" TRANSPARENT[/color:1emq9k55] ... // COLOR // ----------- DEFINE BRUSH oBrush COLOR 16443068 // BMP-BRUSH // ----------- // DEFINE BRUSH oBrush FILE c_path + "\Images\BluStone.Bmp" /* // GRADIENT // --------------- aGrad := { { 0.5, 10899511, 16443068 }, { 0.5, 16443068, 10899511 } } hDC = CreateCompatibleDC( oDlg1:GetDC() ) hBmp = CreateCompatibleBitMap( oDlg1:hDC, 200, 600 ) hBmpOld = SelectObject( hDC, hBmp ) GradientFill( hDC, 0, 0, 600, 200, aGrad, .T. ) DeleteObject( oDlg1:oBrush:hBrush ) oBrush := TBrush():New( ,,,, hBmp ) oBrush:Cargo := aGrad SelectObject( hDC, hBmpOld ) ReleaseDC(hDC) */ oDlg1:SetBrush( oBrush ) ... [color=#0000FF:1emq9k55]ACTIVATE DIALOG oDlg1 CENTERED ; ON INIT ( oDlg1:Move( 30, 10, oDlg1:nWidth, oDlg1:nHeight, .f. ), oBrw1:SetFocus() )[/color:1emq9k55] ... [img:1emq9k55]http&#58;//www&#46;pflegeplus&#46;com/pictures/transp10&#46;jpg[/img:1emq9k55] [color=#FF0000:1emq9k55]works, but only for COLORS !!! using BMP-brush or Gradient, the Group covers the Checkboxes [/color:1emq9k55] [img:1emq9k55]http&#58;//www&#46;pflegeplus&#46;com/pictures/transp11&#46;jpg[/img:1emq9k55] [img:1emq9k55]http&#58;//www&#46;pflegeplus&#46;com/pictures/transp12&#46;jpg[/img:1emq9k55] Best Regards Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
Checkbox transparent win 7 not win xp
There seems to be a problem with ascending Field-order from Resource. Changing the Order : lowest = Group / higher = Checkboxes, it works . A higher Group ID covers the included Controls. [img:3ruwokcs]http&#58;//www&#46;pflegeplus&#46;com/pictures/transp14&#46;jpg[/img:3ruwokcs] Best regards Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
Checkbox transparent win 7 not win xp
Uwe Thanks for all the input. I'll be working on it in next couple of days. I'll keep you posted. Regards
Checkbox transparent win 7 not win xp
Uwe, Thanks for your superb help as usual <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Checkbox transparent win 7 not win xp
Thank You very much for the Response, my new extended Res.-Tester will cover and test all Controls ( [color=#FF0000:uvg6lzpr]transparent Painting [/color:uvg6lzpr]) There will be a complete new Download-file [color=#0000FF:uvg6lzpr]A Resource-tester is still missing in my Tool-Collection !!![/color:uvg6lzpr] Testing : 1. Groups, Radios and Checkboxes on different [color=#FF0000:uvg6lzpr]Dialog[/color:uvg6lzpr]-backgrounds 2. Groups, Radios and Checkboxes on different [color=#FF0000:uvg6lzpr]TFoldex[/color:uvg6lzpr]-backgrounds The Dialog-background and Textcolor can be defined from the xBrowse-selection. [img:uvg6lzpr]http&#58;//www&#46;pflegeplus&#46;com/pictures/resource5&#46;jpg[/img:uvg6lzpr] Best Regards Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
Checkbox transparent win 7 not win xp
Uwe: You have been great helping me out. Not using gradient....can't get it to work. But one more qusetion. How can you color: msfInfo(), MsgAlert(), msgget(), msgYesNo() etc. Thanks for the help.
Checkbox transparent win 7 not win xp
Harvey, Gradient works fine. You can have a closer look, as soon I finished the new Tool for Download. MsgAlert , MsgYesNo ... is Window-standard. You can create Your own fancy Messages, or have a look at the post from Ramesh : [color=#FF0000:2qh790kz][b:2qh790kz]Ramesh Babu P[/b:2qh790kz][/color:2qh790kz]-Functions : <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=22834">viewtopic.php?f=3&t=22834</a><!-- l --> [img:2qh790kz]http&#58;//www&#46;pflegeplus&#46;com/pictures/Mymsgboxp&#46;jpg[/img:2qh790kz] Tools : <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=22226&p=118317&hilit=message+tool#p118317">viewtopic.php?f=3&t=22226&p=118317&hilit=message+tool#p118317</a><!-- l --> [img:2qh790kz]http&#58;//www&#46;pflegeplus&#46;com/pictures/MsgHelp&#46;jpg[/img:2qh790kz] Best Regards Uwe <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: -->
Checkbox transparente
Tengo el problema de haber puesto un gradiente como fondo de un diálogo, y aunque en los recurso le indico que el checkbox es transparente, así como le marco .t. la propiedad ltransparent, al final en tiempo de ejecución me sale con el color de fondo de windows. ¿Hay forma de hacerlo transparente? Gracias y un saludo José Luis
Checkbox transparente
try this oChk:=array(n) lchk:=.f. x,y CHECKBOX oChk Var lChk ...... ochk[1]:ltransparent.=.t.
Checkbox transparente
Gracias Silvio, así lo hice y no he conseguido que sea transparente. Un saludo José Luis
Checkbox transparente
there is also a sample on samples folder !!!!!!!!
Checkbox transparente
Silvio el checkbox lo tengo creado desde recursos, ¿no será eso un problema? Un saludo José Luis
Checkbox transparente
no es the same
Checkbox with three states
Is there a way to get a checkbox with three states, On, Off, and as before? This is as used in windows explorer for read only checkbox in properties etc. Thanks, Alex
Checkbox with three states
Yes, use BS_AUTO3STATE style for the checkbox. EMG
Checkbox with three states
Hi, Thank you, I actually found the sample as well. Had to modify the refresh method in checkbox.prg though, as most of that class is not aware of that style. Alex
Checkboxes and DTPicker in xBrowse
<!-- m --><a class="postlink" href="http://www.mediafire.com/imageview.php?quickkey=dmdip477dmd&thumb=4">http://www.mediafire.com/imageview.php? ... md&thumb=4</a><!-- m --> En Capelblog vi que ourXdbu, esta herramienta maravillosa para manejo de tablas, està desarrollada en fwhx y xharbour... En sus browses podemos ver hermosos chechboxes en los campos lógicos y botones con dtpickers en los campos de fecha. Me gustarìa saber, si estos excelentes programadores quisieran compartir con nosotros como podemos obtener este hermoso efecto, o al menos darme unas pistas..... o si otros programadores pueden hacerlo, valorarè su ayuda. Gracias desde ya.
Checkboxes and DTPicker in xBrowse
Hola José, Mira a xBrowse <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) --> Desculpe pelo meu Español <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: -->
Checkboxes disappear pressing ALT in Vista
Hello, when I compile following sample, the checkboxes and their text disappear pressing ALT, when I entered the dialog by using a mouse click. It looks like the dialog is being repainted as the underlines appear, but the text disappears at the same time. It only happens on a Vista PC with Vista Design. Is there a fix possible? I also uploaded a compiled exe: [url:1p114lln]http&#58;//www&#46;ctosoftware&#46;de/ftp/sample/testcto&#46;exe[/url:1p114lln] [code:1p114lln] #include "Fivewin&#46;ch" STATIC owin FUNCTION MAIN&#40;&#41; DEFINE WINDOW oWin FROM 1, 5 TO 20, 100; TITLE "CHECHBOX Problem This programm is done with manifest, Problem only with VISTA" activate window owin maximized on init test2&#40;&#41; RETURN NIL static function test1&#40;&#41; LOCAL oDlg LOCAL oChk, lChk &#58;= &#46;F&#46;, lChk2 &#58;= &#46;t&#46; DEFINE DIALOG oDlg of owin FROM 1, 5 TO 20, 70; TITLE "NOW push alt key! Problem only with VISTA &#40;Compiled with Fw710 / xharbour 2007&#41;" @ 0&#46;7, 1 CHECKBOX oChk VAR lChk @ 2, 1 CHECKBOX lChk2 OF oDlg @ 3, 1 BUTTON "&Close" ACTION oDlg&#58;End&#40;&#41; ACTIVATE DIALOG oDlg; CENTER return nil static function test2&#40;&#41; LOCAL oDlg LOCAL oChk, lChk &#58;= &#46;F&#46;, lChk2 &#58;= &#46;t&#46; DEFINE DIALOG oDlg of owin FROM 1, 5 TO 20, 70; TITLE "Push this botton by mouse, Problem only with VISTA" @ 0&#46;7, 1 CHECKBOX oChk VAR lChk @ 2, 1 CHECKBOX lChk2 OF oDlg @ 3, 1 SAY "Start this dialog by mouse und than push ALT to see checkbox disappearing" @ 3&#46;5, 1 BUTTON "Click with mouse" ACTION test1&#40;&#41; ACTIVATE DIALOG oDlg; CENTER return nil [/code:1p114lln]
Checkboxes disappear pressing ALT in Vista
Gilbert, What FWH version are you using ? You example built with FWH 8.03 is working fine here.
Checkboxes disappear pressing ALT in Vista
We're using FWH710 Can you send me an executable .exe so I can test it? My e-Mailadress is: kuhnert(at)ctosoftware.de
Checkboxes disappear pressing ALT in Vista
Gilbert, You have to add this code to the Class TControl Method HandleEvent(): [code:1r40zxhd] #define WM_UPDATEUISTATE 0x0128 &#46;&#46;&#46; case nMsg == WM_UPDATEUISTATE nResult = Super&#58;HandleEvent&#40; nMsg, nWParam, nLParam &#41; &#58;&#58;oWnd&#58;Refresh&#40;&#41; return nResult [/code:1r40zxhd]