topic
stringlengths
1
63
text
stringlengths
1
577k
COMBOBOX CBS_SIMPLE
Saludos nuevamente amigos del foro: Estoy tratando con un combobox Simple, con una arreglo en memoria, cuando selecciono un elemento de la lista no tengo problema, la variable, y el Combo:VarGet(), me proporcionan el dato, para yo guardarlo en una tabla, para posterior uso. El problema lo tengo al agregar uno nuevo al combobox, ambas instancias estan vacias(la variable y Combo:VarGet()) algun hilo por donde puedo accesar al valor del elemento nuevo en el combo, para guardarlo en la tabla. Estoy usando FWH 9.06 Saludos desde Honduras <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
COMBOBOX CBS_SIMPLE
Hello, friends of the forum. I need a thread with this; I am having a problem with a combobox from resources in the RC is defined as follows: [code=fw:3hm8ym01]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">COMBOBOX</span> <span style="color: #000000;">800</span>, <span style="color: #000000;">35</span>, <span style="color: #000000;">7</span>, <span style="color: #000000;">180</span>, <span style="color: #000000;">62</span>, CBS_SIMPLE | CBS_SORT | CBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP</div>[/code:3hm8ym01] In the code is as follows: [code=fw:3hm8ym01]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">COMBOBOX</span> oGet <span style="color: #0000ff;">VAR</span> cOtrosBenef <span style="color: #0000ff;">ITEMS</span> aOtrosBenef <span style="color: #0000ff;">ID</span> <span style="color: #000000;">800</span> <span style="color: #0000ff;">OF</span> oCitas <span style="color: #0000ff;">UPDATE</span></div>[/code:3hm8ym01] The combobox when introducing a new element in the list, the variable "cOtrosBenef" I get empty, and also Oget: VarGet (), not how to recover the value entered in the combobox, besides if I use the mouse to move the combobox loses the value entered. There is another way to recover the value of the new item of the combobox, or some way to correct this. I'm using 9.06 FWH Greetings from Honduras <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
COMBOBOX CBS_SIMPLE
Oscar, Could you please test FWH\samples\combos.prg and combos.rc and check if you get the same problem ? thanks
COMBOBOX CBS_SIMPLE
Antonio I appreciate your time. I reviewed the example that follows, and the valid only works when you ENTER me with a new element, and with the tab key or the mouse on the combobox valid is ignored (Combo Simple). Any suggestions are welcomed. Greetings from Honduras <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
COMBOBOX CBS_SIMPLE
Oscar, Those combos contain a GET control object, so you can also use their VALIDs, i.e.: oCbx1:oGet:bValid := { || MsgBeep(), .T. } Please check if that helps you, thanks
COMBOBOX CBS_SIMPLE
Antonio, try this: [code=fw:15482ipj]<div class="fw" id="{CB}" style="font-family: monospace;">   oCbx1:<span style="color: #000000;">oGet</span>:<span style="color: #000000;">bValid</span> := <span style="color: #000000;">&#123;</span> || <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Hello word"</span>, oCbx1:<span style="color: #000000;">oGet</span>:<span style="color: #000000;">VarGet</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, .T. <span style="color: #000000;">&#125;</span><br /> </div>[/code:15482ipj] And it ignores the valid, with the mouse, the enter key and tab; And just how such "combos.prg" say the object is not updated, when introducing a new element; any other suggestions? Thanks for the help <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
COMBOBOX CBS_SIMPLE
Okay, I'll have to use a combobox DROPDOWNLIST, and with new elements add a button, not pretty, but good. Esperaro that in the not too distant future this is fixed, who knows maybe it will contribute. Thanks for the help <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
COMBOBOX Con error en Centrino DUo con HP HOME SP2
Resulta que en esa maquina (Toshiba) el combobox (ya sea por codigo o por recursos) me inserta 2 elementos al inicio con basura. Tambien me pasa en una VAIO XP-PROF SP2 En todas las demas maquinas no. a alguien le ha ocurrido eso?
COMBOBOX Con error en Centrino DUo con HP HOME SP2
I have the same problem. Check out this image [img:rp1i158c]http&#58;//www&#46;psmps&#46;com/images/Image2&#46;gif[/img:rp1i158c]. Notice the three garbage elements at the top of the list. The first item im my array is "All Tables".
COMBOBOX Con error en Centrino DUo con HP HOME SP2
Exactamente ese es el error, curiosamente si desactivo el lector de Huella Digital ya no se genera!!!! ¿Sera un caso para la araña?
COMBOBOX HEIGHTGET is not working? *Solved*
I use REDEFINE COMBOBOX from resource but HEIGHTGET is not working, nothing change. Thanks in advance,
COMBOBOX HEIGHTGET is not working? *Solved*
Please try increasing height in the rc file.
COMBOBOX HEIGHTGET is not working? *Solved*
Dear Master, I got it. Thank you.[quote="nageswaragunupudi":1xxscld7]Please try increasing height in the rc file.[/quote:1xxscld7]
COMBOBOX HEIGHTGET is not working? *Solved*
How to change HEIGHTGET in RC file? [code=fw:2rks3jse]<div class="fw" id="{CB}" style="font-family: monospace;">  CONTROL <span style="color: #ff0000;">""</span>, <span style="color: #000000;">102</span>, <span style="color: #ff0000;">"ComboBox"</span>, WS_BORDER|CBS_DROPDOWNLIST|WS_TABSTOP, <span style="color: #000000;">73</span>, <span style="color: #000000;">23</span>, <span style="color: #000000;">27</span>, <span style="color: #000000;">81</span><br /> </div>[/code:2rks3jse] [quote="nageswaragunupudi":2rks3jse]Please try increasing height in the rc file.[/quote:2rks3jse]
COMBOBOX HEIGHTGET is not working? *Solved*
not work [code=fw:1expybe1]<div class="fw" id="{CB}" style="font-family: monospace;"><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">COMBOBOX</span> nEstado ;<br />      <span style="color: #0000ff;">ID</span> <span style="color: #000000;">109</span> <span style="color: #0000ff;">OF</span> oDlgPE ;<br />      <span style="color: #0000ff;">ITEMS</span> aEstados ;<br />      HEIGHTGET <span style="color: #000000;">24</span> ;<br />      <span style="color: #0000ff;">WHEN</span> !Empty<span style="color: #000000;">&#40;</span> cNomProy <span style="color: #000000;">&#41;</span> ;<br />      <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> <span style="color: #000000;">&#40;</span> IIf<span style="color: #000000;">&#40;</span> nEstado == <span style="color: #000000;">1</span>, <span style="color: #000000;">&#40;</span> cPermisoCierre := Space<span style="color: #000000;">&#40;</span> <span style="color: #000000;">20</span> <span style="color: #000000;">&#41;</span>, dFechaCierre := CToD<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span>, oDlgPE:<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: #00C800;">NIL</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /> </div>[/code:1expybe1] work ok. [code=fw:1expybe1]<div class="fw" id="{CB}" style="font-family: monospace;"><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">COMBOBOX</span> nEstado ;<br />      <span style="color: #0000ff;">ID</span> <span style="color: #000000;">109</span> <span style="color: #0000ff;">OF</span> oDlgPE ;<br />      <span style="color: #0000ff;">ITEMS</span> aEstados ;<br />      <span style="color: #0000ff;">WHEN</span> !Empty<span style="color: #000000;">&#40;</span> cNomProy <span style="color: #000000;">&#41;</span> ;<br />      <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> <span style="color: #000000;">&#40;</span> IIf<span style="color: #000000;">&#40;</span> nEstado == <span style="color: #000000;">1</span>, <span style="color: #000000;">&#40;</span> cPermisoCierre := Space<span style="color: #000000;">&#40;</span> <span style="color: #000000;">20</span> <span style="color: #000000;">&#41;</span>, dFechaCierre := CToD<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span>, oDlgPE:<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: #00C800;">NIL</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />      HEIGHTGET <span style="color: #000000;">24</span><br /> </div>[/code:1expybe1] look the pos of keyword HEIGHTGET [quote:1expybe1]#xcommand REDEFINE COMBOBOX [ <oCbx> VAR ] <cVar> ; [ <items: PROMPTS, ITEMS> <aItems> ] ; [ ID <nId> ] ; [ <dlg:OF,WINDOW,DIALOG> <oWnd> ] ; [ <help:HELPID, HELP ID> <nHelpId> ] ; [ ON CHANGE <uChange> ] ; [ VALID <uValid> ] ; [ <color: COLOR,COLORS> <nClrText> [,<nClrBack>] ] ; [ <update: UPDATE> ] ; [ MESSAGE <cMsg> ] ; [ WHEN <uWhen> ] ; [ BITMAPS <acBitmaps> ] ; [ ON DRAWITEM <uBmpSelect> ] ; [ STYLE <nStyle> ] ; [ <pict: PICT, PICTURE> <cPicture> ]; [ ON EDIT CHANGE <uEChange> ] ; [ HEIGHTGET <nHGet> ] ; [ SELHEIGHT <nSelHt> ] ; [ ITEMHEIGHT <nItmHt> ] ; [ <lw: LISTWIDTH, DROPWIDTH> <nDropW> ] ; [ DIRECTORY <cDir> [ATTRIB <attr>] [SAYDIR <oSayDir> ] ] ; [ OWNERDRAW <uOwnerDraw> ];[/quote:1expybe1]
COMBOBOX HEIGHTGET is not working? *Solved*
Dear Carlos, Thank you for your reply and I try as your suggestion as below but it doesn't change anything. [code=fw:1g54pxoz]<div class="fw" id="{CB}" style="font-family: monospace;">   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">COMBOBOX</span> oGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> oDbf:<span style="color: #000000;">TCG_SECNO</span> <span style="color: #0000ff;">ITEMS</span> MEMVAR->aStn  <span style="color: #0000ff;">ID</span> <span style="color: #000000;">102</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />            <span style="color: #0000ff;">WHEN</span> !lFlr ;<br />            <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> <span style="color: #000000;">&#40;</span>MsgWait<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'test'</span>,,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> ;<br />            HEIGHTGET <span style="color: #000000;">50</span></div>[/code:1g54pxoz] [url=https&#58;//postimages&#46;org/:1g54pxoz][img:1g54pxoz]https&#58;//i&#46;postimg&#46;cc/sxD4tph1/HEIGHTGET&#46;jpg[/img:1g54pxoz][/url:1g54pxoz]
COMBOBOX HEIGHTGET is not working? *Solved*
[quote:jc1mcrvs]I use REDEFINE COMBOBOX from resource but HEIGHTGET is not working, nothing change.[/quote:jc1mcrvs] Do not use HEIGHTGET Use [code=fw:jc1mcrvs]<div class="fw" id="{CB}" style="font-family: monospace;">........<br />SELHEIGHT <span style="color: #000000;">50</span> ;<br />.........</div>[/code:jc1mcrvs] Alternatively, you can also do [code=fw:jc1mcrvs]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> oCbx:<span style="color: #000000;">nSelectionHeight</span> := <nNewHeight><br /> </div>[/code:jc1mcrvs]
COMBOBOX HEIGHTGET is not working? *Solved*
Dear Mst Rao, [u:3g9uu81l]SELHEITHGT is not working.[/u:3g9uu81l] [quote="nageswaragunupudi":3g9uu81l] Do not use HEIGHTGET Use [code=fw:3g9uu81l]<div class="fw" id="{CB}" style="font-family: monospace;">........<br />SELHEIGHT <span style="color: #000000;">50</span> ;<br />.........</div>[/code:3g9uu81l] Alternatively, you can also do [code=fw:3g9uu81l]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> oCbx:<span style="color: #000000;">nSelectionHeight</span> := <nNewHeight><br /> </div>[/code:3g9uu81l][/quote:3g9uu81l] This one is working well. [url=https&#58;//postimages&#46;org/:3g9uu81l][img:3g9uu81l]https&#58;//i&#46;postimg&#46;cc/C5Gfbfyh/HEIGHTGET&#46;png[/img:3g9uu81l][/url:3g9uu81l] Thank you so much.
COMBOBOX HEIGHTGET is not working? *Solved*
[b:3lx67wcm]NOT RUN OK ON RESOURCES[/b:3lx67wcm] On my order I have @ 2,5 COMBOBOX aGet[1] VAR nIcoElemento Items aElementiItems ; BITMAPS aBmpCombo SIZE 50,90 PIXEL of oFolder:aDialogs[1]; ON CHANGE ( ncella:="", aGet[2]:refresh()) [b:3lx67wcm]HEIGHTGET 66[/b:3lx67wcm] and run ok [img:3lx67wcm]https&#58;//i&#46;postimg&#46;cc/T3pJHj9Q/twofolder&#46;png[/img:3lx67wcm]
COMBOBOX HEIGHTGET is not working? *Solved*
On resource, try ACTIVATE DIALOG oDlg ON INIT oCbx:nSelectionHeight := <nNewHeight>
COMBOBOX HEIGHTGET is not working? *Solved*
I did some tests with fwh\samples\combosb.prg using \fwh\samples\combosb.rc. I found that both HEIGHTGET and SELHEIGHT are working with resources. Please build and run \fwh\samples\combosb.prg without any changes. This is what you see. [url=https&#58;//imageshack&#46;com/i/poBUsvVDp:3svfufd8][img:3svfufd8]https&#58;//imagizer&#46;imageshack&#46;com/v2/xq90/924/BUsvVD&#46;png[/img:3svfufd8][/url:3svfufd8] Now, add these clauses "HEIGHTGET 50" and "HEIGHTGET 30" to oCbx2 and oCbx3 respectively. This is the code. [code=fw:3svfufd8]<div class="fw" id="{CB}" style="font-family: monospace;"><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">COMBOBOX</span> oCbx2 <span style="color: #0000ff;">VAR</span> cItem2 <span style="color: #0000ff;">ITEMS</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"One"</span>, <span style="color: #ff0000;">"Two"</span>, <span style="color: #ff0000;">"Three"</span> <span style="color: #000000;">&#125;</span> ;<br />      <span style="color: #0000ff;">ID</span> ID_DROPDOWN <span style="color: #0000ff;">OF</span> oDlg ;<br />      <span style="color: #0000ff;">STYLE</span> CBS_DROPDOWN ;<br />      HEIGHTGET <span style="color: #000000;">50</span> ;<br />      <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> <span style="color: #000000;">&#40;</span> cItem4 := cItem2, oSay:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />      <span style="color: #0000ff;">VALID</span> <span style="color: #000000;">&#40;</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ! oCbx2:<span style="color: #000000;">Find</span><span style="color: #000000;">&#40;</span> oCbx2:<span style="color: #000000;">oGet</span>:<span style="color: #000000;">GetText</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>,;<br />                  oCbx2:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> oCbx2:<span style="color: #000000;">oGet</span>:<span style="color: #000000;">GetText</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>, .t. <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">COMBOBOX</span> oCbx3 <span style="color: #0000ff;">VAR</span> cItem3 <span style="color: #0000ff;">ITEMS</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"One"</span>, <span style="color: #ff0000;">"Two"</span>, <span style="color: #ff0000;">"Three"</span> <span style="color: #000000;">&#125;</span> ;<br />      <span style="color: #0000ff;">ID</span> ID_DROPDOWNLIST <span style="color: #0000ff;">OF</span> oDlg ;<br />      HEIGHTGET <span style="color: #000000;">30</span> ;<br />      <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> <span style="color: #000000;">&#40;</span> cItem4 := cItem3, oSay:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />      <span style="color: #0000ff;">VALID</span> <span style="color: #000000;">&#40;</span> cItem4 := cItem3, oSay:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, .t. <span style="color: #000000;">&#41;</span><br /> </div>[/code:3svfufd8] This is what you see. [url=https&#58;//imageshack&#46;com/i/pnPMYDADp:3svfufd8][img:3svfufd8]https&#58;//imagizer&#46;imageshack&#46;com/v2/xq90/923/PMYDAD&#46;png[/img:3svfufd8][/url:3svfufd8] Now, change these clauses as "SELHEIGHT 30" and "SELHEIGHT 50" to oCbx2 and oCbx3 respectively. This is the code [code=fw:3svfufd8]<div class="fw" id="{CB}" style="font-family: monospace;"><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">COMBOBOX</span> oCbx2 <span style="color: #0000ff;">VAR</span> cItem2 <span style="color: #0000ff;">ITEMS</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"One"</span>, <span style="color: #ff0000;">"Two"</span>, <span style="color: #ff0000;">"Three"</span> <span style="color: #000000;">&#125;</span> ;<br />      <span style="color: #0000ff;">ID</span> ID_DROPDOWN <span style="color: #0000ff;">OF</span> oDlg ;<br />      <span style="color: #0000ff;">STYLE</span> CBS_DROPDOWN ;<br />      SELHEIGHT <span style="color: #000000;">30</span> ;<br />      <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> <span style="color: #000000;">&#40;</span> cItem4 := cItem2, oSay:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />      <span style="color: #0000ff;">VALID</span> <span style="color: #000000;">&#40;</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ! oCbx2:<span style="color: #000000;">Find</span><span style="color: #000000;">&#40;</span> oCbx2:<span style="color: #000000;">oGet</span>:<span style="color: #000000;">GetText</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>,;<br />                  oCbx2:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> oCbx2:<span style="color: #000000;">oGet</span>:<span style="color: #000000;">GetText</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>, .t. <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">COMBOBOX</span> oCbx3 <span style="color: #0000ff;">VAR</span> cItem3 <span style="color: #0000ff;">ITEMS</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"One"</span>, <span style="color: #ff0000;">"Two"</span>, <span style="color: #ff0000;">"Three"</span> <span style="color: #000000;">&#125;</span> ;<br />      <span style="color: #0000ff;">ID</span> ID_DROPDOWNLIST <span style="color: #0000ff;">OF</span> oDlg ;<br />      SELHEIGHT <span style="color: #000000;">50</span> ;<br />      <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> <span style="color: #000000;">&#40;</span> cItem4 := cItem3, oSay:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />      <span style="color: #0000ff;">VALID</span> <span style="color: #000000;">&#40;</span> cItem4 := cItem3, oSay:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, .t. <span style="color: #000000;">&#41;</span><br /> </div>[/code:3svfufd8] This is what you see. [url=https&#58;//imageshack&#46;com/i/poOlqTXZp:3svfufd8][img:3svfufd8]https&#58;//imagizer&#46;imageshack&#46;com/v2/xq90/924/OlqTXZ&#46;png[/img:3svfufd8][/url:3svfufd8] These tests show that both HEIGHTGET and SELHEIGHT work with resources too. First test these changes in \fwh\samples\combosb.prg. After that, if in your program these clauses are not working, look for the differences this sample and your own sources.
COMBOBOX HEIGHTGET is not working? *Solved*
Dear Master Rao, I found the problem of HEIGHTGET that does not work. It is RESIZE16 clause effect. It will be work, if no RESIZE16. Thank you so much. Dutch
COMBOBOX ON BUTTONBAR
Friends, any sample of a combobox with bitmaps on button bar ?
COMBOBOX ON BUTTONBAR
Silvio, Conseguiste insertar un combobox en un buttonbar?
COMBOBOX ON BUTTONBAR
simply yes, with bitmaps no... Now i use another class
COMBOBOX ON BUTTONBAR
Silvio, with the new Vtitle-Class, You can create Your own individual Buttonbar, because Button-Action for Bitmaps is supported now. Just a test with Combobox and Button-Action : [img:2u25wwyg]http&#58;//www&#46;pflegeplus&#46;com/pictures/vtitle33&#46;jpg[/img:2u25wwyg] Combobox added to samples\[color=#FF0000:2u25wwyg]testtitl.prg[/color:2u25wwyg] [code=fw:2u25wwyg]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">//Title 5 Horizontal( Down )</span><br />@ <span style="color: #000000;">480</span>, <span style="color: #000000;">150</span>  <span style="color: #0000ff;">TITLE</span> oTitle5 <span style="color: #0000ff;">size</span> <span style="color: #000000;">460</span>, <span style="color: #000000;">60</span> <span style="color: #0000ff;">of</span> oWnd SHADOW BOTTOMLEFT SHADOWSIZE <span style="color: #000000;">2</span><br />@   <span style="color: #000000;">5</span>,  <span style="color: #000000;">10</span>  TITLEIMG  <span style="color: #0000ff;">OF</span> oTitle5 BITMAP <span style="color: #ff0000;">"../bitmaps<span style="color: #000000;">\3</span>2X32<span style="color: #000000;">\k</span>eys.bmp"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">30</span>, <span style="color: #000000;">30</span> REFLEX TRANSPARENT ANIMA ;<br /><span style="color: #0000ff;">ACTION</span> MsgAlert<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"I am Action for Button 1"</span>, <span style="color: #ff0000;">"Attention"</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">// @  20,  60  TITLETEXT OF oTitle5 TEXT "<== Move over me"  COLOR CLR_BLACK   </span><br />@ <span style="color: #000000;">14</span>,  <span style="color: #000000;">220</span>  TITLETEXT <span style="color: #0000ff;">OF</span> oTitle5 <span style="color: #0000ff;">TEXT</span> <span style="color: #ff0000;">"FIVEWIN 9.07"</span>  <span style="color: #0000ff;">COLOR</span> CLR_BLACK <span style="color: #0000ff;">FONT</span> oFont2 <span style="color: #B900B9;">//  3d</span><br />@  <span style="color: #000000;">5</span>,  <span style="color: #000000;">400</span>  TITLEIMG  <span style="color: #0000ff;">OF</span> oTitle5 BITMAP <span style="color: #ff0000;">"../bitmaps<span style="color: #000000;">\f</span>ivetech.bmp"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">30</span>, <span style="color: #000000;">30</span> REFLEX <br />oTitle5:<span style="color: #000000;">nShadowIntensity</span> = <span style="color: #000000;">70</span><br /><br />@ <span style="color: #000000;">0.5</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">COMBOBOX</span> oCbx <span style="color: #0000ff;">VAR</span> cText <span style="color: #0000ff;">OF</span> oTitle5 <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">80</span> ;<br /><span style="color: #0000ff;">BITMAPS</span> <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"../bitmaps<span style="color: #000000;">\a</span>rrow.bmp"</span>,<span style="color: #ff0000;">"../bitmaps<span style="color: #000000;">\b</span>rowse.bmp"</span>,<span style="color: #ff0000;">"../bitmaps<span style="color: #000000;">\c</span>alc.bmp"</span><span style="color: #000000;">&#125;</span> ;<br /><span style="color: #0000ff;">STYLE</span> CBS_DROPDOWN ;<br /><span style="color: #0000ff;">ITEMS</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"One"</span>, <span style="color: #ff0000;">"Two"</span>, <span style="color: #ff0000;">"Three"</span> <span style="color: #000000;">&#125;</span> ;<br /><span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> oWnd:<span style="color: #000000;">SetText</span><span style="color: #000000;">&#40;</span> cText <span style="color: #000000;">&#41;</span><br /> </div>[/code:2u25wwyg] Best regards Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
COMBOBOX ON BUTTONBAR
Sorry Uwe, Vtitle class of Antonio linares can be a good class but i use my vtitle class (the name is paint title) with it i can make button on it and i can insert also animated bitmaps buttons allready from two year ago. And... I not think you can crete combobox with BIG bitmaps on it
COMBOBOX SIMPLE FWH1407
Estimados Amigo Acabo de migrar de la versión FWH1108 a la versión FWH1407 y al revisar mis diálogos con combo simple siempre lo editaba y presionando la tecla enter pasaba al siguiente campo, ahora no se puede hacer esto viéndome obligado a usar la tecla Tab o con el mouse para pasar de un campo a otro, debido a la rapidez de la edición con la tecla enter quisiera saber si hay alguna forma de corregir. Agradezco su apoyo Carlos Cardoza FWH+PellesC+Mysql
COMBOBOX STYLE
Nages sad me I can insert [b:1yh69ogj]STYLE CBS_DROPDOWN[/b:1yh69ogj] on COMBOBOX when the value is numeric [b:1yh69ogj]nNaturaIva:[/b:1yh69ogj]= ASCAN(aNatura, { | a | alltrim(a[ 1 ]) == alltrim("N1") } ) @ 140, 120 COMBOBOX aGet[4] VAR [b:1yh69ogj]nNaturaIva[/b:1yh69ogj] ITEMS aItems SIZE 450,24 PIXEL OF oDlg [b:1yh69ogj]STYLE CBS_DROPDOWN [/b:1yh69ogj] UPDATE bat when I put the mouse on combobox [b:1yh69ogj]it go out error[/b:1yh69ogj] [img:1yh69ogj]https&#58;//i&#46;postimg&#46;cc/85QV0SKJ/ff&#46;png[/img:1yh69ogj] How I can resolve i t?
COMBOBOX STYLE CBS_DROPDOWN - a little bug?
Hi Antonio. I download lastest version of FWPPC. COMBOBOX is work now. I try use STYLE CBS_DROPDOWN, and some character from previous Combo value is appended to end of current value ,if COMBOBOX lost focus (click to next get box for example). Length of previous value must be more than length of current value. If STYLE CBS_DROPDOWN not set COMBOBOX work good. Regards Andrej.
COMBOBOX STYLE CBS_DROPDOWN - a little bug?
Andrej, Could you please provide a small PRG to test it ? thanks
COMBOBOX STYLE CBS_DROPDOWN - a little bug?
Andrej, Thanks for your example. Yes, there is a bug there to locate and fix. We are working on it.
COMBOBOX STYLE CBS_DROPDOWN - a little bug?
Well. Coming soon.<!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> // #include "fwce.ch" #include "dll.ch" #define MB_ICONINFORMATION 0x40 static aBTypes:= {'Repce','Akác','Hárs','Gesztenye','Napraforgó','Selyemkóró','Facélia','Vegyes virág','Mézharmat','Egyéb'} function Main() // Main Window LOCAL oBmp Local oHONEYTYPES, cHONEYTYPES Local oHONEYTYPES_DD, cHONEYTYPES_DD Local oBEEKEEPER , cBEEKEEPER cBeeKeeper:="Click to me after set second combo" public oWnd DEFINE WINDOW oWnd TITLE "RFID_OMME" ; @ 2 ,2 COMBOBOX oHONEYTYPES Var cHONEYTYPES ITEMS aBTypes SIZE 100,120 @ 6 ,2 COMBOBOX oHONEYTYPES_DD Var cHONEYTYPES_DD ITEMS aBTypes STYLE CBS_DROPDOWN SIZE 100,120 @ 10, 2 GET oBEEKEEPER Var cBEEKEEPER SIZE 200, 22 ACTIVATE WINDOW oWnd; return nil //
COMBOBOX STYLE CBS_DROPDOWN - a little bug?
Alguna solucion para viejas versiones? gracias.
COMBOBOX STYLE CBS_DROPDOWN - a little bug?
Gustavo, Dime por favor que mide el fichero source\classes\combobox.prg de FWPPC
COMBOBOX STYLE CBS_DROPDOWN - a little bug?
non o, perdon yo no tengo pocket pc. ya resolvi era por fwh.
COMBOBOX WITH Sort
Hi , I had the same problem and solved it by adding blank after items in the array . I found that all items of the array should have the same lenght . Strange !! Philippe
COMBOBOX WITH Sort
Hello I have a COMBOBOX ( in a RC file with Sort = Yes ) aTipi := {'Paolo', 'Gianni','Andrea' 'Cesare' } I set cTipo_Cli = 'Gianni' REDEFINE COMBOBOX oCom Var cTipo_Cli ITEMS aTipi ID 4009 OF oDlg but when I open the dialog on the combobox I have 'Cesare' and not 'Gianni' Thanks
COMBOBOX WITH Sort
Perhaps, if you are using pellesC, you need to "remove" the SORT variable in the combobox as NO. Maybe: ON Change := cTipo_Cli[ oCbx:nAt ] Regards, saludos.
COMBOBOX WITH BITMAPS
I made local aItems := { 'COMPUTER','PORTATILE','STAMPANTE','MONITOR', 'TASTIERA', 'SWITCH', ; 'MOUSE', 'POCKET','SCANNER','PROIETTORE' ,'VIDEOCAMERA' , 'FILMCAMERA' , 'FOTOCAMERA' } ... @ 0.8, 14 say "&Tipo Hardware :" OF oDlg @ 0.8, 16 COMBOBOX aGet[2] VAR cType ITEMS aItems OF oDlg; BITMAPS { 'HARD_01',; 'HARD_02' ,; 'HARD_03' ,; 'HARD_04' ,; 'HARD_05',; 'HARD_06' ,; 'HARD_07',; 'HARD_08',; 'HARD_09' ,; 'HARD_10',; 'HARD_11',; 'HARD_12',; 'HARD_13' } SIZE 80,30 STYLE CBS_DROPDOWNLIST BUT I CANNOT SEE THE BITMAPS BUT ONLY THE ITEMS HOW I CAN MAKE TO SHOW BITMAPS AND ITEMS ? NOTE: THE BITMAPS ARE ON A RESOURCES FILES!!
COMBOBOX WITH BITMAPS
What is the size of the BITMAPS used ? Is it 16 x 16 ? <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=20831">viewtopic.php?f=3&t=20831</a><!-- l --> Regards Anser
COMBOBOX WITH BITMAPS
Anserkk, yes they are 16x16 simply bitmaps no alpha only it give me this error [b:cne1ht8s]Error description: Error BASE/1132 Error de rango: acceso al array[/b:cne1ht8s] [code=fw:cne1ht8s]<div class="fw" id="{CB}" style="font-family: monospace;">pplication<br />===========<br />&nbsp; &nbsp;Path and <span style="color: #0000ff;">name</span>: <span style="color: #000000;">C</span>:\WORK\errori2\work\test.Exe <span style="color: #000000;">&#40;</span><span style="color: #000000;">32</span> bits<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">Size</span>: <span style="color: #000000;">2</span>,<span style="color: #000000;">945</span>,<span style="color: #000000;">536</span> bytes<br />&nbsp; &nbsp;Time <span style="color: #0000ff;">from</span> start: <span style="color: #000000;">0</span> hours <span style="color: #000000;">1</span> mins <span style="color: #000000;">21</span> secs <br />&nbsp; &nbsp;Error occurred <span style="color: #00C800;">at</span>: <span style="color: #000000;">18</span><span style="color: #000000;">-02</span><span style="color: #000000;">-2011</span>, <span style="color: #000000;">13</span>:<span style="color: #000000;">18</span>:<span style="color: #000000;">06</span><br />&nbsp; &nbsp;Error description: <span style="color: #000000;">Error</span> BASE/<span style="color: #000000;">1132</span> &nbsp;Error de rango: <span style="color: #000000;">acceso</span> al array<br />&nbsp; &nbsp;Args:<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> &nbsp; <span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> = A &nbsp; <span style="color: #000000;">&#123;</span> ... <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> &nbsp; <span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> = N &nbsp; <span style="color: #000000;">0</span><br /><br />Stack Calls<br />===========<br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">imagelis</span>.prg => LBXDRAWITEM<span style="color: #000000;">&#40;</span><span style="color: #000000;">510</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">COMBOBOX</span>.PRG => TCOMBOBOX:<span style="color: #000000;">DRAWITEM</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">758</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: &nbsp;=> TWINDOW:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\CONTROL.PRG => TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1499</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">COMBOBOX</span>.PRG => TCOMBOBOX:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">604</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => _FWH<span style="color: #000000;">&#40;</span><span style="color: #000000;">3394</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: &nbsp;=> SENDMESSAGE<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => TDIALOG:<span style="color: #000000;">DRAWITEM</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1165</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: &nbsp;=> TWINDOW:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">DIALOG</span>.PRG => TDIALOG:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">944</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: &nbsp;=> SYSREFRESH<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">DIALOG</span>.PRG => TDIALOG:<span style="color: #000000;">END</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">531</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\<span style="color: #00C800;">function</span>\ERRSYSW.PRG => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>ERRORDIALOG<span style="color: #000000;">&#40;</span><span style="color: #000000;">360</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">BUTTON</span>.PRG => TBUTTON:<span style="color: #0000ff;">CLICK</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">176</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\CONTROL.PRG => TBUTTON:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1447</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => _FWH<span style="color: #000000;">&#40;</span><span style="color: #000000;">3394</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: &nbsp;=> SENDMESSAGE<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">DIALOG</span>.PRG => TDIALOG:<span style="color: #000000;">COMMAND</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">408</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: &nbsp;=> TWINDOW:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">DIALOG</span>.PRG => TDIALOG:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">944</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: &nbsp;=> DIALOGBOXINDIRECT<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">DIALOG</span>.PRG => TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">273</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\<span style="color: #00C800;">function</span>\ERRSYSW.PRG => ERRORDIALOG<span style="color: #000000;">&#40;</span><span style="color: #000000;">379</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\<span style="color: #00C800;">function</span>\ERRSYSW.PRG => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>ERRORSYS<span style="color: #000000;">&#40;</span><span style="color: #000000;">27</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">imagelis</span>.prg => LBXDRAWITEM<span style="color: #000000;">&#40;</span><span style="color: #000000;">510</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">COMBOBOX</span>.PRG => TCOMBOBOX:<span style="color: #000000;">DRAWITEM</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">758</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: &nbsp;=> TWINDOW:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\CONTROL.PRG => TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1499</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">COMBOBOX</span>.PRG => TCOMBOBOX:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">604</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => _FWH<span style="color: #000000;">&#40;</span><span style="color: #000000;">3394</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: &nbsp;=> SENDMESSAGE<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => TDIALOG:<span style="color: #000000;">DRAWITEM</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1165</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: &nbsp;=> TWINDOW:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">DIALOG</span>.PRG => TDIALOG:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">944</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: &nbsp;=> DIALOGBOXINDIRECT<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">DIALOG</span>.PRG => TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">273</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\<span style="color: #00C800;">function</span>\ERRSYSW.PRG => ERRORDIALOG<span style="color: #000000;">&#40;</span><span style="color: #000000;">379</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\<span style="color: #00C800;">function</span>\ERRSYSW.PRG => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>ERRORSYS<span style="color: #000000;">&#40;</span><span style="color: #000000;">27</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">imagelis</span>.prg => LBXDRAWITEM<span style="color: #000000;">&#40;</span><span style="color: #000000;">510</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">COMBOBOX</span>.PRG => TCOMBOBOX:<span style="color: #000000;">DRAWITEM</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">758</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: &nbsp;=> TWINDOW:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\CONTROL.PRG => TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1499</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">COMBOBOX</span>.PRG => TCOMBOBOX:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">604</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => _FWH<span style="color: #000000;">&#40;</span><span style="color: #000000;">3394</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: &nbsp;=> SENDMESSAGE<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => TDIALOG:<span style="color: #000000;">DRAWITEM</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1165</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: &nbsp;=> TWINDOW:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">DIALOG</span>.PRG => TDIALOG:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">944</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: &nbsp;=> DIALOGBOXINDIRECT<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">DIALOG</span>.PRG => TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">273</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">source</span>\PHardware.prg => HWEDITA<span style="color: #000000;">&#40;</span><span style="color: #000000;">550</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">source</span>\PHardware.prg => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>HARDWARE<span style="color: #000000;">&#40;</span><span style="color: #000000;">203</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">Lib</span>\VMenu.prg => TVMENU:<span style="color: #000000;">EVALACTION</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1700</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">Lib</span>\VMenu.prg => TVMENU:<span style="color: #000000;">LBUTTONUP</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1398</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\CONTROL.PRG => TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1489</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">Lib</span>\VMenu.prg => TVMENU:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">905</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => _FWH<span style="color: #000000;">&#40;</span><span style="color: #000000;">3394</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: &nbsp;=> WINRUN<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => TWINDOW:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">978</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">source</span>\main.prg => TAPPLICATION:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">167</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">source</span>\main.prg => MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">49</span><span style="color: #000000;">&#41;</span></div>[/code:cne1ht8s]
COMBOBOX WITH BITMAPS
NOT RUN ALSO WITH @ 0.8, 16 COMBOBOX aGet[2] VAR cType ITEMS aItems OF oDlg; BITMAPS {".\bitmaps\SM_HARD.bmp" ,; ".\bitmaps\SM_LAP.bmp" ,; ".\bitmaps\SM_PRT.bmp" ,; ".\bitmaps\SM_MON.bmp" ,; ".\bitmaps\SM_KEY.bmp" ,; ".\bitmaps\SM_SWI.bmp" ,; ".\bitmaps\SM_MOU.bmp" ,; ".\bitmaps\SM_PALM.bmp" ,; ".\bitmaps\SM_SCAN.bmp" ,; ".\bitmaps\SM_PRO.bmp" ,; ".\bitmaps\SM_VID.bmp" ,; ".\bitmaps\SM_FILM.bmp" ,; ".\bitmaps\SM_CAME.bmp"} SIZE 80,80 and as I saw on ownerdra.prg fivewin sample ( it run ok) but when I insert the combo on my prg NOT RUN @ 0.8, 16 COMBOBOX aGet[2] VAR cType ITEMS aItems OF oDlg; BITMAPS {"..\bitmaps\SM_HARD.bmp" ,; "..\bitmaps\SM_LAP.bmp" ,; "..\bitmaps\SM_PRT.bmp" ,; "..\bitmaps\SM_MON.bmp" ,; "..\bitmaps\SM_KEY.bmp" ,; "..\bitmaps\SM_SWI.bmp" ,; "..\bitmaps\SM_MOU.bmp" ,; "..\bitmaps\SM_PALM.bmp" ,; "..\bitmaps\SM_SCAN.bmp" ,; "..\bitmaps\SM_PRO.bmp" ,; "..\bitmaps\SM_VID.bmp" ,; "..\bitmaps\SM_FILM.bmp" ,; "..\bitmaps\SM_CAME.bmp"} SIZE 80,80
COMBOBOX WITH BITMAPS
Hello Silvio, because of Path-defines, sometimes I got Problems to find BMP's I don't use .\ or ..\ anymore. Instead I use : [color=#FF0000:xzuifno3]c_path [/color:xzuifno3]:= CURDRIVE() + ":\" + GETCURDIR() and the BMP-call with [color=#FF0000:xzuifno3]c_Path [/color:xzuifno3]+ "\bitmaps\" + cBmp1 or [color=#FF0000:xzuifno3]c_Path [/color:xzuifno3]+ "\Images\16x16\" + cBmp1 where cBmp1 = "LOGO.BMP" maybe it can fix Your problem. Best regards Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
COMBOBOX WITH BITMAPS
I had a similar problem. My bitmaps are referenced in the .rc file so included in the .exe. I found it was necessary to use 16x16 bit alpha bitmaps, and it works perfectly. In this case, I wanted color swatches, so I have bitmaps with solid colors. Using any other size, or type ( ie. 8 bit, etc ) did not work but these do. Tim
COMBOBOX WITH BITMAPS
Hello Tim, 16x16 is OK, to use for Comboboxes. It is also possible, to display bigger sizes, but there is a Row-size-problem : Row-height / width is not adjusted like in xBrowse. [img:29tiqt91]http&#58;//www&#46;pflegeplus&#46;com/pictures/combo7&#46;jpg[/img:29tiqt91] Best regards Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
COMBOBOX WITH BITMAPS
perhaps I found the error .... I use vtaskbar of paco and link to my application his lib ( c5new) when I erase this lib from my application I see combobox with bitmaps !!!!!!!!!!!!!!!!!!!!!!! But this is very strange ....because I used that lib always ....
COMBOBOX Y CHECKBOX
Hola Amigos.. como se podria hacer esto: [url=https&#58;//postimg&#46;cc/Fd6G1PNt:2mveaiuk][img:2mveaiuk]https&#58;//i&#46;postimg&#46;cc/Fd6G1PNt/comboboxcheck&#46;png[/img:2mveaiuk][/url:2mveaiuk] con xbrowse se podria... pero otra forma saludos
COMBOBOX Y CHECKBOX
Interesante... Me sumo a la inquietud +1
COMBOBOX Y CHECKBOX
Esta es una posible forma, aunque sin usar un combobox: [img:3jzf9pxn]https&#58;//github&#46;com/FiveTechSoft/screenshots/blob/master/panelcheckbox&#46;jpg?raw=true[/img:3jzf9pxn] Vamos a ir mejorándolo <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> [code=fw:3jzf9pxn]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"constant.ch"</span><br /><br /><span style="color: #00C800;">static</span> oDlg, oPanel<br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />  <span style="color: #00C800;">local</span> oBtn<br /><br />  <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Marca"</span> ;<br />   <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">200</span>, <span style="color: #000000;">250</span> <span style="color: #0000ff;">PIXEL</span><br /><br />  @ <span style="color: #000000;">100</span>, <span style="color: #000000;">5</span> <span style="color: #0000ff;">BTNBMP</span> oBtn <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Aplicar"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">90</span>, <span style="color: #000000;">15</span> FLAT<br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> ;<br />     <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#40;</span> oBtn:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"W+/BG+"</span> <span style="color: #000000;">&#41;</span>, CreatePanel<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, CreateCheckBoxes<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oPanel:<span style="color: #000000;">SetRange</span><span style="color: #000000;">&#40;</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 /><span style="color: #B900B9;">//--------------------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> CreatePanel<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />  oPanel = TScrollPanel<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: #000000;">50</span>, <span style="color: #000000;">11</span>, oDlg:<span style="color: #000000;">nBottom</span> - <span style="color: #000000;">60</span>, oDlg:<span style="color: #000000;">nWidth</span> - <span style="color: #000000;">20</span>, oDlg <span style="color: #000000;">&#41;</span><br />  oPanel:<span style="color: #000000;">WinStyle</span><span style="color: #000000;">&#40;</span> WS_BORDER, .F. <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;">//--------------------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> CreateCheckBoxes<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />  <span style="color: #00C800;">local</span> aValues := Array<span style="color: #000000;">&#40;</span> <span style="color: #000000;">12</span> <span style="color: #000000;">&#41;</span>, nTop := <span style="color: #000000;">0</span><br /><br />  AFill<span style="color: #000000;">&#40;</span> aValues, .F. <span style="color: #000000;">&#41;</span><br /><br />  @ nTop,        <span style="color: #000000;">0.5</span> <span style="color: #0000ff;">CHECKBOX</span> aValues<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> oPanel:<span style="color: #000000;">nRight</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">OF</span> oPanel  <span style="color: #B900B9;">// SCROLL ADJUST</span><br />  @ nTop += <span style="color: #000000;">1.7</span>, <span style="color: #000000;">0.5</span> <span style="color: #0000ff;">CHECKBOX</span> aValues<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> oPanel:<span style="color: #000000;">nRight</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">OF</span> oPanel  <span style="color: #B900B9;">// SCROLL ADJUST</span><br />  @ nTop += <span style="color: #000000;">1.7</span>, <span style="color: #000000;">0.5</span> <span style="color: #0000ff;">CHECKBOX</span> aValues<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> oPanel:<span style="color: #000000;">nRight</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">OF</span> oPanel  <span style="color: #B900B9;">// SCROLL ADJUST</span><br />  @ nTop += <span style="color: #000000;">1.7</span>, <span style="color: #000000;">0.5</span> <span style="color: #0000ff;">CHECKBOX</span> aValues<span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> oPanel:<span style="color: #000000;">nRight</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">OF</span> oPanel  <span style="color: #B900B9;">// SCROLL ADJUST</span><br />  @ nTop += <span style="color: #000000;">1.7</span>, <span style="color: #000000;">0.5</span> <span style="color: #0000ff;">CHECKBOX</span> aValues<span style="color: #000000;">&#91;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> oPanel:<span style="color: #000000;">nRight</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">OF</span> oPanel  <span style="color: #B900B9;">// SCROLL ADJUST</span><br />  @ nTop += <span style="color: #000000;">1.7</span>, <span style="color: #000000;">0.5</span> <span style="color: #0000ff;">CHECKBOX</span> aValues<span style="color: #000000;">&#91;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> oPanel:<span style="color: #000000;">nRight</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">OF</span> oPanel  <span style="color: #B900B9;">// SCROLL ADJUST</span><br />  @ nTop += <span style="color: #000000;">1.7</span>, <span style="color: #000000;">0.5</span> <span style="color: #0000ff;">CHECKBOX</span> aValues<span style="color: #000000;">&#91;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> oPanel:<span style="color: #000000;">nRight</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">OF</span> oPanel  <span style="color: #B900B9;">// SCROLL ADJUST</span><br />  @ nTop += <span style="color: #000000;">1.7</span>, <span style="color: #000000;">0.5</span> <span style="color: #0000ff;">CHECKBOX</span> aValues<span style="color: #000000;">&#91;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> oPanel:<span style="color: #000000;">nRight</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">OF</span> oPanel  <span style="color: #B900B9;">// SCROLL ADJUST</span><br />  @ nTop += <span style="color: #000000;">1.7</span>, <span style="color: #000000;">0.5</span> <span style="color: #0000ff;">CHECKBOX</span> aValues<span style="color: #000000;">&#91;</span> <span style="color: #000000;">9</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> oPanel:<span style="color: #000000;">nRight</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">OF</span> oPanel  <span style="color: #B900B9;">// SCROLL ADJUST</span><br />  @ nTop += <span style="color: #000000;">1.7</span>, <span style="color: #000000;">0.5</span> <span style="color: #0000ff;">CHECKBOX</span> aValues<span style="color: #000000;">&#91;</span> <span style="color: #000000;">10</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> oPanel:<span style="color: #000000;">nRight</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">OF</span> oPanel  <span style="color: #B900B9;">// SCROLL ADJUST</span><br />  @ nTop += <span style="color: #000000;">1.7</span>, <span style="color: #000000;">0.5</span> <span style="color: #0000ff;">CHECKBOX</span> aValues<span style="color: #000000;">&#91;</span> <span style="color: #000000;">11</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> oPanel:<span style="color: #000000;">nRight</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">OF</span> oPanel  <span style="color: #B900B9;">// SCROLL ADJUST</span><br />  @ nTop += <span style="color: #000000;">1.7</span>, <span style="color: #000000;">0.5</span> <span style="color: #0000ff;">CHECKBOX</span> aValues<span style="color: #000000;">&#91;</span> <span style="color: #000000;">12</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> oPanel:<span style="color: #000000;">nRight</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">OF</span> oPanel  <span style="color: #B900B9;">// SCROLL ADJUST</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//--------------------------------------------------------------------------------------//</span><br /> </div>[/code:3jzf9pxn]
COMBOBOX Y CHECKBOX
[quote="Antonio Linares":3nbnb3wt]Esta es una posible forma, aunque sin usar un combobox: [img:3nbnb3wt]https&#58;//github&#46;com/FiveTechSoft/screenshots/blob/master/panelcheckbox&#46;jpg?raw=true[/img:3nbnb3wt] Vamos a ir mejorándolo <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> [code=fw:3nbnb3wt]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"constant.ch"</span><br /><br /><span style="color: #00C800;">static</span> oDlg, oPanel<br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />  <span style="color: #00C800;">local</span> oBtn<br /><br />  <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Marca"</span> ;<br />   <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">200</span>, <span style="color: #000000;">250</span> <span style="color: #0000ff;">PIXEL</span><br /><br />  @ <span style="color: #000000;">100</span>, <span style="color: #000000;">5</span> <span style="color: #0000ff;">BTNBMP</span> oBtn <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Aplicar"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">90</span>, <span style="color: #000000;">15</span> FLAT<br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> ;<br />     <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#40;</span> oBtn:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"W+/BG+"</span> <span style="color: #000000;">&#41;</span>, CreatePanel<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, CreateCheckBoxes<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oPanel:<span style="color: #000000;">SetRange</span><span style="color: #000000;">&#40;</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 /><span style="color: #B900B9;">//--------------------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> CreatePanel<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />  oPanel = TScrollPanel<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: #000000;">50</span>, <span style="color: #000000;">11</span>, oDlg:<span style="color: #000000;">nBottom</span> - <span style="color: #000000;">60</span>, oDlg:<span style="color: #000000;">nWidth</span> - <span style="color: #000000;">20</span>, oDlg <span style="color: #000000;">&#41;</span><br />  oPanel:<span style="color: #000000;">WinStyle</span><span style="color: #000000;">&#40;</span> WS_BORDER, .F. <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;">//--------------------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> CreateCheckBoxes<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />  <span style="color: #00C800;">local</span> aValues := Array<span style="color: #000000;">&#40;</span> <span style="color: #000000;">12</span> <span style="color: #000000;">&#41;</span>, nTop := <span style="color: #000000;">0</span><br /><br />  AFill<span style="color: #000000;">&#40;</span> aValues, .F. <span style="color: #000000;">&#41;</span><br /><br />  @ nTop,        <span style="color: #000000;">0.5</span> <span style="color: #0000ff;">CHECKBOX</span> aValues<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> oPanel:<span style="color: #000000;">nRight</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">OF</span> oPanel  <span style="color: #B900B9;">// SCROLL ADJUST</span><br />  @ nTop += <span style="color: #000000;">1.7</span>, <span style="color: #000000;">0.5</span> <span style="color: #0000ff;">CHECKBOX</span> aValues<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> oPanel:<span style="color: #000000;">nRight</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">OF</span> oPanel  <span style="color: #B900B9;">// SCROLL ADJUST</span><br />  @ nTop += <span style="color: #000000;">1.7</span>, <span style="color: #000000;">0.5</span> <span style="color: #0000ff;">CHECKBOX</span> aValues<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> oPanel:<span style="color: #000000;">nRight</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">OF</span> oPanel  <span style="color: #B900B9;">// SCROLL ADJUST</span><br />  @ nTop += <span style="color: #000000;">1.7</span>, <span style="color: #000000;">0.5</span> <span style="color: #0000ff;">CHECKBOX</span> aValues<span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> oPanel:<span style="color: #000000;">nRight</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">OF</span> oPanel  <span style="color: #B900B9;">// SCROLL ADJUST</span><br />  @ nTop += <span style="color: #000000;">1.7</span>, <span style="color: #000000;">0.5</span> <span style="color: #0000ff;">CHECKBOX</span> aValues<span style="color: #000000;">&#91;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> oPanel:<span style="color: #000000;">nRight</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">OF</span> oPanel  <span style="color: #B900B9;">// SCROLL ADJUST</span><br />  @ nTop += <span style="color: #000000;">1.7</span>, <span style="color: #000000;">0.5</span> <span style="color: #0000ff;">CHECKBOX</span> aValues<span style="color: #000000;">&#91;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> oPanel:<span style="color: #000000;">nRight</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">OF</span> oPanel  <span style="color: #B900B9;">// SCROLL ADJUST</span><br />  @ nTop += <span style="color: #000000;">1.7</span>, <span style="color: #000000;">0.5</span> <span style="color: #0000ff;">CHECKBOX</span> aValues<span style="color: #000000;">&#91;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> oPanel:<span style="color: #000000;">nRight</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">OF</span> oPanel  <span style="color: #B900B9;">// SCROLL ADJUST</span><br />  @ nTop += <span style="color: #000000;">1.7</span>, <span style="color: #000000;">0.5</span> <span style="color: #0000ff;">CHECKBOX</span> aValues<span style="color: #000000;">&#91;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> oPanel:<span style="color: #000000;">nRight</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">OF</span> oPanel  <span style="color: #B900B9;">// SCROLL ADJUST</span><br />  @ nTop += <span style="color: #000000;">1.7</span>, <span style="color: #000000;">0.5</span> <span style="color: #0000ff;">CHECKBOX</span> aValues<span style="color: #000000;">&#91;</span> <span style="color: #000000;">9</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> oPanel:<span style="color: #000000;">nRight</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">OF</span> oPanel  <span style="color: #B900B9;">// SCROLL ADJUST</span><br />  @ nTop += <span style="color: #000000;">1.7</span>, <span style="color: #000000;">0.5</span> <span style="color: #0000ff;">CHECKBOX</span> aValues<span style="color: #000000;">&#91;</span> <span style="color: #000000;">10</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> oPanel:<span style="color: #000000;">nRight</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">OF</span> oPanel  <span style="color: #B900B9;">// SCROLL ADJUST</span><br />  @ nTop += <span style="color: #000000;">1.7</span>, <span style="color: #000000;">0.5</span> <span style="color: #0000ff;">CHECKBOX</span> aValues<span style="color: #000000;">&#91;</span> <span style="color: #000000;">11</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> oPanel:<span style="color: #000000;">nRight</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">OF</span> oPanel  <span style="color: #B900B9;">// SCROLL ADJUST</span><br />  @ nTop += <span style="color: #000000;">1.7</span>, <span style="color: #000000;">0.5</span> <span style="color: #0000ff;">CHECKBOX</span> aValues<span style="color: #000000;">&#91;</span> <span style="color: #000000;">12</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> oPanel:<span style="color: #000000;">nRight</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">OF</span> oPanel  <span style="color: #B900B9;">// SCROLL ADJUST</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//--------------------------------------------------------------------------------------//</span><br /> </div>[/code:3nbnb3wt][/quote:3nbnb3wt] Dear Antonio How about use it when Resource Dialog
COMBOBOX Y CHECKBOX
Dear Richard, standard Windows resources (RC files) don't allow to define childs of childs (grandchilds <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) --> so you can only place a TScrollPanel on the resource and from the ON INIT of the dialog, place the checkboxes on the panel I think it may be easier if we use the samples/ownerdra.prg way...
COMBOBOX Y CHECKBOX
[quote="Antonio Linares":22j569fk]Dear Richard, standard Windows resources (RC files) don't allow to define childs of childs (grandchilds <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) --> so you can only place a TScrollPanel on the resource and from the ON INIT of the dialog, place the checkboxes on the panel I think it may be easier if we use the samples/ownerdra.prg way...[/quote:22j569fk] Thanks a lot.
COMBOBOX alineado a la derecha
¿Hay alguna manera de alinear un COMBOBOX a la derecha?. A diferencia de GET, no veo la claúsula ALIGN. Lo he intentado con PICTURE, pero no lo consigo. ¿Alguna idea? Feliz año nuevo a todos.
COMBOBOX alineado a la derecha
Hola, revisa setWindowLong, en el manual de FW y en San Google, yo intento cambiar la alineacion de un GET en tiempo de ejecucion y no lo he logrado saludos Marcelo
COMBOBOX alineado a la derecha
Manuel, Como te indica Marcelo, prueba con: SetWindowLong( oComboBox:oGet:hWnd, GWL_STYLE, nOr( GetWindowLong( oComboBox:oGet:hWnd, GWL_STYLE ), ES_RIGHT ) ) Debes hacerlo una vez el combobox tenga un hWnd válido (en caso de usar un diálogo, desde la claúsula ON INIT): ACTIVATE DIALOG oDlg ON INIT ...
COMBOBOX alineado a la derecha
Muchas gracias Marcelo y Antonio. Lo probaré.
COMBOBOX cambia posicion
Hola amigos nuevamente yo con problemas con combobox, les cuento, en workshop o pellec creo un combobox y luego lo llamo con mi programa. REDEFINE COMBOBOX aGets[14] VAR oPatente ITEMS aBus ID 104 OF oDlg WHEN lValue1 UPDATE le doy doy en largo que me muestre la informacion pero cuando la informacion es mucha el combobox no muestra lo que puse el workshop o pellec se agranda el combobox para arriba y para abajo. que podra ser saluds
COMBOBOX cambia posicion
Por favor copia aqui las líneas en donde defines el combobox en tu fichero RC
COMBOBOX cambia posicion
ACA ESTA : RENDICION_ADM DIALOG 78, -23, 597, 353 STYLE DS_MODALFRAME | 0x4L | WS_POPUP | WS_VISIBLE | WS_SYSMENU FONT 7, "MS Sans Serif" LANGUAGE LANG_SPANISH, SUBLANG_SPANISH_MEXICAN { EDITTEXT 101, 116, 80, 41, 16, ES_MULTILINE | ES_UPPERCASE | WS_BORDER | WS_TABSTOP CONTROL "", 102, "SysDateTimePick32", 0 | WS_CHILD | WS_VISIBLE, 355, 77, 69, 15 COMBOBOX 103, 145, 119, 285, 71, CBS_DROPDOWNLIST | CBS_DISABLENOSCROLL | WS_VSCROLL | WS_TABSTOP COMBOBOX 105, 325, 153, 107, 94, CBS_DROPDOWNLIST | WS_TABSTOP EDITTEXT 108, 119, 198, 303, 16, ES_MULTILINE | ES_UPPERCASE | WS_BORDER | WS_TABSTOP EDITTEXT 109, 116, 226, 86, 16, ES_MULTILINE | ES_UPPERCASE | WS_BORDER | WS_TABSTOP PUSHBUTTON "&Aceptar", 501, 178, 317, 91, 19 PUSHBUTTON "&Aceptar", 502, 280, 316, 88, 20 LTEXT "", 52, 72, 7, 324, 29 LTEXT "Fecha ", 2, 296, 80, 51, 13 LTEXT "Centro Costo:", 3, 63, 120, 54, 13 GROUPBOX "", -1, 48, 61, 391, 42, BS_GROUPBOX LTEXT "Patente", 4, 66, 158, 52, 13 LTEXT "Folio ", 1, 64, 83, 40, 13 GROUPBOX "", -1, 47, 108, 391, 30, BS_GROUPBOX GROUPBOX "", -1, 47, 141, 391, 36, BS_GROUPBOX GROUPBOX "", -1, 46, 185, 391, 64, BS_GROUPBOX LTEXT "Descripcion", 8, 57, 198, 59, 14 LTEXT "$ Valor", 9, 61, 228, 43, 13 LTEXT "Agencia", 6, 270, 155, 45, 13 COMBOBOX 104, 130, 155, 77, 145, CBS_DROPDOWNLIST | WS_TABSTOP REDEFINE COMBOBOX aGets[14] VAR oPatente ITEMS aBus ID 104 OF oDlg WHEN lValue1 UPDATE / aca imagen: [url=https&#58;//postimg&#46;org/image/lga3alv5j/:1beytwdt][img:1beytwdt]https&#58;//s31&#46;postimg&#46;org/lga3alv5j/combo_patente&#46;png[/img:1beytwdt][/url:1beytwdt]
COMBOBOX cambia posicion
Prueba a disminuir el valor 145. Por ejemplo usa 100 COMBOBOX 104, 130, 155, 77, 100, CBS_DROPDOWNLIST | WS_TABSTOP
COMBOBOX cambia posicion
no funciona poniendo 100, aque se debe ese problema ademas antonio este problema le pasa a todos los COMBOBOX (TODOS) saludps
COMBOBOX cambia posicion
Puedes probar el ejemplo samples\combos.prg: buildh.bat combos y comprobar si en ese ejemplo también funciona mal ?
COMBOBOX cambia posicion
quedo perfecto ahora, saque la idea de ahi . muy amable por tu tiempo saludos
COMBOBOX dont work with array of dates ?
Hi, I get hsis error Time from start: 0 hours 0 mins 0 secs Error occurred at: 10/30/2014, 09:52:24 Error description: Error BASE/2022 Argument error: ALLTRIM Args: [ 1] = D 01/01/2014 Stack Calls =========== Called from: => ALLTRIM( 0 ) Called from: .\source\classes\COMBOBOX.PRG => (b)TCOMBOBOX:DEFAULT( 754 ) Called from: => ASCAN( 0 ) Called from: .\source\classes\COMBOBOX.PRG => TCOMBOBOX:DEFAULT( 754 ) Called from: .\source\classes\COMBOBOX.PRG => TCOMBOBOX:INITIATE( 694 ) Called from: => __OBJSENDMSG( 0 ) Called from: => HB_EXECFROMARRAY( 0 ) Called from: .\source\function\HARBOUR.PRG => OSEND( 287 ) Called from: => HB_EXECFROMARRAY( 0 ) Called from: .\source\function\HARBOUR.PRG => ASEND( 265 ) Called from: .\source\classes\DIALOG.PRG => TDIALOG:INITIATE( 631 ) Called from: .\source\classes\DIALOG.PRG => TDIALOG:HANDLEEVENT( 876 ) Called from: => DIALOGBOXINDIRECT( 0 ) Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE( 274 ) Called from: combo3d1.prg => MAIN( 15 ) Source file [code=fw:39skyhe9]<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, cCombo := ctod<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"01/03/2014"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aItems := <span style="color: #000000;">&#123;</span> ctod<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"01/01/2014"</span><span style="color: #000000;">&#41;</span>, ctod<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"01/03/2014"</span><span style="color: #000000;">&#41;</span>, ctod<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"01/05/2014"</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />set cent <span style="color: #0000ff;">on</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">2</span>, <span style="color: #000000;">2</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">18</span>, <span style="color: #000000;">60</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Test"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">STYLE</span> nOr<span style="color: #000000;">&#40;</span> DS_MODALFRAME, WS_POPUP, WS_CAPTION, WS_SYSMENU, <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">2</span>, <span style="color: #000000;">2</span> <span style="color: #0000ff;">COMBOBOX</span> cCombo <span style="color: #0000ff;">ITEMS</span> aItems <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">200</span>, <span style="color: #000000;">100</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><br />&nbsp;</div>[/code:39skyhe9] Any solution ? Best regards
COMBOBOX dont work with array of dates ?
Hello, use a list of string for display the dates in combobox, when choose one of then, change CTOD(<choose date>) the selected date regards Marcelo
COMBOBOX dont work with array of dates ?
Hi, try it this way: local oDlg, cCombo := DtoC(ctod("01/03/2014")) local aItems := { DtoC(ctod("01/01/2014")), DtoC(ctod("01/03/2014")), DtoC(ctod("01/05/2014")) } Regards.
COMBOBOX dont work with array of dates ?
If I remember correctly, comboboxes only work with strings,
COMBOBOX en BUTTONBAR?
Hola Amigos: Es posible poner un COMBOBOX en una BUTTONBAR?, algún ejemplo? Saludos
COMBOBOX en BUTTONBAR?
algo viejito pero funcional [code=fw:d4my95v2]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Arial Narrow"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">6</span>, <span style="color: #000000;">18</span> BOLD<br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> &nbsp;oBrs <span style="color: #0000ff;">COLOR</span> VAL<span style="color: #000000;">&#40;</span>cColor<span style="color: #000000;">&#41;</span><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">ICON</span> &nbsp; oIco <span style="color: #0000ff;">RESOURCE</span> <span style="color: #000000;">101</span><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">CURSOR</span> oMan <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"MANO"</span><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">" "</span>+ALLTRIM<span style="color: #000000;">&#40;</span>_Sig<span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">" //"</span>+cTitle <span style="color: #0000ff;">MENU</span> MenPri<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">ICON</span> oIco <span style="color: #0000ff;">BRUSH</span> oBrs<br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oBar <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">48</span>,<span style="color: #000000;">52</span> 3DLOOK TOP &nbsp;<span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">CURSOR</span> oMan<br />&nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"SALIR3"</span> &nbsp;<span style="color: #0000ff;">OF</span> oBar &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp;NOBORDER TOOLTIP OEMTOANSI<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">" Finalizar la ejecusi¢n "</span>+CRLF+<span style="color: #ff0000;">" &nbsp; &nbsp; &nbsp; del Sistema... "</span><span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"IPC"</span> &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oBar GROUP <span style="color: #0000ff;">ACTION</span> TablIPC<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; NOBORDER TOOLTIP OEMTOANSI<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">" Tabla principal del I.P.C. "</span> &nbsp;+CRLF+<span style="color: #ff0000;">" &nbsp;Acumulado por los A¤os "</span><span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"ACTIVO"</span> &nbsp;<span style="color: #0000ff;">OF</span> oBar &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> Activos<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; NOBORDER TOOLTIP OEMTOANSI<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">" Crear, Modificar, Eliminar "</span> &nbsp;+CRLF+<span style="color: #ff0000;">" &nbsp;C¢digos de Activo fijo "</span><span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"TABLA"</span> &nbsp; <span style="color: #0000ff;">OF</span> oBar &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> TablFac<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; NOBORDER TOOLTIP OEMTOANSI<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">" Muestra la Tabla de Factores "</span>+CRLF+<span style="color: #ff0000;">" para la Correcci¢n Monetaria "</span><span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"TRASPA"</span> &nbsp;<span style="color: #0000ff;">OF</span> oBar &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> Calcula<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; NOBORDER TOOLTIP OEMTOANSI<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">" Calcular el periodo de Depreciaci¢n "</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">MENU</span> oPopup <span style="color: #0000ff;">POPUP</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> OEMTOANSI<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">" &Informe Ejercicio del Activo Fijo "</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> Corrije<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SEPARATOR</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> OEMTOANSI<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">" &Correcci¢n Monetaria meses anteriores "</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">ACTION</span> Monetar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">ENDMENU</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">MENU</span> yPopup <span style="color: #0000ff;">POPUP</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> OEMTOANSI<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">" &Cierre Anual "</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> CAnual1<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">ENDMENU</span><br />&nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"LISTA"</span> &nbsp; <span style="color: #0000ff;">OF</span> oBar &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> PrinterSetup<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">MENU</span> oPopup NOBORDER <span style="color: #0000ff;">MESSAGE</span> OEMTOANSI<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Configuraci¢n de Impresoras "</span><span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"CIERRE"</span> &nbsp;<span style="color: #0000ff;">OF</span> oBar GROUP <span style="color: #0000ff;">ACTION</span> Mensual<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENU</span> yPopup NOBORDER TOOLTIP OEMTOANSI<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Cierre mensual de activos "</span><span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"AYUDA"</span> &nbsp; <span style="color: #0000ff;">OF</span> oBar GROUP <span style="color: #0000ff;">ACTION</span> MsgBeep<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; NOBORDER<br /><br />&nbsp;@ <span style="color: #000000;">12</span>, <span style="color: #000000;">500</span> <span style="color: #0000ff;">COMBOBOX</span> oCbx <span style="color: #0000ff;">VAR</span> cMes &nbsp; <span style="color: #0000ff;">ITEMS</span> aMes <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">140</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">COLOR</span> <span style="color: #ff0000;">"N/W*"</span> &nbsp;<span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> TablaCALC<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp;@ <span style="color: #000000;">12</span>, <span style="color: #000000;">650</span> <span style="color: #0000ff;">COMBOBOX</span> oMox <span style="color: #0000ff;">VAR</span> cAno &nbsp; <span style="color: #0000ff;">ITEMS</span> aAno <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, &nbsp;<span style="color: #000000;">100</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">COLOR</span> <span style="color: #ff0000;">"N/W*"</span> &nbsp;<span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> TablaCALC<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp;oWnd:<span style="color: #000000;">oBar</span>:<span style="color: #000000;">bRClicked</span> = <span style="color: #000000;">&#123;</span> || <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Accion Cancelada..."</span>,<span style="color: #ff0000;">" Propiedades "</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />SET <span style="color: #0000ff;">MESSAGE</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">TO</span> _Ver+<span style="color: #ff0000;">" "</span>+CURDRIVE<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">":<span style="color: #000000;">\.</span>"</span>+_Bas KEYBOARD DATE TIME<br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MAXIMIZED</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> SysRefresh<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">VALID</span> &nbsp; &nbsp;MsgYesNo<span style="color: #000000;">&#40;</span>OEMTOANSI<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Terminar la Ejecuci¢n del Sistema ?"</span><span style="color: #000000;">&#41;</span>,_Ver<span style="color: #000000;">&#41;</span><br /><br />&nbsp;</div>[/code:d4my95v2] resultado [img:d4my95v2]http&#58;//i64&#46;tinypic&#46;com/2hojq05&#46;jpg[/img:d4my95v2] saludos
COMBOBOX en BUTTONBAR?
Tocayo: Muchas gracias, le voy a usar. Saludos
COMBOBOX en file de xBrowse
Hola amigos: Como puedo implementar un COMBOBOX en una celda en cada file de xBrowse ? Gracias
COMBOBOX en file de xBrowse
oCol:nEditType := EDIT_LISTBOX oCol:aEditListTxt = { "One", "Two", "Three" }
COMBOBOX en file de xBrowse
Buenas noches, gracias por contestar, y cono hago para asignar el valor del combobox seleccionado a la variable del BROWSE. trabajo con arreglos. GRacias
COMBOBOX en file de xBrowse
The selected variable is automatically assigned by the xbrowse.
COMBOBOX en file de xBrowse
Thanks!, How do I get the selected combobox value to show it? regards.
COMBOBOX issue
Create a GET COMBOBOX using a .dbf VAR, with a field size of 10 For the dropdown, create a list of items of various lengths. Select, or type in, a long item that nearly fills the field: ie. HAPPYDAYS Save the value Now select a shorter value from the list, ie. SHORT Save the selection. The field does not erase the original saved value, but simply does a letter by letter replacement Thus the value you now see is: SHORTDAYS This is using 17.12
COMBOBOX issue
Tim, ok, we are reviewing it many thanks for your feedback
COMBOBOX metro
Hello Antonio, I have problems with comboMetro. Although I have no blank field inside the array which I display in a comboMetro the combobox shows blank rows. Please see the attached screenshot. Please can you help me. Thanks In advance, Otto [img:135mm2va]http&#58;//www&#46;atzwanger-software&#46;com/fw/combo8&#46;jpg[/img:135mm2va]
COMBOBOX metro
Otto, Please post the source code for that combobox in your app, thanks
COMBOBOX metro
Hello Antonio, I use comboMetro of FWH. I noticed that comboMetro is working correctly if the upper and lower border are inside the parent window. If not there are on the side which is opposite to the side which is outside the parent window blank lines. Best regards, Otto [code=fw:h5v82nar]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00C800;">local</span> aBilanz:= <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"01"</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"02"</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"03"</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"04"</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"05"</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"06"</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"07"</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"08"</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"09"</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"10"</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"11"</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"12"</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"13"</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"14"</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"15"</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"16"</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"17"</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"18"</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"19"</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"20"</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;@ <span style="color: #000000;">10</span>,<span style="color: #000000;">10</span> ;<br />&nbsp; &nbsp; &nbsp; COMBOMETRO oCbxGliederung ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">VAR</span> nVarGliederung ;<br />&nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">PROMPTS</span> aBilanz ;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>/<span style="color: #000000;">2.05</span>, <span style="color: #000000;">25</span>/<span style="color: #000000;">2.05</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">PIXEL</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">COLOR</span> CLR_GRAY, CLR_WHITE<br />&nbsp;</div>[/code:h5v82nar] [img:h5v82nar]http&#58;//www&#46;atzwanger-software&#46;com/fw/combo8A&#46;jpg[/img:h5v82nar] [img:h5v82nar]http&#58;//www&#46;atzwanger-software&#46;com/fw/combo8B&#46;jpg[/img:h5v82nar]
COMBOBOX metro
The interface is designed so that always the highlighted item is displayed exactly in the same position as the original control. When the topmost item ( "01" ) is highlighted, this item is shown at the same position of the control and blank space is shown above this item. Same way when the last item is shown the space below is displayed blank. But in any case, the user can not navigate in to the blank space or can select a blank item. If you feel the design should be different, please indicate.
COMBOBOX metro
Dear Mr. Rao, Thank you for you answer. I looked into WINDOWS 8 Setup and made some tests with comboboxes. There are no blank lines shown. I think we should change this. Best regards, Otto
COMBOBOX metro
Is someone working with this class and can confirm this behavior? Best regards, Otto
COMBOBOX odd behavior on themed app
Hello! redefine combobox items doesn't show if .rc commented this line: [code=fw:okyusxhs]<div class="fw" id="{CB}" style="font-family: monospace;"><br />   <span style="color: #B900B9;">//1 24 "WindowsXP.Manifest"</span><br /> </div>[/code:okyusxhs] with: [code=fw:okyusxhs]<div class="fw" id="{CB}" style="font-family: monospace;"><br />   <span style="color: #000000;">1</span> <span style="color: #000000;">24</span> <span style="color: #ff0000;">"WindowsXP.Manifest"</span><br /> </div>[/code:okyusxhs] combobox properly shows. Any idea why? ..Using xHB1.21 + FWH9.08
COMBOBOX refresh
How can I Refresh() Combobox with function Inv_Nasta2() Tnx, Darjo [code:37oearjs]#include "FWCE&#46;ch" FUNCTION Main&#40;&#41; PRIVATE ocbNah arrNahaja&#58;=&#123;'1a','1b','1c'&#125; STORE 1 TO cIzbPe,cIzbNah DEFINE WINDOW owInv @ 93,0 SAY 'Main&#58;' PIXEL @ 108,0 COMBOBOX cIzbPe ITEMS &#123;'001','002'&#125; PIXEL SIZE 240,200 ON CHANGE Inv_Nasta2&#40;&#41; @ 135,0 SAY 'Sub&#58;' PIXEL @ 150,0 COMBOBOX ocbNah VAR cIzbNah ITEMS arrNahaja PIXEL SIZE 240,200 ACTIVATE WINDOW owInv return nil ******************************** FUNCTION Inv_Nasta2&#40;&#41; ******************************** arrNahaja&#58;=array&#40;0&#41; arrNahaja&#58;=&#123;'2a','2b'&#125; ocbNah&#58;Refresh&#40;&#41; && why does it not work ??? RETURN &#40;&#46;t&#46;&#41; [/code:37oearjs]
COMBOBOX refresh
Darjo, ******************************** FUNCTION Inv_Nasta2() ******************************** arrNahaja:=array(0) arrNahaja:={'2a','2b'} ocb:SetItems( arrNahaja ) ocbNah:Refresh() RETURN (.t.)
COMBOBOX with 2 element array
I thought this was addressed earlier with a simple solution. I can write code to "make it happen" but if it is already addressed with FWH, I would like to use it: Field 1 is a title Field 2 is a description. Both are in a database I want to read them into a 2 element array. Then, using a combobox ( or listbox ), I want the first element ( field 1 ) to be the items When an item is selected ( ON CHANGE ), I want the value in the second element to be assigned to a variable used in a separate GET ( for editing ). I thought this was addressed in the forum, and code, previously, but I can't find it. Currently I assign the values to 2 arrays, use the first to select the title, and knowing it's position, I load the corresponding value from the second array into the variable. That has been my procedure in the past but I "think" a more direct approach was shared previously. Any thoughts will be helpful. Thanks.
COMBOBOX with 2 element array
Dear Tim, Here you have what we recently did: <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?p=252389&sid=daf03f16b17c5b26d15d18e6316a6c28#p252389">viewtopic.php?p=252389&sid=daf03f16b17c5b26d15d18e6316a6c28#p252389</a><!-- l -->
COMBOBOX with 2 element array
Mr. Tim That is what DBCOMBO is supposed to do Please look for samples of DBCOMBO
COMBOBOX with 2 element array
I looked at the other posts, and also studied dbcombo. Those were really more complex then I need. [code=fw:3fx5ma7z]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp;&nbsp; <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">COMBOBOX</span> oCbxA1 <span style="color: #0000ff;">VAR</span> cScript &nbsp;<span style="color: #0000ff;">ID</span> <span style="color: #000000;">106</span> <span style="color: #0000ff;">OF</span> oeText ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ITEMS</span> aSMScode &nbsp;<span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> <span style="color: #000000;">&#40;</span> lx := oCbxA1:<span style="color: #000000;">nAt</span>, cBody := aSMStext<span style="color: #000000;">&#91;</span>lx<span style="color: #000000;">&#93;</span>, oGet1:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Select a script"</span> <span style="color: #0000ff;">STYLE</span> CBS_DROPDOWN <span style="color: #0000ff;">UPDATE</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> oGet1 <span style="color: #0000ff;">VAR</span> cBody MEMO &nbsp;<span style="color: #0000ff;">ID</span> <span style="color: #000000;">103</span> <span style="color: #0000ff;">OF</span> oeText <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Enter the text of your message"</span> <span style="color: #0000ff;">UPDATE</span><br />&nbsp;</div>[/code:3fx5ma7z] I took the DBF, and put the first field in the array aSMScode, and the second field in aSMStext. This code takes the selected item in the dropdown, and looks at the corresponding element in the second array. It takes that 2nd array value and puts it into cBody which is the text to be used, or edited. This works exactly as I wanted. It's not complex. I just thought we could perhaps use an array of 2 element arrays. That doesn't appear to be how dbcombo works either. Thanks.
COMBOBOX with oDBF
I want to store '[b:1cg4mu1k]L[/b:1cg4mu1k]', '[b:1cg4mu1k]A[/b:1cg4mu1k]' or '[b:1cg4mu1k]O[/b:1cg4mu1k]' in a (1 character) database field called MAIL_CAT (Mail category = [b:1cg4mu1k]L[/b:1cg4mu1k]ocal, [b:1cg4mu1k]A[/b:1cg4mu1k]frican, [b:1cg4mu1k]O[/b:1cg4mu1k]verseas) But I want to use a Combobox so the user can only make a valid choice, but I only want to store the first letter ie. L, A, or O in the database. REDEFINE COMBOBOX oDBF:MAIL_CAT ITEMS {"Local", "African", "Overseas" } ID 4012 OF oDLG ... doesn't do it. Is there a way the screen can show 'Overseas' when it sees 'O' in the database field? How?
COMBOBOX with oDBF
Use a DBCombo. See \samples\testdbc1.prg for an example.
COMBOBOX with oDBF
Thanks. I have this code: REDEFINE DBCOMBO oDBF:MAIL_CAT ID 4012 ; items {"L","A","O"} ; list {"Local","African","Overseas"} ; of oFld:aDialogs[ 1 ] UPDATE But the compiler gives a "parse error at 'DBCOMBO' what am I doing wrong?
COMBOBOX with oDBF
#include "dbcombo.ch"
COMBOBOX with oDBF
That did it. EXCELLENT !!! Thanks.
COMBOBOX y ESC
Hola a todos, ¿Cómo puedo gestionar que cuando un COMBOBOX tiene el foco, si pulso la tecla ESC haga 'algo'? Ya lo pregunté hace días pero no tuve éxito, a ver si ahora.... Gracias
COMBOBOX y ESC
Fivewidi, prueba asi: oCbx:bKeydown := {|nKey| if(nKey==27, msginfo("presiono Esc"),)} ó asi: oCbx:bKeydown := {|| if(GETKEYSTATE(VK_ESC),"msginfo("presiono Esc"),)} espero te ayude saludos paco
COMBOBOX y VK_ESCAPE
Hola a todos, Estoy intentando que cuando un COMBOBOX de una MDICHILD tenga el foco pueda cerrar la ventana pulsando la tecla VK_ESCAPE, y no lo consigo. Estoy probando haciendo esto: oTitulari:bKeyDown := {| nKey , nflags | If( nKey = VK_ESCAPE, oDomici10:End(), Nil ) } y esto otro: oTitulari:bKeyChar := {| nKey , nflags | If( nKey = VK_ESCAPE, oDomici10:End(), Nil ) } y no hay manera; no quiere cerrar la ventana. Cómo lo harían ustedes? Gracias.
COMBOBOX y VK_ESCAPE
Nadie sabe cómo hacerlo? Bueno encenderé unas velas... Gracias.