Hi Mockey, Detlef,

Mockey, in forum exchange you said

=================================

In exchange with detlef about coloured buttons you said:

>dHan.define_control(0, 0, 12, 12, "button", "test")
>dHan.set_colour("play", "", 0x990000)

>dialog.version is 0079
>Color is gone, when closing and reopening the dialog, though. 
>Redraw helps:
>dll.call("RedrawWindow|ui[4]", dHan.get_hwnd, 0, 0, 389)


In dialogPluginTest1.powerpro if I insert 

  hDlg.colour("btPop", "green", dialog.rgb(200 ,240, 240))

_before_ create, it works; if I insert _after_ create, obviously I
forgot something. 

Found that bug, fixed ready for next issue.  

When it works, it works if I terminate and restart dialog, and if I
minimize and restore.  
 
So what did you mean, Mockey, above,  by "closing and reopening"?  

=========================

Status bars:  existing set_colour allows background colour to be
changed, but badly the bar borders seem to overcoloured as well.; and
seems to ignore foreground colour.  I'll have to research why
forground colours don't work.  I may have to covent to ownerdrawn
status bar, which will take a bit of time.

=========================

Okay, think I got set_position to work too.  

Repairing resizing will take longer.  

Temporary version at 

http://tech.groups.yahoo.com/group/power-pro/files/0_TEMP_/dialogPluginTest0.81.zip

Try populate button of included script.

--- In [email protected], "mockey_a" <[EMAIL PROTECTED]> wrote:
>
> --- In [email protected], "dleidinger" <dleidinger@> 
> wrote:
> > If i don't assign colors in the dialog.define_control-statement 
> for a 
> > button, i don't get colors at all. Set_colour is processed without 
> > error, but without any effect. 
> 
> Hmm, I get a colored button with this:
> (dHan is dialog.handle from dialog.define)
> 
> dHan.define_control(0, 0, 12, 12, "button", "test")
> dHan.set_colour("play", "", 0x990000)
> 
> dialog.version is 0079
> Color is gone, when closing and reopening the dialog, though. 
> Redraw helps:
> dll.call("RedrawWindow|ui[4]", dHan.get_hwnd, 0, 0, 389)
> 
> Colour is also the other way round (MS-style, BGR instead of RGB).
> 
> Mockey
>


Reply via email to