Print Page | Close Window

PopupControl with transparent Background Picture

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=20315
Printed Date: 30 November 2024 at 12:25pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: PopupControl with transparent Background Picture
Posted By: Hawk78
Subject: PopupControl with transparent Background Picture
Date 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/ - 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
 
 
 



Replies:
Posted By: Willowmaster
Date Posted: 21 November 2012 at 3:54am
Not sure if this post helps but take a look at it:
http://forum.codejock.com/forum_posts.asp?TID=20062&KW=&title=popupcontrol-background-transparency-problem - http://forum.codejock.com/forum_posts.asp?TID=20062&KW=&title=popupcontrol-background-transparency-problem


-------------
Product: Xtreme SuitePro (ActiveX) version 15.3.1

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

Language: Visual Basic 6.0






Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net