English
Forum

GridBOX in Choicebox

 

Ralph
Theobald
Hello ,

I have a GridBOX in a Choicebox gebastelt , unfortunately is the GridBOX
Not Available, how can I these enable.
CompileMarkSeparation
Set(FastMode,1)
 $H windows.ph
 $H messages.ph
Declare  oldcallback&,static&,brush&,raus&,hGrid&,titel$
cls
oldcallback&=~SetWindowLong(%hwnd,~GWL_WNDPROC,ProcAddr(newcallback,4))
static&=Create(choicebox,%hwnd,Choicebox,16,16,560,180)

WhileNot raus&

    WaitInput

EndWhile

End

PROC setcolor

    Parameters col&,bk&,wParam&
    declare Brush&

    IF Brush&

        ~DeleteObject(Brush&)

    endif

    Brush& = ~CreateSolidBrush(bk&)
    ~SetBkMode(wParam&, ~TRANSPARENT)
    ~SetBKColor(wParam&,RGB(195,116,95))
    ~SetTextColor(wParam&,col&)
    RETURN Brush&

endproc

Proc newcallback

    Parameters wnd&,msg&,wparam&,lparam&

    IF msg&=~WM_CTLCOLOREDIT

        RETURN SetColor(rgb(255,0,0),rgb(255,255,0),wParam&)

    Endif

    IF msg&=~WM_CTLCOLORLISTBOX

        Titel$ = Links;0;80;Mitte;2;100;Rechts;1;80
        hGrid&=Create(GridBox,lparam&, Titel$, 3,1,1,549,140)
        AddString(hGrid&, AB|DEF|0123)
        AddString(hGrid&, GHI|J23KL|012345)

        IF brush&

            ~DeleteObject(brush&)

        EndIf

        brush&=~CreateSolidBrush(Rgb(0,0,255))
        RETURN brush&

    Endif

    If msg&=~WM_CLOSE

        ~DeleteObject(brush&)
        raus&=1

    Endif

    RETURN ~CallWindowProc(oldcallback&,wnd&,msg&,wparam&,lparam&)

s4 href='./../../Function-References/XProfan/endproc/'>ENDPROC


Greeting Ralph
 
Xprofan 10 , AMD Athlon 3000+, 1GB
03/08/07  
 



at that Click on The Choicebox sustain I unfortunately only a crash.
 
03/08/07  
 




Jörg
Sellmeyer
iF
at that Click on The Choicebox sustain I unfortunately only a crash.


interestingly - not at me. I can but too the List view not anwählen.
sees anyway integrally jolly from. though is it fraglich, whether it in the form irgendeinen benefit bring. you mußt Yes the control jedesmal new create. with umfangreichem Content might the quite break.
More falls me moreover unfortunately not one, there this whole Callback-Zeugs me always headaches bereitet.
Greeting
Jörg
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
03/08/07  
 



Jupp - Callbacks in XProfan are unfortunately because of which the ProcAddr yet ungestackt operates not recommendable and go accordingly always Problems bound. Perhaps Gibts in X11 remedy.
 
03/08/07  
 




Ralph
Theobald
thanks you both,

XProfan 10 has one Control (Dateedit) with the functions the Focus on the
Calendar. Perhaps is correct The Message in the Callbackroutine not .
Werd time another little testing.

Greeting Ralph
 
Xprofan 10 , AMD Athlon 3000+, 1GB
03/08/07  
 



I Have ne Solution - integrally without Fastmode and Procaddr.

only another small coolness to fix...
 
03/08/07  
 



sees from as though:
CompileMarkSeparation The Nichtxpsevariante:
CompileMarkSeparation
DECLARE __cf1&,__cf2&
Def __cf1(2) !KERNEL32,GetProcAddress
Def __cf2(1) !KERNEL32,GetModuleHandleA
__cf1&=__cf1(__cf2(user32.dll),FindWindowExA)
__cf2&=__cf1(__cf2(user32.dll),GetAsyncKeyState)
CLS
var STATIC&=CREATE(choicebox,%HWND,Choicebox,16,16,560,180)
USERMESSAGES 16,$0134

WHILE 1

    WAITINPUT

    SELECT %UMESSAGE

        CASEOF 16

        BREAK

        CASEOF $0134

        PROCEEDCHOICEBOX
        OTHERWISE

    ENDSELECT

ENDWHILE

end

proc PROCEEDCHOICEBOX

    var TITEL$=left;0;80;middle;2;100;right;1;80
    var PARENT&=call(__cf1&,65556,0,ComboLBox,0)
    SHOWWINDOW(PARENT&,0)
    var HGRID&=CREATE(GridBOX,%HWND, TITEL$, 3,16,40,WIDTH(PARENT&),HEIGHT(PARENT&))
    SENDKEY(PARENT&,27)
    ADDSTRING(HGRID&,AB|DEF|0123)
    ADDSTRING(HGRID&,GHI|J23KL|012345)

    WHILE call(__cf2&,1)<>0

    ENDWHILE

    DULCOIF
    WAITINPUT

    IF GETFOCUS(STATIC&)

        SENDKEY(PARENT&,27)

    ENDIF

    var s$=

    IF GETCURSEL(HGRID&)>-1

        s$=GETSTRING$(HGRID&,GETCURSEL(HGRID&))

    ENDIF

    DESTROYWINDOW(HGRID&)

    IFNOT s$=

        LOCATE 10,1
        PRINT select: ,s$

    ENDIF

endproc

proc DULCOIF

    SETTIMER 1
    WAITINPUT
    KILLTIMER

endproc


727 kB
Hochgeladen:03/08/07
Downloadcounter103
Download
 
03/08/07  
 



i'd from it warscheinlich a class building around the Control with one individual appeal To to check on and several of it create to - but the remaining then you give over.
 
03/08/07  
 



Hello IF...

have by me under windows98 The EXE time tested - runs not. The Choicebox works immediate again To and its only one Farbengewirr To see.
 
03/08/07  
 



Schade with Win98, habs naturally for windows-XP written and tested.
 
03/08/07  
 



iF
Schade with Win98, habs naturally for windows-XP written and tested.


or evtl. only for your computer or for a defined Version the comctl32.dll?
 
03/08/07  
 



On one XPHome and a XPPro - both Uptodate.
 
03/08/07  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

11.926 Views

Untitledvor 0 min.
RudiB.10/26/21
Christof Neuß09/18/18
rquindt04/25/18
Rainer Hoefs06/02/16
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie