Hi,
I want to build a MULTIGAPE with a bitmap for each tab instead of text. In general it works.
But I want to finetune the design with a the bitmap which fills the complete tab (heigth and width). No tab background should be visible (except the Frame).
But I was not able to eleminate the background. Further emWin produces a strange result.
What did I do? I started with:
MULTIPAGE_SetBitmap(hMultiPage, &bmIcon2, 0, MULTIPAGE_BI_SELECTED);
MULTIPAGE_SetBitmap(hMultiPage, &bmIcon2, 0, MULTIPAGE_BI_UNSELECTED);
To prevent any border between bitmap and frame I try (of corse before MULTIPAGE_Create):
MULTIPAGE_SetDefaultBorderSizeX(0);
MULTIPAGE_SetDefaultBorderSizeY(0);
The result is a little bit strange. I put two pictures with the result:
Left picture: First tab SELECTED - Right picture: First tab UNSELECTED (enabled)
[img]http://mcklose.noip.me:3223/upload/testgross2a.png[/img] [img]http://mcklose.noip.me:3223/upload/testgross2b.png[/img]
I choose extrem colors with SetSkinFlexProps for the different multipage
elements (foreground, background, frame etc.) to distinguish between them and find out what emWin is doing exactly (unfortunately it isnt documentated).
Question:
What have I to do to eleminate the border (already set to 0!) between the bitmap and the frame,
while keeping the frames (selected and unselected) visible proper?
Strange:
Or what I am doing wrong?
I'm looking forward to your answer.
Matz
I want to build a MULTIGAPE with a bitmap for each tab instead of text. In general it works.
But I want to finetune the design with a the bitmap which fills the complete tab (heigth and width). No tab background should be visible (except the Frame).
But I was not able to eleminate the background. Further emWin produces a strange result.
What did I do? I started with:
MULTIPAGE_SetBitmap(hMultiPage, &bmIcon2, 0, MULTIPAGE_BI_SELECTED);
MULTIPAGE_SetBitmap(hMultiPage, &bmIcon2, 0, MULTIPAGE_BI_UNSELECTED);
To prevent any border between bitmap and frame I try (of corse before MULTIPAGE_Create):
MULTIPAGE_SetDefaultBorderSizeX(0);
MULTIPAGE_SetDefaultBorderSizeY(0);
The result is a little bit strange. I put two pictures with the result:
Left picture: First tab SELECTED - Right picture: First tab UNSELECTED (enabled)
[img]http://mcklose.noip.me:3223/upload/testgross2a.png[/img] [img]http://mcklose.noip.me:3223/upload/testgross2b.png[/img]
I choose extrem colors with SetSkinFlexProps for the different multipage
elements (foreground, background, frame etc.) to distinguish between them and find out what emWin is doing exactly (unfortunately it isnt documentated).
- blue: The Bitmap (42 x 26 pixel)
- lightred: Frame of selected pagelightgreen: Background of selected page
- darkred: Frame of unselected page (enabled) (without bitmap for test)
- grey: Background of unselected page (enabled) (without bitmap for test)
Question:
What have I to do to eleminate the border (already set to 0!) between the bitmap and the frame,
while keeping the frames (selected and unselected) visible proper?
Strange:
- In selected state (left picture) the sourounding frame (lightred) is interrupted by the bitmap.
- In unselected state the frame of the selected neighbour tab is interrupted on the bottom of the bitmap (at the first unselected tab)
Or what I am doing wrong?
I'm looking forward to your answer.
Matz