English
Forum

Textfarbe in Auswahlboxen

 

Lefty
X-Profan 11.2
have there time a Question to Coisebox
following construction
Child&=Create("ChildWindow",%HWnd,"History",0,50,700,400)
Childbox&=Create("ChoiceBox",Child&, 0, 0, 0, 690, 400)

The Box becomes now with AddStrings(Childbox&,File_Name_Temp$) filled.
is it possible whom individual Einträgen a colour zuzuordnen?
Textcolor works Yes unfortunately only DrawText

who knows densowas?
Lefty
 
WKS
10/20/19  
 




Lefty
I Please each Rechtschreibfehler To ignore (comes over ands over again time to)
Schade, evident exists on this trouble no interest.

means I will my farbigen Objects each a number allocate, and the Selection moreover write. something umständlich, but to hardship ...

nevertheless thanks on Forum

Lefty
 
WKS
10/31/19  
 




E.T.
So I can moreover simply nothing find.

Have something like time with Ner GridBOX made, must I time search ...

Gits because something like already time somewhere with of/ one Selection (Screenshot) ??
 
XProfan X3
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
10/31/19  
 




Georg
Teles
Nunja, ChoiceBox (accurate said ComboBox) is something difficult To dye / self report: rechtsbündig / center is a challenge (in CSS/HTML is it against it simply) - self in the DLL of Sebastian (SKControl.dll) is it folgendermaßen realized: ( DLL here of Sebastian uploaded  [...]  )



there's The ListBox or GridBOX plainer To dye:
window 10,10-200,200
 $H Messages.ph
 $H windows.ph
 $H Commctrl.ph

proc HdlgLvColorProc'----------------------------HdlgLvColorProc-------------------------

    parameters wnd&,msg&,wparam&,lparam&
    case msg&<>~WM_NOTIFY:return ~CallWindowProc(HdlgProc&,wnd&,msg&,wparam&,lparam&)
    LvDraw#=Lparam&
    case LvDraw#.Hwndfrom& <> Lv&:return ~DefWindowProc(wnd&,msg&,wparam&,lparam&)
    case LvDraw#.Code&<>~NM_CUSTOMDRAW:return ~DefWindowProc(wnd&,msg&,wparam&,lparam&)
    case LvDraw#.DrawStage& = ~CDDS_PREPAINT :return ~CDRF_NOTIFYITEMDRAW
    case LvDraw#.DrawStage& = ~CDDS_ITEMPREPAINT:return ~CDRF_NOTIFYSUBITEMDRAW

    if LvDraw#.DrawStage& = ~CDDS_SUBITEM | ~CDDS_ITEMPREPAINT

        LvDraw#.Textbk&=rgb(25,255,255)

    endif

    return ~CDRF_DODEFAULT

endproc'---------------------------------------------------------------------------------

var Lv&=create("gridbox",%hwnd,"Test",0,10,10,150,100)
addstring(Lv&,"Test")
declare LvDraw#
struct LvDraw= HwndFrom&,idFrom&,Code&,DrawStage&,Hdc&,Rect#(16),ItemSpec&,ItemState&,ItemLparam&,Text&,Textbk&,SubItem&
dim LvDraw#,LvDraw
Set("FastMode",1)
var HdlgProc&=~SetWindowLong(%hwnd,~GWL_WNDPROC,procaddr(HdlgLvColorProc,4) )
~RedrawWindow(Lv&,0,0,$485)

while 1

    waitinput

endwhile


Regards
 
TC-Programming [...] 
XProfan 8.0 - 10.0 - X2 - X3 - X4

10/31/19  
 




Lefty
The Dll of Sebastian sees already integrally nice from, bring me but not really moreover. It's all right not therefore whom Text altogether To dye.
The Problematik is following.
I have one Program to analysis of Ballläufen geschrieben; for Sportart bowling.
now can I each individual fling present, and give eachone this Laufbahnen a Own colour. whom names the suitable line carry I subsequently into Box one, so the in the Box z.B. 10 lines stand.
trouble: if I now z.B. whom names the red line know wants would it naturally cool if the name in the Box with the equal colour as line displayed becomes.
momentarily beschränke I on 10 colours, and numeriere these through. into Box write I to whom LinienName first The suitable number for colour.
so can I naturally immediate The names and lines identify.
is only from the engineering since "Durch The bust in that eye schießen"
your know I my: functions and well program are 2 things.
 
WKS
11/06/19  
 




p.specht

Gibt´s not somewhere a Vektorschrift, around the Bezeichner if need be yourself hinzumalen? I knows, not very elegant ...
 
XProfan 11
Computer: Gerät, daß es in Mikrosekunden erlaubt, 50.000 Fehler zu machen, zB 'daß' statt 'das'...
11/06/19  
 




Thomas
Freier
In this case would I it with a Button to that one- / Hide of/ one
List view (Franks dll) without Header
setstyle listview&,getstyle(listview&) | ~LVS_NOCOLUMNHEADER

and text dye with

release.

it should too with the here zufindenen plv.pcu machbar his.

Greeting
Thomas
 
Gruß Thomas
Windows XP SP2, XProfan X2
11/06/19  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

6.035 Views

Untitledvor 0 min.
RudiB.10/04/22
p.specht06/21/21
Alibre12/20/20
N.Art11/18/20
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