Not to retein text in the combobox widget
Hello,
Just want to know any possiblity not to retein the text in the combobox widget? I am using Captivate 5.5. The current behavior is I select a value in the list of combobox on page A, and then I click a button to go to the next page B. When I am back to the page A, the value I just selected is there displayed in the combobox (as the selected value). I do not want to retein the text.
Thanks
In those blog posts, you'll find the direct link to Jim's (FREE) widgets:
TextArea widget extended
Extended widgets for ...
If you are not yet fed up with me:
Source list: Widgets and Custom Questions
Tips for Widgets
I'm planning a second part for the last post, about the Listbox and Vivid Text Caption widgets.
Lilybiri
Similar Messages
-
I want to make the item text of the combobox to be aligned vertically(Centred) . Actually I increased the height
of the combobox and after the increasing the combobox height, the text is not centred vertically.The code
snippet for increasing the height is as follows,
m_SpecifyCombo.SetItemHeight(-1,20);//CCombobox m_SpecifyCombo
After increasing the height the text in the combobox is not in the centre as shown in the below image,
But I want the text to be centred as shown in the below image.
Code snippet for owner drawn combobox:
#if !defined(AFX_CUSTCOMBOBOX_H__F8528B4F_396E_11D1_9384_00A0248F6145__INCLUDED_)
#define AFX_CUSTCOMBOBOX_H__F8528B4F_396E_11D1_9384_00A0248F6145__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
typedef enum {FONTS} STYLE; //Why have I enumerated, Cos, Maybe I might want something other than Fonts here
class COwnerDrawCombo : public CComboBox
// Construction
public:
COwnerDrawCombo();
COwnerDrawCombo (STYLE);
// Attributes
public:
void SetHilightColors (COLORREF hilight,COLORREF hilightText)
m_clrHilight = hilight;
m_clrHilightText = hilightText;
void SetNormalColors (COLORREF clrBkgnd,COLORREF clrText)
m_clrNormalText = clrText;
m_clrBkgnd = clrBkgnd;
static BOOL CALLBACK EnumFontProc (LPLOGFONT lplf, LPTEXTMETRIC lptm, DWORD dwType, LPARAM lpData);
void FillFonts ();
int GetSelFont (LOGFONT&);
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCustComboBox)
public:
virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
virtual void MeasureItem(LPMEASUREITEMSTRUCT lpMeasureItemStruct);
protected:
virtual void PreSubclassWindow();
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~COwnerDrawCombo();
// Generated message map functions
protected:
STYLE m_enStyle;
COLORREF m_clrHilight;
COLORREF m_clrNormalText;
COLORREF m_clrHilightText;
COLORREF m_clrBkgnd;
BOOL m_bInitOver;
void DrawDefault (LPDRAWITEMSTRUCT);
void DrawFont(LPDRAWITEMSTRUCT);
void InitFonts ();
//{{AFX_MSG(CCustComboBox)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnDestroy();
//}}AFX_MSG
afx_msg long OnInitFonts (WPARAM, LPARAM);
DECLARE_MESSAGE_MAP()
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif //!defined(AFX_CUSTCOMBOBOX_H__F8528B4F_396E_11D1_9384_00A0248F6145__INCLUDED_)
// OwnerDrawCombo.cpp : implementation file
#include "stdafx.h"
#include "combobox.h"
#include "OwnerDrawCombo.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
#define WM_INITFONTS (WM_USER + 123)
//I chose 123 cos nobody might use the same exact number.. I can improve this by use RegisterWindowMessage..
// COwnerDrawCombo
//Initial values of the text and highlight stuff
COwnerDrawCombo::COwnerDrawCombo()
m_enStyle = FONTS;
m_clrHilight = GetSysColor (COLOR_HIGHLIGHT);
m_clrNormalText = GetSysColor (COLOR_WINDOWTEXT);
m_clrHilightText = GetSysColor (COLOR_HIGHLIGHTTEXT);
m_clrBkgnd = GetSysColor (COLOR_WINDOW);
m_bInitOver = FALSE;
COwnerDrawCombo::COwnerDrawCombo (STYLE enStyle)
m_enStyle = enStyle;
m_clrHilight = GetSysColor (COLOR_HIGHLIGHT);
m_clrNormalText = GetSysColor (COLOR_WINDOWTEXT);
m_clrHilightText = GetSysColor (COLOR_HIGHLIGHTTEXT);
m_clrBkgnd = GetSysColor (COLOR_WINDOW);
m_bInitOver =FALSE;
COwnerDrawCombo::~COwnerDrawCombo()
BEGIN_MESSAGE_MAP(COwnerDrawCombo, CComboBox)
//{{AFX_MSG_MAP(COwnerDrawCombo)
ON_WM_CREATE()
ON_WM_DESTROY()
//}}AFX_MSG_MAP
ON_MESSAGE (WM_INITFONTS,OnInitFonts)
END_MESSAGE_MAP()
// COwnerDrawCombo message handlers
void COwnerDrawCombo::DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct)
//I might want to add something else someday
switch (m_enStyle)
case FONTS:
DrawFont(lpDrawItemStruct);
break;
//I dont need the MeasureItem to do anything. Whatever the system says, it stays
void COwnerDrawCombo::MeasureItem(LPMEASUREITEMSTRUCT lpMeasureItemStruct)
void COwnerDrawCombo::DrawFont(LPDRAWITEMSTRUCT lpDIS)
CDC* pDC = CDC::FromHandle(lpDIS->hDC);
CRect rect;
TRACE0 ("In Draw Font\n");
// draw the colored rectangle portion
rect.CopyRect(&lpDIS->rcItem);
pDC->SetBkMode( TRANSPARENT );
if (lpDIS->itemState & ODS_SELECTED)
pDC->FillSolidRect (rect,m_clrHilight);
pDC->SetTextColor (m_clrHilightText);
else
pDC->FillSolidRect (rect,m_clrBkgnd);
pDC->SetTextColor (m_clrNormalText);
if ((int)(lpDIS->itemID) < 0) // Well its negetive so no need to draw text
else
CString strText;
GetLBText (lpDIS->itemID,strText);
CFont newFont;
CFont *pOldFont;
((LOGFONT*)lpDIS->itemData)->lfHeight = 90; //9 point size
((LOGFONT*)lpDIS->itemData)->lfWidth = 0;
newFont.CreatePointFontIndirect ((LOGFONT*)lpDIS->itemData);
pOldFont = pDC->SelectObject (&newFont);
pDC->DrawText(strText, rect, DT_LEFT | DT_VCENTER | DT_SINGLELINE);
pDC->SelectObject (pOldFont);
newFont.DeleteObject ();
void COwnerDrawCombo::InitFonts ()
CDC *pDC = GetDC ();
ResetContent (); //Delete whatever is there
EnumFonts (pDC->GetSafeHdc(),NULL,(FONTENUMPROC) EnumFontProc,(LPARAM)this);//Enumerate
m_bInitOver = TRUE;
BOOL CALLBACK COwnerDrawCombo::EnumFontProc (LPLOGFONT lplf, LPTEXTMETRIC lptm, DWORD dwType, LPARAM lpData)
if (dwType == TRUETYPE_FONTTYPE) //Add only TTF fellows, If you want you can change it to check for others
int index = ((COwnerDrawCombo *) lpData)->AddString(lplf->lfFaceName);
LPLOGFONT lpLF;
lpLF = new LOGFONT;
CopyMemory ((PVOID) lpLF,(CONST VOID *) lplf,sizeof (LOGFONT));
((COwnerDrawCombo *) lpData)->SetItemData (index,(DWORD) lpLF);
return TRUE;
int COwnerDrawCombo::OnCreate(LPCREATESTRUCT lpCreateStruct)
if (CComboBox::OnCreate(lpCreateStruct) == -1)
return -1;
// TODO: Add your specialized creation code here
if (m_enStyle == FONTS)
//SetItemHeight(-1,30);
PostMessage (WM_INITFONTS,0,0);
return 0;
long COwnerDrawCombo::OnInitFonts (WPARAM, LPARAM)
InitFonts ();
return 0L;
void COwnerDrawCombo::OnDestroy()
if (m_enStyle == FONTS)
int nCount;
nCount = GetCount ();
for (int i = 0; i < nCount; i++)
delete ((LOGFONT*)GetItemData (i)); //delete the LOGFONTS actually created..
// TODO: Add your message handler code here
CComboBox::OnDestroy();
void COwnerDrawCombo::FillFonts ()
m_enStyle = FONTS;
PostMessage (WM_INITFONTS,0,0); //Process in one place
int COwnerDrawCombo::GetSelFont (LOGFONT& lf)
int index = GetCurSel ();
if (index == LB_ERR)
return LB_ERR;
LPLOGFONT lpLF = (LPLOGFONT) GetItemData (index);
CopyMemory ((PVOID)&lf, (CONST VOID *) lpLF, sizeof (LOGFONT));
return index; //return the index here.. Maybe the user needs it:-)
void COwnerDrawCombo::PreSubclassWindow()
// TODO: Add your specialized code here and/or call the base class
//Tried to do what Roger Onslow did for the button.. Did not work..?? Any R&D guys around :-)
Can anyone please let me know how can I achieve this.
Any help can be appreciated.
Thanks in advance
SivaVHi sivavuyyuru,
I cannot find a easy way to make this.
I think you may need to draw your own Combo Box control. And you could change the edit control more like static text. Check the article:
http://www.codeguru.com/cpp/controls/combobox/fontselectioncombos/article.php/c1795/Owner-Drawn-Font-Selection-Combobox.htm
In the resource editor, Owner draw -> variable , Has string->true, type->drop list.
The result:
Best regards,
Shu Hu
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Facebook like button is not working, I have used the muse widget and created code from facebook. Does anyone know how to get this to work?
Hi connally25,
Below is a link to a video tutorial on how to add a Facebook Log button, please check if you have followed the same steps to add the video.
http://tv.adobe.com/watch/learn-adobe-muse-cc/adding-a-facebook-like-button/
If you have followed the steps correctly and the button still does not work; here is a link to a forum thread which might help solving the issue:
Facebook Follow Widget not working
Regards
Sonam -
could someone please tell me how to attach a document to email as an icon that opens....so it does not appear as text in the email??
Paste this into Terminal and hit return. If this attachment is text, it should work. Not sure about jpegs.
defaults write com.apple.mail DisableInlineAttachmentViewing 1
To reverse the setting, change the 1 to a 0. -
How to change the answer text within the review widget of iBooks Author?
I want to change the answer text which appears after one has finished a test within the review widget of iBooks Author, but I can't figuere out how to do that.
I also want to sum up the result of a couple of questions as a percentage. How does that work?
Can anybody help?
Thanks
ReinhardNotice the answers inside the widget, each with a circle to the left - tap on one of those, which will then appear green with a checkmark in the center to indicate the correct choice.
-
EBS - Auto posting not working if text behind the document number
Hi,
When the document number is at the end of the payment reference, there is no problem.
However, when there is text behind the document number, the posting rule doesn't work anymore.
The autoposting also fails when there is a seperator (like a comma) directly added to the document number.
- In the posting rule for invoice numbers (BE51), it is able to find multiple invoice numbers and clear these together.
We were expecting this posting rule will behave the same, so when a customer mentions more than 1 document number,
it is able to find them all and clear if they fulfill the criteria (total amount of the documents matches the amount received).
But because of 1st mentioned problem, system doesn't clear anything because of additional text present.
I am look help to solve this issue
Thanks.
With regards,
V.K
Best regards,Hi,
Any input for above issue?
With regards,
V.K -
Why can't you copy and paste text from the Dictionary widget?
I use this dictionary often, but I wish that I was able to copy and paste the text from it.
Just use the Dictionary application in the Applications folder. You will have no problem copying and pasting text from the full application. I just tried it and it works fine.
-
I connect my Bluetooth (Moto Hint Bluetooth Ear bud) or my Samsung Bluetooth. It says connected but when I receive a call and say answer it does not answer the call, nor does it read out who is calling. I have allowed both devices to access my phone book/contacts. These devices worked fine on my Samsung Galaxy S4, but don't seem to work on the Motorola Turbo. Did I forget or miss something when setting up my phone? I even erased the Cache Partition thinking maybe somehow that is the problem, but nothing. Thanks!
Ensuring your Bluetooth is working is very important jwralston. Especially if you are driving. Has this ever worked for you? If so, when did you start experiencing difficulites? What make and model Bluetooth are you using?
Thank You,
MichelleL_VZW
VZW Support
Follow us on Twitter @VZWSUPPORT -
Since updating my iPhone my battery doesent last a day and I'm not recieving alot of texts sent by people on iMessenger.
Never had this problem before and not using my phone anymore than normal.I'm having no problem.
-
What is wrong with the ComboBox?
What a nice Saturday it is...
Why oh why won't a ComboBox show its selection when it's
loaded in a parent movie? Do we have the same issue here as with
the AS2 version? I tried putting a ComboBox in the parent but that
doesn't work either.
Functions as expected when I test the movie with the
ComboBox, when I load that movie in a parent... no text on the
ComboBox. The dropdown works ok, but once you have made a selection
and the ComboBox closes again... no text. Anyone experienced
this?it wouldn't matter whether the cb was added to the stage or
using a.s. it would matter if you picked a unique instance name or
not.
with a non-unique name, the cb appears to be working but
displays no text when closed. if you click the cb and open it,
you'll see the text so you can make different selections. but if
you click a selection, no text appears in the closed cb. -
Regarding heaer text in the smartforms
hi experts,
i m using table in my smartforms with header,main & footer,
also with the help of command statement i m getting number of pages,
here the header text is coming only on the first page but not on the next pages why,,,,,,,,,,,,,,,,,,,,,,,,
i dnt know what is the reason, eariler i used the same thing i m getting but now i m not getting header text on the next/number of pages except first page,,,on the next pages a only blank header is coming no doubt the main and footer is coming alrt......
plz help me........Hi,
In table attributes you have to check the check box.
at page break. -
Is there a way of just changing the text to the main menu..but not the submenus?
Is there a way of just changing the text to the main
menu..but not the submenus?
Also i have looked at in the browser and when i glide over
the menu catergories or click on them they dont show the
submenu...what can i do to solve this?Does the example described at
http://labs.adobe.com/technologies/spry/articles/menu_bar/index.html
work for you?
What are you doing that's different from the example?
When you say you just want to change the text of the main
menu without changing the submenus, do you mean you want to do so
dynamically, at some later stage after the page has loaded?
If so, you could try retrieving the main menu elements you
want to update from the DOM and updating them from your script's
event handler for whatever event it is that you want to update them
in response to. This presumes the widget will detect this and
update appropriately, which I can't say for sure since I haven't
actually tried it.
Hope that helps!
Rob -
Why can I not get the green widget to activate on messaging?
On my i pad mine when messaging the green widget will not activate so I can only do i messaging which means my non apple friends are not contatctable.
You may want to try 3rd party apps like TextMe for your non-Apple friends.
https://itunes.apple.com/sg/app/textme-free-texting-international/id338088432?mt =8 -
Menu Widget: Is it possible to align the text centered in the Menu Top-pages and left in the Menu Sub-pages?
There's not a lot of control (any) for where the submenu itself is positioned, but you can align the text within the submenus using text alignment in the Text panel in the menu is set for Uniform Site. If the menu is set for Uniform Spacing you need to get more creative and double click until a submenu item is selected, then use the Spacing panel (unlock the chain icon) to increase the right padding value so the text appears left aligned.
-
Rotating the text label of the tabs in the tab widget
Hello, I am fully aware that the tab widget can be rotated... However I have not been able to rotate the text label of the tab itself. This has been really frustrating and I'm not sure if its even possible to do.
It would certainly be a great feature! If anyone can help it would be much appreciated.
Thank you.Hi
Try to use vertical text in label and then rotate it, it would show up aligned with tab orientation.
Thanks,
Sanjit
Maybe you are looking for
-
I installed 5.0 on my new computer running XP Pro, but the screen format reverts back to the 3.6 version. According to what I see on the Firefox home page the screen format of 5.0 should match what I had in the 4.0 version. Can this be changed someho
-
Imported Images don't play correctly
I have 30 individual images (.bmp files) but when I import them to the timeline and press play, iMovie's timeline plays through each image so slowly. The whole 30 images should play less than a second long. It's like each image is treated like a sepa
-
Regarding me49 tr.code report
Hi Am copied from ME49 program(RM06EPS0) into zprogram(ZRM06EPS0),and do some modifications according to my requirement but the problem is when am executed the zprogram it goes dump.In that the error occured is "perform initialisation not implemented
-
Soft returns, xml export
If I want to export text, including soft returns, to xml I get the error that some kind of characters are not recognized. Is there a way to export soft returns correctly to xml ? I already posted a similar question, but maybe I was not clear anough,
-
Having trouble with finder????
ok i have two accounts on this mac both have administrative rights, i use mine and i can get into the other so heres the problem i log in and everything is fine then sooner or later the finder just wigs out, buttons start to disappear like the back,