Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - PopupControl with transparent Background Picture
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

PopupControl with transparent Background Picture

 Post Reply Post Reply
Author
Message
Hawk78 View Drop Down
Groupie
Groupie


Joined: 20 November 2012
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hawk78 Quote  Post ReplyReply Direct Link To This Post Topic: PopupControl with transparent Background Picture
    Posted: 20 November 2012 at 9:45am
Hi,
 
i'm tyring to create a Splash-Screen-Popup with transparent Background-Picture. On top of the picture i want to place some text.
 
First idea: (using PopupControsample)
 
    wndPopupSplash.Icons.LoadBitmap App.Path & "\Icons\transparentpic.png", 200, xtpImageNormal
    wndPopupSplash.BackgroundBitmap = 200
This works fine with transparency - but i don't know how to place text on this image by sourcecode.
 
second idea: (using xaml)
 
<Grid>
<Image Source="file://sp4.png"/>
<Border xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'
 VerticalAlignment="Center" HorizontalAlignment="Center" Padding="4" BorderThickness="1" BorderBrush="#767676" MaxWidth="412">
 <Border.Background>
  <LinearGradientBrush StartPoint="0, 0" EndPoint="0,1">
   <GradientStop Color="#ffffff" Offset="0"/>
   <GradientStop Color="#c9d9ef" Offset="1"/>
  </LinearGradientBrush>
 </Border.Background>
 <StackPanel TextBlock.FontFamily="Tahoma">
  <TextBlock Padding="1, 3, 1, 3" FontWeight="Bold">TEST</TextBlock>
  <Border Height="1" Background="#9ebbdd" />
  <Border Height="1" Background="White" />
  <StackPanel Margin="1, 7, 0, 3" Orientation="Horizontal">
  </StackPanel>
 </StackPanel>
</Border>
</Grid>
When I use this within the popup-control i have to choose a Visual-Theme:
 
wndPopupSplash.VisualTheme = xtpPopupThemeOffice2003
 
Unfortunatelly there is no visual theme with transparent background.... Cry
 
Can anybody help me please?! Thanks.
 
regards,
Hawk78
 
 
 
Back to Top
Willowmaster View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 July 2010
Location: Netherlands
Status: Offline
Points: 180
Post Options Post Options   Thanks (0) Thanks(0)   Quote Willowmaster Quote  Post ReplyReply Direct Link To This Post Posted: 21 November 2012 at 3:54am
Product: Xtreme SuitePro (ActiveX) version 15.3.1

Platform: Windows XP (32bit) - SP 3 (on VMWare)

Language: Visual Basic 6.0



Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.