Announcement

Collapse
No announcement yet.

COMBOBOX IN WINDOWS 2000

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Semen Matusovski
    replied
    Lance --
    Actually I simply copied from "Help" and didn't read.
    Now is clear a reason of Daniel's mistake.

    ------------------
    E-MAIL: [email protected]

    Leave a comment:


  • Lance Edmonds
    replied
    Er... Semen, you posted the syntax definition, but with 2 comma's too!

    The correct syntax should be shown as:
    Code:
    CONTROL ADD COMBOBOX, hDlg&, id&, [items$()], x, y, xx, yy [, [style&] 
        [, [exstyle&]]] [[,] CALL callbackfunc]
    ------------------
    Lance
    PowerBASIC Support
    mailto:[email protected][email protected]</A>

    Leave a comment:


  • Semen Matusovski
    replied
    Trick ? It's simply correct variant.
    From Pb/Dll help:
    Code:
    CONTROL ADD COMBOBOX, hDlg&, id&, [items$()], x, y, xx, yy, [, style&[, exstyle&]] [CALL callbackfunction]
    
    style& Style of the control.  This value can be a combination of any values below:
    %CBS_DROPDOWN ...
    
    exstyle&   Extended style of the control.  This value can be a combination of any values below: ...
    Because you used two commas, compiler interpretates %CBS_DROPDOWN in your variant as exstyle.
    Meanwhile exstyle and style are two different animals.

    ------------------
    E-MAIL: [email protected]

    Leave a comment:


  • Daniel Buttigieg
    replied
    thank you SO MUCH Lance, Borje, Michael and Semen. I was not aware of this however this certainly did the trick for me!! Thanks once again. Best Regards, Daniel

    ------------------
    mailto:[email protected][email protected]</A>

    Leave a comment:


  • Daniel Buttigieg
    replied
    Thanks for your reply !

    I shall try it tomorrow morning because I am not on my dev. Pc and tell you how things went.

    Daniel

    ------------------
    mailto:[email protected][email protected]</A>

    Leave a comment:


  • Semen Matusovski
    replied
    50,,%CBS_DROPDOWN Should be one one comma only.



    [This message has been edited by Semen Matusovski (edited September 18, 2001).]

    Leave a comment:


  • Daniel Buttigieg
    replied
    Thankyou so much for your quick replies guys!

    However, I can't figure out what is going wrong

    The control used to add a combobox is pretty easy and straightforward. This is what I am using in my program:

    ~~~~~~~~~~~~~~~~~~~~~

    CONTROL ADD LABEL, hDlgalignbarcodes, 030,"Section", 15, 209, 120, 12, %SS_left

    CONTROL ADD COMBOBOX, hDlgalignbarcodes, 031, , 85, 210, 65, 50,,%CBS_DROPDOWN OR %WS_VSCROLL OR %WS_TABSTOP

    FOR h& = 1 TO DATACOUNT
    COMBOBOX ADD hDlgalignbarcodes, 31, READ$(h&)
    NEXT

    DATA "Avery9999","Shelf Labels"
    ~~~~~~~~~~~~~~~~~~~~~

    Thanks in advance
    Daniel


    ------------------
    mailto:[email protected][email protected]</A>

    Leave a comment:


  • Michael Mattias
    replied
    As Mr Hagsten says, W2K is less forgiving.

    I had a similar problem. Turns out I created (rather, tried to create) a child window with an invalid combination of style bits (%WS_xxx and %WS_EX_xxx). On 9x the extra bits were ignored, on W2K CreateWindowEx failed and the control was not created.

    So, I'd check the style bits on your combobox; be that resource file, parameter to CreateWindow[Ex] or CONTROL ADD.

    MCM




    [This message has been edited by Michael Mattias (edited September 18, 2001).]

    Leave a comment:


  • Borje Hagsten
    replied
    NT systems like Win2K are less forgiving than Win95/98. Usually, something
    in code is wrong, but Win95/98 just ignores this, where NT complains. People
    say NT is better that way, but I don't know.. Real problem is that different
    NT systems / service packs complains on different things.

    Look for errors in API calls, if any. PB's own syntax is well tested and (almost)
    never causes any problems. For me, in 100% of the cases where things have failed
    in NT but worked in Win95/98, I've done something wrong with some API call..


    ------------------

    Leave a comment:


  • Lance Edmonds
    replied
    Do you mean the whole box, or the drop-down portion? The specified height of a combo box should include the drop-down, so if you set the height for, say, 14 dialog units, there is no room within that for the drop-down to appear correctly.

    If this does not help, please describe the problem more acurately or post the code to demonstrate the problem... lots of us are using Win2K here.

    ------------------
    Lance
    PowerBASIC Support
    mailto:[email protected][email protected]</A>

    Leave a comment:


  • Daniel Buttigieg
    started a topic COMBOBOX IN WINDOWS 2000

    COMBOBOX IN WINDOWS 2000

    Hi,

    I have a very small app with a combobox that works perfect in windows 95 and 98 however, in windows 2000, the combobox disappears - simply non existant. Has anyone ever encountered this ?
    Thanks in advance,

    Daniel


    ------------------
    mailto:[email protected][email protected]</A>
Working...
X