| |
|
|
Georg Hovenbitzer | Hello together,
nachfolgender code throws by me two ask on
1. wieso I get whom Text in the Control what with the DLL prepares watts not center, neither with geändertem Style ? 2. wieso zieht itself the edge not until Spin through, so How with the normal erstelltem Control, separate hears to the Edit on ?
$I SKControl.inc
$H windows.ph
$H Messages.ph
Def GetSysColor(1) !USER32.DLL,GetSysColor
Def CreateSpinED(12) !COMCTL32.Dll,CreateUpDownControl
Declare SKDLL&
Declare Font&, Test1&, Test2&, Test3&, Test4&
SKDLL& = @UseDLL(SKControl.dll)
Window Style 2 + 8 + 16 + 128 + 256 + 512
Window 0,0-800,600
Cls GetSysColor($0F)
SKCtrl_InitDll()
Font& = @Create(Font,Arinal Narrow,14,0,1,0,0)
Test1& = SKCtrl_CreateColorEdit(%hWnd,,@RGB(0,0,0),@RGB(255,255,255),50,100,114,18,%hInstance)
Test2& = CreateSpinED($500000A6,0,0,0,0,%hWnd,80,%hInstance,Test1&,2020,1920,2007)
SetStyle Test1&,(@GetStyle(Test1&) + $1)
SetFont Test1&,Font&
Test3& = @Control(EDIT,,$540100C1,50,125,114,18,%hWnd,1070,%hInstance,$200)
Test4& = CreateSpinED($500000A6,0,0,0,0,%hWnd,80,%hInstance,Test3&,2020,1920,2007)
SetFont Test3&,Font&
WhileNot %Key = 2
WaitInput
EndWhile
DeleteObject Font&
SKCtrl_DeInitDll()
End
|
|
|
| Viele Grüsse, Georg Hovenbitzer(Windows XP Pro, XProfan 11.2, Profan2Cpp 1.6a) | 04/16/07 ▲ |
|
|
|
|
Sebastian König | Hello Georg,
I fürchte, The ColorEdits are through ihren internen construction (normales Edit on unsichtbarem Elternfenster) for employment together with UpDown-Controls not really suitable. too the übliche lane over ~GetWindow(handle&,~GW_CHILD) functions unfortunately not... I try time to find out, what very so one UpDown-Control at create with the angegebenen Edit so everything anstellt and gucke, whether it itself Perhaps by a Änderung the Window-procedure for ColorEdits kompensieren can. promise can I but unfortunately nothing...
MfG
Sebastian |
|
|
| Windows XP, XProfan/Profan² 4.5 bis 11 Profan2Cpp-Homepage: [...] Alte Profan²-Seite: [...] | 04/16/07 ▲ |
|
|
|
|
Georg Hovenbitzer | Hello Sebastian,
if You with the Zusammenspiel mean, that the welt too around the Spin goes, is this not so important. interestingly would, wieso the ES_CENTER Style not functions, neither on the Child lever. |
|
|
| Viele Grüsse, Georg Hovenbitzer(Windows XP Pro, XProfan 11.2, Profan2Cpp 1.6a) | 04/16/07 ▲ |
|
|
|
|
| not jedermanns Solution - but in Okrea z.B. have I (as well as many others Controls) self created - it sees quasi from as though... 2 PictureStatics next to the Edit. |
|
|
| |
|
|
|
Georg Hovenbitzer | Hello if,
circa there durchzusteigen, bräuchte I time one demonstration
one could But too so make:
$H D:PrivatProfanXProfan10INCLUDEWindows.ph
$H D:PrivatProfanXProfan10INCLUDEMessages.ph
$H D:PrivatProfanXProfan10INCLUDEichedit.ph
Def GetSysColor(1) !USER32.DLL,GetSysColor
Def CreateSpinED(12) !COMCTL32.Dll,CreateUpDownControl
Declare RichDLL&
Declare Font&, Test1&, Test2&
RichDLL& = @UseDLL(RICHED32.DLL)
Window Style 2 + 8 + 16 + 128 + 256 + 512
Window 0,0-800,600
Cls GetSysColor(~COLOR_BTNFACE)
Font& = @Create(Font,Arinal Narrow,14,0,1,0,0)
Test1& = @Control(RichEdit,,$54010001,170,125,114,18,%hWnd,10,%hInstance,$0)
SetFont Test1&,Font&
Test2& = CreateSpinED($500000A6,0,0,0,0,%hWnd,20,%hInstance,Test1&,2020,1920,2007)
@SendMessage(Test1&,~em_SetBkGndColor,0,@RGB(213,214,145))
WhileNot %Key = 2
WaitInput
EndWhile
DeleteObject Font&
@DestroyWindow(Test1&)
FreeDLL RichDLL&
End
with the Solution gefällt I do not, that the Text always on the oberen edge depends and a welt get one neither there. |
|
|
| Viele Grüsse, Georg Hovenbitzer(Windows XP Pro, XProfan 11.2, Profan2Cpp 1.6a) | 04/17/07 ▲ |
|
|
|
|
Sebastian König | Hello Georg,
Georg Hovenbitzer
if You with the Zusammenspiel mean, that the welt too around the Spin goes, is this not so important. interestingly would, wieso the ES_CENTER Style not functions, neither on the Child lever.
OK, the could I now solve How it looks, must The Stile for Textausrichtung always already at create indicated and be can as an afterthought not any more changed wären. as way out remaining only, the Edit with geändertem Style new To create. with whom ColorEdits is the to that Happiness no trouble - here must Yes only the interne normal Edit new erststellt go.
in the attachment find You a new Version the DLL (1.22.04). so react The ColorEdits now on SKCtrl_SetAlignment, so You with
SKCtrl_SetAlignment(Test1&,2)
whom zentrierten Text take on can.
MfG
Sebastian |
|
|
| Windows XP, XProfan/Profan² 4.5 bis 11 Profan2Cpp-Homepage: [...] Alte Profan²-Seite: [...] | 04/17/07 ▲ |
|
|
|
|
Frank Abbing |
How it looks, must The Stile for Textausrichtung always already at create indicated and be can as an afterthought not any more changed wären.
with many Controlstyles/Controls must moreover only The Size the Controls kurzzeitig changed go. Habs here in the drop but not tested. |
|
|
| |
|
|
|
Sebastian König |
with many Controlstyles/Controls must moreover only The Size the Controls kurzzeitig changed go. Habs here in the drop but not tested.
Yes, the was my first thought . has but unfortunately not functions.... |
|
|
| Windows XP, XProfan/Profan² 4.5 bis 11 Profan2Cpp-Homepage: [...] Alte Profan²-Seite: [...] | 04/17/07 ▲ |
|
|
|
|
Georg Hovenbitzer | Hello Sebastian,
it works very well with the new DLL. The Solution with the DLL is to Time The best, there here except for the edge everything works. strange is only, that too at RichEdit the Completed: the edge gives. I get simply not out which Style for zuständig is. |
|
|
| Viele Grüsse, Georg Hovenbitzer(Windows XP Pro, XProfan 11.2, Profan2Cpp 1.6a) | 04/18/07 ▲ |
|
|
|
|
Sebastian König | Hello Georg,
Georg Hovenbitzer
strange is only, that too at RichEdit the Completed: the edge gives. I get simply not out which Style for zuständig is.
a welt get You, if you on Control() as last Parameter ~WS_EX_CLIENTEDGE commit. though becomes then from irgendwelchen Found not the XP-Style for welt using... best stay You means with the DLL
MfG
Sebastian |
|
|
| Windows XP, XProfan/Profan² 4.5 bis 11 Profan2Cpp-Homepage: [...] Alte Profan²-Seite: [...] | 04/18/07 ▲ |
|
|
|