English
Source / code snippets

Classof expansion

 

Jörg
Sellmeyer
ClassOf supply sowohl with Buttons as well as Check boxes and Radiobuttons only "Button" back. of these code can too these (at least The profaneigenen) Controls discern:
'code to disengaged Disposal of Jörg Sellmeyer

Proc MyClassOf

    Parameters Hdl&
    Declare Class$,Style&
    Class$ = ClassOf(Hdl&)

    Select Class$

        CaseOf "Button"

        Style& = GetStyle(hdl&)

        If (Style& & 3) = 3

            Class$ = "CheckButton"

        ElseIf (Style& & $9) = $9

            Class$ = "RadioButton"

        EndIf

    EndSelect

    Return Class$

ENDPROC

Declare ctrl&[6],Class$
Class$ = "Button,CheckBox,RadioButton,Edit,Listbox,GridBox"
Cls

WhileLoop 0,4

    ctrl&[&Loop] = Create(SubStr$(Class$,&Loop +1,","),%hwnd,"Test",260,40 + 30 * &Loop,160,24)
    Print be$(GetStyle(ctrl&[&Loop]))

Wend

WhileLoop 0,4

    Print ClassOf(ctrl&[&Loop]) + " = " + MyClassOf(ctrl&[&Loop])

Wend

While 1

    WaitInput

Wend

 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
08/13/08  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

2.102 Views

Untitledvor 0 min.
RudiB.03/08/22
Jörg Sellmeyer05/15/18

Themeninformationen

this Topic has 1 subscriber:

Jörg Sellmeyer (1x)


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