From: Malcolm on
John Martens wrote:
>
>
> I can get rid of most of the window edges for a data-window by using:
> SELF:EnableSystemMenu(FALSE)
> SELF:EnableMinBox(FALSE)
> SELF:EnableMaxBox(FALSE)
> SELF:EnableBorder(WINDOWNOBORDER)
>
> This howeven leaves me with small edges as on this Vo Window:
> www.tennishulp.info/download/VOWINDOW.BMP
>
> Can I get rid of these small edges as well ?

I think so - remember you have 3 windows
outer window (the datawindow)
form frame (a __FormFrame in the oFormFrame protect)
surface (a dialog window in the osurface protect)

We also seem to use
self:SetStyle(_Or(WS_BORDER, WS_THICKFRAME),false)
From: John Martens on
Malcom,

self:SetStyle(_Or(WS_BORDER, WS_THICKFRAME),false) did nothing new.
I wanted to go the edges away because I'm using a method to save the
window to a BMP/JPG file.

Now you mentioned the oSurface protect I went into the WindowToPicture
method of the datawindow and found the way to get rid of the edges in
the BMP/JPG.

Thanks for the hint.

John


Malcolm schreef:
> John Martens wrote:
>>
>>
>> I can get rid of most of the window edges for a data-window by using:
>> SELF:EnableSystemMenu(FALSE)
>> SELF:EnableMinBox(FALSE)
>> SELF:EnableMaxBox(FALSE)
>> SELF:EnableBorder(WINDOWNOBORDER)
>>
>> This howeven leaves me with small edges as on this Vo Window:
>> www.tennishulp.info/download/VOWINDOW.BMP
>>
>> Can I get rid of these small edges as well ?
>
> I think so - remember you have 3 windows
> outer window (the datawindow)
> form frame (a __FormFrame in the oFormFrame protect)
> surface (a dialog window in the osurface protect)
>
> We also seem to use
> self:SetStyle(_Or(WS_BORDER, WS_THICKFRAME),false)
From: Malcolm on
John Martens wrote:
>
>
> Malcom,
>
> self:SetStyle(_Or(WS_BORDER, WS_THICKFRAME),false) did nothing new.
> I wanted to go the edges away because I'm using a method to save the
> window to a BMP/JPG file.

I think we call it on the surface (We have lots of other things going on
around here so I cannot simply show you the code we use)
 | 
Pages: 1
Prev: ADS DataDictionary ADT SQL
Next: Need Info